/* Nari 1 founding page. Tokens from NILY_DESIGN_FINAL_LOCKED §1–3 (colour, type, spacing). */

@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;

  --mineral: #F4F1EB;
  --surface: #FFFEFB;
  --surface-subtle: #ECE9E2;
  --carbon: #18151F;
  --carbon-raised: #24202B;
  --indigo: #4B46D8;
  --indigo-700: #3C37A0;
  --indigo-accessible: #8B87FF;
  --indigo-tint: #E0DCE9;
  --coral: #F15D45;
  --coral-accessible: #F47A66;
  --coral-tint: #F4DCD4;
  --text: #18151F;
  --text-secondary: #67616D;
  --text-on-dark: #F4F1EB;
  --text-on-dark-secondary: #B8B1BC;
  --border-soft: #DDD8CF;
  --border-strong: #8A857D;

  --radius-control: 10px;
  --radius-card: 16px;
  --radius-card-lg: 20px;

  --gutter: 16px;
  --section: 48px;
  --max: 1120px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --section: 64px; }
}
@media (min-width: 1024px) {
  :root { --section: 96px; }
}

*, *::before, *::after { box-sizing: border-box; }

/* Founding and Wave 2 blocks are switched with the hidden attribute; it must win over any display rule. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mineral);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a { color: var(--indigo-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--indigo-accessible); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 500;
  background: var(--carbon); color: var(--text-on-dark); padding: 12px 16px; border-radius: var(--radius-control);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-header { padding: 20px 0 8px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 30px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 34px; } }
.brand-line { color: var(--text-secondary); font-size: 14px; line-height: 20px; font-weight: 500; }

/* ---------- type ---------- */
.display {
  font-size: 40px; line-height: 44px; font-weight: 800; letter-spacing: -0.02em;
  text-wrap: balance;
}
.h2 { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.h3 { font-size: 20px; line-height: 28px; font-weight: 700; }
.lead { font-size: 17px; line-height: 26px; color: var(--text); max-width: 34em; }
.muted { color: var(--text-secondary); }
.small { font-size: 14px; line-height: 20px; }

@media (min-width: 1024px) {
  .display { font-size: 64px; line-height: 68px; }
  .h2 { font-size: 36px; line-height: 44px; }
  .h3 { font-size: 22px; line-height: 30px; }
  .lead { font-size: 18px; line-height: 28px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 12px 24px; border-radius: var(--radius-control); border: 0;
  font: 600 16px/24px var(--font); text-decoration: none; cursor: pointer;
  width: 100%;
}
@media (min-width: 480px) { .btn { width: auto; min-width: 280px; } }
.btn-primary { background: var(--indigo); color: var(--mineral); }
.btn-primary:hover { background: var(--indigo-700); }
.btn-primary:active { background: var(--indigo-700); }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--surface-subtle); color: var(--text-secondary); cursor: not-allowed;
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.reserve-note { margin-top: 12px; }

/* ---------- hero ---------- */
.hero { padding: 24px 0 var(--section); }
.hero-grid { display: grid; gap: 24px; }
.hero-copy { display: grid; gap: 20px; align-content: start; }
.hero .lead { margin-top: -4px; }

.price { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 14px; row-gap: 4px; margin-top: 4px; }
.price-now { font-size: 48px; line-height: 52px; font-weight: 800; letter-spacing: -0.02em; }
.price-was { font-size: 24px; line-height: 30px; font-weight: 600; color: var(--text-secondary); text-decoration: line-through; text-decoration-thickness: 2px; }
.price-caption { flex-basis: 100%; color: var(--text-secondary); font-size: 15px; line-height: 22px; }
@media (min-width: 1024px) { .price-now { font-size: 64px; line-height: 68px; } }

.counter { display: grid; gap: 8px; max-width: 420px; }
.counter[hidden] { display: none; }
.counter-text { font-size: 15px; line-height: 22px; font-weight: 500; }
.counter-text strong { font-weight: 800; }
.counter-track { height: 8px; border-radius: 4px; background: var(--border-soft); overflow: hidden; }
.counter-fill { height: 100%; width: 0; background: var(--indigo); border-radius: 4px; }
.counter-fill.is-animated { transition: width 900ms cubic-bezier(.2,.7,.2,1); }
.full-note { font-size: 15px; line-height: 22px; font-weight: 600; max-width: 34em; }

.promise {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius-card);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-soft);
  max-width: 34em;
}
.promise-title { font-weight: 700; font-size: 15px; line-height: 22px; }
.promise p { font-size: 15px; line-height: 22px; }

