/* Pay In Order — payinorder.com. Brand: navy / cobalt / mint, amber only for shortfalls. Inter only. */
:root {
  --navy: #11233f;
  --navy-2: #182e52;
  --cobalt: #2458e8;
  --cobalt-dark: #1a45bd;
  --mint: #d9f6ec;
  --mint-ink: #1e8a5f;
  --amber: #bf7c00;
  --amber-soft: #fff1d6;
  --white: #ffffff;
  --paper: #f5f7fb;
  --line: #c9d3e3;
  --muted: #55627a;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 104px;
  --radius: 14px;
  --radius-sm: 10px;

  /* base → elevated → floating */
  --shadow-1: 0 1px 2px rgb(17 35 63 / .06), 0 2px 8px rgb(17 35 63 / .05);
  --shadow-2: 0 1px 2px rgb(17 35 63 / .06), 0 8px 24px rgb(17 35 63 / .09), 0 24px 48px -24px rgb(36 88 232 / .18);
  --shadow-3: 0 2px 4px rgb(8 18 36 / .12), 0 18px 40px rgb(8 18 36 / .28), 0 40px 80px -30px rgb(36 88 232 / .35);

  --spring: cubic-bezier(.2, .9, .3, 1.2);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 400 17px/1.7 var(--font);
  font-feature-settings: "tnum" 1, "cv11" 1;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 var(--s4); font-weight: 800; }
h1 { font-size: clamp(40px, 9vw, 68px); }
h2 { font-size: clamp(28px, 5vw, 42px); }
h3 { font-size: 20px; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0 0 var(--s4); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 640px) { .wrap { padding: 0 var(--s5); } }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s4); top: var(--s4); z-index: 10; background: var(--white); padding: var(--s2) var(--s4); border-radius: var(--radius-sm); }

:where(a, button, input, summary):focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgb(201 211 227 / .6); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: var(--s2); color: var(--navy); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.brand em { font-style: normal; color: var(--cobalt); }
.brand-light { color: var(--white); }
.brand-light em { color: #8fb0ff; }
.brand:hover { opacity: .85; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 0 var(--s5);
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--cobalt); color: var(--white);
  font: 700 16px/1 var(--font); letter-spacing: -0.005em; text-decoration: none;
  box-shadow: 0 1px 2px rgb(17 35 63 / .2), 0 6px 16px -6px rgb(36 88 232 / .6);
  transition: transform .35s var(--spring), opacity .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--cobalt-dark); }
.btn:active { transform: translateY(1px); }
.btn-small { white-space: nowrap; min-height: 40px; padding: 0 var(--s4); font-size: 14px; border-radius: 10px; }
.btn-wide { width: 100%; }
.btn-light { background: var(--mint); color: var(--navy); box-shadow: 0 1px 2px rgb(8 18 36 / .2), 0 8px 20px -8px rgb(217 246 236 / .5); }
.btn-light:hover { background: var(--white); }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8fb0ff; margin-bottom: var(--s3); }
.eyebrow-dark { color: var(--cobalt); }
.accent { color: var(--mint); }

