/* handovr site styles. Tokens first; DESIGN.md explains every role. */

:root, [data-theme='light'] {
  --bg: #F2EEE4; --surface: #FBF8F1; --surface-2: #ECE7DB;
  --ink: #0C2A33; --body: #1E3A42; --muted: #4E626A; --line: #D9D4C6; --line-2: #C9C3B3;
  --peacock: #0F4C5C; --peacock-ink: #FBF8F1; --lagoon: #0F6A7A;
  --marigold: #F2B134; --marigold-ink: #0C2A33;
  --bad: #B4321F; --bad-bg: #F6DDD3; --bad-ink: #93271A;
  --good: #17583A; --good-bg: #DCEDE2; --good-ink: #17583A;
  --warn-bg: #FBEBC4; --warn-ink: #6B4A07;
  /* isometric figure tones */
  --top: #FDFBF6; --yf: #EEEAE0; --xf: #DED9CC; --face: #F8F5EE; --faint: #CFC9BA; --mid: #8A918C;
  --glass: #0F6A7A; --shadow: 12 42 51; --mint: #CFE4E2; --mint2: #9CC8C5;
  color-scheme: light;
}
[data-theme='dark'] {
  --bg: #081A1F; --surface: #0E252C; --surface-2: #12303A;
  --ink: #E9EFEA; --body: #CBD8D6; --muted: #9DB2B4; --line: #1F3B43; --line-2: #2A4C55;
  --peacock: #0F4C5C; --peacock-ink: #FBF8F1; --lagoon: #6FB8C4;
  --marigold: #F2B134; --marigold-ink: #0C2A33;
  --bad: #FF8A70; --bad-bg: #3A1D17; --bad-ink: #FFB4A3;
  --good: #7FD1A3; --good-bg: #12322A; --good-ink: #9BE0B8;
  --warn-bg: #3A2E10; --warn-ink: #F6D58A;
  --top: #14353F; --yf: #0E2A32; --xf: #0A2128; --face: #173B45; --faint: #274A54; --mid: #6A878C;
  --glass: #6FB8C4; --shadow: 0 0 0; --mint: #1E4F57; --mint2: #4E8C93;
  color-scheme: dark;
}
:root {
  --f-display: 'Newsreader', Georgia, serif;
  --f-body: 'Geist', system-ui, sans-serif;
  --f-num: 'Geist Mono', ui-monospace, monospace;
  --t-mega: clamp(3.25rem, 1.4rem + 7.6vw, 8.5rem);
  --t-xl: clamp(2.5rem, 1.5rem + 4vw, 5.25rem);
  --t-l: clamp(1.9rem, 1.4rem + 2vw, 3.25rem);
  --t-m: clamp(1.3rem, 1.15rem + 0.6vw, 1.75rem);
  --t-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-s: 0.875rem; --t-xs: 0.78rem;
  --u: clamp(0.5rem, 0.35rem + 0.6vw, 1rem);
  --gutter: clamp(16px, 2.2vw, 32px);
  --max: 1240px;
  --r: 14px; --r-s: 8px;
  --hdr: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.87, 0, 0.13, 1);
}

/* Foundation */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; background: var(--bg); color: var(--ink); scroll-padding-top: calc(var(--hdr) + 16px); }
body { min-height: 100dvh; font-family: var(--f-body); font-size: var(--t-body); line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background: var(--bg); color: var(--ink); overflow-x: clip; transition: background-color .5s, color .5s; }
img, svg, canvas { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--marigold); color: var(--marigold-ink); }
:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 3px; border-radius: 4px; }
#main:focus { outline: none; }
html { scrollbar-color: var(--line-2) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid var(--bg); }
.num, .tab { font-family: var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.skip-link { position: fixed; left: var(--gutter); top: 12px; z-index: 200; padding: .6em 1em; background: var(--ink); color: var(--bg); border-radius: 999px; transform: translateY(-200%); }
.skip-link:focus-visible { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }

/* Reveal gating: only hidden when JS and motion are on */
.motion [data-split], .motion [data-reveal] { visibility: hidden; }
/* the reveal clips each line; give the mask room for tall capitals above and descenders below */
[data-split] > [class$='-mask'] { padding-block: .18em .12em; margin-block: -.18em -.12em; }

/* Type */
.display { font-family: var(--f-display); font-weight: 400; font-size: var(--t-xl); line-height: .98; letter-spacing: -0.03em; font-variation-settings: 'opsz' 72; }
.display em, .h2 em, .lede em { font-style: italic; }
.h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-l); line-height: 1.02; letter-spacing: -0.022em; font-variation-settings: 'opsz' 60; }
.h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.005em; }
.lede { font-size: var(--t-m); line-height: 1.38; color: var(--body); max-width: 34ch; font-family: var(--f-display); letter-spacing: -0.01em; }
.copy { color: var(--body); max-width: 62ch; }
.copy + .copy { margin-top: 1em; }
.meta { font-size: var(--t-s); color: var(--muted); }
.link { color: var(--ink); background: linear-gradient(var(--marigold) 0 0) left bottom / 100% 1.5px no-repeat; transition: background-size .4s var(--ease); display: inline-block; padding-block: 3px 1px; } /* 24px tall tap target */
@media (hover: hover) { .link:hover { background-size: 100% .42em; } }
.link:focus-visible { background-size: 100% .42em; }

/* Relay mark */
.mark { width: 28px; height: 28px; flex: none; overflow: visible; }
.mark__v { fill: var(--ink); transition: fill .5s; }
.mark__h { fill: var(--marigold); }

