/* Forwrd — the Worker-rendered pages: /preorder, /start, sign-in, the
   dashboard, help and the policy pages. Same design system as the homepage
   (assets/site.css and docs/HOMEPAGE-DESIGN.md), trimmed to what these pages
   actually use. Plain CSS, no build step, no JavaScript anywhere, light only.

   Owner: web/ (not the homepage). Linked from src/web/html.ts as
   /assets/pages.css?v=N — bump PAGES_CSS_VERSION there whenever this file
   changes, because public/_headers caches /assets/* immutable for a year. */

/* ---------- fonts (self-hosted, latin; same files the homepage loads) ---------- */
@font-face{font-family:"Fraunces";src:url("fonts/fraunces-normal-400-600.woff2") format("woff2");font-weight:400 600;font-style:normal;font-display:swap}
@font-face{font-family:"Fraunces";src:url("fonts/fraunces-italic-400.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Atkinson Hyperlegible";src:url("fonts/atkinson-normal-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Atkinson Hyperlegible";src:url("fonts/atkinson-normal-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Atkinson Hyperlegible Mono";src:url("fonts/atkmono-normal-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}

/* ---------- tokens ---------- */
:root{
  --canvas:#FAFAF8;
  --linen:#F2EDE4;
  --panel:#FDFCF9;
  --sage:#D9E6D8;
  --sage-deep:#B7CCB6;
  --accent:#1F3D2E;
  --accent-hover:#2B5541;
  --accent-muted:rgba(31,61,46,.16);
  --text-primary:#2E2E2E;
  --text-secondary:#56534D;
  --line:#DDD6C9;
  --border-strong:#8A8375;
  --warn:#8C2110;
  --warn-bg:#FBEFEC;
  --ease-out:cubic-bezier(.22,.8,.26,1);
  --f-display:"Fraunces",Georgia,"Times New Roman",serif;
  --f-body:"Atkinson Hyperlegible",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"Atkinson Hyperlegible Mono",ui-monospace,"Cascadia Mono",Consolas,monospace;
  --gutter:clamp(16px,4vw,40px);
  --read:40rem;
  --wide:1080px;
  --radius:18px;
  color-scheme:light;
}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;overflow-x:hidden}
body{margin:0;background:var(--canvas);color:var(--text-primary);
  font-family:var(--f-body);font-size:1.25rem;line-height:1.6;
  display:flex;flex-direction:column;min-height:100vh;-webkit-font-smoothing:antialiased}
img,svg{display:block;max-width:100%}
a{color:var(--accent);text-underline-offset:.18em;text-decoration-thickness:.07em}
a:hover{color:var(--accent-hover)}
p{margin:1rem 0}
h1,h2,h3{font-family:var(--f-display);font-weight:500;color:var(--accent);
  line-height:1.1;letter-spacing:-.012em;font-variation-settings:"SOFT" 100}
h1{font-size:clamp(2.2rem,5vw,3.2rem);margin:.4em 0 .3em;max-width:18ch}
h2{font-size:clamp(1.7rem,3.2vw,2.2rem);margin:1.8rem 0 .6rem;max-width:22ch}
h3{font-size:1.45rem;margin:1.4rem 0 .4rem}
ol,ul{margin:1rem 0;padding-left:1.4em}
li{margin:.45em 0}
strong{font-weight:700}
s{text-decoration-thickness:2px;white-space:nowrap}
hr{border:0;border-top:1px solid var(--line);margin:2.5rem 0}

/* Focus: a 3px forest ring, with the plain :focus rule first so a browser
   without :focus-visible still shows one. */
a:focus,button:focus,input:focus,select:focus,textarea:focus,summary:focus{outline:3px solid var(--accent);outline-offset:3px}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
:focus:not(:focus-visible){outline:none}

.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.skip{position:absolute;left:12px;top:-80px;z-index:100;background:var(--accent);color:var(--canvas);
  padding:12px 18px;border-radius:10px;font-weight:700;text-decoration:none;transition:top .25s var(--ease-out)}
.skip:focus{top:12px;color:var(--canvas)}

/* ---------- header ---------- */
.site-head{border-bottom:1px solid var(--line);background:var(--canvas)}
.head-in{max-width:var(--wide);margin:0 auto;padding:0 var(--gutter);
  min-height:72px;display:flex;align-items:center;gap:16px}
.brand{display:inline-flex;align-items:center;min-height:48px;color:var(--accent);text-decoration:none}
.brand .logo{width:132px;height:auto}
.head-sign{margin-left:auto;display:inline-flex;align-items:center;min-height:48px;padding:0 16px;
  border-radius:999px;color:var(--text-primary);text-decoration:none;font-size:1.1rem;
  transition:background-color .3s var(--ease-out)}
.head-sign:hover{background:var(--accent-muted);color:var(--accent)}

/* ---------- page column ---------- */
.page{flex:1 0 auto;width:100%;max-width:var(--read);margin:0 auto;padding:1.5rem var(--gutter) 4rem}
.page-wide{max-width:var(--wide)}
.page>p,.page>ul,.page>ol,.page>h2+p{max-width:64ch}

/* ---------- small type ---------- */
.label{font-family:var(--f-mono);font-weight:500;font-size:.95rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--text-secondary);margin:0 0 12px}
.lede{font-size:1.375rem;line-height:1.5;color:var(--text-secondary);max-width:40ch}
.muted{color:var(--text-secondary);font-size:1.05rem;max-width:62ch}
.hint{margin:.4rem 0 0;color:var(--text-secondary);font-size:1rem;max-width:46ch}
/* The number people text. No `white-space:nowrap`: in pre-order mode this
   span holds a whole phrase ("our texting number (announced at launch)"),
   and nowrap pushed that off the right edge of a phone. */
.tel{font-family:var(--f-display);font-weight:600;font-size:1.12em;color:var(--accent)}
.tag{display:inline-block;font-family:var(--f-mono);font-weight:500;font-size:.8rem;letter-spacing:.08em;
  text-transform:uppercase;background:var(--sage);color:var(--accent);border-radius:999px;
  padding:.25em .7em;white-space:nowrap}
code{font-family:var(--f-mono);font-size:.92em;background:var(--sage);color:var(--accent);
  padding:.1em .4em;border-radius:.3em}

/* ---------- buttons ---------- */
.btn,button{display:inline-flex;align-items:center;justify-content:center;min-height:52px;
  padding:0 28px;border-radius:999px;border:0;background:var(--accent);color:#FAFAF8;
  font-family:var(--f-body);font-weight:700;font-size:1.2rem;line-height:1.2;text-decoration:none;
  cursor:pointer;text-align:center;
  box-shadow:0 1px 0 rgba(255,255,255,.12) inset,0 6px 18px -8px rgba(31,61,46,.55);
  transition:background-color .3s var(--ease-out),box-shadow .3s var(--ease-out)}
.btn:hover,button:hover{background:var(--accent-hover);color:#FAFAF8}
.btn-lg{min-height:60px;padding:0 36px;font-size:1.3rem}
.btn-block{display:flex;width:100%}
button.quiet{background:var(--panel);color:var(--accent);font-weight:400;font-size:1.05rem;
  min-height:48px;padding:0 20px;box-shadow:inset 0 0 0 2px var(--border-strong)}
button.quiet:hover{background:var(--sage);color:var(--accent)}
form.inline{display:inline;margin:0}

/* ---------- panels, notices ---------- */
.panel,.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.4rem 1.5rem;margin:1.5rem 0;box-shadow:0 20px 44px -38px rgba(46,46,46,.55)}
.card>h2:first-child,.panel>h2:first-child,.card>h3:first-child,.panel>h3:first-child{margin-top:.2rem}
.card>p:last-child,.panel>p:last-child{margin-bottom:.2rem}
.sheet{max-width:34rem;margin:1.5rem auto 0}
.sheet h1{margin-top:0}
/* the submit block: a button the width of a card, not of the whole page */
.panel-submit{max-width:36rem}

.notice{background:linear-gradient(180deg,#EDF3EC,var(--sage));border:1px solid var(--sage-deep);
  border-radius:var(--radius);padding:1.2rem 1.4rem;margin:1.5rem 0}
.notice p:first-child{margin-top:0}
.notice p:last-child{margin-bottom:0}
.problem{background:var(--warn-bg);border:1px solid var(--warn);border-left:6px solid var(--warn);
  border-radius:var(--radius);padding:1.1rem 1.3rem;margin:1.5rem 0;color:var(--text-primary)}
.problem p:first-child{margin-top:0}
.problem p:last-child{margin-bottom:0}

/* ---------- tables (dashboard lists, the help commands, the old comparison) ---------- */
table{border-collapse:collapse;width:100%;margin:1.2rem 0;font-size:1.05rem}
th,td{text-align:left;padding:.7em .6em;border-bottom:1px solid var(--line);vertical-align:top}
thead th{font-family:var(--f-mono);font-weight:500;font-size:.85rem;letter-spacing:.08em;
  text-transform:uppercase;color:var(--text-secondary)}
tbody th{font-weight:700;color:var(--text-primary)}
table.compare td{color:var(--text-primary)}

/* ---------- form fields ---------- */
label{display:block;font-weight:700;margin:1.3rem 0 .4rem}
input[type=email],input[type=text],input[type=tel]{
  width:100%;max-width:34rem;font:inherit;font-size:1.15rem;min-height:56px;padding:.7rem .9rem;
  border:2px solid var(--border-strong);border-radius:12px;background:#fff;color:var(--text-primary)}
input:hover{border-color:var(--accent)}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem 2rem}
.field{min-width:0}
.field label{margin-top:.8rem}
.field input{max-width:none}
.field-wide{grid-column:1/-1}
@media (max-width:760px){.fields{grid-template-columns:1fr}}

/* the one-time code: big, centered, monospace. The selector carries the
   element so it outranks the input[type=text] rule above. */
input.code-input{max-width:9em;margin:0 auto;display:block;font-family:var(--f-mono);
  font-size:1.9rem;letter-spacing:.3em;text-align:center;padding-left:.3em;min-height:68px}
.code-label{text-align:center}

/* a plain stacked choice, kept for any page that still uses it */
label.choice{display:flex;align-items:center;gap:.7rem;font-weight:400;background:var(--panel);
  border:2px solid var(--sage-deep);border-radius:14px;padding:.9rem 1.1rem;margin:.7rem 0;min-height:56px}
label.choice input{width:1.4rem;height:1.4rem;margin:0;flex:none}

/* ---------- hero band (the pre-order and plan pages) ---------- */
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.92fr);gap:clamp(24px,4vw,56px);
  align-items:center;margin:1rem 0 2.5rem}
.hero-copy h1{margin-top:0}
.hero-art{width:100%;height:auto;aspect-ratio:1168/880;object-fit:cover;border-radius:24px;
  box-shadow:0 30px 60px -44px rgba(46,46,46,.75)}
/* a picture in a text column: keeps its own shape, no cropping */
.art{width:100%;height:auto;border-radius:20px;margin:1.4rem 0;
  box-shadow:0 26px 52px -42px rgba(46,46,46,.7)}
.facts{display:flex;flex-wrap:wrap;gap:10px 22px;margin:1.6rem 0 0;padding:0;list-style:none}
.facts li{position:relative;margin:0;padding-left:28px;font-size:1.05rem;color:var(--text-primary)}
.facts li::before{content:"";position:absolute;left:0;top:.45em;width:17px;height:12px;border-radius:2px;
  background:var(--sage-deep);box-shadow:inset 0 -1px 0 rgba(31,61,46,.25)}
@media (max-width:900px){.hero{grid-template-columns:1fr}.hero-art{order:2;max-height:44vh}}

/* ---------- numbered sections ---------- */
.step-block{margin:2.6rem 0}
.step-block>h2{display:flex;align-items:center;gap:14px;margin-top:0}
.step-n{flex:none;display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;
  background:var(--accent);color:#FAFAF8;font-size:1.3rem;line-height:1}

/* ---------- plan cards ---------- */
.plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:1.4rem 0 1.6rem}
.plan{display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);
  border-radius:24px;padding:26px 24px 24px;box-shadow:0 24px 50px -42px rgba(46,46,46,.6)}
.plan-personal{background:linear-gradient(180deg,#E7EFE6,var(--sage));border-color:var(--sage-deep)}
.plan>h3{margin:0;font-size:1.6rem}
.plan-for{margin:.4rem 0 1.1rem;color:var(--text-secondary);font-size:1.05rem;line-height:1.45}
.plan-feat{margin:.2rem 0 0;padding:1.1rem 0 0;list-style:none;border-top:1px solid var(--line);
  display:grid;gap:9px;align-content:start}
.plan-personal .plan-feat{border-top-color:var(--sage-deep)}
.plan-feat li{position:relative;margin:0;padding-left:28px;font-size:1.02rem;line-height:1.45}
.plan-feat li::before{content:"";position:absolute;left:0;top:.42em;width:16px;height:11px;border-radius:2px;
  background:var(--sage-deep);box-shadow:inset 0 -1px 0 rgba(31,61,46,.25)}
.plan-personal .plan-feat li::before{background:var(--accent)}
@media (max-width:800px){.plans{grid-template-columns:1fr}}

/* the two billing rows inside a card */
.opts{border:0;margin:0 0 1.2rem;padding:0;display:grid;gap:12px;min-width:0}
.opt{position:relative;display:block;margin:0;font-weight:400}
.opt input{position:absolute;width:1px;height:1px;opacity:0;margin:0}
.opt-box{display:flex;align-items:flex-start;gap:14px;min-height:64px;padding:14px 16px;
  background:var(--canvas);border:2px solid var(--border-strong);border-radius:16px;cursor:pointer;
  transition:border-color .25s var(--ease-out),background-color .25s var(--ease-out)}
.plan-personal .opt-box{background:rgba(253,252,249,.75)}
.opt-box:hover{border-color:var(--accent)}
.opt-mark{flex:none;width:26px;height:26px;margin-top:.35em;border-radius:50%;
  border:2px solid var(--border-strong);background:#fff}
.opt-body{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;min-width:0}
.opt-price{font-family:var(--f-display);font-weight:500;font-size:1.75rem;line-height:1.15;
  color:var(--accent);font-variation-settings:"SOFT" 100}
.opt-after{flex-basis:100%;margin:0;color:var(--text-secondary);font-size:1rem}
.opt input:checked+.opt-box{border-color:var(--accent);background:var(--sage)}
.opt input:checked+.opt-box .opt-mark{border-color:var(--accent);background:var(--accent);
  box-shadow:inset 0 0 0 4px #FDFCF9}
.opt input:focus+.opt-box{outline:3px solid var(--accent);outline-offset:3px}
.opt input:focus-visible+.opt-box{outline:3px solid var(--accent);outline-offset:3px}
.opt input:focus:not(:focus-visible)+.opt-box{outline:none}
.opt-plain .opt-box{cursor:default}
.opt-plain .opt-mark{display:none}

.save{display:inline-block;font-family:var(--f-mono);font-weight:500;font-size:.8rem;letter-spacing:.08em;
  text-transform:uppercase;color:#FAFAF8;background:var(--accent);padding:5px 11px;border-radius:999px;
  white-space:nowrap}

/* ---------- what happens next ---------- */
.next{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:1.4rem 0;
  padding:0;list-style:none;counter-reset:n}
.next li{position:relative;margin:0;padding:18px 20px 18px 20px;background:var(--linen);
  border-radius:var(--radius);font-size:1.05rem;line-height:1.45}
.next li::before{counter-increment:n;content:counter(n);display:grid;place-items:center;
  width:34px;height:34px;margin-bottom:10px;border-radius:50%;background:var(--accent);color:#FAFAF8;
  font-family:var(--f-display);font-size:1.05rem;line-height:1}
@media (max-width:760px){.next{grid-template-columns:1fr}}

/* ---------- footer ---------- */
.foot{flex:none;background:var(--accent);color:#FAFAF8;padding:48px 0 32px;margin-top:3rem}
.foot-in{max-width:var(--wide);margin:0 auto;padding:0 var(--gutter);
  display:grid;grid-template-columns:auto 1fr;gap:24px 48px;align-items:start}
.foot .logo{color:#FAFAF8;width:150px;height:auto}
.foot-brand p{margin:14px 0 0;color:var(--sage);font-size:1.1rem;line-height:1.5}
.foot-links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 8px;margin:0;padding:0;list-style:none}
.foot-links li{margin:0}
.foot-links a{display:inline-flex;align-items:center;min-height:48px;padding:0 12px;border-radius:999px;
  color:#FAFAF8;text-decoration:none;font-size:1.1rem}
.foot-links a:hover{background:rgba(217,230,216,.16);color:#FAFAF8;text-decoration:underline}
.foot nav{grid-column:2}
.foot-note,.foot-copy{grid-column:1/-1;color:var(--sage);font-size:1rem;margin:0}
.foot-copy{border-top:1px solid rgba(217,230,216,.25);padding-top:18px}
.foot :focus-visible,.foot a:focus{outline-color:var(--sage)}
@media (max-width:760px){
  .foot-in{grid-template-columns:1fr}
  .foot nav{grid-column:1}
  .foot-links{justify-content:flex-start;margin-left:-12px}
}

/* ---------- motion: whisper only, and none at all when asked ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none !important;transition:none !important}
}