/* founding ticket: dashed arch = a spot waiting; solid arch = her spot */
.ticket {
  position: relative; background: var(--carbon); color: var(--text-on-dark);
  border-radius: var(--radius-card-lg); padding: 20px; display: grid;
  grid-template-columns: 76px 1fr; gap: 20px; align-items: center;
}
.ticket-mark { width: 76px; }
.ticket-mark svg { width: 100%; height: auto; }
.ticket-body { display: grid; gap: 2px; padding-left: 20px; border-left: 2px dashed var(--carbon-raised); }
.ticket-kicker { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-on-dark-secondary); }
.ticket-number { font-size: 40px; line-height: 44px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 6px; }
.ticket-slot {
  display: inline-block; min-width: 3.1ch; border-bottom: 3px dashed var(--coral-accessible);
  height: 0.9em; transform: translateY(0.06em);
}
.ticket-of { font-size: 15px; line-height: 22px; color: var(--text-on-dark-secondary); font-weight: 500; }
.ticket-title { font-size: 32px; line-height: 36px; font-weight: 800; letter-spacing: -0.02em; }
.ticket-perks { grid-column: 1 / -1; display: none; gap: 6px; padding-top: 16px; border-top: 2px dashed var(--carbon-raised); font-size: 14px; line-height: 20px; color: var(--text-on-dark-secondary); }
.ticket-perks li { display: flex; gap: 10px; }
.ticket-perks li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--coral-accessible); }

@media (min-width: 1024px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
  .ticket { grid-template-columns: 1fr; padding: 32px; gap: 28px; margin-top: 8px; }
  .ticket-mark { width: 132px; }
  .ticket-body { padding-left: 0; border-left: 0; padding-top: 24px; border-top: 2px dashed var(--carbon-raised); }
  .ticket-number { font-size: 64px; line-height: 68px; }
  .ticket-title { font-size: 48px; line-height: 52px; }
  .ticket-perks { display: grid; font-size: 15px; line-height: 22px; }
}

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section-head { display: grid; gap: 12px; max-width: 40em; margin-bottom: 28px; align-content: start; }
.split { display: grid; }
@media (min-width: 1024px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: 64px;
    grid-template-areas: "head main" "aside main"; align-items: start;
  }
  .split > .section-head { grid-area: head; margin-bottom: 0; }
  .split > .split-main { grid-area: main; }
  .split > .split-aside { grid-area: aside; margin-top: 28px; }
}

/* receipt */
.receipt {
  background: var(--surface); border-radius: var(--radius-card); padding: 8px 20px 20px;
  box-shadow: inset 0 0 0 1px var(--border-soft); max-width: 760px;
}
.receipt-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px dashed var(--border-strong); }
.receipt-item { font-size: 17px; line-height: 24px; font-weight: 600; }
.receipt-detail { grid-column: 1 / 2; color: var(--text-secondary); font-size: 14px; line-height: 20px; }
.receipt-value { grid-row: 1 / 2; grid-column: 2 / 3; font-weight: 700; text-align: right; white-space: nowrap; }
.receipt-total { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px; padding-top: 18px; }
.receipt-total .label { font-size: 17px; line-height: 24px; font-weight: 700; }
.receipt-total .worth { color: var(--text-secondary); font-size: 14px; line-height: 20px; }
.receipt-total .amount { grid-row: 1 / 3; grid-column: 2 / 3; font-size: 40px; line-height: 44px; font-weight: 800; letter-spacing: -0.02em; }
@media (min-width: 768px) { .receipt { padding: 8px 32px 28px; } }