/* Buttons: marigold floods from the pointer's side (engine.js) */
.btn { position: relative; isolation: isolate; overflow: clip; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--peacock); color: var(--peacock-ink); font-size: .9375rem; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap; border: 1px solid var(--peacock); transition: color .3s, transform .2s var(--ease); }
[data-theme='dark'] .btn { background: var(--marigold); color: var(--marigold-ink); border-color: var(--marigold); }
.btn__fill { position: absolute; inset: 0; z-index: -1; background: var(--marigold); clip-path: circle(0% at 50% 50%); }
[data-theme='dark'] .btn__fill { background: var(--ink); }
.btn.is-filled, .btn:active { color: var(--marigold-ink); }
[data-theme='dark'] .btn.is-filled, [data-theme='dark'] .btn:active { color: var(--bg); }
.btn:active { transform: scale(.97); }
.btn:active .btn__fill { clip-path: circle(150% at 50% 50%); }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 1.0625rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
[data-theme='dark'] .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
@media (hover: hover) { .btn--ghost:hover { border-color: var(--ink); } }
.btn--ghost:focus-visible { border-color: var(--ink); }
.btn .arr { transition: translate .35s var(--ease); }
@media (hover: hover) { .btn:hover .arr, .arrow-link:hover .arr { translate: 4px 0; } }
@media (prefers-reduced-motion: reduce) { .btn:hover { color: var(--marigold-ink); } .btn:hover .btn__fill { clip-path: none; } }
.arrow-link { display: inline-flex; gap: .4em; align-items: baseline; font-weight: 500; }
.arrow-link .arr { display: inline-block; transition: translate .35s var(--ease); }

