/* Shared styles for /coming-soon.html and /early (the early-access page).
   Palette: Space City (navy + burnt orange, Jesse's pick for the 2026-10-05 build).
   Fonts are self-hosted from /fonts, so no visitor request goes to a font CDN:
   Bricolage Grotesque (headlines, buttons) and Atkinson Hyperlegible Next (reading),
   both SIL Open Font License. Figtree and IBM Plex Mono stay as fallbacks. */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/atkinson-hyperlegible-next-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/atkinson-hyperlegible-next-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/atkinson-hyperlegible-next-latin-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* Layout: navy "sky" hero (logo, deadline badge, headline, offer, one email field, Astro on the horizon),
   then the page body on the light "land": three doors, next steps, promises, socials. Astro's help
   button sits bottom-right. Single column on phones, three doors side by side from 720px. */
:root {
  --bg: #EEF1F7;
  --bg-2: #FFFFFF;
  --fg: #16233D;
  --muted: #46526A;
  --line: #CBD3E3;
  --accent: #EB6E1F;
  --accent-ink: #16233D;
  --link: #A63F17;
  --err: #9A3412;
  --note-bg: #FDE8D7;
  --note-fg: #7A2E0B;
  --sky: #16233D;
  --sky-2: #1D2E4F;
  --sky-ink: #F8F2E6;
  --sky-muted: #C3CAD8;
  --sky-line: #34528A;
  --rim: #5BC0C6;
  --s1: #F4A43A;
  --s2: #E8622A;
  --s3: #B8461B;
  --s4: #16233D;
  --font: "Atkinson Hyperlegible Next", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --band: linear-gradient(90deg, var(--s1) 0 25%, var(--s2) 25% 50%, var(--s3) 50% 75%, var(--s4) 75% 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E182C; --bg-2: #16233D; --fg: #F8F2E6; --muted: #B8C0CF; --line: #2B4373;
    --accent: #EB6E1F; --accent-ink: #16233D; --link: #F5A36B; --err: #FFC4A3;
    --note-bg: #3A2412; --note-fg: #FCD9BE; --sky: #16233D; --sky-2: #1D2E4F; --sky-line: #34528A;
    --s4: #2E6F9C; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E182C; --bg-2: #16233D; --fg: #F8F2E6; --muted: #B8C0CF; --line: #2B4373;
  --accent: #EB6E1F; --accent-ink: #16233D; --link: #F5A36B; --err: #FFC4A3;
  --note-bg: #3A2412; --note-fg: #FCD9BE; --sky: #16233D; --sky-2: #1D2E4F; --sky-line: #34528A;
  --s4: #2E6F9C; color-scheme: dark;
}
* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.55; }
a { color: var(--link); text-underline-offset: 3px; }
.band { height: 8px; background: var(--band); }
.band.thin { height: 6px; border-radius: 2px; }
.preview { margin: 0; padding: 8px 16px; text-align: center; font-size: 13px; background: var(--note-bg); color: var(--note-fg); }
.wrap { max-width: 640px; margin: 0 auto; padding-block: 24px 56px; padding-inline: 16px; }
h1, h2, .btn, .copy, .badge, .lockup .word, .stat .num, .door h2 { font-family: var(--font-display); }

