/* Hallmark v2.0.0 · redesign web/welcome/page.html · system: DESIGN.md (locked; Console theme, decision 0021) · genre modern-minimal · shape: claim, sample ledger, outcomes, steps, explainer, trust, plans, questions · signature: a sample ledger whose every change says why */
/* critique: one amber action (Start free) and nothing else amber; ivory paper and charcoal ink with wide margins; the ledger carries the proof, words stay short */
/* waive 16px-body: DESIGN.md §5 sets body text at 15px for every SumDocket surface */

/* Tokens: the values of web/src/styles/tokens.css (welcome.test.ts keeps them equal). */
:root {
  --color-paper: oklch(97.5% 0.006 85);
  --color-paper-2: oklch(99.5% 0.003 85);
  --color-paper-3: oklch(94.5% 0.008 85);
  --color-ink: oklch(19% 0.01 60);
  --color-ink-3: oklch(44% 0.012 60);
  --color-rule: oklch(88% 0.008 85);
  --color-signal: oklch(80% 0.15 80);
  --color-signal-ink: oklch(19% 0.04 75);
  --color-cool-text: oklch(45% 0.14 250);
  --color-ok: oklch(46% 0.12 150);
  --color-focus: oklch(45% 0.12 65);
  --font-body: "Host Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-measured: "Atkinson Hyperlegible Mono", ui-monospace, monospace;
  --text-caption: 0.8125rem;
  --text-sm: 0.875rem;
  --text-body: 0.9375rem;
  --text-title: 1.375rem;
  --text-figure: 1.75rem;
  --text-display: 2.5rem;
  --radius: 0.375rem;
  --radius-card: 0.625rem;
  --page: 80rem;
  --dur-micro: 120ms;
}

[data-mode="dark"] {
  --color-paper: oklch(17% 0.008 250);
  --color-paper-2: oklch(21% 0.009 250);
  --color-paper-3: oklch(13.5% 0.007 250);
  --color-ink: oklch(95% 0.005 250);
  --color-ink-3: oklch(71% 0.01 250);
  --color-rule: oklch(31% 0.01 250);
  --color-signal: oklch(82% 0.15 80);
  --color-signal-ink: oklch(18% 0.04 75);
  --color-cool-text: oklch(77% 0.12 245);
  --color-ok: oklch(76% 0.15 150);
  --color-focus: oklch(82% 0.15 80);
}

@font-face { font-family: "Host Grotesk"; font-weight: 400; font-display: swap; src: url("fonts/host-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Host Grotesk"; font-weight: 500; font-display: swap; src: url("fonts/host-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-mono-latin-400-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font: 400 var(--text-body) / 1.6 var(--font-body);
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 500; margin: 0; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--color-cool-text); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
/* The hand for everything that acts on a click; disabled controls keep the arrow. */
a[href], button:not(:disabled), [role="button"]:not([aria-disabled="true"]), summary, label[for] { cursor: pointer; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius); transition: none; }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 48rem) { .wrap { padding-inline: 2rem; } }
.muted { color: var(--color-ink-3); }
.figure { font-family: var(--font-measured); font-variant-numeric: slashed-zero tabular-nums; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--color-paper-2); padding: 0.5rem 0.75rem; }
.skip:focus-visible { top: 0.5rem; }

/* Buttons: one primary style, amber with its label (DESIGN.md §4, §8). */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.5rem; padding: 0 1rem; border-radius: var(--radius);
  background: var(--color-signal); color: var(--color-signal-ink);
  font: 500 var(--text-body) / 1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-micro) ease-out, transform var(--dur-micro) ease-out;
}
.btn:hover { background: color-mix(in oklch, var(--color-signal) 90%, var(--color-paper)); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 2.25rem; padding: 0 0.75rem; font-size: var(--text-sm); }
.quiet { color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); padding: 0.5rem 0.25rem; border-radius: var(--radius); white-space: nowrap; }
.quiet:hover { text-decoration: underline; }
:is([data-session="pending"], [data-session="unknown"]) [data-auth] { visibility: hidden; }

