/* Curen Go (go.): plans, signup and legal drafts. No scripts. Curen brand (see DESIGN.md at the repo root): Newsreader
   headings with italic accent words, Public Sans text, sage neutrals, one green accent, numbered sections on hairline
   rules. Light by default; follows the system dark setting. Self-hosted fonts only. */
/* ---- Curen design tokens (copied from DESIGN.md; keep in step with curen-home/public/static/home.css) ---- */
@font-face { font-family: "Newsreader"; src: url("/static/fonts/newsreader-normal.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/static/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/static/fonts/public-sans-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --bg: #f3f6f4; --paper: #fbfcfb; --surface: #ffffff; --sunk: #e9efeb;
  --ink: #12201b; --ink-2: #26352f; --muted: #4a5a53; --line: #d3ddd8; --line-strong: #76887f;
  --accent: #0b6b4f; --accent-strong: #08573f; --on-accent: #ffffff; --accent-soft: #dcefe6; --accent-tint: #eef7f2;
  --green: #086447; --green-soft: #d8f0e4; --amber: #8a5a00; --amber-dot: #c98a12; --amber-soft: #fbefd5;
  --red: #b3261e; --red-dot: #d23c31; --red-soft: #fbe9e7; --grey: #5b6963; --grey-soft: #e9efeb;
  --shadow: 158 30% 20%; --focus: #0b6b4f;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --step--2: 0.8125rem; --step--1: 0.875rem; --step-0: 1rem; --step-1: 1.1875rem;
  --step-2: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); --step-3: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 72px;
  --r: 12px; --r-sm: 8px; --r-pill: 999px;
  --elev-1: 0 1px 2px hsl(var(--shadow) / .06); --elev-2: 0 18px 44px -28px hsl(var(--shadow) / .55);
  --ease: cubic-bezier(.2, .7, .2, 1); --measure: 68ch;
  color-scheme: light;
}
/* Legacy names used by this app's rules, mapped onto the tokens. */
:root { --text: var(--ink); --rule: var(--line); --accent-ink: var(--accent-strong); --card: var(--surface);
  --warn-bg: var(--amber-soft); --warn: var(--amber); --err: var(--red); --err-bg: var(--red-soft); }
@media (prefers-color-scheme: dark) { :root {
  --bg: #0a0c0b; --paper: #0e110f; --surface: #121614; --sunk: #080a09;
  --ink: #f1f5f3; --ink-2: #d3dbd7; --muted: #9da8a3; --line: #222926; --line-strong: #56625c;
  --accent: #5cc9a0; --accent-strong: #84dcb9; --on-accent: #04120c; --accent-soft: #12271f; --accent-tint: #0f1c17;
  --green: #6fd8ad; --green-soft: #10261d; --amber: #f0c36b; --amber-dot: #e8b04a; --amber-soft: #2a2010;
  --red: #ff8a80; --red-dot: #ff6b5f; --red-soft: #33120f; --grey: #a3aea9; --grey-soft: #1a201d;
  --shadow: 200 20% 1%; --focus: #84dcb9;
  color-scheme: dark;
} }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; font-feature-settings: "kern", "liga"; overflow-wrap: break-word; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
em { font-style: italic; color: var(--accent); font-weight: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 650; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main:focus, main:focus-visible { outline: none; }
.top, .foot, main { max-width: 1120px; margin: 0 auto; padding-left: max(16px, 3.5vw); padding-right: max(16px, 3.5vw); }
.top { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; min-height: 68px; padding-top: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line); }
.brand { font-family: var(--font-display); font-size: 1.45rem; font-weight: 450; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand em { font-weight: 380; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px; }
.top nav a { color: var(--ink-2); padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none; font-size: var(--step--1); font-weight: 500; border: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease); }
.top nav a:hover { border-color: var(--line); color: var(--ink); }
.top nav a[aria-current] { background: var(--accent-tint); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); color: var(--ink); font-weight: 600; }
.foot { border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: var(--step--1); }
.foot p { margin: 4px 0; }
.foot a { color: var(--ink-2); }
section { padding: clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 450; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
h1 em, h2 em, h3 em { font-weight: 380; }
h1 { font-size: var(--step-3); line-height: 1.04; margin: 10px 0 14px; letter-spacing: -0.035em; font-weight: 420; max-width: 22ch; }
h2 { font-size: var(--step-2); margin: 0 0 18px; }
h3 { font-size: 1.25rem; margin: 0 0 6px; }
p { text-wrap: pretty; }
.num { display: inline-block; font-family: var(--font-body); font-size: var(--step--2); font-weight: 650; letter-spacing: .12em; color: var(--muted); font-style: normal;
  border-top: 1px solid var(--ink); padding-top: 3px; margin-right: 12px; vertical-align: .3em; font-variant-numeric: tabular-nums; }
.eyebrow { margin: 0; color: var(--ink-2); font-size: var(--step--2); font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; }
.mono { font-family: var(--font-mono); font-size: .875rem; }
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-sm); padding: 12px 16px; max-width: 60ch; }
.notice.warn, .notice.draft { border-left-color: var(--amber-dot); background: var(--amber-soft); color: var(--ink); }
.facts { padding-left: 20px; max-width: var(--measure); } .facts li { margin-bottom: 6px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent);
  text-decoration: none; border: 1px solid var(--accent); font: inherit; font-size: var(--step--1); font-weight: 600; line-height: 1.2; cursor: pointer; min-height: 44px;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.button.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.button.ghost:hover { border-color: var(--ink-2); background: var(--paper); }
