/* ============================================================
   ItsAllDone — design system
   Apple-inspired: white space, restraint, precision.
   ============================================================ */

:root {
  /* Colour — Clarity palette */
  --ink: #3C3C3B;             /* Charcoal — text is never black */
  --ink-soft: #5a5a58;
  --ink-faint: #8b8b89;
  --paper: #ffffff;
  --paper-grey: #f5f5f7;
  --hairline: rgba(0, 0, 0, 0.08);
  --accent: #0078C1;          /* Mid Blue — buttons, icons, highlights */
  --accent-bright: #009FE3;   /* Clarity Blue — hovers, accents on dark */
  --accent-deep: #003F6E;     /* Dark Blue — small text accents, navy band */
  --accent-tint: #e5f3fb;
  --done: #006900;            /* Dark Green — the tick, and "done" states only */
  --done-bright: #1FA333;
  --done-tint: #e9f3e9;
  --red: #C51A2D;            /* Clarity Red — sparing highlights only */
  --amber: #b45309;
  --amber-tint: #fdf3e3;

  /* Type */
  --font: "Alcyone", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;

  /* Rhythm */
  --max: 1120px;
  --max-narrow: 780px;
  --section-pad: clamp(5rem, 10vw, 8.5rem);
  --radius: 18px;
  --radius-sm: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

/* ---------- Reset ---------- */
/* Alcyone body face */
@font-face {
  font-family: "Alcyone";
  src: url("../fonts/Alcyone-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alcyone";
  src: url("../fonts/Alcyone-RegularItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Alcyone";
  src: url("../fonts/Alcyone-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alcyone";
  src: url("../fonts/Alcyone-SemiBold.woff2") format("woff2");
  font-weight: 550 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alcyone";
  src: url("../fonts/Alcyone-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--accent-tint); color: var(--accent); }

/* ---------- Type scale ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; color: var(--ink); text-wrap: balance; }
.display {
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.028em;
}
h2, .h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
h3, .h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.25; }
.lede {
  font-size: clamp(1.125rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.1rem;
}
.muted { color: var(--ink-faint); }
.small { font-size: 0.9rem; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.wrap--narrow { max-width: var(--max-narrow); }
.section { padding-block: var(--section-pad); }
.section--grey { background: var(--paper-grey); }
.section--wash { background: linear-gradient(180deg, #e6f5fc 0%, #f3fafe 100%); }        /* Clarity Blue wash */
.section--washnavy { background: linear-gradient(180deg, #edf2f7 0%, #f6f9fb 100%); }    /* Dark Blue wash */
.section--washgreen { background: linear-gradient(180deg, #ebf4ec 0%, #f5faf5 100%); }   /* Dark Green wash */
.section--navy { background: var(--accent-deep); color: #cfe0ee; }
.section--navy h2, .section--navy h3 { color: #ffffff; }
.section--navy .lede { color: #b8d2e6; }
.section--navy .eyebrow { color: #7fc9ef; }
.btn--light { background: #ffffff; color: var(--accent-deep); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.btn--ghostlight { color: #ffffff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.45); }
.btn--ghostlight:hover { box-shadow: inset 0 0 0 1.5px #ffffff; transform: translateY(-2px); }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 550;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease;
  will-change: transform;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.18); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-bright); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,120,193,0.28); }
.btn--done { background: var(--done); color: #fff; }
.btn--done:hover { background: #005200; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,105,0,0.28); }
.section--navy .btn--done { background: var(--done-bright); }
.section--navy .btn--done:hover { background: #24b53a; }
.footer .btn--done { color: #fff; }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hairline); background: transparent; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { font-weight: 550; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 0.35rem; }
.link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow .arrow { transition: transform 0.35s var(--ease); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--hairline); background: rgba(255, 255, 255, 0.85); }
.nav__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 62px;
}
.nav__logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.nav__logo .done, .footer__brand .done { color: var(--done); }
.logoimg { display: block; height: 26px; width: auto; }
.logoimg--footer { height: 24px; }
.nav__logo .tick { width: 26px; height: 26px; }
.nav__menu { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__link:hover, .nav__item.is-open > .nav__link { color: var(--ink); background: rgba(0,0,0,0.05); }
.nav__link .chev { width: 9px; height: 9px; opacity: 0.55; transition: transform 0.3s var(--ease); }
.nav__item.is-open .chev { transform: rotate(180deg); }
.nav__cta { margin-left: 0.5rem; padding: 0.55rem 1.2rem; font-size: 0.92rem; }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.98);
  min-width: 300px;
  background: rgba(255,255,255,0.97);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 64px rgba(0,0,0,0.14);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.nav__item.is-open .dropdown, .nav__item:hover .dropdown, .nav__item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}
.dropdown a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 9px;
  transition: background 0.2s ease;
}
.dropdown a:hover { background: var(--paper-grey); }
.dropdown a strong { display: block; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; }
.dropdown a span { display: block; font-size: 0.82rem; color: var(--ink-faint); line-height: 1.45; margin-top: 0.1rem; }

/* Mobile nav */
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; position: relative; }
.nav__burger span {
  position: absolute; left: 11px; width: 22px; height: 1.8px; background: var(--ink);
  border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s;
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 25px; }
body.nav-open .nav__burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.nav-open .nav__burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__menu {
    /* Note: the header's backdrop-filter makes it the containing block for
       fixed descendants, so size against the viewport explicitly. */
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    height: calc(100vh - 62px);
    height: calc(100dvh - 62px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
    background: rgba(255,255,255,0.98);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  body.nav-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__burger { display: block; }
  .nav__item { border-bottom: 1px solid var(--hairline); }
  .nav__link { width: 100%; padding: 1rem 0.25rem; font-size: 1.1rem; border-radius: 0; justify-content: space-between; }
  .nav__link:hover { background: none; }
  .dropdown {
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border: none;
    background: none;
    padding: 0 0 0.75rem 0.75rem;
    display: none;
  }
  .nav__item.is-open .dropdown { display: block; opacity: 1; visibility: visible; transform: none; }
  .nav__cta { margin: 1.5rem 0 0; justify-content: center; padding: 0.9rem; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero { padding: calc(62px + clamp(4rem, 9vw, 7.5rem)) 0 clamp(4rem, 8vw, 6.5rem); position: relative; overflow: hidden; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 550; color: var(--ink-soft);
  background: var(--paper-grey); border: 1px solid var(--hairline);
  padding: 0.4rem 0.95rem; border-radius: 999px; margin-bottom: 1.75rem;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--done-bright); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(16,160,108,0.45);} 55% { box-shadow: 0 0 0 7px rgba(16,160,108,0);} }
.hero__title { max-width: 13ch; }
.hero__title .done { color: var(--done); }
.hero__lede { max-width: 46ch; margin-top: 1.6rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }
.hero__foot { margin-top: 2.2rem; font-size: 0.9rem; color: var(--ink-faint); }

/* Staged hero entrance */
.hero [data-stagger] { opacity: 0; transform: translateY(22px); animation: rise 0.9s var(--ease) forwards; }
.hero [data-stagger="1"] { animation-delay: 0.05s; }
.hero [data-stagger="2"] { animation-delay: 0.16s; }
.hero [data-stagger="3"] { animation-delay: 0.27s; }
.hero [data-stagger="4"] { animation-delay: 0.38s; }
.hero [data-stagger="5"] { animation-delay: 0.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } }

/* Live file card in hero */
.filecard {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0,0,0,0.10);
  padding: 1.4rem 1.5rem 1.1rem;
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
}
.filecard__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 0.9rem; border-bottom: 1px solid var(--hairline); }
.filecard__title { font-weight: 650; font-size: 0.95rem; letter-spacing: -0.01em; }
.filecard__sub { font-size: 0.78rem; color: var(--ink-faint); font-family: var(--font-mono); }
.filecard__rows { padding-top: 0.4rem; }
.filerow {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.72rem 0.2rem;
  border-bottom: 1px solid rgba(0,0,0,0.045);
  opacity: 0.35;
  transition: opacity 0.5s ease;
}
.filerow:last-child { border-bottom: none; }
.filerow.is-done { opacity: 1; }
.filerow__icon {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--paper-grey);
  transition: background 0.4s ease;
}
.filerow.is-done .filerow__icon { background: var(--done-tint); }
.filerow.is-decision.is-done .filerow__icon { background: var(--amber-tint); }
.filerow__icon svg { width: 11px; height: 11px; stroke: var(--ink-faint); opacity: 0; transform: scale(0.5); transition: opacity 0.35s ease, transform 0.45s var(--ease); }
.filerow.is-done .filerow__icon svg { opacity: 1; transform: scale(1); stroke: var(--done); }
.filerow.is-decision.is-done .filerow__icon svg { stroke: var(--amber); }
.filerow__body { min-width: 0; flex: 1; }
.filerow__name { font-size: 0.9rem; font-weight: 550; letter-spacing: -0.01em; }
.filerow__meta { font-size: 0.76rem; color: var(--ink-faint); }
.filerow__state {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.22rem 0.6rem; border-radius: 999px;
  background: var(--paper-grey); color: var(--ink-faint);
  white-space: nowrap;
  transition: background 0.4s ease, color 0.4s ease;
}
.filerow.is-done .filerow__state { background: var(--done-tint); color: var(--done); }
.filerow.is-decision.is-done .filerow__state { background: var(--amber-tint); color: var(--amber); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero [data-stagger] { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ---------- Trust strip ---------- */
.truststrip { border-block: 1px solid var(--hairline); padding-block: 1.4rem; }
.truststrip__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem 2.6rem; font-size: 0.88rem; font-weight: 550; color: var(--ink-faint); letter-spacing: 0.01em; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--hairline); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--hairline); }
.stat { background: var(--paper); padding: 2.2rem 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; }
.stat__num .g { color: var(--done); }
.stat__num { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.35rem); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; min-height: 1.2em; display: flex; align-items: flex-end; }
.stat__num em { font-style: normal; color: var(--accent); }
.stat__label { margin-top: 0.7rem; font-size: 0.92rem; color: var(--ink-faint); line-height: 1.45; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 920px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,0.09); }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.96rem; color: var(--ink-soft); }
.card__icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent-tint); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 1.2rem;
}
.card__icon svg { width: 20px; height: 20px; }

/* ---------- Stages ---------- */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: stage; }
@media (max-width: 920px) { .stages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stages { grid-template-columns: 1fr; } }
.stage {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.7rem;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s ease;
}
.stage:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,0.09); border-color: rgba(0,120,193,0.35); }
.stage__num {
  font-size: 0.82rem; font-weight: 700; color: var(--accent);
  font-family: var(--font-mono); margin-bottom: 0.9rem; display: block;
}
.stage h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.stage p { font-size: 0.92rem; color: var(--ink-soft); }
.stage__call {
  margin-top: 1.1rem; display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600; color: var(--accent-deep);
  background: var(--accent-tint); padding: 0.3rem 0.75rem; border-radius: 999px;
}

