@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --mist: #edf1f0;
  --paper: #f9fbfa;
  --ink: #16262b;
  --ink-soft: #435860;
  --line: #c9d6d3;
  --lamp: #f3b63f;
  --sage: #bfd4c6;
  --blush: #f5cfc4;
  --radius: 14px;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; max-width: 15ch; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 650; }
h3 { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 62ch; }

/* top bar */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.35rem/1 var(--display); text-decoration: none; letter-spacing: -0.02em; }
.top-link { font-size: 1rem; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: start; padding-top: 40px; padding-bottom: 96px; }
.lede { font-size: 1.25rem; margin-top: 24px; color: var(--ink-soft); }

/* signup form */
.signup { margin-top: 32px; max-width: 34rem; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; display: grid; gap: 4px; }
legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.choice input { width: 22px; height: 22px; accent-color: var(--ink); margin: 0; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; }
.field-row { display: flex; gap: 10px; }
input[type="email"] {
  flex: 1; min-width: 0; font: inherit; color: inherit; background: var(--paper);
  border: 2px solid var(--ink); border-radius: 10px; padding: 12px 14px; min-height: 52px;
}
button {
  font: 700 1.05rem/1 var(--body); color: var(--ink); background: var(--lamp);
  border: 2px solid var(--ink); border-radius: 10px; padding: 0 22px; min-height: 52px; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
button:hover { box-shadow: 0 3px 0 var(--ink); transform: translateY(-2px); }
button:active { transform: translateY(0); box-shadow: none; }
button[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.6em; margin: 14px 0 0; font-weight: 700; }
.status.ok { color: #1c5a3a; }
.status.err { color: #8a2b1a; }
.fine { font-size: .95rem; color: var(--ink-soft); margin: 6px 0 0; }

/* the night sheet: the one memorable element */
.sheet { background: var(--paper); border: 2px solid var(--ink); border-radius: 22px; padding: 28px; box-shadow: 8px 8px 0 var(--ink); transform: rotate(1.2deg); }
.sheet-title { font: 650 1.1rem/1.2 var(--display); margin: 0 0 18px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.when { font: 500 .95rem/1.2 var(--display); color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.what { font-size: 1.05rem; line-height: 1.35; }
.what strong { font-weight: 700; }
.chip {
  flex: none; display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .98rem; white-space: nowrap;
  border: 2px solid var(--ink); 
}
.chip.who-me { background: var(--lamp); }
.chip.who-partner { background: var(--sage); }
.chip.who-family { background: var(--blush); }
.chip.who-pro { background: var(--ink); color: var(--paper); }
.row.pending { opacity: 0; transform: translateY(8px); }
.row { transition: opacity .4s ease, transform .4s ease; }
.sheet-note { margin: 18px 0 0; font-size: .98rem; color: var(--ink-soft); }

/* how it works: a real sequence, so numbered */
.how { padding-bottom: 96px; }
.how h2 { margin-bottom: 36px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font: 700 2.5rem/1 var(--display); margin-bottom: 12px; }
.steps p { margin: 10px 0 0; color: var(--ink-soft); }

/* pros */
.pro { background: var(--sage); padding: 80px 0; }
.pro-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: start; }
.pro h2 { margin-bottom: 20px; }
.pro-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pro-list li { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px 18px; }

/* promises */
.promises { padding-top: 88px; padding-bottom: 88px; }
.promises h2 { margin-bottom: 28px; }
.promises ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 46rem; }
.promises li { padding-left: 20px; border-left: 4px solid var(--lamp); }

.closing { padding-bottom: 72px; }
.closing p { margin-top: 14px; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: .98rem; color: var(--ink-soft); }
.foot p { margin: 0; }

/* text pages */
.doc { padding-top: 24px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: none; margin-bottom: 24px; }
.doc h2 { font-size: 1.5rem; margin: 36px 0 10px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-bottom: 72px; }
  .sheet { transform: none; box-shadow: 6px 6px 0 var(--ink); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .pro-grid { grid-template-columns: 1fr; gap: 36px; }
  .top-link { display: none; }
}
@media (max-width: 520px) {
  .row { grid-template-columns: 1fr auto; }
  .what { grid-column: 1 / -1; grid-row: 2; }
  .chip { grid-column: 2; grid-row: 1; }
  .field-row { flex-direction: column; }
  button { width: 100%; }
  body { font-size: 1.0625rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* journey: stages and anonymous interest votes */
.top-nav { display: flex; gap: 24px; }
.journey { padding-bottom: 96px; }
.journey .intro { margin-top: 16px; color: var(--ink-soft); }
.vote-status { margin: 4px 0 24px; }
.stages { list-style: none; margin: 0; padding: 0; }
.stage { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 28px 0; border-top: 2px solid var(--ink); }
.stage-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tag { display: inline-block; font-weight: 700; font-size: .92rem; line-height: 1; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); }
.tag.first { background: var(--lamp); }
.included-title { font-weight: 700; margin: 0 0 8px; }
.included { margin: 0 0 24px; padding-left: 1.2em; max-width: 60ch; }
.included li { margin-bottom: 6px; }
.votes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.vote {
  font: 400 1rem/1.3 var(--body); text-align: left; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer;
  transition: background-color .15s ease, transform .12s ease;
}
.vote:hover { box-shadow: none; transform: translateY(-1px); background: var(--mist); }
.vote[aria-pressed="true"] { background: var(--lamp); font-weight: 700; }
.vote[aria-pressed="true"]::before { content: "\2713\00a0"; }
.pro-votes { margin-top: 48px; }
.pro-votes h3 { margin-bottom: 14px; }

@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; gap: 16px; }
  .stage-head { flex-direction: row; align-items: center; flex-wrap: wrap; }
}
