/* meraia.app. Values are copied from /tokens.css (light palette) and DESIGN.md; change them there first. */

@font-face { font-family: Figtree; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  color-scheme: light;
  --color-paper: oklch(99.4% 0.003 115);
  --color-body: oklch(96.2% 0.007 118);
  --color-paper-3: oklch(93.2% 0.010 122);
  --color-ink: oklch(24.5% 0.025 160);
  --color-ink-2: oklch(30% 0.025 160);
  --color-rule: oklch(90.4% 0.010 125);
  --color-rule-2: oklch(84.8% 0.013 128);
  --color-muted: oklch(47.5% 0.02 145);
  --color-neutral-ink: oklch(35% 0.02 150);
  --color-forest: oklch(33% 0.055 155);
  --color-forest-hover: oklch(27.5% 0.05 155);
  --color-forest-muted: oklch(91.5% 0.05 135);
  --color-on-forest: oklch(97.8% 0.007 115);
  --color-focus: oklch(50% 0.12 150);
  --color-ember: oklch(50% 0.125 50);
  --color-ember-fill: oklch(72% 0.14 48);
  --color-ember-muted: oklch(94.5% 0.04 68);
  --color-iris: oklch(47% 0.14 300);
  --color-iris-fill: oklch(64% 0.13 300);
  --color-iris-muted: oklch(94% 0.03 300);
  --color-sage: oklch(80% 0.085 140);
  --color-field: oklch(24.5% 0.025 160 / 4.5%);
  --color-track: color-mix(in oklab, var(--color-ink) 8%, transparent);
  --color-shadow: oklch(24% 0.03 160 / 8%);
  --color-shadow-deep: oklch(24% 0.03 160 / 22%);
  /* One colour per account, on every screen (DESIGN.md, Theme). */
  --item-broker: oklch(45% 0.085 158);
  --item-savings: var(--color-sage);
  --item-home: oklch(60% 0.08 190);
  --item-crypto: oklch(63% 0.09 80);
  --item-giro: oklch(54% 0.11 255);
  --item-paypal: oklch(74% 0.07 220);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wrap: min(75rem, 100% - 2 * var(--gutter));
  --sheet: 0 0 0 1px var(--color-rule), 0 1px 2px var(--color-shadow), 0 18px 40px -24px var(--color-shadow-deep);
  --sheet-high: 0 0 0 1px var(--color-rule), 0 6px 12px -3px var(--color-shadow), 0 40px 80px -32px var(--color-shadow-deep);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5rem; scrollbar-color: var(--color-rule-2) var(--color-body); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-body); color: var(--color-ink); font: 400 1.125rem/1.55 Figtree, system-ui, sans-serif; accent-color: var(--color-forest); caret-color: var(--color-forest); -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* Smooth only for a link the reader pressed; a deep link lands at once. */
html:focus-within { scroll-behavior: smooth; }
::selection { background: var(--color-forest-muted); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
img, svg { display: block; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--color-paper); padding: 0.5rem 1rem; border-radius: 999px; }
.skip:focus { top: 1rem; }

