/* Self-hosted fonts (OFL, see fonts/LICENSE-*). Fallbacks are metric-matched so text does not jump when fonts load. */
@font-face { font-family: 'Fraunces'; font-weight: 500; font-display: swap; src: url('fonts/fraunces-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 600; font-display: swap; src: url('fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Fallback'; src: local('Arial'); size-adjust: 107.12%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%; }
@font-face { font-family: 'Fraunces Fallback'; src: local('Georgia'); size-adjust: 98%; ascent-override: 95%; descent-override: 25%; line-gap-override: 0%; }

:root {
  /* Brand tokens: docs/BRAND.md. Fuchsia is decoration and large type only; small accent text uses --fuchsia-ink. */
  --teal: #014045; --teal-2: #1E6A6F; --teal-tint: #E2EEEC; --bg: #FEFCF5; --ink: #102527; --muted: #5E6B6B;
  --fuchsia: #F02391; --fuchsia-ink: #B4126A;
  --line: #E8E4DA; --card: #fff; --red: #B3412E;
  --font: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
  /* One spacing, shape and depth system: 8-point grid, three radii, two elevations. */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px;
  --e1: 0 1px 2px rgba(16,37,39,.06), 0 1px 1px rgba(16,37,39,.04);
  --e2: 0 12px 32px rgba(16,37,39,.10), 0 2px 6px rgba(16,37,39,.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 5.2vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); text-align: center; margin-bottom: 24px; }
h3 { font-size: 21px; }
p { margin: 0 0 12px; }
.center { text-align: center; }
.lede { font-size: 19px; color: var(--muted); max-width: 640px; }
.center.lede { margin: 0 auto 32px; }
.fine { font-size: 14px; color: var(--muted); }

.nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 14px clamp(16px, 4vw, 48px); background: rgba(246,245,242,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; }
.mark { width: 30px; height: 30px; border-radius: 8px; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; }

.btn { display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; text-align: center;
  padding: 14px 24px; border-radius: 12px; background: var(--teal); color: #fff; transition: background .15s, transform .15s; }
.btn:hover { background: var(--teal-2); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.btn.ghost:hover { background: var(--teal-tint); }
.btn.small { padding: 9px 16px; font-size: 15px; }
.btn:disabled { opacity: .6; cursor: default; }

main > section { padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 64px); max-width: 1160px; margin: 0 auto; }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--teal); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero-phones { position: relative; height: 620px; }
.phone { border-radius: 36px; box-shadow: 0 30px 60px rgba(16,37,39,.18), 0 0 0 10px #102527; background: #102527; }
.hero-phones .phone { position: absolute; width: 270px; }
.hero-phones .front { left: 4%; top: 30px; z-index: 2; }
.hero-phones .back { right: 2%; top: 0; transform: rotate(4deg); opacity: .96; }

.steps { display: flex; flex-direction: column; gap: 72px; }
.step { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; max-width: 900px; margin: 0 auto; }
.step.flip { grid-template-columns: 1fr 280px; }
.step.flip .phone { order: 2; }
.step .phone { width: 260px; }
.step p { font-size: 18px; color: var(--muted); }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); font-weight: 700; margin-bottom: 12px; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust > div { background: var(--card); border-radius: 18px; padding: 24px; }
.trust h3 { font-size: 18px; }
.trust p { color: var(--muted); font-size: 15.5px; margin: 0; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; }
.plan { position: relative; background: var(--card); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; }
.plan.featured { box-shadow: 0 0 0 2px var(--teal), 0 20px 40px rgba(1,64,69,.12); }
.badge { position: absolute; top: -13px; left: 32px; background: var(--fuchsia-ink); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.price { font-size: 44px; font-weight: 750; letter-spacing: -0.03em; margin: 4px 0 16px; }
.price span { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { padding: 0; margin: 0 0 28px; list-style: none; flex: 1; }
.plan li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--line); }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--teal); font-weight: 700; }
.plan .btn { width: 100%; }