/* Header */
.hdr { position: sticky; top: 0; z-index: 60; height: var(--hdr); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 0 var(--gutter); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); transition: translate .6s var(--ease), background-color .5s; }
html.hdr-away .hdr { translate: 0 -100%; }
.brand { display: inline-flex; align-items: center; gap: 9px; padding: 6px 4px 6px 0; }
.brand .mark { width: 24px; height: 24px; }
.brand .wm { font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.035em; line-height: 1; translate: 0 .155em; } /* "handovr" has no descenders: drop the word so its ink centres on the mark */
.brand .mark { transition: rotate .7s var(--ease); }
@media (hover: hover) { .brand:hover .mark__dot { animation: baton .9s var(--ease); } }
@keyframes baton { 0% { transform: none; } 45% { transform: translate(4px, 0); } 100% { transform: none; } } /* the right half of the bar is handed on, then caught */
.nav { display: flex; justify-content: center; gap: 4px; }
.nav__a { position: relative; padding: 8px 10px; font-size: .9375rem; color: var(--muted); border-radius: 8px; transition: color .3s; }
.nav__a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav__a[aria-current='page'] { color: var(--ink); }
.nav__a[aria-current='page']::after { transform: scaleX(1); background: var(--marigold); height: 2px; }
@media (hover: hover) { .nav__a:hover { color: var(--ink); } .nav__a:hover::after { transform: scaleX(1); } }
.nav__a:focus-visible::after { transform: scaleX(1); }
.hdr__act { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9375rem; }
.menu { position: fixed; inset: var(--hdr) 0 0 0; z-index: 59; background: var(--bg); padding: 24px var(--gutter); display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-family: var(--f-display); font-size: 2.6rem; line-height: 1.12; letter-spacing: -0.03em; padding: 4px 0; border-bottom: 1px solid var(--line); }
.menu nav a[aria-current='page'] { font-style: italic; }
.menu__foot { display: flex; gap: 10px; }
.menu__foot .btn { flex: 1; min-height: 48px; }
@media (max-width: 1060px) { .nav a:nth-child(n+5) { display: none; } }
@media (max-width: 880px) {
  .nav, .hdr__act > .btn { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .hdr { grid-template-columns: auto 1fr auto; }
  .hdr__act { grid-column: 3; }
}

/* Curtain: the handover between pages */
#curtain { position: fixed; inset: 0; z-index: 120; pointer-events: none; visibility: hidden; overflow: hidden; }
.curtain__panel { position: absolute; inset: 0; background: var(--peacock); display: grid; place-items: center; }
.curtain__title { font-family: var(--f-display); font-size: var(--t-xl); color: var(--peacock-ink); letter-spacing: -0.03em; font-style: italic; opacity: 0; }
html.arriving #curtain { visibility: visible; }

/* Footer */
.ftr { margin-top: 0; border-top: 1px solid var(--line); background: var(--surface); padding: clamp(56px, 8vw, 112px) 0 28px; }
.ftr__top { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; padding-bottom: clamp(48px, 7vw, 96px); }
.ftr__line { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1; letter-spacing: -0.03em; max-width: 19ch; text-wrap: balance; }
.ftr__line em { color: var(--muted); }
.ftr__mid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.ftr__brand { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-size: 2rem; letter-spacing: -0.035em; }
.ftr__brand .mark { width: 30px; height: 30px; }
.ftr__brand > span { line-height: 1; translate: 0 .155em; }
.ftr__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ftr__cols h2 { font-size: var(--t-s); font-weight: 600; margin-bottom: 10px; }
.ftr__cols a, .ftr__cols span { display: block; color: var(--muted); padding: 4px 0; font-size: .9375rem; transition: color .25s; }
@media (hover: hover) { .ftr__cols a:hover { color: var(--ink); } }
.ftr__small { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; font-size: var(--t-xs); color: var(--muted); }
@media (max-width: 720px) { .ftr__mid { grid-template-columns: 1fr; } .ftr__cols { grid-template-columns: 1fr 1fr; } }

/* Shared section bits */
.sec { padding-block: clamp(72px, 11vw, 160px); }
.sec--tight { padding-block: clamp(48px, 7vw, 96px); }
.rule { border: 0; border-top: 1px solid var(--line); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 500; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.chip--good { background: var(--good-bg); color: var(--good-ink); border-color: transparent; }
.chip--bad { background: var(--bad-bg); color: var(--bad-ink); border-color: transparent; }
.chip--warn { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.chip--lit { background: var(--marigold); color: var(--marigold-ink); border-color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

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

/* ===================== Flow page ===================== */
.walk { position: relative; }
.walk__sticky { position: sticky; top: var(--hdr); height: calc(100svh - var(--hdr)); overflow: hidden; max-width: 1760px; margin-inline: auto; } /* wide screens: keep title, figure and card in one composition */
.walk__fig { position: absolute; left: 12px; top: 150px; width: calc(100% - 420px); height: calc(100% - 200px); overflow: visible; }
.walk__veil { position: absolute; top: 0; right: 0; bottom: 0; width: 580px; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: color-mix(in srgb, var(--bg) 28%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); mask-image: linear-gradient(to right, transparent, #000 180px); -webkit-mask-image: linear-gradient(to right, transparent, #000 180px); } /* focus veil behind the step card, on only while a card is showing */
.walk__veil.is-on { opacity: 1; }
.walk__wire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.walk__title { position: absolute; left: var(--gutter); top: 28px; max-width: 22ch; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 1.2rem + 2.4vw, 3.6rem); line-height: .98; letter-spacing: -0.03em; pointer-events: none; z-index: 2; font-variation-settings: 'opsz' 72; }
.walk__title em { font-style: italic; color: var(--lagoon); }
.walk__cards { position: absolute; z-index: 3; top: 28px; right: 24px; width: 372px; display: grid; }
.wcard { grid-area: 1 / 1; align-self: start; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 22px 24px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 40px -24px rgb(var(--shadow) / .35), 0 2px 6px -2px rgb(var(--shadow) / .08); opacity: 0; translate: 0 16px; pointer-events: none; transition: opacity .18s ease, translate .5s var(--ease); }
.wcard.is-past { translate: 0 -16px; }
.wcard.is-on { opacity: 1; translate: 0 0; pointer-events: auto; transition: opacity .45s ease .2s, translate .8s var(--ease) .14s; }
.wcard__head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.wcard__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--marigold); color: var(--marigold-ink); font-size: .9375rem; font-weight: 500; }
.wcard__t { font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1.02; letter-spacing: -0.022em; }
.wcard__body { font-size: .9688rem; line-height: 1.55; color: var(--body); }
.wcard__diff { border-top: 1px solid var(--line); padding-top: 12px; }
.wcard__diff h3 { font-size: var(--t-s); font-weight: 600; margin-bottom: 4px; }
.wcard__diff p { font-family: var(--f-display); font-style: italic; font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.005em; }
.wcard__hint, .wcard__note { display: flex; align-items: center; gap: 10px; font-size: var(--t-s); color: var(--muted); }
.baton { width: 14px; height: 14px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line-2); flex: none; }
.wcard__cta { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.walk__rail { position: absolute; left: var(--gutter); bottom: 20px; display: flex; gap: 6px; z-index: 4; }
.walk__rail button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); font-family: var(--f-num); font-size: .78rem; color: var(--ink); transition: background-color .3s, color .3s, border-color .3s, scale .3s var(--ease); }
@media (hover: hover) { .walk__rail button:hover { border-color: var(--ink); scale: 1.08; } }
.walk__rail button.is-done { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.walk__rail button.is-act { background: var(--marigold); color: var(--marigold-ink); border-color: var(--marigold); scale: 1.12; }
.walk__read { position: absolute; right: 28px; bottom: 26px; font-size: var(--t-s); color: var(--muted); }
@media (max-width: 879px) {
  .walk__sticky { --cards-h: clamp(200px, 29svh, 280px); }
  .walk__sticky .walk__fig { left: 0; top: 92px; width: 100%; height: calc(100% - 92px - var(--cards-h) - 70px); }
  .walk__sticky .walk__veil { top: auto; left: 0; width: auto; height: calc(var(--cards-h) + 110px); mask-image: linear-gradient(to bottom, transparent, #000 90px); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 90px); }
  .walk__sticky .walk__title { font-size: 1.9rem; top: 14px; max-width: 16ch; }
  .walk__sticky .walk__cards { top: auto; bottom: 62px; left: 12px; right: 12px; width: auto; height: var(--cards-h); align-items: end; }
  .walk__sticky .wcard { align-self: end; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
  .walk__sticky .wcard { padding: 16px 18px; gap: 10px; }
  .walk__sticky .wcard__t { font-size: 1.6rem; }
  .walk__sticky .wcard__body { font-size: .9rem; }
  .walk__sticky .wcard__diff p { font-size: 1rem; }
  .walk__sticky .walk__rail { left: 12px; bottom: 14px; gap: 4px; }
  .walk__sticky .walk__rail button { width: 30px; height: 30px; }
  .walk__sticky .walk__read { display: none; }
}
@media (max-width: 560px) { .walk__sticky .wcard__diff { display: none; } }


.audit-cta { background: var(--surface); border-block: 1px solid var(--line); }
.audit-cta__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.audit-cta__grid .copy { margin: 20px 0 28px; }
.audit-cta__fig { padding: 24px; background: var(--bg); }
.audit-cta__cap { display: flex; justify-content: space-between; font-weight: 500; margin-bottom: 18px; }
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 84px 1fr 56px; gap: 12px; align-items: center; font-size: var(--t-s); }
.bar__t { display: flex; gap: 2px; height: 22px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.bar__w, .bar__f { display: block; height: 100%; width: var(--w); }
.bar__w { background: var(--bad); }
.bar__f { background: var(--mint2); }
.bar__v { text-align: right; }
.motion .bars .bar__w, .motion .bars .bar__f { transform-origin: left; }
.legend { display: flex; gap: 18px; margin-top: 16px; font-size: var(--t-s); color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg--w { background: var(--bad); } .lg--f { background: var(--mint2); }
.audit-cta__sum { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--f-display); font-size: 1.375rem; letter-spacing: -0.01em; }
@media (max-width: 860px) { .audit-cta__grid { grid-template-columns: 1fr; } }

/* ===================== Changelog ===================== */
.log-hero { display: grid; grid-template-columns: 1fr; gap: var(--gutter); align-items: end; padding-top: clamp(56px, 9vw, 128px); padding-bottom: clamp(48px, 7vw, 96px); }
.log-hero .display { font-size: var(--t-mega); line-height: .92; letter-spacing: -0.04em; margin-left: -0.04em; }
.log-hero .display em { font-style: italic; color: var(--lagoon); }
.log { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: clamp(64px, 10vw, 140px); border-top: 1px solid var(--ink); padding-top: 40px; }
.log-rail { position: sticky; top: calc(var(--hdr) + 28px); display: grid; gap: 24px; }
.odo { display: grid; grid-template-columns: 18px 1fr; gap: 20px; }
.odo__ruler { position: relative; height: 230px; border-left: 1px solid var(--ink); margin-top: 6px; }
.odo__ruler i { position: absolute; left: 0; width: 8px; height: 1px; background: var(--mid); }
.odo__ruler i.maj { width: 18px; background: var(--ink); }
.odo__baton { position: absolute; left: -7px; top: 0; z-index: 1; width: 13px; height: 13px; margin-top: -6px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 3px var(--bg); transition: top .5s var(--ease); }
.odo__read { display: grid; gap: 6px; align-content: start; min-width: 0; }
.odo__label { font-size: var(--t-s); color: var(--muted); }
.odo__win { height: 120px; overflow: hidden; }
.odo__reel { display: flex; flex-direction: column; transition: translate .8s var(--ease); }
.odo__reel span { display: block; height: 120px; font-family: var(--f-display); font-size: 138px; line-height: 120px; letter-spacing: -0.05em; font-variant-numeric: lining-nums; font-variation-settings: 'opsz' 72; }
.odo__date { font-size: var(--t-s); color: var(--muted); }
.odo__name { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.015em; }
.log-index { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.log-index a { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9063rem; color: var(--muted); transition: color .3s, padding-left .4s var(--ease); }
.log-index .num { font-size: .75rem; }
.log-index a[aria-current] { color: var(--ink); padding-left: 14px; position: relative; }
.log-index a[aria-current]::before { content: ''; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--marigold); }
@media (hover: hover) { .log-index a:hover { color: var(--ink); } }
.log-keys kbd { font-family: var(--f-num); font-size: .75rem; padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; color: var(--ink); }

.log-feed { min-width: 0; max-width: 760px; }
.rel { display: grid; gap: 22px; padding-bottom: 72px; margin-bottom: 72px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--hdr) + 24px); transition: opacity .6s ease; }
.rel:last-of-type { border-bottom: 0; }
.motion .rel:not(.is-active) { opacity: .78; }
.rel__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: var(--t-s); color: var(--muted); }
.rel__no { color: var(--ink); }
.rel__h { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); line-height: 1.02; letter-spacing: -0.024em; }
.rel__intro { font-size: 1.1875rem; line-height: 1.5; color: var(--body); max-width: 56ch; }
.rel__secs { display: grid; gap: 18px; }
.rel__secs h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 4px; }
.rel__secs p { color: var(--body); max-width: 62ch; }
.rel__more { border-top: 1px solid var(--ink); }
.rel__more details { border-bottom: 1px solid var(--line); }
.rel__more summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 13px 0; font-weight: 500; }
.rel__more summary::-webkit-details-marker { display: none; }
.rel__more summary span { font-family: var(--f-num); color: var(--muted); transition: rotate .35s var(--ease); }
.rel__more details[open] summary span { rotate: 45deg; }
.rel__more ul { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 6px; color: var(--body); }
.rel__sign { font-family: var(--f-display); font-style: italic; font-size: 1.5rem; line-height: 1.25; color: var(--muted); }