/* Figures: tabular, weight 500, cents stepped back (DESIGN.md, Typography). */
/* Tight tracking on the large sizes only; small figures stay at 0 to read. */
.fig { font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; white-space: nowrap; }
.fig i { font-style: normal; color: color-mix(in oklab, currentColor 60%, transparent); }
.fig--lg { font-size: 2.25rem; line-height: 1.1; letter-spacing: -0.03em; }
.fig--xl { font-size: clamp(2.5rem, 4.2vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; }
.warn { color: var(--color-ember); font-weight: 500; }
.tag { font: 500 0.75rem/1.5 Figtree, sans-serif; font-style: normal; padding: 0.125rem 0.5rem; border-radius: 999px; background: var(--color-paper-3); color: var(--color-neutral-ink); white-space: nowrap; }
.tag--on-forest { background: color-mix(in oklab, var(--color-on-forest) 14%, transparent); color: var(--color-on-forest); }
/* An owner's blank: visible on purpose until it is filled. */
.todo { background: var(--color-ember-muted); outline: 1px dashed color-mix(in oklab, var(--color-ember) 55%, transparent); border-radius: 4px; padding: 0 0.2em; }
.todo-link { outline: 1px dashed var(--color-ember-fill); outline-offset: 4px; }

/* Pills. The primary one carries the corner light. */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 2.5rem; padding: 0 1.25rem; border: 0; border-radius: 999px; font: 500 0.9375rem/1 Figtree, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s, translate 0.2s var(--ease-out); }
.btn:active { translate: 0 1px; }
.btn--lg { height: 3rem; padding: 0 1.5rem; font-size: 1rem; }
.btn--primary { background: radial-gradient(120% 140% at 0% 100%, color-mix(in oklab, var(--color-sage) 26%, transparent), transparent 62%) var(--color-forest); color: var(--color-on-forest); }
.btn--primary:hover { background-color: var(--color-forest-hover); }
.btn--secondary { background: var(--color-paper); color: var(--color-ink); box-shadow: 0 0 0 1px var(--color-rule-2); }
.btn--secondary:hover { box-shadow: 0 0 0 1px var(--color-muted); }
.btn--quiet { background: transparent; color: var(--color-ink); }
.btn--quiet:hover { background: var(--color-track); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 0.5rem; height: 4.25rem; padding: 0 var(--gutter); background: var(--color-body); transition: box-shadow 0.2s; }
.nav.is-stuck { box-shadow: 0 1px 0 var(--color-rule); }
.lockup { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.nav__links { display: flex; gap: 1.75rem; margin: 0 auto 0 2.5rem; }
.nav__links a { white-space: nowrap; font-size: 0.9375rem; font-weight: 500; color: var(--color-muted); text-decoration: none; transition: color 0.2s; }
.nav__links a:hover { color: var(--color-ink); }

/* 1. Hero */
.hero { width: var(--wrap); margin: 0 auto; padding: clamp(2rem, 5vh, 3.5rem) 0 1rem; text-align: center; }
.hero h1 { max-width: 22ch; margin: 0 auto; }
.hero h1 span { display: block; color: var(--color-forest); }
.lede { max-width: 38rem; margin: 1.25rem auto 0; font-size: 1.1875rem; color: var(--color-muted); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.75rem; }
.proof { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1.25rem; margin-top: 1.25rem; font-size: 0.9375rem; color: var(--color-muted); }
/* A selling point, so it wears forest: the hue for what Meraia itself is. */
.proof__made { padding: 0.3rem 0.85rem; border-radius: 999px; background: var(--color-forest-muted); color: var(--color-forest); font-weight: 600; }
.close__made { display: flex; align-items: center; gap: 0.9rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.close__made img { width: 3.5rem; height: auto; }

.src { padding: 0.75rem 1rem 1rem; background: var(--color-paper); border-radius: 0.875rem; box-shadow: var(--sheet); text-align: start; line-height: 1.3; }
.src b { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; font-weight: 500; }
.src b::before, .rows li > span::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--c); }
.src small { display: block; font-size: 0.8125rem; color: var(--color-muted); }
.src .fig { display: block; margin-top: 0.375rem; font-size: 1.25rem; }

.win { background: var(--color-paper); border-radius: 1.125rem; box-shadow: var(--sheet-high); text-align: start; overflow: hidden; }
.win__bar { display: flex; align-items: center; gap: 0.75rem; height: 2.5rem; padding: 0 1rem; border-bottom: 1px solid var(--color-rule); font-size: 0.8125rem; font-weight: 500; color: var(--color-muted); }
.win__bar .tag { margin-left: auto; }
.win__dots { width: 2.75rem; height: 0.625rem; background: radial-gradient(circle at 0.3125rem 50%, var(--color-rule-2) 0.3rem, transparent 0.33rem) 0 0 / 1.0625rem 100% repeat-x; }
.win__head { padding: 1rem 1.5rem 1rem; }
.win__label { font-size: 0.875rem; font-weight: 500; color: var(--color-muted); }
.status { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.375rem; font-size: 0.9375rem; font-weight: 500; line-height: 1.35; color: var(--color-muted); }
.status::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--item-broker); translate: 0 -0.05rem; }
.status--gap { color: var(--color-ember); }
.status--gap::before { background: var(--color-ember-fill); }
.status--kept { color: var(--color-forest); }
.share { display: flex; gap: 3px; height: 0.625rem; margin-top: 1rem; }
.share span { min-width: 0.4rem; border-radius: 999px; background: var(--c); }
.rows { padding: 0 1.5rem 0.5rem; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 2.875rem; border-top: 1px solid var(--color-rule); font-size: 0.9375rem; }
.rows li > span { display: flex; align-items: center; gap: 0.5rem; min-width: 0; white-space: nowrap; }
.rows small { font-size: 0.8125rem; color: var(--color-muted); }
.rows small.warn { color: var(--color-ember); }

.gather { display: flex; flex-direction: column; gap: 1rem; margin-top: clamp(2.5rem, 6vh, 3.5rem); }
.gather__threads { display: none; }
.gather__win { order: -1; }
.gather__sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.gather figcaption { font-size: 0.8125rem; color: var(--color-muted); }