/* ---------- header + logo lockup ---------- */
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.mark, .lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-height: 44px; }
.lockup svg { width: 52px; height: 52px; flex: none; }
.lockup .word { font-weight: 800; font-size: 28px; letter-spacing: -.01em; line-height: 1; }
.lockup .word b { color: var(--accent); font-weight: 800; }
.logo { height: 36px; width: auto; display: block; }
.pill { font-family: var(--font-label); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.pill b { color: var(--fg); font-weight: 500; }
.badge { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 14px; letter-spacing: .04em; color: #16233D; background: linear-gradient(180deg, #F59A57, #EB6E1F); padding: 9px 16px; border-radius: 999px; box-shadow: 0 3px 0 #0B1426; white-space: nowrap; }
.badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #16233D; }
.eyebrow { font-family: var(--font-label); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

h1 { font-weight: 800; font-size: clamp(34px, 7.4vw, 56px); line-height: 1.03; letter-spacing: -.02em; margin: 0 0 16px; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(17px, 2.6vw, 19px); color: var(--muted); margin: 0 0 22px; max-width: 58ch; }
.lede strong { color: var(--fg); font-weight: 700; }

/* ---------- the navy sky (Coming Soon hero) ---------- */
.sky { position: relative; background: radial-gradient(90% 60% at 50% 100%, rgba(52, 82, 138, .55) 0, rgba(52, 82, 138, 0) 70%), var(--sky); color: var(--sky-ink); overflow: hidden; }
.sky .wrap { padding-bottom: clamp(200px, 24vw, 250px); position: relative; z-index: 1; }
.sky::after { content: ""; position: absolute; left: -12%; right: -12%; bottom: -1px; height: clamp(64px, 8vw, 110px); background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; border-top: 3px solid var(--rim); box-shadow: 0 -10px 34px rgba(91, 192, 198, .45); pointer-events: none; }
.stars { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(1.4px 1.4px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 42%, #fff 50%, transparent 51%), radial-gradient(1.6px 1.6px at 46% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 33%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 79% 15%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 90% 46%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 8% 60%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 70% 58%, #fff 50%, transparent 51%); }
.sky .eyebrow, .sky .lede, .sky .fine { color: var(--sky-muted); }
.sky .lede strong, .sky .offer p strong { color: var(--sky-ink); }
.sky h1 em { color: #F59A57; }
.sky a { color: #F5A36B; }
.sky .offer { background: var(--sky-2); border-color: var(--sky-line); }
.sky .offer p { color: var(--sky-muted); }
.sky .row input { background: #0E182C; border-color: var(--sky-line); color: var(--sky-ink); }
.sky .row input::placeholder { color: #8E9AB2; }
.sky .err { color: #FFC4A3; }
.sky .gift { background: var(--sky-2); color: var(--sky-ink); }
.sky .thanks { background: var(--sky-2); border-color: var(--accent); }
.sky .thanks p { color: var(--sky-muted); }
.sky .thanks p strong, .sky .thanks h2 { color: var(--sky-ink); }
.sky .share code { background: #0E182C; border-color: var(--sky-line); color: var(--sky-ink); }
.sky .copy { border-color: var(--sky-ink); color: var(--sky-ink); }
.sky .share-btns a, .sky .share-btns button { background: #0E182C; border-color: var(--sky-line); color: var(--sky-ink); }
.sky .chips label { background: #0E182C; border-color: var(--sky-line); }
.sky .chips label:has(input:checked) { border-color: var(--sky-ink); }
.sky .extras { border-top-color: var(--sky-line); }
.sky .opt { color: var(--sky-muted); }
.sky .row input:focus-visible, .sky .btn:focus-visible, .sky .copy:focus-visible, .sky a:focus-visible, .sky .chips input:focus-visible { outline-color: #F8F2E6; }

/* Astro sits on the horizon, half in the sky, half on the land */
.astro { position: absolute; left: 50%; bottom: clamp(18px, 3vw, 40px); width: clamp(110px, 14vw, 150px); transform: translateX(-50%); z-index: 2; pointer-events: none; }
.astro svg { width: 100%; height: auto; display: block; overflow: visible; }
.astro::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -2px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(8, 16, 34, .45), transparent); z-index: -1; }

/* ---------- offer, form ---------- */
.offer { display: flex; gap: 14px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 0 0 18px; }
.offer .tag { flex: none; background: var(--accent); color: var(--accent-ink); font-family: var(--font-label); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border-radius: 10px; line-height: 1.25; text-align: center; }
.offer p { margin: 0; font-size: 15px; color: var(--muted); }
.offer p strong { color: var(--fg); font-weight: 700; }

form { display: grid; gap: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.row input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 17px; padding: 14px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--bg-2); color: var(--fg); min-height: 54px; }
.row input::placeholder { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.row input:focus-visible, .btn:focus-visible, .copy:focus-visible, .soc a:focus-visible, a:focus-visible, .chips input:focus-visible, button:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.btn { flex: 1 1 180px; font-weight: 800; font-size: 17px; letter-spacing: .01em; padding: 14px 24px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; min-height: 54px; box-shadow: 0 4px 0 #0B1426; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #0B1426; }
.btn:disabled { opacity: .7; cursor: progress; }
.fine { font-size: 13px; color: var(--muted); margin: 0; }
.err { font-size: 14px; color: var(--err); margin: 0; min-height: 1.2em; }

.thanks { border: 2px solid var(--accent); border-radius: 16px; padding: 18px; background: var(--bg-2); display: grid; gap: 12px; }
.thanks h2 { margin: 0; font-size: 24px; letter-spacing: -.01em; }
.thanks p { margin: 0; color: var(--muted); }
.thanks p strong { color: var(--fg); }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share code { flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-label); font-size: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--fg); }
.copy { font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--fg); background: transparent; color: var(--fg); cursor: pointer; min-height: 44px; }

.gift { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--accent); background: var(--bg-2); font-size: 15px; }
.extras { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.extras fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.q { margin: 0; font-size: 15px; }
.opt { color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; cursor: pointer; background: var(--bg); }
.chips label:has(input:checked) { border-color: var(--fg); }
.chips input { accent-color: var(--accent); }

/* ---------- page body ---------- */
section { margin-top: 44px; }
.lower { padding-top: 8px; }
h3 { font-family: var(--font-label); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 14px; }
.steps { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--sky); color: #F8F2E6; font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: inset 0 -3px 0 var(--accent); }
.steps li p { margin: 0; }
.steps li p strong { display: block; font-weight: 700; }
.steps li p span { color: var(--muted); font-size: 15px; }

.proof { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 480px) { .proof { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .proof { grid-template-columns: repeat(3, 1fr); } }
.proof div { border: 2px solid var(--line); background: var(--bg-2); border-radius: 14px; padding: 14px; min-width: 0; }
.proof b { display: block; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.proof span { color: var(--muted); font-size: 14.5px; }

.teams { border-radius: 16px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.teams .in { padding: 18px; display: grid; gap: 10px; }
.teams h2 { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.teams p { margin: 0; color: var(--muted); font-size: 15px; }
.teams ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; display: grid; gap: 4px; }
.teams .addr { font-weight: 700; }

.soc { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.soc a { display: inline-flex; align-items: center; text-decoration: none; color: var(--fg); font-weight: 700; font-size: 14px; padding: 9px 14px; border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px; min-height: 44px; }
.soc a:hover { border-color: var(--fg); }

footer { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.addr { color: var(--fg); user-select: all; }
@media (prefers-reduced-motion: no-preference) { .btn, .soc a, .copy { transition: filter .15s, border-color .15s, color .15s, transform .1s; } }

[hidden] { display: none !important; } /* .thanks/.share/.extras set display, which would otherwise beat the hidden attribute */
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btns a, .share-btns button { display: inline-flex; align-items: center; text-decoration: none; font: inherit; font-weight: 700; font-size: 14px; padding: 9px 14px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 999px; min-height: 44px; cursor: pointer; }
.share-btns a:hover, .share-btns button:hover { border-color: var(--fg); }
.stat { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.stat .num { font-size: clamp(52px, 12vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--accent); }
.stat .unit { font-size: 18px; font-weight: 700; }
.ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.ledger li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.ledger li b { color: var(--fg); font-variant-numeric: tabular-nums; }
.soon { border: 2px dashed var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 8px; }
.soon p { margin: 0; color: var(--muted); font-size: 15px; }
.soon .pill { justify-self: start; }

/* ---------- three doors ---------- */
.doors { display: grid; gap: 14px; }
.door { background: var(--bg-2); border: 2px solid var(--line); border-radius: 16px; padding: 18px 18px 20px; display: flex; flex-direction: column; min-width: 0; }
.door h2 { margin: 0 0 2px; font-size: 24px; font-weight: 800; }
.door .who { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.door p { margin: 0 0 10px; }
.door .fact { font-size: 14px; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 10px; }
.door .fact a { color: inherit; }
.door .btn { display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: auto; min-height: 46px; padding: 10px 18px; text-decoration: none; font-size: 16px; }
.btn.ghost { background: transparent; color: var(--fg); border: 2px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--fg); }
.limits { margin-top: 14px; font-size: 15px; }
@media (min-width: 720px) {
  .doors { grid-template-columns: repeat(3, 1fr); }
  .wrap.wide { max-width: 980px; }
  .lockup svg { width: 64px; height: 64px; }
  .lockup .word { font-size: 34px; }
}

/* ---------- Astro, the helper pup (bottom-right) ---------- */
body.has-pup { padding-bottom: 90px; }
#pup { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
#pup-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--sky); color: #F8F2E6; font-family: var(--font-display); font-weight: 800; font-size: 16px; min-height: 60px; box-shadow: 0 4px 0 #0B1426, 0 10px 24px rgba(8, 16, 34, .35); }
#pup-btn svg { width: 50px; height: 50px; overflow: visible; }
#pup-btn:hover { filter: brightness(1.12); }
@media (max-width: 520px) { #pup-btn .lab { display: none; } #pup-btn { padding: 6px; } }
#pup-hi { display: flex; align-items: center; gap: 4px; background: var(--bg-2); color: var(--fg); border: 2px solid var(--line); border-radius: 16px 16px 4px 16px; padding: 4px 4px 4px 12px; font-size: 15px; max-width: 240px; box-shadow: 0 8px 20px rgba(8, 16, 34, .18); }
#pup-hi .say { background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 6px 0; }
#pup-hi .x, #panel .x { background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; width: 40px; height: 40px; cursor: pointer; border-radius: 10px; flex: none; }
#panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 120px)); background: var(--bg-2); color: var(--fg); border: 2px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 18px 44px rgba(8, 16, 34, .35); }
#panel > header { margin: 0; padding: 10px 8px 10px 12px; background: var(--sky); color: #F8F2E6; flex-wrap: nowrap; gap: 10px; justify-content: flex-start; }
#panel > header .mini svg { width: 40px; height: 40px; display: block; overflow: visible; }
#panel > header div { flex: 1; min-width: 0; }
#panel > header b { display: block; font-family: var(--font-display); font-size: 18px; }
#panel > header small { display: block; font-size: 12.5px; color: #C3CAD8; line-height: 1.3; }
#log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { margin: 0; max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 15.5px; line-height: 1.45; }
.msg.astro-says { background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.you { background: var(--sky); color: #F8F2E6; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg a { color: inherit; font-weight: 700; }
#chips { display: flex; gap: 8px; padding: 8px 12px 10px; overflow-x: auto; flex: none; border-top: 1px solid var(--line); }
#chips button { flex: none; white-space: nowrap; font: inherit; font-weight: 700; font-size: 14.5px; padding: 8px 12px; min-height: 42px; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; }
#chips button:hover { border-color: var(--fg); }
#panel .tiny { margin: 0; padding: 6px 12px 10px; font-size: 12px; color: var(--muted); }

/* Astro's little movements. All off for people who ask for less motion. */
.eyes { transition: transform .12s ease-out; }
@media (prefers-reduced-motion: no-preference) {
  .tailw { transform-origin: 72px 104px; animation: wag 1.6s ease-in-out infinite; }
  .astro .head { animation: tilt 7s ease-in-out infinite; transform-origin: 50px 78px; }
  #pup-hi { animation: hiIn .4s ease .8s both; }
}
@keyframes wag { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-9deg); } }
@keyframes tilt { 0%, 80%, 100% { transform: rotate(0deg); } 86% { transform: rotate(-6deg); } 93% { transform: rotate(4deg); } }
@keyframes hiIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