/* Release stills: real screens of the demo app, rendered live */
.still { margin: 0; border-radius: var(--r); background: linear-gradient(180deg, var(--surface-2), var(--bg)); border: 1px solid var(--line); padding: clamp(16px, 3vw, 32px); overflow: hidden; }
.ui { font-size: .875rem; line-height: 1.45; color: var(--ink); }
.ui--split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: start; }
.ui-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: 0 10px 24px -18px rgb(var(--shadow) / .4); }
.ui-title { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 12px; }
.ui-title .mark { width: 18px; height: 18px; }
.ui-pill { margin-left: auto; font-weight: 500; font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.ui-pill--lit { background: var(--marigold); color: var(--marigold-ink); }
.ui-pill--warn { background: var(--warn-bg); color: var(--warn-ink); }
.ui-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.ui-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 0 0 6px; border-bottom: 1px solid var(--line); }
.ui-table td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.ui-table th:not(:first-child), .ui-table td:not(:first-child) { text-align: right; }
.ui-good { color: var(--good); font-weight: 500; }
.ui-bad { color: var(--bad); }
.ui-meter { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 12px; font-size: .8125rem; color: var(--muted); }
.ui-meter__bar { display: block; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.ui-meter__bar i { display: block; height: 100%; width: var(--w); background: var(--lagoon); border-radius: inherit; transform-origin: left; }
.ui-meter__bar--over i { background: var(--bad); }
.motion .still:not(.is-run) .ui-meter__bar i { transform: scaleX(0); }
.still .ui-meter__bar i { transition: transform 1.4s var(--ease) .3s; }
.ui-line { margin-bottom: 6px; }
.ui-line--muted { color: var(--muted); font-size: .8125rem; }
.ui-attach { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ui-attach li { font-size: .75rem; padding: 3px 8px; border: 1px dashed var(--line-2); border-radius: 6px; color: var(--muted); }
.ui-note { font-size: .8125rem; color: var(--muted); margin-top: 8px; }
.ui-quote { font-family: var(--f-display); font-style: italic; font-size: 1rem; line-height: 1.4; color: var(--body); padding-left: 12px; border-left: 2px solid var(--line-2); margin-bottom: 12px; }
.ui-reply { list-style: none; padding: 0; display: grid; gap: 8px; }
.ui-reply li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; transition: opacity .5s, translate .6s var(--ease); }
.ui-reply em { grid-column: 2; font-style: normal; font-size: .75rem; color: var(--lagoon); }
.motion .ui-reply li:not(.is-in) { opacity: 0; translate: -10px 0; }
.ui-hl { background: var(--warn-bg); border-radius: 6px; padding: 4px 6px; margin: 0 -6px; }
.ui-tick { width: 16px; height: 16px; border-radius: 50%; background: var(--good-bg); position: relative; margin-top: 2px; }
.ui-tick::after { content: ''; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid var(--good); border-width: 0 1.6px 1.6px 0; rotate: 45deg; }
.ui-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ui-vs div { display: grid; }
.ui-vs .num { font-size: 1.25rem; }
.ui-queue { list-style: none; padding: 0; display: grid; }
.ui-queue li { display: grid; grid-template-columns: 1.1fr 1.4fr auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.ui-queue li:first-child { border-top: 0; padding-top: 0; }
.ui-queue li > div:first-child { display: grid; }
.ui-pack { display: grid; gap: 4px; }
.ui-pack .meta { font-size: .75rem; }
.ui-clock { text-align: right; white-space: nowrap; }
.ui-cuts { list-style: none; padding: 0; display: grid; }
.ui-cuts li { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); transition: opacity .4s, translate .5s var(--ease); }
.ui-cuts .meta { font-size: .75rem; }
.ui-cuts .chip { transition: scale .4s var(--ease); }
.motion .ui-cuts li:not(.is-in) { opacity: 0; translate: 0 8px; }
.motion .ui-cuts li:not(.is-in) .chip { scale: 1.6; }
.ui-sum { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--ink); font-weight: 600; }
.ui-team { list-style: none; padding: 0; display: grid; gap: 10px; }
.ui-team li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }
.ui-team li > span:nth-child(2) { display: grid; line-height: 1.25; }
.ui-team .meta { font-size: .75rem; }
.ui-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: .75rem; font-weight: 600; }
.ui-av--new { border: 1px dashed var(--line-2); background: none; color: var(--muted); }
.ui-code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 12px; }
.ui-code span { aspect-ratio: .8; border: 1px solid var(--line-2); border-radius: 8px; display: grid; place-items: center; font-family: var(--f-num); font-size: 1.25rem; transition: border-color .3s, background-color .3s; }
.ui-code span.is-in { border-color: var(--lagoon); background: var(--bg); }
.ui--browser { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 16px 34px -22px rgb(var(--shadow) / .5); }
.ui-chrome { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ui-chrome > span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.ui-url { margin-left: 10px; font-size: .75rem; color: var(--muted); background: var(--surface); padding: 2px 10px; border-radius: 999px; }
.ui-browser { display: grid; grid-template-columns: 1fr 210px; }
.ui-form { padding: 16px; display: grid; gap: 10px; align-content: start; }
.ui-form label { display: grid; gap: 3px; font-size: .75rem; color: var(--muted); }
.ui-field { min-height: 30px; padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink); font-size: .8125rem; background: var(--bg); transition: border-color .3s, background-color .3s; }
.ui-field.is-filled { border-color: var(--lagoon); }
.ui-submit { justify-self: start; margin-top: 4px; padding: 6px 14px; border-radius: 6px; background: var(--line); color: var(--muted); font-size: .8125rem; font-weight: 600; transition: background-color .4s, color .4s, box-shadow .4s; }
.ui-submit.is-ready { background: var(--peacock); color: var(--peacock-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--marigold) 55%, transparent); }
.ui-panel { border-left: 1px solid var(--line); padding: 14px; background: var(--bg); display: grid; gap: 8px; align-content: start; }
.ui-check { list-style: none; padding: 0; display: grid; gap: 6px; font-size: .8125rem; }
.ui-check li { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.ui-check li::before { content: ''; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line-2); transition: background-color .3s, border-color .3s; }
.ui-check li.is-ok { color: var(--ink); }
.ui-check li.is-ok::before { background: var(--good); border-color: var(--good); }
.ui-browser--site { grid-template-columns: 1fr 230px; }
.ui-site { padding: 22px 20px; display: grid; gap: 16px; align-content: start; background: var(--bg); }
.ui-site__h { font-family: var(--f-display); font-size: 1.6rem; line-height: 1; letter-spacing: -0.025em; max-width: 19ch; }
.ui-site__h em { display: block; font-style: italic; color: var(--lagoon); }
.ui-site__row { display: grid; gap: 12px; justify-items: start; }
.ui-mini { width: 100%; max-width: 330px; }
.ui-queue--mini li { grid-template-columns: 1fr auto; padding: 8px 0; }
.ui-queue--mini li > div:first-child { gap: 1px; }
.ui-heard li { grid-template-columns: 1fr auto; }
.ui-idea { display: grid; align-content: start; }
.ui-idea__line { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 14px; }
.ui--even { grid-template-columns: 1fr 1fr; }
.ui-idea__steps { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.ui-idea__steps .plate { width: 100%; height: auto; aspect-ratio: 1; max-width: 30px; font-size: .62rem; }
.ui-idea__steps .plate { transition: background-color .35s, color .35s, box-shadow .35s; }
.ui-btn { justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--marigold); color: var(--marigold-ink); font-size: .8125rem; font-weight: 600; }

