/* Riselist — quiet luxury. See DESIGN_PLAN.md */

:root {
  --mist: #EEF0EF;
  --linen: #F7F7F4;
  --ink: #121B1C;
  --ink-2: #1B2627;
  --moss: #2F5D50;
  --moss-deep: #244A40;
  --champagne: #E3C9A8;
  --slate: #5B6664;
  --hair: rgba(18, 27, 28, 0.12);
  --hair-on-ink: rgba(236, 233, 225, 0.16);
  --pearl: #ECE9E1;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.22, 0.61, 0.21, 1);
  --ease-soft: cubic-bezier(0.33, 0, 0.1, 1);
  --dur: 900ms;

  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--moss); text-decoration: none; text-underline-offset: 0.18em; }
a:hover { color: var(--moss-deep); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--moss); outline-offset: 4px; border-radius: 4px; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.skip {
  position: absolute; left: 16px; top: -48px;
  background: var(--ink); color: var(--pearl); padding: 10px 14px; border-radius: 10px; z-index: 100;
}
.skip:focus { top: 16px; }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Type ---------- */

.display, h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 350;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
  font-variation-settings: "opsz" 120, "SOFT" 30;
}
h1 { font-size: clamp(42px, 6.2vw, 78px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; }

.label {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--moss);
  margin: 0 0 18px;
  font-variation-settings: "opsz" 24;
}
.on-ink .label { color: var(--champagne); }

.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--slate); max-width: 34em; text-wrap: pretty; margin: 0; }
.on-ink .lead { color: rgba(236, 233, 225, 0.78); }

p { margin: 0; max-width: 66ch; text-wrap: pretty; }
.muted { color: var(--slate); }
.small { font-size: 14px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: 0.005em;
  transition: background-color 320ms var(--ease-soft), color 320ms var(--ease-soft), border-color 320ms var(--ease-soft), transform 320ms var(--ease-soft);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--moss); color: #FFFFFF; }