/* Top bar. */
.bar { position: sticky; top: 0; z-index: 5; background: var(--color-paper); border-bottom: 1px solid var(--color-rule); }
.bar__in { display: flex; align-items: center; gap: 0.75rem; height: 3.5rem; }
@media (min-width: 48rem) { .bar__in { gap: 1.5rem; } }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--color-ink); text-decoration: none; font-weight: 500; font-size: var(--text-sm); white-space: nowrap; flex-shrink: 0; }
.logo img { border-radius: var(--radius); flex-shrink: 0; }
.bar nav { display: none; gap: 0.5rem; }
@media (min-width: 64rem) { .bar nav { display: flex; } }
.bar__end { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
@media (min-width: 48rem) { .bar__end { gap: 0.75rem; } }

/* Hero: the claim, one sentence, one action. */
.hero { padding-block: 4rem 3rem; }
@media (min-width: 64rem) { .hero { padding-block: 5rem 3.5rem; } }
.hero h1 { font-size: var(--text-figure); line-height: 1.1; max-width: 16ch; }
@media (min-width: 48rem) { .hero h1 { font-size: var(--text-display); } }
.hero__lead { margin-top: 1.25rem; max-width: 36rem; color: var(--color-ink-3); }
.hero__act { margin-top: 2rem; }

.sheet { margin: 0; background: var(--color-paper-2); border: 1px solid var(--color-rule); border-radius: var(--radius-card); overflow: hidden; }
.sheet__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-rule); font-size: var(--text-sm); }
.sheet__title { font-size: var(--text-sm); }
.sheet table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.sheet th { font-weight: 400; color: var(--color-ink-3); text-align: left; padding: 0.75rem 1.25rem; }
.sheet td { padding: 0.75rem 1.25rem; border-top: 1px solid var(--color-rule); }
.sheet .num { text-align: right; white-space: nowrap; }
.sheet tr.sum td { font-weight: 500; }
.sheet tr.sum .figure { color: var(--color-ok); font-size: var(--text-title); }
.sheet__scroll { overflow-x: auto; }
.sheet table { min-width: 44rem; }
.sheet td.why { color: var(--color-ink-3); font-size: var(--text-caption); max-width: 22rem; }
.sheet__foot { padding: 0.875rem 1.25rem; border-top: 1px solid var(--color-rule); background: var(--color-paper-3); font-size: var(--text-caption); color: var(--color-ink-3); }
.tag { display: inline-block; font-size: var(--text-caption); font-weight: 400; color: var(--color-ink-3); border: 1px solid var(--color-rule); border-radius: var(--radius); padding: 0 0.5rem; }

/* Sections. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.section.section--tight { padding-block: 0 4rem; border-top: 0; }
.narrow > * { max-width: 48rem; }
.lead { margin-top: 1rem; color: var(--color-ink-3); max-width: 40rem; }
.after { margin-top: 1.5rem; font-size: var(--text-sm); }
.outcomes { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .outcomes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.outcomes h3 { font-size: var(--text-title); line-height: 1.3; }
.outcomes p { margin-top: 0.5rem; color: var(--color-ink-3); }
.more { margin-top: 1.5rem; border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); }
.more summary { cursor: pointer; padding: 1rem 0; font-weight: 500; }
.more div { display: grid; gap: 0.75rem; padding-bottom: 1.25rem; color: var(--color-ink-3); }
.section { padding-block: 4rem; border-top: 1px solid var(--color-rule); }
@media (min-width: 64rem) { .section { padding-block: 5.5rem; } }
.section h2 { font-size: var(--text-title); line-height: 1.3; }
.section__head { max-width: 40rem; margin-bottom: 2.5rem; }
.section__head p { margin-top: 0.75rem; color: var(--color-ink-3); }

.steps { display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; border-top: 2px solid var(--color-ink); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--font-measured); color: var(--color-ink-3); font-size: var(--text-sm); margin-bottom: 0.5rem; }
.steps h3 { font-size: var(--text-body); }
.steps p { margin-top: 0.375rem; color: var(--color-ink-3); font-size: var(--text-sm); }

.facts { display: grid; gap: 1px; background: var(--color-rule); border: 1px solid var(--color-rule); border-radius: var(--radius-card); overflow: hidden; }
@media (min-width: 48rem) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts li { background: var(--color-paper-2); padding: 1.25rem; }
.facts h3 { font-size: var(--text-body); }
.facts p { margin-top: 0.375rem; color: var(--color-ink-3); font-size: var(--text-sm); }

.plans { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { background: var(--color-paper-2); border: 1px solid var(--color-rule); border-radius: var(--radius-card); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.plan h3 { font-size: var(--text-body); }
.plan__price { display: flex; align-items: baseline; gap: 0.5rem; }
.plan__price .figure { font-size: var(--text-figure); }
.plan__soon { font-size: var(--text-title); }

.faq { margin-top: 1.5rem; border-top: 1px solid var(--color-rule); }
.faq details { border-bottom: 1px solid var(--color-rule); }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 500; list-style-position: outside; margin-left: 1rem; }
.faq details p { padding: 0 0 1.25rem 1rem; color: var(--color-ink-3); max-width: 40rem; }

.close { padding-block: 4rem; border-top: 1px solid var(--color-rule); }
.close__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.close h2 { font-size: var(--text-title); }

.foot { border-top: 1px solid var(--color-rule); padding-block: 2rem 2.5rem; font-size: var(--text-sm); color: var(--color-ink-3); }
.foot__in { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot a { color: var(--color-ink-3); }
.foot__small { margin-top: 1rem; font-size: var(--text-caption); }

/* Legal / privacy document inside the shared public shell. */
.legal { max-width: 46rem; padding-block: 3rem 4.5rem; }
@media (min-width: 48rem) { .legal { padding-block: 4rem 5.5rem; } }
.legal h1 { font-size: var(--text-figure); line-height: 1.15; margin-bottom: 1.5rem; }
@media (min-width: 48rem) { .legal h1 { font-size: var(--text-display); } }
.legal h2 { font-size: var(--text-title); line-height: 1.3; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.legal p + p, .legal ul + p, .legal ol + p, .legal table + p { margin-top: 1rem; }
.legal ul, .legal ol { margin-top: 0.75rem; padding-left: 1.25rem; list-style: disc; display: grid; gap: 0.375rem; }
.legal ol { list-style: decimal; }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); margin-top: 1.25rem; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--color-rule); }
.legal th { font-weight: 500; color: var(--color-ink-3); }

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