/* ---------- Wash section (calculated, not generated) ---------- */
.section--wash .lede { color: var(--ink-soft); }
.section--wash .quoteline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.35;
  color: var(--ink); max-width: 24ch;
}
.section--wash .quoteline em { font-style: normal; color: var(--accent); }
.darklist { margin-top: 2.2rem; display: grid; gap: 1.2rem; }
.darklist div { display: flex; gap: 0.9rem; align-items: flex-start; font-size: 0.98rem; color: var(--ink-soft); }
.darklist strong { color: var(--ink); font-weight: 600; }
.darklist .tickmini { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--done-tint); display: grid; place-items: center; margin-top: 0.15rem; }
.darklist .tickmini svg { width: 10px; height: 10px; stroke: var(--done); }

/* Decision register card */
.register {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,63,110,0.10);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  font-size: 0.9rem;
  box-shadow: 0 16px 44px rgba(0,63,110,0.08);
}
.register__title { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; }
.register dl { display: grid; gap: 0.7rem; }
.register .row { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.7rem; border-bottom: 1px solid rgba(0,63,110,0.07); }
.register .row:last-child { border-bottom: none; padding-bottom: 0; }
.register dt { color: var(--ink-faint); }
.register dd { color: var(--ink); font-weight: 550; text-align: right; }
.register dd.good { color: var(--done); }
.register dd.warn { color: var(--amber); }