.button.ghost[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button.danger { background: var(--red); border-color: var(--red); color: var(--surface); } .button.danger:hover { background: color-mix(in srgb, var(--red) 82%, black); }
.button.small { min-height: 36px; padding: 6px 14px; font-size: var(--step--2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.field { margin: 0 0 20px; max-width: 640px; }
.field label { display: block; font-weight: 600; font-size: var(--step--1); margin-bottom: 6px; }
.hint { margin: 0 0 6px; color: var(--muted); font-size: var(--step--1); }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border: 2px solid var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 18px; max-width: 640px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; }
.check input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); margin: 3px 0 0; }
.errors { background: var(--red-soft); border: 1px solid var(--red); border-left-width: 4px; border-radius: var(--r-sm); padding: 14px 18px; margin: 0 0 18px; max-width: 640px; }
.errors h2, .errors h3 { font-size: 1.2rem; margin: 0 0 6px; color: var(--red); } .errors ul { margin: 0; padding-left: 20px; } .errors a { color: var(--red); font-weight: 600; }
.fine { font-size: var(--step--1); color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin: 18px 0; max-width: 760px; box-shadow: var(--elev-1); }
.card h3 { margin-top: 0; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--elev-1); }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); background: var(--surface); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 650; background: var(--paper); }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: var(--accent-tint); }
td .actions { gap: 6px; }
.pill { display: inline-flex; align-items: center; font-size: .75rem; border-radius: var(--r-pill); padding: 2px 10px; background: var(--accent-soft); color: var(--accent-strong);
  font-weight: 650; white-space: nowrap; vertical-align: middle; font-family: var(--font-body); letter-spacing: 0; }
.pill.off { background: var(--grey-soft); color: var(--grey); }
.pill.on { background: var(--green-soft); color: var(--green); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (forced-colors: active) { .button { border: 2px solid ButtonText; } }

/* ---- Plans ---- */
.plans { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column;
  box-shadow: var(--elev-1); transition: border-color .25s var(--ease), box-shadow .3s var(--ease); }
.plan:hover { border-color: var(--line-strong); box-shadow: var(--elev-2); }
.plan.popular { border: 2px solid var(--accent); box-shadow: 0 0 0 6px var(--accent-tint), var(--elev-1); }
.plan h3 { font-size: 1.5rem; }
.plan .button { margin-top: auto; text-align: center; }
.price { margin: 6px 0 12px; color: var(--muted); }
.price strong { font-family: var(--font-display); font-size: 2.6rem; font-weight: 450; line-height: 1; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.ph { display: block; font-size: var(--step--2); color: var(--amber); }
.feat { padding: 14px 0 0; margin: 4px 0 20px; list-style: none; border-top: 1px solid var(--line); }
.feat li { position: relative; margin-bottom: 8px; padding-left: 24px; font-size: var(--step--1); }
.feat li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.steps li, .legal li { margin-bottom: 10px; max-width: var(--measure); }
/* ---- Signup ---- */
.signup { max-width: 680px; padding-bottom: 32px; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 26px 0 8px; min-width: 0; }
legend { font-family: var(--font-display); font-size: var(--step-2); font-weight: 450; letter-spacing: -0.02em; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
legend + * { clear: both; }
.choices { display: grid; gap: 10px; clear: both; }
.choice { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease); }
.choice:hover { border-color: var(--line-strong); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input, .check input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); margin: 2px 0 0; }
.err { color: var(--red); font-weight: 600; margin: 0 0 6px; }
.errors { margin: 24px 0 0; }
/* ---- Staff page ---- */
td .button { min-height: 36px; padding: 6px 14px; }
/* Honeypot: off-screen, hidden from assistive technology, not reachable with the keyboard. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media print { .skip, .top nav, .actions { display: none; } }