/* Cards / depth */
.card { background: var(--white); border: 1px solid rgb(201 211 227 / .7); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.card-float { box-shadow: var(--shadow-3); border: 0; }

/* Hero */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  background:
    radial-gradient(60% 50% at 85% 10%, rgb(36 88 232 / .55), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgb(36 88 232 / .25), transparent 70%),
    radial-gradient(40% 30% at 60% 60%, rgb(217 246 236 / .06), transparent 70%),
    var(--navy);
  padding: var(--s7) 0 var(--s8);
}
.hero::after { /* grain */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid { display: grid; gap: var(--s7); align-items: start; }
.lede { font-size: 20px; line-height: 1.5; color: #c7d4ee; max-width: 30ch; margin-bottom: var(--s6); }

/* Signup */
.signup { color: var(--navy); padding: var(--s5); }
.hero .signup { box-shadow: var(--shadow-3); border: 0; }
.signup-title { font-size: 22px; letter-spacing: -0.02em; margin-bottom: var(--s2); }
.signup-title em { font-style: normal; color: var(--cobalt); }
.signup-body { font-size: 15px; line-height: 1.6; color: var(--muted); }
.fields { display: grid; gap: var(--s3); margin-bottom: var(--s4); }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.field small { font-weight: 400; color: var(--muted); }
.field input {
  width: 100%; min-height: 50px; padding: 0 var(--s4);
  font: 500 17px var(--font); color: var(--navy);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: opacity .2s;
}
.field input:hover { border-color: #9fb0cc; }
.field input:focus-visible { outline-offset: 0; background: var(--white); }
.consent { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: var(--s3) 0 0; }
.signup-inline { display: grid; gap: var(--s3); max-width: 460px; margin-top: var(--s5); }
.signup-inline .consent { margin: 0; }

/* Example card */
.example { color: var(--navy); padding: var(--s5); }
.example-tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
.ledger { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.ledger li { display: flex; justify-content: space-between; gap: var(--s4); padding: 10px 0; border-bottom: 1px solid #e3e9f2; font-size: 15px; }
.ledger li span { color: var(--muted); }
.ledger li:first-child b { color: var(--navy); }
.ledger b { font-weight: 700; white-space: nowrap; }
.room { background: var(--mint); border-radius: var(--radius-sm); padding: var(--s4); display: grid; }
.room span { font-size: 14px; font-weight: 700; color: var(--mint-ink); }
.room strong { font-size: 48px; line-height: 1.05; letter-spacing: -0.04em; }
.room small { color: var(--navy); font-size: 14px; }

@media (min-width: 900px) {
  .hero { padding: var(--s8) 0 var(--s9); }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: var(--s8); }
  .example { margin-top: var(--s9); transform: rotate(1.2deg); }
}

/* Sections */
.section { padding: var(--s8) 0; }
.section-tint { background: linear-gradient(180deg, var(--paper), #eef2fa); }
.section-navy {
  color: var(--white);
  background: radial-gradient(50% 60% at 100% 0%, rgb(36 88 232 / .4), transparent 70%), var(--navy);
}
.section-navy p { color: #c7d4ee; }
.section-navy strong { color: var(--white); }
.section-lede { color: var(--muted); margin-bottom: var(--s6); }
@media (min-width: 900px) { .section { padding: var(--s9) 0; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; gap: var(--s4); }
.steps li { padding: var(--s5); position: relative; }
.steps p { color: var(--muted); margin: 0; font-size: 16px; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cobalt); color: var(--white); font-weight: 800; margin-bottom: var(--s4); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }

/* Calculator */
.calc { display: grid; gap: var(--s5); align-items: start; }
.calc-form { padding: var(--s5); display: grid; gap: var(--s4); }
.calc-out { padding: var(--s5); background: var(--navy); color: var(--white); display: grid; gap: var(--s2); }
.calc-out [data-label] { font-size: 14px; font-weight: 700; color: var(--mint); text-transform: uppercase; letter-spacing: .08em; }
.calc-out [data-room] { font-size: clamp(48px, 12vw, 72px); line-height: 1; letter-spacing: -0.045em; color: var(--mint); }
.calc-out [data-perday] { font-size: 16px; color: #c7d4ee; }
.calc-out p { font-size: 15px; color: #c7d4ee; margin: var(--s4) 0; }
.calc-out .btn { justify-self: start; }
.calc-out[data-state="short"] [data-label], .calc-out[data-state="short"] [data-room] { color: #ffc35c; }
.calc-out[data-state="short"] { box-shadow: var(--shadow-3), inset 0 0 0 2px var(--amber); }
.calc-form { grid-template-columns: 1fr 1fr; gap: var(--s3); }
.calc-form .field input { min-height: 46px; }
.field-days { grid-column: 1 / -1; }
@media (min-width: 640px) { .calc-form { gap: var(--s4); } }
@media (max-width: 359px) { .brand { font-size: 17px; } .btn-small { padding: 0 var(--s3); font-size: 13px; } .calc-form { padding: var(--s4); } }
@media (min-width: 960px) { .calc { grid-template-columns: 1.3fr 1fr; gap: var(--s6); } .calc-out { position: sticky; top: 88px; } }

/* Split sections */
.split { display: grid; gap: var(--s6); align-items: center; }
.shot img { border-radius: var(--radius); box-shadow: var(--shadow-2); border: 1px solid #e3e9f2; }
.shot { margin: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .shot { transform: rotate(-1.5deg); }
  .split-rev > :first-child { order: 0; }
}
.ticks { list-style: none; padding: 0; margin: var(--s4) 0; display: grid; gap: var(--s3); }
.ticks li { position: relative; padding-left: 34px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e8a5f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}
.ticks-light li { color: #dbe4f5; }

.price { font-size: 17px; margin: var(--s5) 0; }
.price strong { display: block; font-size: 48px; line-height: 1.1; letter-spacing: -0.04em; }
.fine { font-size: 14px; margin-top: var(--s3); }
.gallery { display: grid; gap: var(--s4); }
.gallery img { border-radius: var(--radius); }
@media (min-width: 900px) {
  .gallery { position: relative; }
  .gallery picture:last-child img { width: 82%; margin: -22% 0 0 auto; }
}

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: var(--s5) var(--s6) var(--s5) 0; font-weight: 700; font-size: 18px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 500; color: var(--cobalt); transition: transform .3s var(--spring); }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
summary:hover { color: var(--cobalt); }
details p { color: var(--muted); padding-bottom: var(--s5); margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #c7d4ee; padding: var(--s7) 0; font-size: 14px; line-height: 1.6; }
.site-footer p { max-width: 70ch; margin-top: var(--s4); }
.footer-links a { color: var(--white); }
.footer-links a:hover { color: var(--mint); }

/* Simple pages (thanks, privacy, 404) */
.page { padding: var(--s8) 0; min-height: 60vh; }
.page h1 { font-size: clamp(34px, 7vw, 52px); }
.page h2 { font-size: 22px; margin-top: var(--s6); }
.page p, .page li { color: #33415a; }
.offer { margin-top: var(--s6); padding: var(--s5); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, summary::after { transition: none; }
  .btn:hover, .btn:active { transform: none; }
  .example, .shot { transform: none !important; }
}

.signup-error { color: #8a5a00; background: var(--amber-soft); border-radius: var(--radius-sm); padding: var(--s3) var(--s4); font-size: 14px; line-height: 1.5; margin: 0 0 var(--s3); }
.signup-error:empty { display: none; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