.waitlist form { max-width: 460px; margin: 0 auto; background: var(--card); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.waitlist label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.waitlist input:not([type=radio]) { font: inherit; font-weight: 400; padding: 13px 14px; border-radius: 10px; border: 1px solid #cfcbc3; background: #fff; }
.waitlist input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.waitlist fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.waitlist legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; width: 100%; }
.waitlist .radio { flex-direction: row; align-items: center; font-weight: 400; gap: 8px; }
.opt { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.form-msg { min-height: 1.5em; margin: 0; color: var(--muted); }
.form-msg.error { color: var(--red); }
.done { font-size: 19px; font-weight: 600; color: var(--teal); text-align: center; margin: 12px 0; }

.faq { max-width: 760px !important; }
details { background: var(--card); border-radius: 14px; padding: 18px 22px; margin-bottom: 10px; }
summary { font-weight: 600; font-size: 17px; cursor: pointer; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { text-align: center; padding: 40px 16px 56px; color: var(--muted); font-size: 14px; }

.modal { position: fixed; inset: 0; background: rgba(16,37,39,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { background: var(--bg); border-radius: 20px; padding: 28px; max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.modal-card p { color: var(--muted); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-phones { height: 520px; max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-phones .phone { width: 220px; }
  .trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .step, .step.flip { grid-template-columns: 1fr; gap: 24px; justify-items: center; text-align: center; }
  .step.flip .phone { order: 0; }
  .step .phone { width: 230px; }
  .trust { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .nav .btn.small { display: none; }
}

/* yearly prepay */
.was { color: var(--muted); font-size: 14.5px; margin: -10px 0 18px; }

/* completion states (waitlist and thank-you) */
.done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0; }
.done p { color: var(--muted); margin: 0; }
.done-title { font-size: 22px; font-weight: 700; color: var(--ink) !important; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--fuchsia); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.done-mark.big { width: 84px; height: 84px; font-size: 42px; margin: 0 auto 20px; }
.thanks { max-width: 620px !important; text-align: center; }
.thanks .lede { margin: 0 auto 28px; }
.next { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; counter-reset: step; }
.next li { position: relative; background: var(--card); border-radius: 14px; padding: 16px 16px 16px 60px; margin-bottom: 10px; display: flex; flex-direction: column; }
.next li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; font-weight: 700; }
.next li.did::before { content: "✓"; background: var(--teal); color: #fff; }
.next span { color: var(--muted); }
.btn[aria-busy="true"] { opacity: .75; }

.soon { display: inline-block; vertical-align: middle; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--teal); background: var(--teal-tint); padding: 4px 10px; border-radius: 99px; margin-left: 6px; }
.plan-note { font-size: 14px; color: var(--teal-2); background: var(--teal-tint); border-radius: 12px; padding: 10px 12px; margin: -12px 0 16px; }
.terms h3 { margin-top: 28px; }
.terms ul { padding-left: 20px; color: var(--muted); }
.terms li { margin-bottom: 8px; }
.terms p { color: var(--muted); }

/* referral waitlist */
.status .pos { color: var(--teal); }
.progress { width: 100%; height: 10px; border-radius: 6px; background: var(--teal-tint); overflow: hidden; }
.progress .bar { height: 100%; background: var(--fuchsia); border-radius: 6px; transition: width .4s; }
.share-row { display: flex; gap: 8px; width: 100%; }
.share-link { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 10px; border: 1px solid #cfcbc3; background: #fff; color: var(--ink); }
.status .share { width: 100%; }
.reward { width: 100%; display: flex; flex-direction: column; gap: 8px; background: var(--teal-tint); border-radius: 14px; padding: 16px; margin-top: 6px; }
.invited { color: var(--teal); font-weight: 600; margin: -18px 0 18px; }
.reward[hidden] { display: none; }

/* founding spots */
.spots { max-width: 360px; margin: -16px auto 28px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.spots-text { margin: 0; font-weight: 700; color: var(--teal); }
.spots.sold-out .spots-text { color: var(--ink); }
.progress[hidden] { display: none; }

/* Accent: one highlighted word in big headlines (large type, so fuchsia passes contrast) */
.accent { color: var(--fuchsia); }

/* ---- Premium pass: typography, icons, sections, motion, focus ---- */
h1, h2, .price, .done-title, .thanks h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-weight: 600; letter-spacing: -0.02em; }
h2 { font-weight: 500; }
body { font-feature-settings: "cv11", "ss01"; text-rendering: optimizeLegibility; }
.logo { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
img.mark { width: 32px; height: 32px; border-radius: 0; background: none; display: block; }
.eyebrow { letter-spacing: .14em; }

.plan, .trust > div, details, .waitlist form, .modal-card { box-shadow: var(--e1); }
.plan.featured { box-shadow: 0 0 0 2px var(--teal), var(--e2); }
.btn { border-radius: var(--r-sm); transition: background .15s, transform .15s, box-shadow .15s; }
.btn:not(.ghost):hover { box-shadow: var(--e2); }

.trust .icon { width: 28px; height: 28px; color: var(--teal); margin-bottom: var(--s2); stroke-width: 1.75; }

/* Keyboard users always see where they are. */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--fuchsia); outline-offset: 3px; border-radius: 6px; }
.waitlist input:focus-visible { outline: 3px solid var(--fuchsia); outline-offset: 1px; }

/* Questions open and close smoothly where the browser supports it. */
summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 28px; }
summary::-webkit-details-marker { display: none; }
summary .chev { width: 20px; height: 20px; flex-shrink: 0; color: var(--teal); transition: transform .25s ease; }
details[open] summary .chev { transform: rotate(180deg); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content { height: 0; overflow: clip; transition: height .3s ease, content-visibility .3s allow-discrete; }
  details[open]::details-content { height: auto; }
}

/* Optional sections (hidden until real content is set in config.js). */
.photo-band img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--e2); }
.founder { display: grid; grid-template-columns: 96px 1fr; gap: var(--s4); align-items: start; max-width: 760px !important; }
.founder-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.founder-note { font-family: var(--serif); font-size: 24px; line-height: 1.45; margin: var(--s1) 0 var(--s2); color: var(--ink); }
.founder-name { color: var(--muted); font-weight: 600; }
.proof .quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s2); }
.proof figure { margin: 0; background: var(--card); border-radius: var(--r-md); padding: var(--s3); box-shadow: var(--e1); }
.proof blockquote { margin: 0 0 var(--s2); font-family: var(--serif); font-size: 19px; line-height: 1.5; }
.proof figcaption { color: var(--muted); font-size: 14px; }
section[hidden] { display: none !important; }

/* Mobile sticky call to action. */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(254,252,245,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: none; }
.sticky-cta .btn { width: 100%; }
@media (max-width: 680px) { .sticky-cta:not([hidden]) { display: block; } footer { padding-bottom: 96px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
