/* ============================================================
   BillRelay — marketing landing page
   Palette: navy #0F1B2D · teal #2DA89F · off-white #FAFAF7 · orange #E8843C
   Type: Fraunces (headlines) · Inter (body)
   ============================================================ */

:root {
  --navy: #0F1B2D;
  --navy-700: #1B2D45;
  --navy-600: #25395280;
  --teal: #2DA89F;
  --teal-deep: #1F7E77;
  --orange: #E8843C;
  --orange-deep: #CC6B27;
  --gold: #D9B36A;
  --bg: #FAFAF7;
  --bg-card: #FFFFFF;
  --line: #E7E5DD;
  --line-strong: #D8D5CB;
  --ink: #0F1B2D;
  --ink-soft: #41506180;
  --muted: #5A6675;
  --muted-2: #8A93A0;

  --maxw: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15,27,45,.05), 0 2px 6px rgba(15,27,45,.04);
  --shadow-md: 0 6px 24px rgba(15,27,45,.08), 0 2px 6px rgba(15,27,45,.04);
  --shadow-lg: 0 30px 60px -20px rgba(15,27,45,.28), 0 12px 28px -12px rgba(15,27,45,.18);
  --shadow-glow: 0 40px 80px -28px rgba(45,168,159,.45), 0 12px 30px -12px rgba(15,27,45,.22);

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 540; line-height: 1.06; letter-spacing: -.01em; margin: 0; font-optical-sizing: auto; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--teal); display: inline-block; }