.legs { background: var(--peacock); color: var(--peacock-ink); --muted: #A9C7CF; --line: #2B6676; --ink: #FBF8F1; --body: #DCE9EA; }
.legs__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.legs .copy { color: var(--body); }
.track { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid #2B6676; position: relative; }
.track__leg { position: relative; padding: 34px var(--gutter) 0 0; }
.track__leg::before { content: ''; position: absolute; top: -9px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--peacock); border: 2px solid #A9C7CF; }
.track__leg--now::before { background: var(--marigold); border-color: var(--marigold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--marigold) 25%, transparent); }
.track__when { font-size: var(--t-s); color: var(--muted); }
.track__leg h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-m); letter-spacing: -0.015em; margin: 6px 0 12px; }
.track__leg ul { padding-left: 18px; display: grid; gap: 6px; color: var(--body); }

@media (max-width: 980px) {
  .log { grid-template-columns: 1fr; }
  .log-rail { position: static; }
  .odo, .log-index, .log-keys { display: none; }
    .log-hero { grid-template-columns: 1fr; }
  .motion .rel:not(.is-active) { opacity: 1; }
}
@media (max-width: 640px) {
  .ui--split, .ui-browser { grid-template-columns: 1fr; }
  .ui-panel { border-left: 0; border-top: 1px solid var(--line); }
  .ui-queue li { grid-template-columns: 1fr auto; }
  .ui-queue .ui-pack { grid-column: 1 / -1; grid-row: 2; }
  .ui-cuts li { grid-template-columns: 1fr auto; }
  .ui-cuts .meta { display: none; }
  .legs__head, .track { grid-template-columns: 1fr; }
  .track { border-top: 0; border-left: 2px solid #2B6676; gap: 32px; }
  .track__leg { padding: 0 0 0 26px; }
  .track__leg::before { top: 2px; left: -9px; }
}

/* ===================== About ===================== */
.ab-hero { padding-top: clamp(56px, 9vw, 128px); padding-bottom: clamp(56px, 8vw, 112px); }
.ab-hero__h { font-size: var(--t-mega); line-height: .92; letter-spacing: -0.042em; max-width: 13ch; margin-left: -0.04em; }
.ab-hero__h em { font-style: italic; color: var(--lagoon); }
.ab-hero__foot { display: grid; grid-template-columns: 5fr 7fr; margin-top: clamp(32px, 5vw, 64px); }
.ab-hero__foot .lede { grid-column: 2; max-width: 40ch; }
.relay { border-top: 1px solid var(--line); }
.relay__h { max-width: 18ch; margin-bottom: clamp(48px, 7vw, 96px); }
.relay__track { position: relative; }
.relay__legs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.leg { position: relative; transition: opacity .6s; }
.motion .leg:not(.is-lit) { opacity: .4; }
.leg__from { font-size: var(--t-s); color: var(--muted); }
.leg h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-m); letter-spacing: -0.015em; margin: 6px 0 10px; }
.leg p:last-child { color: var(--body); font-size: .9688rem; }
.mission { background: var(--peacock); color: var(--peacock-ink); }
.mission__grid { display: grid; grid-template-columns: 3fr 9fr; gap: var(--gutter); }
.mission__label { font-size: var(--t-s); font-weight: 600; color: #A9C7CF; padding-top: .9em; }
.mission__text { font-family: var(--f-display); font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.025em; }
.fit__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.fit__rows { border-top: 1px solid var(--ink); }
.fit__row { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gutter); padding: 26px 0; border-bottom: 1px solid var(--line); }
.fit__row h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-m); letter-spacing: -0.015em; }
.fit__row p { color: var(--body); max-width: 60ch; }
.fit__row--us { background: var(--surface); margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); border-radius: var(--r); border-bottom: 0; margin-top: 12px; }
.fit__row--us h3 { display: flex; align-items: center; gap: 10px; }
.fit__row--us h3::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--marigold); }
.voice { border-top: 1px solid var(--line); }
.voice__grid { display: grid; grid-template-columns: 3fr 9fr; gap: var(--gutter); }
.voice__list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px var(--gutter); color: var(--body); }
.voice__list b { color: var(--ink); font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: 1.25rem; margin-right: 4px; }
@media (max-width: 860px) {
  .ab-hero__foot, .fit__head, .fit__row, .mission__grid, .voice__grid, .voice__list { grid-template-columns: 1fr; }
  .ab-hero__foot .lede { grid-column: 1; }
  .relay__legs { grid-template-columns: 1fr; gap: 36px; }
  .leg { padding: 0; }
}