@media (min-width: 62.5rem) {
  .gather { display: block; position: relative; height: 35rem; }
  .gather__threads { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
  .gather__threads path { fill: none; stroke: var(--color-forest); stroke-width: 1.5; stroke-linecap: round; opacity: 0.4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; animation: draw 0.6s var(--ease-out) backwards; animation-delay: calc(0.1s + var(--i) * 0.05s); }
  .gather__sources { display: block; }
  .gather .funnel { display: none; }
  .gather .src { position: absolute; width: clamp(11rem, 19%, 13.75rem); rotate: var(--r); animation: arrive 0.6s var(--ease-out) backwards; animation-delay: calc(var(--n) * 0.05s); }
  .gather .src:nth-child(1) { left: 0; top: 2.5rem; --r: -4deg; --n: 0; }
  .gather .src:nth-child(2) { right: 0; top: 2.5rem; --r: 4deg; --n: 1; }
  .gather .src:nth-child(3) { left: 1%; top: 13.4rem; --r: 3deg; --n: 2; }
  .gather .src:nth-child(4) { right: 1%; top: 13.4rem; --r: -3deg; --n: 3; }
  .gather .src:nth-child(5) { left: 0; top: 24.4rem; --r: -2deg; --n: 4; }
  .gather .src:nth-child(6) { right: 0; top: 24.4rem; --r: 2deg; --n: 5; }
  .gather figcaption { position: absolute; inset: auto 0 0; }
  .gather__win { position: absolute; top: 0; left: 50%; width: min(33.75rem, 46%); translate: -50% 0; animation: rise 0.6s var(--ease-out) backwards; }
  .gather .rows li { animation: arrive 0.4s var(--ease-out) backwards; animation-delay: calc(0.15s + var(--n) * 0.04s); }
  .gather .rows li:nth-child(1) { --n: 0; } .gather .rows li:nth-child(2) { --n: 1; } .gather .rows li:nth-child(3) { --n: 2; }
  .gather .rows li:nth-child(4) { --n: 3; } .gather .rows li:nth-child(5) { --n: 4; } .gather .rows li:nth-child(6) { --n: 5; }
}
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes arrive { from { opacity: 0; translate: 0 0.9rem; } }
@keyframes rise { from { opacity: 0; translate: -50% 1.5rem; } }

/* 2 and 3. The story. Stacked by default; pinned when main.js adds .pin. */
.story { padding: clamp(4rem, 9vw, 7rem) 0; }
.story__stage { width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.story__copy, .story__box { display: contents; }
.story__threads, .story__steps { display: none; }
/* Not display:none: a pattern inside a hidden svg does not paint. */
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.chapter { margin-top: 3rem; }
.chapter[data-ch="0"] { order: 0; margin-top: 0; }
.story__sources { order: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
/* Stacked, the sources fall into the window first; the words for it follow. */
.story .funnel { order: 2; margin: -1.25rem 0; }
.story__win { order: 3; } .chapter[data-ch="1"] { order: 4; margin-top: 1rem; }
.chapter[data-ch="2"] { order: 5; } .pane--gap { order: 6; }
.chapter[data-ch="3"] { order: 7; } .pane--vault { order: 8; }
.chapter h2 { max-width: 16ch; }
.chapter p { max-width: 30rem; margin-top: 1rem; color: var(--color-ink-2); }
.chapter .detail { font-size: 1rem; color: var(--color-muted); padding-top: 1rem; border-top: 1px solid var(--color-rule-2); }
.voices { margin-top: 1.5rem; max-width: 31rem; }
.voices li { padding: 1rem 0; border-top: 1px solid var(--color-rule-2); font-size: 1.0625rem; line-height: 1.45; color: var(--color-muted); }
.voices strong { font-weight: 500; color: var(--color-ink); }
.status-stack .status { display: none; }
.status-stack .status[data-ch="1"] { display: flex; }
.pane { background: var(--color-paper); border-radius: 1.125rem; box-shadow: var(--sheet); padding: 1.25rem 1.5rem; }
.pane__label { font-size: 0.875rem; font-weight: 500; color: var(--color-muted); }
.cover { margin-top: 1rem; }
.cover p { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; }
.cover b { font-weight: 500; color: var(--color-muted); }
.cover b.warn { color: var(--color-ember); }
.cover svg { width: 100%; height: 18px; margin-top: 0.375rem; }
.beat { fill: var(--color-forest); }
.beat-gap { fill: none; stroke: var(--color-ember-fill); stroke-width: 1.5; }
.pane__fix { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.25rem; font-size: 0.875rem; color: var(--color-muted); }
.chip { display: inline-flex; align-items: center; height: 2rem; padding: 0 1rem; border-radius: 999px; font-weight: 500; }
.chip--ember { background: var(--color-ember-muted); color: var(--color-ember); }
.vault { display: flex; align-items: center; gap: 1rem; }
.vault b { display: block; font-size: 1.125rem; font-weight: 600; }
.vault small { font-size: 0.875rem; color: var(--color-muted); }
.ledger { margin-top: 1rem; }
.ledger div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--color-rule); font-size: 0.9375rem; }
.ledger dt { color: var(--color-muted); }
.ledger dd { font-weight: 500; text-align: end; }

@media (min-width: 64rem) and (min-height: 40rem) {
  .pin .story { padding: 0; height: 460vh; margin-top: -6rem; }
  .pin .story__stage { position: sticky; top: 0; height: 100vh; flex-direction: row; align-items: center; gap: clamp(2rem, 4vw, 4rem); }
  .pin .story__copy { display: block; position: relative; flex: 1; min-width: 0; height: 30rem; }
  .pin .chapter { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; translate: 0 1.1rem; transition: opacity 0.15s, translate 0s 0.15s, visibility 0s 0.15s; }
  .pin .story[data-ch="0"] .chapter[data-ch="0"], .pin .story[data-ch="1"] .chapter[data-ch="1"],
  .pin .story[data-ch="2"] .chapter[data-ch="2"], .pin .story[data-ch="3"] .chapter[data-ch="3"] { opacity: 1; visibility: visible; translate: 0; transition: opacity 0.4s 0.15s, translate 0.6s var(--ease-out) 0.15s, visibility 0s; }
  .pin .story__steps { display: flex; gap: 0.375rem; position: absolute; left: 0; bottom: -1.5rem; }
  .pin .story__steps span { width: 1.5rem; height: 0.5rem; border-radius: 999px; background: var(--color-track); transition: background-color 0.2s; }
  .pin .story[data-ch="0"] .story__steps span:nth-child(1), .pin .story[data-ch="1"] .story__steps span:nth-child(-n+2),
  .pin .story[data-ch="2"] .story__steps span:nth-child(-n+3), .pin .story[data-ch="3"] .story__steps span { background: var(--color-forest); }

  .pin .story__box { display: block; position: relative; flex: none; width: 600px; height: 580px; }
  .pin .story__threads { display: block; position: absolute; z-index: 1; inset: 0; width: 600px; height: 580px; overflow: visible; pointer-events: none; }
  .pin .story__sources { display: block; }
  .pin .story__box .src, .pin .story__threads path, .pin .story__win .rows li, .pin .story__win .share span { --gi: clamp(0, var(--g, 0) * 3.5 - var(--i) * 0.5, 1); }
  /* A card rides its thread by its own dot, onto the dot of its row, and only then gives way to the row. */
  .pin .story__box .src { position: absolute; top: 0; left: 0; width: 200px; z-index: 2; offset-anchor: 20px 22px; transform-origin: 20px 22px; offset-rotate: 0deg; offset-distance: calc(var(--gi) * 100%); transform: rotate(calc(var(--r) * (1 - var(--gi)))) scale(calc(1 - 0.5 * var(--gi))); opacity: clamp(0, 10 - var(--gi) * 10, 1); }
  .pin .story .funnel { display: none; }
  /* The head stays empty until the first account has landed and the second card has cleared it. */
  .pin .story__win .win__head > * { opacity: clamp(0, var(--g, 0) * 17.5 - 6, 1); }
  .pin .story__threads path { fill: none; stroke: var(--color-forest); stroke-width: 1.5; stroke-linecap: round; opacity: calc(min(var(--gi) * 10, (1 - var(--gi)) * 4, 1) * 0.32); }
  .pin .story__win { position: absolute; left: 40px; top: 20px; width: 520px; height: 540px; opacity: clamp(0, var(--g, 0) * 7, 1); translate: 0 calc((1 - min(var(--g, 0) * 4, 1)) * 24px); }
  .pin .story__win .win__head { height: 180px; }
  .pin .story__win .rows { transition: opacity 0.15s; }
  .pin .story__win .rows li, .pin .story__win .share span { opacity: clamp(0, var(--gi) * 10 - 9, 1); }
  .pin .story[data-ch="2"] .rows, .pin .story[data-ch="3"] .rows { opacity: 0; }
  .pin .status-stack { position: relative; display: block; height: 1.7rem; }
  .pin .status-stack .status { display: flex; position: absolute; inset: 0 auto auto 0; opacity: 0; translate: 0 0.4rem; transition: opacity 0.15s, translate 0s 0.15s; }
  .pin .story[data-ch="0"] .status[data-ch="1"], .pin .story[data-ch="1"] .status[data-ch="1"],
  .pin .story[data-ch="2"] .status[data-ch="2"], .pin .story[data-ch="3"] .status[data-ch="3"] { opacity: 1; translate: 0; transition: opacity 0.4s 0.15s, translate 0.4s var(--ease-out) 0.15s; }
  .pin .pane { position: absolute; z-index: 1; left: 40px; top: 240px; width: 520px; height: 320px; padding: 1rem 1.5rem; background: none; box-shadow: none; opacity: 0; visibility: hidden; translate: 0 0.75rem; transition: opacity 0.15s, translate 0s 0.15s, visibility 0s 0.15s; }
  .pin .story[data-ch="2"] .pane--gap, .pin .story[data-ch="3"] .pane--vault { opacity: 1; visibility: visible; translate: 0; transition: opacity 0.4s 0.15s, translate 0.6s var(--ease-out) 0.15s, visibility 0s; }
}

/* 3b. Sample household */
.sample, .how, .pricing, .three, .faq { width: var(--wrap); margin: 0 auto; padding: clamp(4rem, 9vw, 7.5rem) 0 0; }
.sample__intro { display: grid; gap: 1.25rem 4rem; align-items: end; }
.sample__intro p { max-width: 34rem; color: var(--color-muted); }
.sample__sheet { margin-top: 2.5rem; display: grid; background: var(--color-paper); border-radius: 1.5rem; box-shadow: var(--sheet); overflow: hidden; }
.sample__sources { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; background: color-mix(in oklab, var(--color-body) 60%, var(--color-paper)); }
.sample__label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.9375rem; font-weight: 500; }
.pick { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--color-paper); box-shadow: 0 0 0 1px var(--color-rule); cursor: pointer; line-height: 1.3; transition: background-color 0.2s, box-shadow 0.2s; }
.pick:hover { box-shadow: 0 0 0 1px var(--color-rule-2); }
.pick:has(:checked) { background: var(--color-forest-muted); box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-forest) 35%, transparent); }
.pick:has(:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.pick input { appearance: none; flex: none; width: 1.25rem; height: 1.25rem; margin: 0; border-radius: 0.375rem; background: var(--color-paper); box-shadow: inset 0 0 0 1.5px var(--color-rule-2); outline: none; cursor: pointer; transition: background-color 0.2s; }
.pick input:checked { background: var(--color-forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23f7f8f3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.2 10.4l3.1 3.1 6.5-7'/%3E%3C/svg%3E") center / 100% no-repeat; box-shadow: none; }
.pick b { display: block; font-size: 0.9375rem; font-weight: 500; }
.pick small { font-size: 0.8125rem; color: var(--color-muted); }
.sample__sources .btn { margin-top: 0.75rem; align-self: flex-start; }
.sample__out { padding: 1.5rem clamp(1.25rem, 3vw, 2.5rem) 0.75rem; }
.sample__total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; padding-bottom: 1.25rem; font-size: 0.9375rem; font-weight: 500; color: var(--color-muted); }
.sample__total b { color: var(--color-ink); }
.finding { padding: 1.25rem 0; border-top: 1px solid var(--color-rule); transition: opacity 0.4s, translate 0.6s var(--ease-out); }
.finding h3 { font-size: 1.375rem; }
.finding p { max-width: 36rem; margin-top: 0.375rem; font-size: 1rem; color: var(--color-muted); }
.finding--gap h3 .fig { color: var(--color-ember); }
.finding.is-off > * { display: none; }
.finding.is-off::before { content: attr(data-title); display: block; font-size: 1.125rem; font-weight: 600; color: var(--color-muted); }
.finding.is-off::after { content: attr(data-missing); font-size: 1rem; color: var(--color-muted); }
.sample__out[data-shown="false"] .finding { display: none; }
.sample__out[data-shown="false"] .findings::before { content: "Tick the sources this household has, then press Show me"; display: block; padding: 1.25rem 0; border-top: 1px solid var(--color-rule); color: var(--color-muted); }
.sample__out[data-shown="true"] .finding { animation: arrive 0.6s var(--ease-out) backwards; }
.sample__out[data-shown="true"] .finding:nth-child(2) { animation-delay: 0.08s; } .sample__out[data-shown="true"] .finding:nth-child(3) { animation-delay: 0.16s; }

/* 4. How it works */
.steps { counter-reset: step; display: grid; gap: 2rem; margin-top: 3rem; }
.steps li { counter-increment: step; position: relative; padding-top: 3.25rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 2.75rem; height: 1.75rem; border-radius: 999px; background: var(--color-forest); color: var(--color-on-forest); font-size: 0.875rem; font-weight: 600; }
.steps li::after { content: ""; position: absolute; top: 0.8rem; left: 3.25rem; right: -1.5rem; border-top: 1.5px solid color-mix(in oklab, var(--color-forest) 40%, transparent); }
.steps li:last-child::after { display: none; }
.steps p { margin-top: 0.5rem; font-size: 1rem; color: var(--color-muted); max-width: 22rem; }

/* 5. Ask: the one forest field */
.ask { margin-top: clamp(4rem, 9vw, 7.5rem); padding: clamp(4rem, 8vw, 6.5rem) max(var(--gutter), (100% - 75rem) / 2); background: var(--color-forest); color: var(--color-on-forest); display: grid; gap: 3rem; align-items: center; }
.ask ::selection { background: var(--color-sage); }
.ask__intro > p { max-width: 30rem; margin-top: 1.25rem; color: color-mix(in oklab, var(--color-on-forest) 78%, var(--color-forest)); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 2rem; padding: 0.25rem; border-radius: 1.5rem; background: color-mix(in oklab, var(--color-on-forest) 12%, transparent); }
.tabs button { height: 2.25rem; padding: 0 1rem; border: 0; border-radius: 999px; background: none; color: color-mix(in oklab, var(--color-on-forest) 82%, var(--color-forest)); font: 500 0.9375rem/1 Figtree, sans-serif; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.tabs button:hover { color: var(--color-on-forest); }
.tabs button[aria-selected="true"] { background: var(--color-on-forest); color: var(--color-ink); }
.ask :focus-visible { outline-color: var(--color-sage); }
.ask [data-for] { display: none; }
.ask[data-tab="meraia"] [data-for~="meraia"], .ask[data-tab="claude"] [data-for~="claude"], .ask[data-tab="chatgpt"] [data-for~="chatgpt"] { display: revert; }
.ask .ask__intro > .ask__note { color: var(--color-on-forest); min-height: 3.2em; }
.ask .ask__coming { margin-top: 1rem; }
.no-js .tabs { display: none; }
.no-js .ask .ask__note { display: block; }
.ask__win { color: var(--color-ink); box-shadow: 0 30px 70px -30px oklch(12% 0.03 160 / 70%); }
.chat { padding: 1.5rem clamp(1.25rem, 3vw, 2rem) 1.25rem; }
.chat__q { width: fit-content; max-width: 85%; margin-left: auto; padding: 0.75rem 1rem; border-radius: 1.1rem 1.1rem 0.3rem 1.1rem; background: var(--color-paper-3); font-size: 1rem; line-height: 1.4; }
.chat__tools { margin-top: 1.25rem; font-size: 0.875rem; color: var(--color-muted); }
.chat__tools li { display: flex; align-items: center; gap: 0.5rem; padding: 0.125rem 0; }
.chat__tools li::before { content: ""; width: 0.9rem; height: 0.4rem; border-radius: 999px; background: var(--color-sage); }
.chat__a { margin-top: 1.25rem; }
.chat__scope { font-size: 0.875rem; color: var(--color-muted); }
.bars { margin-top: 1rem; }
.bars li { display: flex; justify-content: space-between; gap: 1rem; position: relative; padding: 0.5rem 0 1rem; font-size: 0.9375rem; }
.bars li::before, .bars li::after { content: ""; position: absolute; left: 0; bottom: 0.3rem; height: 0.4rem; border-radius: 999px; }
.bars li::before { width: 100%; background: var(--color-track); }
.bars li::after { width: var(--w); background: var(--c, var(--color-forest)); }
.chat .status { margin-top: 0.75rem; }
.chat__foot { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--color-rule); font-size: 0.8125rem; color: var(--color-muted); }

/* 6. Yours: iris is what the user made */
.yours { padding: clamp(4rem, 8vw, 6.5rem) max(var(--gutter), (100% - 75rem) / 2); background: var(--color-iris-muted); display: grid; gap: 3rem; align-items: center; }
.yours__intro p { max-width: 31rem; margin-top: 1.25rem; color: var(--color-ink-2); }
.yours__plugins { font-size: 1rem; padding-top: 1rem; border-top: 1px solid color-mix(in oklab, var(--color-iris) 22%, transparent); }
.yours__plugins b { font-weight: 600; }
.board { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.875rem; }
.widget { padding: 1rem 1.25rem 1rem; background: var(--color-paper); border-radius: 0.875rem; box-shadow: var(--sheet); }
.widget--wide { grid-column: 1 / -1; }
.widget__title { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9375rem; font-weight: 500; }
.widget__title small { font-size: 0.8125rem; font-weight: 400; color: var(--color-muted); }
.widget .fig--lg { margin-top: 0.5rem; font-size: 1.75rem; }
.widget__note { margin-top: 0.25rem; font-size: 0.8125rem; color: var(--color-muted); }
.widget .bars { margin-top: 0.375rem; }
.widget--mine { position: absolute; right: 0.5rem; bottom: 3.25rem; width: calc(50% - 0.4375rem); rotate: 1.5deg; box-shadow: 0 0 0 1.5px var(--color-iris-fill), 0 24px 40px -20px var(--color-shadow-deep); }
.widget--mine .widget__title small { color: var(--color-iris); font-weight: 500; }
.widget--slot { display: grid; place-items: end start; min-height: 11.5rem; background: none; box-shadow: none; border: 1.5px dashed color-mix(in oklab, var(--color-iris) 45%, transparent); font-size: 0.8125rem; color: var(--color-iris); }

/* 7. The letter */
.letter { padding: clamp(4rem, 9vw, 7.5rem) var(--gutter) 0; }
.letter__sheet, .close__sheet { position: relative; isolation: isolate; overflow: hidden; background: var(--color-paper); box-shadow: var(--sheet); }
.letter__sheet { max-width: 46rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem); border-radius: 1.75rem; }
/* Northern lights, low and to the end side (ds.css, .pulse-ambient). */
/* On the closing sheet only: green along the hem, purple above it, ember at the fringe; the top and the start side stay plain. */
.close__sheet::before { content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(ellipse 12% 16% at 100% 52%, color-mix(in oklab, var(--color-ember-fill) 30%, var(--color-paper)), transparent),
    radial-gradient(ellipse 24% 34% at 100% 82%, color-mix(in oklab, var(--color-iris-fill) 36%, var(--color-paper)), transparent),
    radial-gradient(ellipse 62% 28% at 72% 100%, var(--color-forest-muted), transparent); }
.letter__sheet h2 { max-width: 14ch; }
.letter__sheet > p { max-width: 34rem; margin-top: 1.25rem; font-size: 1.1875rem; line-height: 1.6; }
.letter__sheet > h2 + p { margin-top: 2rem; }
.letter__sign { font-size: 1.375rem !important; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3 !important; margin-top: 2.5rem !important; }
.letter__sign small { display: block; font-size: 0.9375rem; font-weight: 400; letter-spacing: 0; color: var(--color-muted); }
.letter__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; font-size: 1rem !important; color: var(--color-muted); margin-top: 2rem !important; }