/* ---------- Statement (structure section) ---------- */
.statement {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.statement--punch {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink);
  margin-top: 2rem;
}

/* ---------- Legal pages ---------- */
.legal { font-size: 0.98rem; }
.legal h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 2.4rem 0 0.9rem; }
.legal h3 { font-size: 1.1rem; margin: 1.8rem 0 0.7rem; }
.legal p { margin-bottom: 1rem; color: var(--ink-soft); max-width: 70ch; }
.legal strong { color: var(--ink); }
.legal ul, .legal ol { margin: 0 0 1rem 1.3rem; color: var(--ink-soft); }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--accent-deep); font-weight: 550; }
.legal table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.6rem; font-size: 0.88rem; }
.legal th { text-align: left; font-weight: 650; color: var(--ink); background: var(--paper-grey); padding: 0.6rem 0.8rem; border: 1px solid var(--hairline); }
.legal td { padding: 0.6rem 0.8rem; border: 1px solid var(--hairline); color: var(--ink-soft); vertical-align: top; }
.legal blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 3px solid var(--hairline); color: var(--ink-faint); }
@media (max-width: 640px) { .legal table { display: block; overflow-x: auto; } }

/* ---------- Draft verification markers (strip at publication) ---------- */
.draftbar {
  background: var(--amber-tint); border-bottom: 1px solid rgba(180,83,9,0.2);
  padding: 0.7rem 0; font-size: 0.85rem; color: var(--amber);
  margin-top: 62px;
}
.draftbar + .hero { padding-top: clamp(3rem, 7vw, 5.5rem); }
.draftbar .wrap { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline; }
.draftbar strong { font-weight: 700; }
.vchip {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  color: var(--amber); background: var(--amber-tint);
  border: 1px dashed rgba(180,83,9,0.45);
  border-radius: 5px; padding: 0.08rem 0.35rem; margin: 0 0.15rem;
  vertical-align: super; line-height: 1.3;
}
.vtext { border-bottom: 2px dotted rgba(180,83,9,0.5); }