/* ===================== Trust ===================== */
.tr-hero { padding-top: clamp(56px, 9vw, 128px); padding-bottom: clamp(40px, 6vw, 80px); display: grid; gap: 28px; }
.tr-hero .display { font-size: var(--t-xl); max-width: 16ch; }
.tr-hero .display em { font-style: italic; color: var(--lagoon); }
.rules__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); counter-reset: r; }
.rule-row { padding: 26px var(--gutter) 30px 0; border-bottom: 1px solid var(--line); }
.rule-row h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-m); letter-spacing: -0.015em; margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline; }
.rule-row p { color: var(--body); }
.arch { background: var(--surface); border-block: 1px solid var(--line); margin-top: clamp(48px, 7vw, 96px); }
.arch__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.arch__fig { margin: 0; display: grid; grid-template-columns: 1fr 48px 1.2fr 48px 1fr; align-items: stretch; }
.arch__col { border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px; background: var(--bg); }
.arch__col--core { background: var(--peacock); color: var(--peacock-ink); border-color: var(--peacock); --muted: #A9C7CF; }
.arch__col--out { border-style: dashed; }
.arch__col h3 { font-weight: 600; margin-bottom: 14px; }
.arch__col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.arch__col li { display: grid; padding-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.arch__col li:last-child { border-bottom: 0; padding-bottom: 0; }
.arch__col li span { font-size: var(--t-s); color: var(--muted); }
.arch__pipe { position: relative; display: grid; place-items: center; }
.arch__pipe span { width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--lagoon) 0 6px, transparent 6px 11px); position: relative; }
.arch__pipe span::after { content: ''; position: absolute; left: 50%; top: -5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--marigold); animation: pipe 3.2s var(--ease-io) infinite; }
@keyframes pipe { 0%, 100% { translate: -14px 0; } 50% { translate: 14px 0; } }
.arch__note { margin-top: 20px; max-width: 70ch; }
@media (max-width: 960px) {
  .rules__list { grid-template-columns: 1fr 1fr; }
  .arch__head { grid-template-columns: 1fr; }
  .arch__fig { grid-template-columns: 1fr; }
  .arch__pipe { height: 40px; }
  .arch__pipe span { width: 2px; height: 100%; background: repeating-linear-gradient(180deg, var(--lagoon) 0 6px, transparent 6px 11px); }
  .arch__pipe span::after { left: -5px; top: 50%; margin: -6px 0 0; animation-name: pipeV; }
  @keyframes pipeV { 0%, 100% { translate: 0 -8px; } 50% { translate: 0 8px; } }
}
@media (max-width: 600px) { .rules__list { grid-template-columns: 1fr; } }