.btn-primary:hover { background: var(--moss-deep); color: #FFFFFF; }
.btn-ghost { border: 1px solid var(--hair); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.on-ink .btn-primary { background: var(--champagne); color: var(--ink); }
.on-ink .btn-primary:hover { background: #EBD6BB; color: var(--ink); }
.on-ink .btn-ghost { border-color: var(--hair-on-ink); color: var(--pearl); }
.on-ink .btn-ghost:hover { border-color: var(--pearl); color: var(--pearl); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 240, 239, 0.85);
  background: color-mix(in srgb, var(--mist) 82%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 400ms var(--ease-soft);
}
.site-header.scrolled { border-bottom-color: var(--hair); }
.site-header { transition: border-color 400ms var(--ease-soft), background-color 500ms var(--ease-soft); }
.site-header.on-dark { background: rgba(18, 27, 28, 0.8); background: color-mix(in srgb, var(--ink) 78%, transparent); border-bottom-color: var(--hair-on-ink); }
.site-header.on-dark .brand-name { color: var(--pearl); }
.site-header.on-dark .nav-toggle { border-color: var(--hair-on-ink); color: var(--pearl); }
@media (min-width: 921px) {
  .site-header.on-dark .nav a { color: var(--pearl); }
  .site-header.on-dark .nav a:hover { color: #FFFFFF; }
  .site-header.on-dark .nav a.btn-primary { background: var(--champagne); color: var(--ink); }
  .site-header.on-dark .nav a.btn-primary:hover { background: #EAD4B6; color: var(--ink); }
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; font-variation-settings: "opsz" 40; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--slate); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.nav a.btn-primary { color: #FFFFFF; }
.nav a.btn-primary:hover { color: #FFFFFF; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--hair); align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--linen); border-bottom: 1px solid var(--hair);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 17px; }
  .nav a:last-of-type { border-bottom: 0; }
  .nav .btn { margin-top: 12px; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(80px, 11vw, 160px); }
.section + .section { border-top: 1px solid var(--hair); }
.section.on-ink { background: var(--ink); color: var(--pearl); border-top: 0; }
.section.on-ink + .section { border-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin-top: 18px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  padding-block: clamp(56px, 8vw, 120px) clamp(72px, 9vw, 140px);
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
}

.hero h1 { max-width: 11.5em; }
.hero .lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note { margin-top: 28px; font-size: 14px; color: var(--slate); }

/* Dawn: three soft radial fields that drift. Transform-only. */
.dawn { position: absolute; inset: 0 -10%; pointer-events: none; z-index: 0; }
.dawn span {
  position: absolute; border-radius: 50%;
  will-change: transform;
}
.dawn .d1 { width: 70vw; height: 70vw; right: -15vw; top: -10vw; background: radial-gradient(closest-side, rgba(227,201,168,0.7), rgba(227,201,168,0) 70%); animation: drift1 42s var(--ease-soft) infinite alternate; }
.dawn .d2 { width: 60vw; height: 60vw; right: 10vw; top: 10vw; background: radial-gradient(closest-side, rgba(47,93,80,0.18), rgba(47,93,80,0) 70%); animation: drift2 54s var(--ease-soft) infinite alternate; }
.dawn .d3 { width: 50vw; height: 50vw; left: -15vw; bottom: -8vw; background: radial-gradient(closest-side, rgba(255,255,255,0.9), rgba(255,255,255,0) 70%); animation: drift3 48s var(--ease-soft) infinite alternate; }
@keyframes drift1 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-6vw, 5vw, 0) scale(1.08); } }
@keyframes drift2 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(5vw, -4vw, 0) scale(1.1); } }
@keyframes drift3 { from { transform: translate3d(0,0,0); } to { transform: translate3d(6vw, -3vw, 0); } }

/* Hero rise graphic */
.rise-card {
  position: relative; margin: 0;
  background: var(--linen);
  border: 1px solid var(--hair);
  border-radius: 24px;
  padding: clamp(20px, 2.4vw, 30px);
  box-shadow: 0 30px 80px -40px rgba(18, 27, 28, 0.25);
}
.rise-card figcaption { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 14px; }
.rise-card .ttl { font-family: var(--serif); font-size: 20px; font-variation-settings: "opsz" 40; }
.rise-card .wk { font-size: 14px; color: var(--slate); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rise-svg { width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 10px; font-size: 13px; color: var(--slate); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 22px; height: 2px; background: var(--moss); }
.legend i.dot { background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 7px); }
.rise-card .caption { margin-top: 14px; font-size: 13px; color: var(--slate); }

/* Load reveal (hero only) */
.js .rv { opacity: 0; transform: translateY(18px); }
.rv.in { opacity: 1; transform: none; transition: opacity 1100ms var(--ease-out), transform 1100ms var(--ease-out); }
.rv.in.d1 { transition-delay: 80ms; }
.rv.in.d2 { transition-delay: 200ms; }
.rv.in.d3 { transition-delay: 320ms; }
.rv.in.d4 { transition-delay: 440ms; }
.rv.in.d5 { transition-delay: 560ms; }

/* ---------- Statement band ---------- */
.statement { text-align: center; padding-block: clamp(64px, 9vw, 120px); }
.statement p {
  margin-inline: auto; max-width: 20em;
  font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.18;
  font-variation-settings: "opsz" 96, "SOFT" 40;
}
.statement em { font-style: italic; color: var(--moss); }

/* ---------- Scroll story (the window) ---------- */
.story .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-steps { display: grid; gap: 0; }
.story-step { min-height: 56vh; display: flex; align-items: center; }
.story-step:first-child { min-height: 40vh; }
.story-step .inner { opacity: 0.62; transform: translateY(8px); transition: opacity 700ms var(--ease-soft), transform 700ms var(--ease-soft); }
.story-step.active .inner { opacity: 1; transform: none; }
.story-step h3 { margin-bottom: 12px; }
.story-step p { color: rgba(236, 233, 225, 0.9); }
.story-stage { position: sticky; top: 100px; }
.story-stage .rise-card { background: var(--ink-2); border-color: var(--hair-on-ink); box-shadow: none; }
.story-stage .ttl, .story-stage .wk { color: var(--pearl); }
.story-stage .wk { color: rgba(236,233,225,0.7); }
.story-stage .legend, .story-stage .caption { color: rgba(236, 233, 225, 0.7); }
.story-stage .legend i { background: var(--champagne); }
.story-stage .legend i.dot { background: repeating-linear-gradient(90deg, var(--pearl) 0 3px, transparent 3px 7px); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.stat { border: 1px solid var(--hair-on-ink); border-radius: 16px; padding: 12px 14px; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2vw, 26px); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: rgba(236, 233, 225, 0.65); }
.stat.hi { background: var(--champagne); border-color: var(--champagne); color: var(--ink); }
.stat.hi span { color: rgba(18, 27, 28, 0.7); }
.verdict { margin-top: 14px; min-height: 2.8em; font-size: 15px; color: var(--pearl); }

.story-scrub { display: none; margin-top: 18px; }
@media (max-width: 920px) {
  .story .wrap { grid-template-columns: 1fr; }
  .story-stage { position: static; order: -1; margin-bottom: 32px; }
  .story-step { min-height: 0; padding: 22px 0; border-top: 1px solid var(--hair-on-ink); }
  .story-step:first-child { min-height: 0; }
  .story-step .inner { opacity: 1; transform: none; }
  .story-scrub { display: block; }
}
.story-scrub label { display: block; font-size: 13px; color: rgba(236,233,225,0.7); margin-bottom: 6px; }
.story-scrub input[type=range] { width: 100%; accent-color: var(--champagne); }
.story-scrub.show { display: block; }

/* ---------- Demo ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--hair); color: var(--ink); background: transparent;
  font-weight: 500; font-size: 15px;
  transition: background-color 320ms var(--ease-soft), color 320ms var(--ease-soft), border-color 320ms var(--ease-soft);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--pearl); border-color: var(--ink); }
.controls { display: grid; gap: 22px; margin-top: 8px; }
.control-row { display: flex; flex-wrap: wrap; gap: 28px 40px; }
.control-row .group { display: grid; gap: 10px; }
.control-row .group > span { font-size: 13px; color: var(--slate); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--hair); border-radius: 999px; }
.seg .chip { border: 0; min-height: 40px; }
.seg .chip[aria-pressed="true"] { background: var(--moss); color: #fff; }

.demo-summary { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.demo-summary .ttl { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); font-variation-settings: "opsz" 40; }
.demo-summary .note { font-size: 13px; color: var(--slate); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 22px; }
.card {
  background: var(--linen); border: 1px solid var(--hair); border-radius: 22px; padding: 22px;
  display: grid; gap: 16px; align-content: start;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms var(--ease-soft);
}
.card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; color: var(--ink); background: var(--mist); border: 1px solid var(--hair); }
.card .handle { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub { font-size: 13px; color: var(--slate); }
.match { text-align: right; }
.match b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1; color: var(--moss); font-variant-numeric: tabular-nums; }
.match span { font-size: 11px; color: var(--slate); }
.vel { font-family: var(--serif); font-weight: 300; font-size: 56px; line-height: 0.95; letter-spacing: -0.03em; font-variation-settings: "opsz" 144, "SOFT" 50; font-variant-numeric: tabular-nums; }
.vel small { display: block; font-family: var(--sans); font-size: 14px; color: var(--slate); letter-spacing: 0; margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--hair); color: var(--slate); }
.tag.hi { border-color: transparent; background: rgba(47, 93, 80, 0.1); color: var(--moss); }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 14px; }
.row3 span { display: block; font-size: 12px; color: var(--slate); }
.row3 b { font-weight: 600; }
.why { font-size: 14px; color: var(--slate); border-top: 1px solid var(--hair); padding-top: 12px; }
.why b { color: var(--ink); font-weight: 600; }

.card.more { background: transparent; border-style: dashed; justify-content: space-between; }
.card.more .ttl { font-family: var(--serif); font-size: 26px; line-height: 1.1; font-variation-settings: "opsz" 60; }

/* ---------- Checks list ---------- */
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair-on-ink); }
.checks li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px 48px; padding: 30px 0; border-bottom: 1px solid var(--hair-on-ink); }
.checks h3 { color: var(--pearl); font-weight: 350; }
.checks p { color: rgba(236, 233, 225, 0.75); font-size: 17px; }
@media (max-width: 760px) { .checks li { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 22px; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 15px; color: var(--moss); font-variant-numeric: tabular-nums; }
.steps h3 { margin: 14px 0 10px; }
.steps p { color: var(--slate); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; align-items: stretch; }
.plan { border-top: 1px solid var(--ink); padding: 28px 0 0; display: grid; gap: 16px; align-content: start; }
.plan.featured { background: var(--ink); color: var(--pearl); border: 0; border-radius: 24px; padding: 30px; }
.plan h3 { font-weight: 400; }
.price { font-family: var(--serif); font-weight: 300; font-size: 48px; letter-spacing: -0.02em; line-height: 1; font-variation-settings: "opsz" 144; }
.price small { font-family: var(--sans); font-size: 14px; color: var(--slate); letter-spacing: 0; margin-left: 8px; }
.plan.featured .price small, .plan.featured .muted { color: rgba(236, 233, 225, 0.7); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: currentColor; opacity: 0.6; }
.plan .btn { justify-self: start; margin-top: 8px; }
.promise { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.promise b { font-weight: 600; }

/* ---------- Founding ---------- */
.founding .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 820px) { .founding .wrap { grid-template-columns: 1fr; } }
.founding .btn { margin-top: 10px; }

/* ---------- Creators + FAQ ---------- */
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: clamp(40px, 6vw, 96px); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 24px; color: var(--moss); transition: transform 320ms var(--ease-soft); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--pearl); padding: clamp(56px, 8vw, 96px) 0 36px; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; align-items: flex-end; }
.site-footer .wordmark { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 10vw, 140px); line-height: 0.9; letter-spacing: -0.03em; font-variation-settings: "opsz" 144, "SOFT" 50; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.site-footer nav a, .site-footer a { color: var(--pearl); }
.site-footer nav a:hover { color: var(--champagne); text-decoration: none; }
.site-footer .bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hair-on-ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; font-size: 14px; color: rgba(236, 233, 225, 0.65); }