.section { padding: clamp(72px, 9vw, 130px) 0; }
.section-head { max-width: 720px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 50px); margin: 18px 0 0; }
.section-head .lede { margin-top: 18px; font-size: 19px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -8px rgba(232,132,60,.7); }
.btn-primary:hover { background: var(--orange-deep); box-shadow: 0 12px 26px -8px rgba(232,132,60,.8); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); background: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 8px 20px -8px rgba(45,168,159,.6); }
.btn-teal:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,247,.78); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(15,27,45,.02); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 600; font-size: 21px; letter-spacing: -.02em; color: var(--navy); }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--navy); display: grid; place-items: center; flex: none; }
.brand .mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s ease; }
.nav-links a:hover { color: var(--navy); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-right .login { font-size: 15px; font-weight: 500; color: var(--muted); }
.nav-right .login:hover { color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(680px 360px at 82% -8%, rgba(45,168,159,.14), transparent 60%),
    radial-gradient(560px 320px at 6% 8%, rgba(232,132,60,.08), transparent 60%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 70px); letter-spacing: -.025em; }
.hero h1 .accent { color: var(--teal-deep); font-style: italic; }
.hero .sub { margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.hero-cta .nocc { font-size: 13.5px; color: var(--muted-2); margin-left: 2px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; }
.hero-badges span { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.hero-badges svg { color: var(--teal); flex: none; }
.hero-badges span.soon { color: var(--muted-2); }
.hero-badges span.soon svg { color: var(--muted-2); }
/* inline "coming soon" badge (e.g. roadmap mentions in body copy) */
.tag-soon { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--orange); background: rgba(232,132,60,.12); padding: 2px 7px; border-radius: 20px; display: inline-block; margin: 0 5px; vertical-align: middle; }

/* ---------- product mockup (browser frame) ---------- */
.mock {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 11px; height: 11px; border-radius: 50%; background: #E2E0D8; display: block; }
.mock-url { margin-left: 8px; flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 6px 12px; font-size: 12.5px; color: var(--muted-2); font-family: var(--font-body); display: flex; align-items: center; gap: 7px; }
.mock-url svg { color: var(--teal); flex: none; }

.app { display: grid; grid-template-columns: 196px 1fr; min-height: 430px; }
.app-side { background: var(--navy); padding: 18px 14px; color: #fff; }
.app-side .org { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.06); }
.app-side .org .dot { width: 22px; height: 22px; border-radius: 6px; background: var(--teal); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.app-nav { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.app-nav a { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #A9B6C7; padding: 8px 9px; border-radius: 8px; }
.app-nav a.on { background: rgba(45,168,159,.18); color: #fff; }
.app-nav a .ic { width: 15px; height: 15px; opacity: .9; }
.app-nav .count { margin-left: auto; font-size: 11px; background: var(--orange); color: #fff; border-radius: 20px; padding: 1px 7px; font-weight: 700; }

.app-main { padding: 20px 22px; background: var(--bg); }
.app-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.app-h .ttl { font-family: var(--font-head); font-size: 18px; font-weight: 560; }
.app-h .ttl span { color: var(--muted-2); font-family: var(--font-body); font-weight: 500; font-size: 13px; margin-left: 8px; }
.app-h .approve { font-size: 12.5px; font-weight: 600; color: #fff; background: var(--teal); padding: 7px 13px; border-radius: 8px; display: inline-flex; gap: 6px; align-items: center; }

.bill {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 17px; box-shadow: var(--shadow-sm);
}
.bill-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bill-top .vend { font-weight: 700; font-size: 15px; }
.bill-top .meta { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.chip { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; }
.chip-ok { background: rgba(45,168,159,.13); color: var(--teal-deep); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.bill-rows { margin-top: 14px; border-top: 1px solid var(--line); }
.bill-rows .r { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; align-items: center; }
.bill-rows .r .d { color: var(--ink); }
.bill-rows .r .acct { color: var(--teal-deep); font-size: 11px; font-weight: 600; }
.bill-rows .r .amt { font-variant-numeric: tabular-nums; color: var(--muted); }
.bill-tot { display: flex; flex-direction: column; gap: 5px; margin-top: 13px; align-items: flex-end; font-size: 12.5px; }
.bill-tot .row { display: flex; gap: 30px; color: var(--muted); }
.bill-tot .row.g { color: var(--teal-deep); font-weight: 600; }
.bill-tot .row.t { color: var(--ink); font-weight: 700; font-size: 14px; }
.bill-tot .row .v { font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }
.bill-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted-2); }
.bill-foot .pdf { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; }
.bill-foot .pdf svg { color: var(--orange); }

.float-card {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 11px 14px; display: flex; align-items: center; gap: 11px; z-index: 3;
}
.float-card .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.float-card .t1 { font-size: 13px; font-weight: 700; line-height: 1.2; }
.float-card .t2 { font-size: 11.5px; color: var(--muted-2); }
.float-email { top: -22px; left: -26px; }
.float-email .ic { background: rgba(232,132,60,.14); color: var(--orange); }
.float-time { bottom: -20px; right: -18px; }
.float-time .ic { background: rgba(45,168,159,.14); color: var(--teal-deep); }
.mock-stack { position: relative; }

/* ---------- trust strip ---------- */
.trust { background: var(--navy); color: #BFCAD8; }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 0; padding: 20px 0; }
.trust-inner .t { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; padding: 0 24px; }
.trust-inner .t svg { color: var(--teal); flex: none; }
.trust-inner .t:not(:last-child) { border-right: 1px solid rgba(255,255,255,.12); }
.trust-inner .t.soon { color: #7E8DA0; }

/* ---------- problem / solution ---------- */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.pcard { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.pcard .n { font-family: var(--font-head); font-size: 15px; color: var(--orange); font-weight: 600; }
.pcard.sol { background: var(--navy); color: #fff; border-color: var(--navy); }
.pcard.sol .n { color: var(--teal); }
.pcard h3 { font-size: 22px; margin-top: 14px; line-height: 1.18; }
.pcard p { margin-top: 12px; font-size: 15.5px; color: var(--muted); }
.pcard.sol p { color: #AEBBCB; }

/* ---------- how it works ---------- */
.how { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 54px; counter-reset: step; }
.step { position: relative; }
.step-ill { border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); height: 168px; overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.step .num { width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; display: grid; place-items: center; font-size: 16px; margin: 20px 0 0; }
.step h3 { font-size: 20px; margin-top: 14px; }
.step p { margin-top: 9px; font-size: 15px; color: var(--muted); }
.step code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; background: rgba(45,168,159,.1); color: var(--teal-deep); padding: 2px 7px; border-radius: 6px; word-break: break-all; }

/* illustration internals */
.ill-pad { padding: 18px; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.ill-mail { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; box-shadow: var(--shadow-sm); }
.ill-mail .pic { width: 30px; height: 30px; border-radius: 8px; background: rgba(232,132,60,.14); color: var(--orange); display: grid; place-items: center; flex: none; }
.ill-mail .l1 { font-size: 12px; font-weight: 700; }
.ill-mail .l2 { font-size: 11px; color: var(--muted-2); font-family: ui-monospace, monospace; }
.ill-arrow { display: grid; place-items: center; color: var(--teal); }
.ill-extract { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 7px; }
.ill-extract .er { display: flex; justify-content: space-between; font-size: 11.5px; }
.ill-extract .er .k { color: var(--muted-2); }
.ill-extract .er .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.ill-extract .er .v.teal { color: var(--teal-deep); }
.ill-queue { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); overflow: hidden; }
.ill-queue .qr { display: flex; align-items: center; gap: 9px; padding: 9px 12px; font-size: 11.5px; border-bottom: 1px solid var(--line); }
.ill-queue .qr:last-child { border-bottom: 0; }
.ill-queue .qr .ck { width: 18px; height: 18px; border-radius: 6px; background: var(--teal); color: #fff; display: grid; place-items: center; flex: none; }
.ill-queue .qr.dim { opacity: .5; }
.ill-queue .qr .nm { font-weight: 600; }
.ill-queue .qr .pr { margin-left: auto; color: var(--muted-2); font-variant-numeric: tabular-nums; }

/* ---------- features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 54px; }
.fcard { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.fcard .fic { width: 42px; height: 42px; border-radius: 11px; background: rgba(45,168,159,.12); color: var(--teal-deep); display: grid; place-items: center; margin-bottom: 16px; }
.fcard h3 { font-size: 17px; font-family: var(--font-body); font-weight: 700; letter-spacing: -.01em; }
.fcard p { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.fcard .soon-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--orange); background: rgba(232,132,60,.12); padding: 2px 8px; border-radius: 20px; display: inline-block; margin-top: 10px; }

/* ---------- pricing ---------- */
.pricing { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-top: 1px solid var(--line); }
.pricing .section-head { margin: 0 auto; text-align: center; }
.pricing .section-head .eyebrow { justify-content: center; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative;
}
.price-card .tier { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.price-card .amt { margin-top: 14px; font-family: var(--font-head); font-size: 40px; font-weight: 560; letter-spacing: -.02em; line-height: 1; }
.price-card .amt .per { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--muted-2); letter-spacing: 0; }
.price-card .docs { margin-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--teal-deep); }
.price-card .who { margin-top: 6px; font-size: 14px; color: var(--muted); min-height: 40px; }
.price-card .pbtn { margin-top: 22px; }
.price-card.pop { border: 1.5px solid var(--teal); box-shadow: var(--shadow-glow); transform: translateY(-12px); z-index: 2; }
.price-card.pop .amt { color: var(--navy); }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(45,168,159,.7); }
.price-card.ent { background: var(--navy); border-color: var(--navy); color: #fff; }
.price-card.ent .tier { color: var(--gold); }
.price-card.ent .amt { color: #fff; }
.price-card.ent .docs { color: var(--gold); }
.price-card.ent .who { color: #AEBBCB; }
.price-card .feat-list { margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; display: flex; flex-direction: column; gap: 9px; }
.price-card.ent .feat-list { border-top-color: rgba(255,255,255,.14); }
.price-card .feat-list li { font-size: 13px; color: var(--muted); display: flex; gap: 9px; align-items: flex-start; }
.price-card.ent .feat-list li { color: #C2CDDC; }
.price-card .feat-list svg { color: var(--teal); flex: none; margin-top: 2px; }
.price-card.ent .feat-list svg { color: var(--gold); }
.spacer-grow { flex: 1; }
/* per-organisation clarifier under the pricing heading */
.pricing .org-note { margin-top: 12px; font-size: 14.5px; color: var(--muted-2); }
.pricing .org-note a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.pricing .org-note a:hover { color: var(--teal); }
/* single shared "Every plan includes" band below the cards */
.plan-includes { margin-top: 48px; }
.plan-includes h3 { text-align: center; font-family: var(--font-head); font-weight: 540; font-size: 22px; }
.includes-grid { list-style: none; margin: 26px auto 0; padding: 0; max-width: 880px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 30px; }
.includes-grid li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.includes-grid li svg { color: var(--teal); flex: none; }
@media (max-width: 820px) { .includes-grid { grid-template-columns: repeat(2, 1fr); max-width: 560px; } }
@media (max-width: 680px) { .includes-grid { grid-template-columns: 1fr; } }
.price-note { max-width: 760px; margin: 48px auto 0; text-align: center; }
.price-note p { font-size: 15.5px; color: var(--muted); }
.price-note .soon-line { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--muted-2); }
.price-note .small { margin-top: 12px; font-size: 13px; color: var(--muted-2); }

/* ---------- for accountants ---------- */
.acct { background: linear-gradient(135deg, #15263B 0%, #0F1B2D 60%); color: #fff; position: relative; overflow: hidden; }
.acct::before { content: ""; position: absolute; inset: 0; background: radial-gradient(620px 340px at 88% 10%, rgba(232,132,60,.22), transparent 62%); pointer-events: none; }
.acct-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr .92fr; gap: 56px; align-items: center; }
.acct .eyebrow { color: var(--orange); }
.acct .eyebrow::before { background: var(--orange); }
.acct h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 18px; }
.acct .lede { margin-top: 18px; font-size: 18px; color: #B9C6D6; max-width: 480px; }
.acct-plan { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 30px; backdrop-filter: blur(6px); }
.acct-plan .tier { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.acct-plan .amt { font-family: var(--font-head); font-size: 38px; margin-top: 12px; line-height: 1; }
.acct-plan .amt .per { font-family: var(--font-body); font-size: 15px; color: #95A4B6; font-weight: 500; }
.acct-plan .sub2 { font-size: 14px; color: #95A4B6; margin-top: 8px; }
.acct-plan ul { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 11px; }
.acct-plan li { font-size: 14.5px; color: #CDD7E3; display: flex; gap: 10px; align-items: flex-start; }
.acct-plan li svg { color: var(--orange); flex: none; margin-top: 3px; }
.acct-plan .pbtn { margin-top: 24px; }

/* ---------- founder ---------- */
.founder-grid { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
.founder-photo { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.founder blockquote { margin: 0; }
.founder .eyebrow { margin-bottom: 22px; }
.founder p.body { font-family: var(--font-head); font-size: clamp(22px, 2.5vw, 30px); font-weight: 400; line-height: 1.32; letter-spacing: -.01em; }
.founder p.body .tk { color: var(--orange); font-family: var(--font-body); font-size: 13px; font-weight: 600; vertical-align: super; }
.founder .sig { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.founder .sig .nm { font-weight: 700; font-size: 15px; }
.founder .sig .rl { font-size: 13.5px; color: var(--muted); }

/* striped placeholder */
.ph {
  width: 100%; height: 100%;
  background-color: #EEEDE6;
  background-image: repeating-linear-gradient(45deg, #E4E2D9 0 12px, #EEEDE6 12px 24px);
  display: grid; place-items: center;
}
.ph .lab { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: #8A8675; background: rgba(250,250,247,.85); padding: 6px 12px; border-radius: 6px; border: 1px solid #D8D5CB; text-align: center; }

/* ---------- faq ---------- */
.faq { background: #fff; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: 0; cursor: pointer; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font-family: var(--font-body); font-size: 17px; font-weight: 600; color: var(--navy); }
.faq-q .pm { width: 22px; height: 22px; flex: none; position: relative; transition: transform .25s ease; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--teal-deep); border-radius: 2px; }
.faq-q .pm::before { width: 14px; height: 2px; top: 10px; left: 4px; }
.faq-q .pm::after { width: 2px; height: 14px; top: 4px; left: 10px; transition: transform .25s ease, opacity .2s ease; }
.faq-item.open .faq-q .pm::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 4px 22px; font-size: 15.5px; color: var(--muted); max-width: 640px; }

/* ---------- final cta ---------- */
.final { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 380px at 50% -20%, rgba(45,168,159,.26), transparent 60%); pointer-events: none; }
.final-inner { position: relative; z-index: 1; text-align: center; max-width: 680px; margin: 0 auto; }
.final h2 { font-size: clamp(32px, 4.6vw, 54px); }
.final form { display: flex; gap: 10px; max-width: 480px; margin: 32px auto 0; }
.final input { flex: 1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 11px; padding: 14px 16px; font-family: var(--font-body); font-size: 15.5px; color: #fff; outline: none; transition: border-color .2s ease, background .2s ease; }
.final input::placeholder { color: #8A98AB; }
.final input:focus { border-color: var(--teal); background: rgba(255,255,255,.1); }
.final .subtext { margin-top: 18px; font-size: 14px; color: #95A4B6; transition: color .2s ease; }
.final .subtext.is-error { color: #F4A977; font-weight: 600; }
/* success banner shown in place of the form after signup */
.final .form-done { margin: 32px auto 0; max-width: 480px; display: flex; align-items: center; justify-content: center; gap: 12px; background: rgba(45,168,159,.14); border: 1px solid rgba(45,168,159,.55); color: #fff; border-radius: 12px; padding: 16px 20px; font-size: 16px; font-weight: 600; animation: doneIn .35s cubic-bezier(.22,.61,.36,1); }
.final .form-done svg { flex: none; }
@keyframes doneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.final form.is-loading button { opacity: .7; pointer-events: none; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #93A1B3; border-top: 1px solid rgba(255,255,255,.08); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; }
.footer .brand { color: #fff; }
.footer .brand .mark { background: rgba(255,255,255,.08); }
.footer .tag { margin-top: 16px; font-size: 14px; color: #8A98AB; max-width: 240px; }
.footer h4 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #C5D0DD; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { font-size: 14.5px; color: #93A1B3; transition: color .15s ease; }
.footer ul a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: #75839A; }

/* ---------- scroll animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
html.reveal-instant .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- mobile menu ---------- */
.mobile-menu { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .price-card.pop { transform: none; }
  .price-card.pop { order: -1; }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero .sub, .hero-cta { max-width: 100%; }
  .mock-stack { max-width: 540px; }
  .acct-grid, .founder-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder-photo { max-width: 280px; }
  .nav-links, .nav-right .login { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer .brand-col { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .cols3, .steps { grid-template-columns: 1fr; gap: 16px; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card.pop { order: 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .trust-inner .t { border-right: 0 !important; padding: 4px 14px; }
  .final form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .hero-cta { gap: 12px; }
  .hero-cta .btn { width: 100%; }
  .footer-bottom { justify-content: flex-start; }
}

/* mobile dropdown menu */
.mobile-menu.show { display: block; }
.mobile-menu { position: fixed; inset: 70px 0 auto; z-index: 49; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 18px 20px 24px; }
.mobile-menu a { display: block; padding: 12px 4px; font-size: 16px; font-weight: 500; color: var(--navy); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; width: 100%; }

/* ============================================================
   PRINT (PDF review export)
   ============================================================ */
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .nav { position: static !important; }
  .nav-toggle, .mobile-menu { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .float-card { display: flex !important; }
  .section { padding: 56px 0 !important; }
  .pcard, .fcard, .price-card, .step, .acct-plan, .faq-item, .mock-stack { break-inside: avoid; page-break-inside: avoid; }
  .hero, .pricing, .acct, .final, .how, .faq { break-inside: avoid; }
  .price-card.pop { transform: none !important; }
  a { color: inherit !important; }
}
@page { margin: 14mm; }

/* Mobile fix: collapse hero product mockup so the bill fits the viewport.
   The app sidebar is a fixed 196px column; on phones that starves the bill
   panel and its amounts get clipped. Drop the sidebar on small screens. */
@media (max-width: 600px) {
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-main { min-width: 0; }
}

/* ============================================================
   LEGAL PAGES (/privacy, /terms)
   ============================================================ */
.legal { padding: 56px 0 72px; }
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 0 28px; }
.legal .eyebrow { margin-bottom: 14px; }
.legal h1 { font-size: clamp(32px, 4.4vw, 48px); }
.legal .updated { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--muted-2); letter-spacing: .01em; }
.legal .intro { margin-top: 22px; font-size: 18px; color: var(--muted); }
.legal h2 { font-size: 22px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p { margin-top: 14px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.legal ul { margin: 14px 0 0; padding-left: 22px; }
.legal li { margin-top: 9px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--teal); }
.legal .disclaimer { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; font-style: italic; color: var(--muted-2); line-height: 1.6; }
.legal .end-rule { border-top: 1px solid var(--line); margin-top: 44px; }
.legal .back { display: inline-flex; align-items: center; gap: 7px; margin-top: 28px; font-size: 14.5px; font-weight: 500; color: var(--teal-deep); }
.legal .back:hover { color: var(--teal); }