/* ===================== Placeholders: Pricing, Pilot ===================== */
.ph { padding-top: clamp(56px, 9vw, 128px); padding-bottom: clamp(48px, 7vw, 96px); display: grid; gap: 28px; }
.ph .display { font-size: var(--t-mega); letter-spacing: -0.045em; line-height: .9; margin-left: -0.04em; }
.ph .lede { max-width: 40ch; }
.ph__plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: 24px; }
.ph__plate { aspect-ratio: 4 / 5; border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 24px; display: grid; align-content: start; gap: 14px; }
.ph__plate span { display: block; height: 10px; border-radius: 6px; background: var(--surface-2); }
.ph__plate span:first-child { width: 40%; height: 22px; }
.ph__plate span:nth-child(2) { width: 70%; }
.ph__plate span:nth-child(3) { width: 55%; }
.ph__plate--lit { border-color: var(--marigold); }
.ph__plate--lit span:first-child { background: var(--marigold); opacity: .55; }
.ph__note { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 24px; margin-top: 16px; }
.ph__note p { max-width: 56ch; color: var(--body); }
.ph__note b { color: var(--ink); }
@media (max-width: 860px) {
  .ph__plates { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .ph__plate { padding: 12px; }
}

/* ===================== 404 ===================== */
.nf { min-height: calc(100svh - var(--hdr)); display: grid; align-content: center; justify-items: start; gap: 22px; padding-block: 48px; }
.nf__mark { width: min(340px, 70vw); overflow: visible; }
.nf__floor { stroke: var(--line-2); stroke-width: 1.5; }
.nf__dot { fill: var(--marigold); }
.motion .nf__dot { animation: roll 1.6s var(--ease) both .3s; }
@keyframes roll { 0% { translate: -36px -24.5px; rotate: 0deg; } 40% { translate: -20px 0; rotate: 6deg; } 60% { translate: -9px -5px; rotate: -2deg; } 80% { translate: -3px 0; rotate: 0deg; } 100% { translate: 0 0; } }
.nf .display { font-size: var(--t-xl); }

/* Hover states: every primary target moves, not just recolours */
@media (hover: hover) {
  .nav__a:hover { background: var(--surface); }
  .btn--ghost:hover { background: var(--surface-2); translate: 0 -1px; }
  .btn:not(.btn--ghost):not([data-fill]):hover { filter: brightness(1.12); translate: 0 -1px; }
  .log-index a:hover { background: var(--surface); padding-left: 14px; }
}
.btn--ghost, .log-index a, .nav__a { transition: color .3s, background-color .3s, border-color .3s, translate .35s var(--ease), padding-left .4s var(--ease); }
.ui-submit { color: var(--body); }

@media (hover: hover) {
  .nav__a[aria-current='page']:hover::after { height: 3px; background: var(--ink); }
  .log-index a { position: relative; }
  .log-index a:not([aria-current])::before { content: ''; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--marigold); scale: 0; transition: scale .35s var(--ease); }
  .log-index a:not([aria-current]):hover::before { scale: 1; }
}
/* 6. odometer: a taller window so the next week's digits never peek in */
.odo__win { height: 140px; }
.odo__reel span { height: 140px; line-height: 140px; font-size: 124px; }
/* placeholder pages: the headline never touches the lede */
.ph .display { margin-bottom: .2em; }
/* 8. auth links: a full tap target */
.auth__alt a { display: inline-block; padding-block: 3px; }
.auth__brand .brand:focus-visible { outline: 2px solid var(--marigold); }
.price-card { max-width: 560px; margin-top: 16px; padding: 28px; border-radius: var(--r); background: var(--peacock); color: var(--peacock-ink); display: grid; gap: 14px; --muted: #A9C7CF; }
.price-card__t { font-family: var(--f-display); font-weight: 400; font-size: var(--t-m); letter-spacing: -0.015em; }
.price-card__p { color: #DCE9EA; }
.price-card__p .num { font-size: 3rem; color: var(--marigold); margin-right: 8px; letter-spacing: -0.03em; }
.price-card ul { padding-left: 18px; display: grid; gap: 6px; color: #DCE9EA; }

/* ===================== Station plates: the Flow figure's wall plates, reused on other pages ===================== */
.plate { --s: 40px; display: inline-grid; place-items: center; width: var(--s); height: var(--s); flex: none; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--top); color: var(--ink); font-size: calc(var(--s) * .32); font-weight: 500; line-height: 1; transition: background-color .35s, color .35s, border-color .35s, box-shadow .5s var(--ease); }
.plate .num { letter-spacing: 0; }
.plate.is-done { background: var(--ink); color: var(--top); }
.plate.is-act { background: var(--marigold); border-color: var(--ink); color: #0C2A33; box-shadow: 0 0 0 5px color-mix(in srgb, var(--marigold) 32%, transparent); }
.plate--sm { --s: 26px; border-width: 1px; }
.plate--door { font-family: var(--f-body); font-size: calc(var(--s) * .26); font-weight: 600; border-style: dashed; }
.wall { list-style: none; padding: 0 0 18px; margin: 0 0 clamp(28px, 4vw, 48px); display: flex; justify-content: space-between; align-items: end; position: relative; }
.wall::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--ink); border-radius: 2px; }
.wall::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--line-2); }
.wall .plate { position: relative; z-index: 1; }
.leg__steps { display: flex; gap: 4px; margin-bottom: 14px; }
.relay__note { margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 600px) { .wall .plate { --s: 28px; border-width: 1px; } }
.rule__at { display: flex; align-items: center; gap: 8px; font-size: var(--t-s); color: var(--muted); margin-bottom: 12px; }
@media (hover: hover) { .rule-row:hover .rule__at .plate { background: var(--marigold); color: #0C2A33; } }
.arch__iso { display: block; width: 100%; max-width: 980px; height: auto; margin: 0 auto clamp(24px, 4vw, 40px); overflow: visible; }
.arch__col h3 { display: flex; align-items: center; gap: 10px; }
.arch__col--core .plate { background: var(--marigold); color: #0C2A33; border-color: var(--marigold); }
.wall--weeks { margin-bottom: 8px; }
.pilot__weeks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 var(--gutter); margin-bottom: 24px; }
.wk { padding: 18px 0 22px; display: grid; gap: 6px; align-content: start; transition: opacity .5s; }
.motion .wk:not(.is-lit):not(.is-now) p:not(.wk__steps) { color: var(--muted); }
.wk p:not(.wk__steps) { transition: color .4s; }
.wk__n { font-size: var(--t-s); color: var(--muted); }
.wk p:not(.wk__steps) { font-family: var(--f-display); font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }
.wk__steps { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.wk.is-lit .wk__steps .plate { background: var(--ink); color: var(--top); }
.wk.is-now .wk__steps .plate { background: var(--marigold); color: #0C2A33; }
.wk.is-long { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 24px; }
.pilot__note { margin-bottom: 28px; }
@media (max-width: 860px) {
  .pilot__weeks { grid-template-columns: 1fr 1fr; }
  .wall--weeks .plate { --s: 30px; }
}

/* Flow controls sit on their own plate so the drawing never runs through them */
.walk__rail { padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); box-shadow: 0 8px 20px -14px rgb(var(--shadow) / .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.walk__read { padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); color: var(--body); }
/* Changelog chips on phones: a fade says the row scrolls */
/* Pricing: the decided fact sits beside the headline */
@media (min-width: 900px) {
  .page-ph .ph--split { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 96px); align-items: end; }
  .page-ph .ph--split > .display, .page-ph .ph--split > .lede { grid-column: 1; }
  .page-ph .ph--split > .price-card { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin-top: 0; }
  .page-ph .ph--split > .ph__note { grid-column: 1 / -1; }
}
.ph .display em { font-style: italic; color: var(--lagoon); display: block; font-size: .36em; letter-spacing: -0.02em; line-height: 1.1; margin-top: .1em; }

/* ===================== Book a Demo ===================== */
.demo { padding-top: clamp(48px, 7vw, 104px); padding-bottom: clamp(72px, 9vw, 128px); }
.demo__head .display { font-size: var(--t-xl); max-width: 20ch; }
.demo__head .display em { display: block; font-style: italic; color: var(--lagoon); }
.demo__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(36px, 5vw, 64px); align-items: start; }
.lead, .lead-done { padding: clamp(22px, 3vw, 40px); }
.lead__h { font-family: var(--f-display); font-weight: 400; font-size: var(--t-m); letter-spacing: -0.015em; line-height: 1.1; }
.lead__sub { margin-top: 6px; }
.lead__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 28px; }
.fld { display: grid; gap: 6px; font-size: var(--t-s); font-weight: 500; color: var(--ink); }
.fld em { font-style: normal; font-weight: 400; color: var(--muted); }
.fld--wide { grid-column: 1 / -1; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; font-weight: 400; transition: border-color .25s, box-shadow .25s; }
.fld textarea { resize: vertical; min-height: 92px; }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: var(--muted); }
.fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lagoon) 22%, transparent); }
.fld [aria-invalid='true'] { border-color: var(--bad); }
.lead__check { margin-top: 20px; }
.lead__err { margin-top: 16px; color: var(--bad); font-size: var(--t-s); }
.lead__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.lead-done { display: grid; gap: 14px; justify-items: start; }
.lead-done .mark { width: 40px; height: 40px; }
.lead-done:focus { outline: none; }
.why { position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 22px; }
.why__h { font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: var(--t-m); letter-spacing: -0.015em; line-height: 1.1; }
.cmp { display: grid; gap: 14px; }
.cmp__m { margin: 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 12px; }
.cmp__m figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cmp__m b { font-weight: 600; }
.cmp__claim { font-family: var(--f-display); font-style: italic; font-size: 1.125rem; color: var(--ink); }
.cmp__bars { display: grid; gap: 8px; }
.cmp__row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; font-size: var(--t-xs); color: var(--muted); }
.cmp__row--us { color: var(--ink); font-weight: 600; }
.cmp__b { display: block; height: 12px; width: var(--w); border-radius: 0 4px 4px 0; background: var(--line-2); transform-origin: left; transition: transform 1.2s var(--ease); }
.cmp__row--us .cmp__b { background: var(--marigold); }
.cmp__m:nth-child(2) .cmp__b { transition-delay: .12s; } .cmp__m:nth-child(3) .cmp__b { transition-delay: .24s; }
.motion .cmp:not(.is-in) .cmp__b { transform: scaleX(0); }
.cmp__note { font-size: var(--t-xs); color: var(--muted); }
.why__fine { font-size: var(--t-xs); line-height: 1.5; }
.page-demo .ftr__top { display: none; }
.page-demo .ftr { padding-top: 0; }
.page-demo .ftr__mid { border-top: 0; padding-top: clamp(40px, 5vw, 64px); }
.lead[hidden], .lead-done[hidden] { display: none; }
@media (max-width: 900px) {
  .demo__grid { grid-template-columns: 1fr; }
  .why { position: static; }
}
@media (max-width: 560px) { .lead__fields { grid-template-columns: 1fr; } }