/* ---------- Scroll reveals ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(14px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > :nth-child(1) { transition-delay: 0ms; }
.stagger.in > :nth-child(2) { transition-delay: 70ms; }
.stagger.in > :nth-child(3) { transition-delay: 140ms; }
.stagger.in > :nth-child(4) { transition-delay: 210ms; }
.stagger.in > :nth-child(5) { transition-delay: 280ms; }
.stagger.in > :nth-child(6) { transition-delay: 350ms; }
.stagger.in > :nth-child(7) { transition-delay: 420ms; }

/* ---------- Legal / inner pages ---------- */
.page { padding-block: clamp(56px, 8vw, 120px); }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 18px; }
.page h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 56px 0 14px; }
.page h3 { font-size: 21px; margin: 32px 0 10px; }
.page p, .page li { color: #2F3A3B; }
.page p { margin: 0 0 16px; max-width: none; }
.page ul, .page ol { padding-left: 22px; margin: 0 0 16px; }
.page li { margin: 6px 0; }
.page table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0 24px; }
.page th, .page td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--hair); }
.page th { font-weight: 600; }
.page .meta { color: var(--slate); font-size: 15px; margin-bottom: 36px; }
.page .notice { border: 1px solid var(--hair); border-radius: 16px; padding: 16px 18px; background: var(--linen); margin: 0 0 28px; font-size: 15px; }
.page hr { border: 0; border-top: 1px solid var(--hair); margin: 40px 0; }
.page strong { font-weight: 600; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dawn span { animation: none !important; }
  .rv, .reveal, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .story-step .inner { opacity: 1; transform: none; transition: none; }
  .card, .btn, .chip, .faq summary::after { transition: none !important; }
}

/* utilities replacing former inline styles */
.mt-16 { margin-top: 16px; }
.faq-title { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 8px; }
.founding-alt { margin-top: 14px; color: rgba(236,233,225,0.7); }
.founding-link { color: var(--champagne); }

/* links inside running text are underlined, not colour-only */
.page p a, .page li a, .page td a, .faq p a, .founding p a, .checks p a, .small a, .page-404 p a {
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(47, 93, 80, 0.45);
}
.page p a:hover, .page li a:hover, .page td a:hover { text-decoration-color: currentColor; }

/* small phones: stats and segmented control */
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat.hi { grid-column: 1 / -1; }
  .seg { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 22px; width: 100%; }
  .seg .chip { padding: 0 8px; font-size: 14px; }
}
/* long URLs in policies must wrap */
.page pre, .page code, .page a { overflow-wrap: anywhere; }
.page pre { background: var(--linen); border: 1px solid var(--hair); border-radius: 14px; padding: 18px 20px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.section, .page h2 { scroll-margin-top: 88px; }