/* ---------- Data boundary card ---------- */
.boundary {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; font-size: 0.9rem;
  box-shadow: 0 16px 44px rgba(0,63,110,0.08);
}
.boundary__title { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; }
.boundary .row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); align-items: center; }
.boundary .row:last-child { border-bottom: none; }
.boundary dt { color: var(--ink-faint); }
.boundary dd { font-weight: 550; text-align: right; color: var(--ink); }
.boundary dd.stays { color: var(--accent-deep); }
.boundary dd.goes { color: var(--done); }
.boundary dd.blocked { color: var(--amber); }
.boundary code { font-family: var(--font-mono); font-size: 0.85em; background: var(--paper-grey); padding: 0.1rem 0.4rem; border-radius: 5px; }

/* ---------- Process map diagram ---------- */
.pmap { margin-top: clamp(2rem, 4vw, 3rem); }
.pmap__stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.pmap__col { display: flex; flex-direction: column; }
.pmap__block {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.2rem;
  flex: 1;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.pmap__block:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.pmap__col:not(:last-child) .pmap__block::after {
  content: "→"; position: absolute; right: -1.05rem; top: 50%; transform: translateY(-50%);
  color: var(--ink-faint); font-size: 0.95rem;
}
.pmap__num { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--accent); display: block; margin-bottom: 0.5rem; }
.pmap__title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.pmap__tasks { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.55; }
.pmap__gates { margin-top: 0.7rem; display: flex; flex-direction: column; gap: 0.3rem; }
.pmap__gate {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 600; color: var(--amber);
  background: var(--amber-tint); border-radius: 999px; padding: 0.2rem 0.6rem;
  align-self: flex-start;
}
.pmap__gate svg { width: 9px; height: 9px; flex-shrink: 0; }
.pmap__callrow { min-height: 2.6rem; margin-top: 0.7rem; }
.pmap__call {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; font-weight: 600; color: var(--done);
  background: var(--done-tint); border-radius: 999px; padding: 0.35rem 0.8rem;
}
.pmap__call svg { width: 12px; height: 12px; flex-shrink: 0; }
.pmap__tag { font-size: 0.76rem; color: var(--ink-faint); padding: 0.35rem 0.2rem; display: inline-block; }
.pmap__brackets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 0.9rem; }
.pmap__seconds { grid-column: 3; border-top: 1.5px solid var(--ink-faint); padding-top: 0.35rem; text-align: center; font-size: 0.74rem; color: var(--ink-faint); font-family: var(--font-mono); }
.pmap__hour { margin-top: 1rem; border: 1.5px solid var(--ink-soft); border-top: none; border-radius: 0 0 10px 10px; height: 14px; position: relative; }
.pmap__hour span {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
  padding: 0.3rem 0.9rem; font-size: 0.82rem; font-weight: 550; color: var(--ink-soft); background: inherit; white-space: nowrap;
}
.pmap__hourlabel { text-align: center; margin-top: 0.55rem; font-size: 0.85rem; font-weight: 550; color: var(--ink-soft); }
.pmap__caption { text-align: center; margin-top: 2.2rem; font-size: 0.8rem; color: var(--ink-faint); }
@media (max-width: 820px) {
  .pmap__stages { grid-template-columns: 1fr; }
  .pmap__col:not(:last-child) .pmap__block::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -1.15rem; transform: translateX(-50%); }
  .pmap__col { margin-bottom: 1rem; }
  .pmap__brackets { display: none; }
  .pmap__hour { display: none; }
  .pmap__hourlabel::before { content: "The engine's part: seconds. "; font-family: var(--font-mono); font-weight: 400; color: var(--ink-faint); display: block; font-size: 0.76rem; margin-bottom: 0.2rem; }
}
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .nav, .footer, .btn { display: none !important; }
}