/* 8. Pricing */
.pricing h2, .three h2 { max-width: 18ch; }
.prices { margin-top: 2.5rem; }
.prices > div { display: grid; gap: 0.25rem 2rem; padding: 1.5rem 0; border-top: 1px solid var(--color-rule-2); }
.prices dt { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }
.prices dd b { display: block; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; color: var(--color-forest); }
.prices dd span { color: var(--color-muted); }
.pricing__line { padding-top: 1.5rem; border-top: 1px solid var(--color-rule-2); font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }

/* 9. Three questions */
.answers { display: grid; gap: 2rem 3rem; margin-top: 2.5rem; }
.answers > div { padding-top: 1.25rem; border-top: 1px solid var(--color-rule-2); }
.answers dt { font-size: 1rem; font-weight: 500; color: var(--color-muted); }
.answers dd { margin-top: 0.5rem; font-size: 1.375rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; text-wrap: pretty; }

/* 10. Questions */
.faq { display: grid; gap: 2rem 4rem; }
.faq details { border-top: 1px solid var(--color-rule-2); }
.faq details:last-child { border-bottom: 1px solid var(--color-rule-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 0.875rem; height: 0.875rem; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: rotate 0.4s var(--ease-out); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { max-width: 38rem; padding-bottom: 1.5rem; color: var(--color-muted); }

/* 11. Close */
.close { padding: clamp(4rem, 9vw, 7.5rem) var(--gutter) 0; }
.close__sheet { max-width: 75rem; margin: 0 auto; padding: clamp(1.75rem, 5vw, 4rem); border-radius: 1.75rem; display: grid; gap: 2rem 4rem; }
.close__copy h2 { max-width: 14ch; }
.close__copy p { max-width: 26rem; margin-top: 1.25rem; color: var(--color-ink-2); }
.close__copy .close__risk { font-size: 1rem; color: var(--color-muted); margin-top: 0.75rem; }
.signup { display: flex; flex-direction: column; gap: 1rem; }
.signup h3 { font-size: 1.375rem; }
.signup p { font-size: 1rem; color: var(--color-muted); margin-top: -0.5rem; }
.signup label { display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.875rem; font-weight: 500; }
.signup input[type="email"], .signup input[type="text"] { height: 2.875rem; padding: 0 1rem; border: 0; border-radius: 0.625rem; background: var(--color-paper); box-shadow: inset 0 0 0 1px var(--color-rule-2), 0 1px 2px var(--color-shadow); font: 400 1rem Figtree, sans-serif; color: var(--color-ink); }
.signup input::placeholder { color: var(--color-muted); opacity: 1; }
.signup input:focus-visible { outline-offset: 0; }
.signup .check { flex-direction: row; align-items: center; gap: 0.5rem; font-size: 0.9375rem; font-weight: 400; }
.signup .check input { width: 1.1rem; height: 1.1rem; margin: 0; }
.signup .btn { align-self: flex-start; margin-top: 0.25rem; }
.signup--quiet { padding-top: 1.75rem; border-top: 1px solid var(--color-rule-2); }

.foot { width: var(--wrap); margin: clamp(4rem, 8vw, 6rem) auto 0; padding: 2rem 0 3rem; border-top: 1px solid var(--color-rule-2); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; font-size: 0.9375rem; color: var(--color-muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-left: auto; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--color-ink); }

/* Below the desktop scene the six sources are chips, tied to the window by a short fall of threads. */
@media (max-width: 62.49rem) {
  .gather { gap: 0; }
  .gather__sources { order: -3; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; }
  .gather .src { padding: 0.375rem 0.75rem; border-radius: 999px; box-shadow: 0 0 0 1px var(--color-rule-2); }
  .gather .src b { font-size: 0.8125rem; white-space: nowrap; }
  .gather .src small, .gather .src .fig { display: none; }
  .gather .funnel { order: -2; }
  .gather__win { order: -1; max-width: 34rem; width: 100%; align-self: center; }
  .gather figcaption { margin-top: 1rem; }
}
@media (max-width: 62.49rem) { .nav__links { display: none; } .nav__demo { margin-left: auto; } }
@media (max-width: 47.99rem) {
  .rows small:not(.warn) { display: none; }
  .tabs button { padding: 0 0.75rem; font-size: 0.875rem; }
  .widget--mine { position: static; width: auto; rotate: none; }
  .widget--slot { display: none; }
  h1 { font-size: 2.125rem; }
  .lede { font-size: 1.0625rem; margin-top: 1rem; }
  .hero { padding-top: 1.25rem; }
  .actions { margin-top: 1.25rem; }
  .gather { margin-top: 1.75rem; }
  .nav__links, .nav__demo { display: none; }
  .nav .btn--primary { margin-left: auto; }
  .foot nav { margin-left: 0; }
}
@media (min-width: 48rem) {
  .sample__intro { grid-template-columns: 1fr 1fr; }
  .sample__sheet { grid-template-columns: minmax(17rem, 21rem) 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .prices > div { grid-template-columns: minmax(14rem, 1fr) 2fr; align-items: baseline; }
  .answers { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .ask { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4.5rem; }
  .yours { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4.5rem; }
  .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .close__sheet { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); align-items: start; }
  .close__copy { grid-column: 1 / 3; }
  .close__made { grid-column: 3; grid-row: 1; align-self: start; justify-self: end; flex-direction: column; align-items: flex-end; }
  .close__made img { width: 7.5rem; }
  .signup { grid-row: 2; grid-column: 1; }
  .signup--quiet { grid-column: 2; padding-top: 0; border-top: 0; }
}
@media (max-width: 63.99rem) { .steps li::after { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
/* pinned cards follow the path main.js gives them */
@media (min-width: 64rem) and (min-height: 40rem) { .pin .story__box .src { offset-path: var(--path); } }

/* Review round 1 additions */
.funnel { display: block; width: 100%; height: 2.25rem; fill: none; stroke: var(--color-forest); stroke-width: 1.5; stroke-linecap: round; opacity: 0.4; }
.yours .tag { background: color-mix(in oklab, var(--color-iris-fill) 18%, var(--color-paper)); color: var(--color-iris); }
.signup p.signup__status { min-height: 3rem; margin-top: 0; font-size: 0.9375rem; }
.signup[data-state="invalid"] .signup__status, .signup[data-state="failed"] .signup__status { color: var(--color-ember); }
.signup[data-state="invalid"] input[type="email"] { box-shadow: inset 0 0 0 1.5px var(--color-ember-fill); }
.signup[data-state="sending"] .btn { pointer-events: none; opacity: 0.6; }
.signup[data-state="sent"] > :not(h3, .signup__status) { display: none; }
.signup[data-state="sent"] p.signup__status { font-size: 1.0625rem; color: var(--color-forest); }