/* why now (dark band) */
.band-dark { background: var(--carbon); color: var(--text-on-dark); }
.band-dark .muted { color: var(--text-on-dark-secondary); }
.why-grid { display: grid; gap: 28px; }
.why-copy { display: grid; gap: 16px; max-width: 36em; }
.why-copy p { font-size: 17px; line-height: 26px; }
.fact { display: grid; gap: 10px; padding-top: 24px; border-top: 2px dashed var(--carbon-raised); max-width: 30em; }
.fact-line { font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -0.01em; }
.fact-source { font-size: 14px; line-height: 20px; color: var(--text-on-dark-secondary); }
.anchor-line { font-size: 17px; line-height: 26px; color: var(--text-on-dark); }
.anchor-line strong { color: var(--coral-accessible); font-weight: 700; }
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
  .fact { padding-top: 0; border-top: 0; padding-left: 32px; border-left: 2px dashed var(--carbon-raised); }
  .fact-line { font-size: 32px; line-height: 40px; }
}

/* journey */
.journey { display: grid; gap: 0; max-width: 760px; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 0 16px; padding-bottom: 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 16px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--carbon);
  grid-row: 1 / 3;
}
.step.is-doctor::before { background: var(--carbon); color: var(--text-on-dark); }
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 0; border-left: 2px dashed var(--border-strong);
}
.step-who { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--indigo-700); padding-top: 2px; }
.step.is-doctor .step-who { color: var(--carbon); }
.step-what { font-size: 16px; line-height: 24px; }
.journey-notes { display: grid; gap: 12px; margin-top: 8px; max-width: 760px; }
.note {
  padding: 16px 18px; border-radius: var(--radius-card); background: var(--surface-subtle);
  font-size: 15px; line-height: 22px;
}
.note strong { font-weight: 700; }

/* questions */
.faq { max-width: 760px; border-top: 1px solid var(--border-soft); }
.faq details { border-bottom: 1px solid var(--border-soft); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; min-height: 44px; font-weight: 600; font-size: 17px; line-height: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 2px solid var(--carbon); border-bottom: 2px solid var(--carbon);
  transform: translateY(-3px) rotate(45deg); transition: transform 180ms ease;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; display: grid; gap: 10px; max-width: 40em; color: var(--text); }

/* closing call to action */
.band-coral { background: var(--coral-tint); }
.closing { display: grid; gap: 18px; max-width: 40em; }

/* footer */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--border-soft); font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.footer-grid { display: grid; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { display: inline-block; padding: 10px 0; color: var(--text); }
.footer-legal { display: grid; gap: 6px; max-width: 46em; }

/* ---------- policy pages ---------- */
.doc { padding: 24px 0 var(--section); }
.doc .wrap > * { max-width: 44em; }
.doc h1 { margin-bottom: 8px; }
.doc .updated { color: var(--text-secondary); font-size: 14px; line-height: 20px; margin-bottom: 32px; }
.doc h2 { font-size: 22px; line-height: 30px; font-weight: 700; margin: 36px 0 10px; }
.doc p, .doc li { font-size: 16px; line-height: 26px; }
.doc p + p { margin-top: 12px; }
.doc ul.bullets { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 10px; }
.doc ol.numbered { list-style: decimal; padding-left: 22px; display: grid; gap: 6px; margin-top: 10px; }
.doc address { font-style: normal; }
.fill { background: var(--coral-tint); color: var(--carbon); padding: 1px 6px; border-radius: 4px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--coral); }

/* ---------- thanks ---------- */
.thanks { padding: 24px 0 var(--section); }
.thanks-grid { display: grid; gap: 28px; align-items: start; }
.thanks-copy { display: grid; gap: 18px; align-content: start; max-width: 36em; }
.thanks-status { display: grid; gap: 12px; }
.thanks .ticket .ticket-number { min-height: 44px; }
.arch-fill { transition: fill-opacity 600ms ease, stroke-opacity 600ms ease; }
@media (min-width: 1024px) {
  .thanks { padding-top: 48px; }
  .thanks-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
  .thanks .ticket .ticket-number { min-height: 68px; }
}
.next-steps { display: grid; gap: 12px; counter-reset: next; }
.next-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.next-steps li::before {
  counter-increment: next; content: counter(next);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 2px var(--carbon);
}

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