/* ---------- Stage detail rows ---------- */
.stagedetail { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(1.6rem, 4vw, 3rem); padding: clamp(2.2rem, 4.5vw, 3.2rem) 0; border-bottom: 1px solid var(--hairline); align-items: start; }
.stagedetail:last-of-type { border-bottom: none; }
@media (max-width: 760px) { .stagedetail { grid-template-columns: 1fr; } }
.stagedetail__num { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; color: var(--accent); display: block; margin-bottom: 0.6rem; }
.stagedetail h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: 0.8rem; }
.stagedetail p { color: var(--ink-soft); max-width: 58ch; }
.callbox {
  background: var(--done-tint); border-radius: var(--radius); padding: 1.3rem 1.4rem;
  font-size: 0.93rem; color: var(--ink-soft);
}
.callbox--muted { background: var(--paper-grey); }
.callbox__head { display: flex; align-items: center; gap: 0.5rem; font-weight: 650; color: var(--done); font-size: 0.95rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.callbox--muted .callbox__head { color: var(--ink-soft); }
.callbox__head svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------- File index (The file page) ---------- */
.fileindex { max-width: var(--max-narrow); margin-inline: auto; }
.fileitem { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1.2rem; padding: 1.7rem 0; border-bottom: 1px solid var(--hairline); align-items: start; }
.fileitem:last-of-type { border-bottom: none; }
.fileitem__num { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; color: var(--accent); padding-top: 0.35rem; }
.fileitem h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.fileitem p { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 560px) { .fileitem { grid-template-columns: 1fr; gap: 0.3rem; } }

/* ---------- Contact form ---------- */
.contactform .field select, .contactform .field textarea, .contactform .field input[type="text"], .contactform .field input[type="email"] {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.7rem 0.9rem; border: 1.5px solid var(--hairline); border-radius: var(--radius-sm);
  background: var(--paper); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contactform .field textarea { min-height: 130px; resize: vertical; }
.contactform .field select:focus, .contactform .field textarea:focus, .contactform .field input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}

/* ---------- ROI calculator ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (max-width: 880px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-panel {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
}
.calc-results { position: sticky; top: 86px; }
.field { margin-bottom: 1.4rem; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; margin-bottom: 0.45rem; }
.field input[type="number"] {
  width: 100%; font: inherit; font-size: 1.05rem; font-weight: 550; color: var(--ink);
  padding: 0.7rem 0.9rem; border: 1.5px solid var(--hairline); border-radius: var(--radius-sm);
  background: var(--paper); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input[type="number"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field .prefix { position: relative; }
.field .prefix span { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-weight: 550; }
.field .prefix input { padding-left: 1.7rem; }
.field .help { font-size: 0.83rem; color: var(--ink-faint); line-height: 1.5; margin-top: 0.45rem; }
.calc-upside summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--accent-deep); padding: 0.4rem 0; list-style: none; }
.calc-upside summary::-webkit-details-marker { display: none; }
.calc-upside summary::before { content: "+ "; }
.calc-upside[open] summary::before { content: "− "; }
.calc-upside .field { margin-top: 0.8rem; }
.rline { padding: 1.1rem 0; border-bottom: 1px solid var(--hairline); }
.rline:last-of-type { border-bottom: none; }
.rline__label { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.rline__value { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.7rem; color: var(--ink); line-height: 1.15; margin-top: 0.15rem; }
.rline__value.big { font-size: clamp(2.2rem, 4vw, 2.9rem); color: var(--accent-deep); }
.rline__value.good { color: var(--done); }
.rline__formula { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint); margin-top: 0.35rem; line-height: 1.5; }
.rline__sub { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.3rem; }
.calc-warn {
  display: none; margin-bottom: 1rem; padding: 0.8rem 1rem; border-radius: var(--radius-sm);
  background: var(--amber-tint); color: var(--amber); font-size: 0.9rem; font-weight: 550;
}
.calc-warn.show { display: block; }
.calc-note { font-size: 0.83rem; color: var(--ink-faint); margin-top: 1.2rem; }
.sceptic { margin-top: 1.6rem; padding: 1.1rem 1.3rem; border-left: 3px solid var(--accent); background: var(--accent-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.95rem; color: var(--ink-soft); }
.copybtn { margin-top: 1.4rem; width: 100%; justify-content: center; }
.upside-caveat { font-size: 0.83rem; color: var(--amber); margin-top: 0.35rem; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--max-narrow); margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 0.4rem 0;
}
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.3rem 0.2rem;
  font-weight: 600; font-size: 1.08rem; letter-spacing: -0.015em;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; background: var(--ink-faint); border-radius: 2px;
  transition: transform 0.35s var(--ease);
}
.faq summary .plus::before { width: 14px; height: 1.8px; top: 10px; left: 4px; }
.faq summary .plus::after { width: 1.8px; height: 14px; top: 4px; left: 10.2px; }
.faq details[open] summary .plus::after { transform: rotate(90deg); }
.faq .faq__body { padding: 0 0.2rem 1.4rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- CTA band ---------- */
.ctaband { text-align: center; }
.ctaband .btn { margin-top: 2.2rem; }
.ctaband__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.ctaband__actions .btn { margin-top: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--paper-grey); border-top: 1px solid var(--hairline); padding: 4rem 0 2.5rem; font-size: 0.92rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h5 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.9rem; font-weight: 600; }
.footer a:not(.btn) { color: var(--ink-soft); display: block; padding: 0.22rem 0; transition: color 0.2s; }
.footer a:not(.btn):hover { color: var(--ink); }
.footer .btn--primary { color: #fff; }
.footer__brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.8rem; color: var(--ink); }
.footer__brand .tick { width: 24px; height: 24px; }
.footer__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); color: var(--ink-faint); font-size: 0.84rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
.footer .footer__legal a { display: inline; padding: 0; }
.footer__cert { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.8rem; flex-wrap: wrap; }
.footer .footer__cert > a { padding: 0; display: inline-flex; flex: 0 0 auto; }
.footer__cert img { width: 76px; height: 76px; display: block; flex: 0 0 auto; }
.footer__cert-text { color: var(--ink-faint); font-size: 0.8rem; line-height: 1.55; flex: 1 1 11rem; max-width: 34ch; }
.footer .footer__cert-text a { display: inline; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.footer .footer__cert-text a:hover { color: var(--ink); }
.footer__zdr { margin-top: 1.1rem; }
.footer__zdr img { width: 272px; max-width: 100%; height: auto; display: block; border-radius: 16px; }
.footer .footer__zdr > a { transition: opacity 0.2s; }
.footer .footer__zdr > a:hover { opacity: 0.92; }
.social { display: flex; gap: 1rem; margin-top: 1.2rem; }
.social a { color: var(--ink-faint); transition: color 0.2s ease; display: inline-flex; padding: 0; }
.social a:hover { color: var(--accent-deep); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Hero video ---------- */
.herovideo { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #111; box-shadow: 0 24px 64px rgba(0,0,0,0.14); }
.herovideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.herovideo__sound { position: absolute; right: 0.75rem; bottom: 0.75rem; z-index: 2; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0,0,0,0.45); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background 0.2s ease, transform 0.25s var(--ease); }
.herovideo__sound:hover { background: var(--done); transform: scale(1.06); }
.herovideo__sound svg { width: 16px; height: 16px; }
.herovideo__textbtn { color: var(--accent-deep); font-weight: 550; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
.herovideo__textbtn:hover { color: var(--accent); }

/* ---------- Cookie bar ---------- */
.cookiebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--accent-deep); color: #cfe0ee; box-shadow: 0 -8px 30px rgba(0,0,0,0.18); }
.cookiebar__inner { max-width: var(--max); margin-inline: auto; padding: 1rem clamp(1.25rem, 4vw, 2.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cookiebar p { margin: 0; font-size: 0.92rem; line-height: 1.5; max-width: 72ch; }
.cookiebar a { color: #ffffff; text-decoration: underline; text-underline-offset: 2px; }
.cookiebar__actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookiebar .btn { padding: 0.6rem 1.2rem; font-size: 0.92rem; }
.cookiebar .btn--done { background: var(--done-bright); }
@media (max-width: 640px) { .cookiebar__inner { flex-direction: column; align-items: stretch; } .cookiebar__actions { justify-content: flex-end; } }
