/* leke.co.za: the website's one stylesheet. Tokens and motion from the
   leke design handoff (docs/design/leke-motion/README.md): leke blue, Figtree,
   pill buttons, and the one motion idea, a pill that fills left to right.
   Green only for money in the bank. Pages are built by
   server/src/scripts/site_build.ts from server/site/. */

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

:root {
  --paper: #F4F6F9; --surface: #FFFFFF; --field: #F4F6F9; --line: #D9DEE6; --line-soft: #E6EAF0;
  --ink: #0E1A2B; --ink-2: #55607A; --grey: #8A94A6;
  --blue: #2A66B0; --blue-press: #22568F; --blue-text: #2A66B0; --blue-tint: #E3ECF7; --blue-tint-ink: #1F4F8A;
  --paid: #1E9A52; --paid-tint: #DDF5E7; --paid-ink: #12693A;
  --error: #B03A2E; --error-tint: #F6E3E0; --error-ink: #8C2B21;
  --track: #E6EAF0; --thumb: #FFFFFF;
  --header: rgba(244, 246, 249, .82);
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 18px 40px -18px rgba(14, 26, 43, .18);
  --shadow-lift: 0 2px 4px rgba(14, 26, 43, .06), 0 28px 60px -24px rgba(14, 26, 43, .28);
  --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-in: cubic-bezier(.4, 0, 1, 1);
  --ease-move: cubic-bezier(.45, 0, .25, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-draw: cubic-bezier(.3, 0, .2, 1);
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1A2B; --surface: #172639; --field: #12203A; --line: #2A3C55; --line-soft: #22344B;
    --ink: #EEF2F7; --ink-2: #A3AFC2; --grey: #7D8AA0;
    --blue-text: #8DB6EE; --blue-tint: #1C3352; --blue-tint-ink: #B9D1F2;
    --paid: #3DBB72; --paid-tint: #143A27; --paid-ink: #8FE3B2;
    --error: #F08A7E; --error-tint: #3A1E1C; --error-ink: #F5B3AA;
    --track: #1F3048; --thumb: #2C4262;
    --header: rgba(14, 26, 43, .82);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .55);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 60px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1A2B; --surface: #172639; --field: #12203A; --line: #2A3C55; --line-soft: #22344B;
  --ink: #EEF2F7; --ink-2: #A3AFC2; --grey: #7D8AA0;
  --blue-text: #8DB6EE; --blue-tint: #1C3352; --blue-tint-ink: #B9D1F2;
  --paid: #3DBB72; --paid-tint: #143A27; --paid-ink: #8FE3B2;
  --error: #F08A7E; --error-tint: #3A1E1C; --error-ink: #F5B3AA;
  --track: #1F3048; --thumb: #2C4262;
  --header: rgba(14, 26, 43, .82);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .55);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 60px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; font-weight: 500; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
a { color: var(--blue-text); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; }
img, svg { display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 760px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.tabular { font-variant-numeric: tabular-nums; }

/* ── The logo (outlined pill and letters; the script plays the reveal) ── */
.logo { height: auto; overflow: visible; }
.js .lg-anim { visibility: hidden; animation: show-late 0s 2.5s forwards; }
.js .lg-anim.is-ready { visibility: visible; animation: none; }
@keyframes show-late { to { visibility: visible; } }

/* ── Header ───────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 30; background: transparent; transition: background-color 280ms var(--ease-out), box-shadow 280ms var(--ease-out); }
.top.scrolled { background: var(--header); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--line-soft); }
.bar { display: flex; align-items: center; gap: 16px; height: 72px; }
.bar .home { display: block; flex: none; border-radius: 999px; }
.bar .logo { width: 80px; }
.nav { display: none; margin-left: auto; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color 180ms var(--ease-out); }
.nav a:hover { background: var(--track); }
.nav a[aria-current="page"] { background: var(--blue-tint); color: var(--blue-tint-ink); }
.bar-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav + .bar-end { margin-left: 8px; }
.signin { font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; padding: 0 12px; height: 40px; display: none; align-items: center; border-radius: 999px; }
.signin:hover { background: var(--track); }
.menu-btn {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  width: 44px; height: 40px; border-radius: 999px; background: var(--track); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-btn span { position: relative; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: background-color 180ms; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 280ms var(--ease-move); }
.menu-btn span::before { transform: translateY(-5px); }
.menu-btn span::after { transform: translateY(5px); }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: rotate(-45deg); }
@media (min-width: 1040px) {
  .nav, .signin { display: inline-flex; }
  .menu-btn { display: none; }
}
.sheet { display: none; padding: 8px 16px 20px; border-top: 1px solid var(--line-soft); background: var(--surface); box-shadow: var(--shadow); }
.sheet.open { display: block; animation: sheet-in 280ms var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } }
.sheet a { display: flex; align-items: center; min-height: 48px; color: var(--ink); font-weight: 700; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.sheet a:last-of-type { border-bottom: 0; }
.sheet .btn { width: 100%; margin-top: 12px; }
@media (min-width: 1040px) { .sheet { display: none !important; } }

.progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; border-radius: 0 999px 999px 0; background: var(--blue); transform: scaleX(0); transform-origin: left center; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 26px;
  background: var(--blue); color: #FFFFFF; font: 700 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: transform 280ms var(--ease-spring), background-color 280ms var(--ease-out), color 180ms var(--ease-out), box-shadow 280ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { box-shadow: 0 8px 20px -10px rgba(42, 102, 176, .7); }
.btn:active { transform: scale(.97); background: var(--blue-press); transition-duration: 120ms; transition-timing-function: var(--ease-out); }
.btn.sm { height: 40px; padding: 0 18px; border-radius: 20px; font-size: 15px; }
.btn.soft { background: var(--blue-tint); color: var(--blue-tint-ink); }
.btn.soft:hover { box-shadow: none; }
.btn.soft:active { transform: scale(.98); background: var(--blue-tint); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn.ghost:active { background: var(--track); }
.btn.on-blue { background: #FFFFFF; color: #2A66B0; }
.btn.on-blue:hover { box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .35); }
.btn.on-blue:active { background: #E3ECF7; }
.btn.on-blue:focus-visible { outline-color: #FFFFFF; }
.btn.wide { width: 100%; }
.btn[aria-busy="true"] { pointer-events: none; }
.btn .arrow { transition: transform 280ms var(--ease-spring); }
.btn:hover .arrow { transform: translateX(3px); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "\2192"; transition: transform 280ms var(--ease-spring); }
.link-arrow:hover::after { transform: translateX(4px); }

/* The pill loader: fills, holds, drains to the right (only waits loop) */
.loader { position: relative; flex: none; width: 50px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .28); }
.loader.on-paper { background: var(--line); }
.loader-fill { position: absolute; inset: 0; border-radius: 999px; background: #FFFFFF; animation: pill-load 1.2s infinite; }
.loader.on-paper .loader-fill { background: var(--blue); }
.loader-fill svg { display: block; width: 100%; height: 100%; }
.loader.on-paper .loader-fill g { fill: #FFFFFF; }
@keyframes pill-load {
  0% { clip-path: inset(0 100% 0 0); animation-timing-function: var(--ease-draw); }
  45% { clip-path: inset(0 0 0 0); }
  55% { clip-path: inset(0 0 0 0); animation-timing-function: var(--ease-draw); }
  100% { clip-path: inset(0 0 0 100%); }
}

/* ── Type and sections ────────────────────────────────────────────────── */
.hero { padding-top: 40px; padding-bottom: 72px; }
@media (min-width: 960px) { .hero { padding-top: 64px; padding-bottom: 104px; } }
.hero h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.03; letter-spacing: -.03em; max-width: 14ch; }
.hero .lead { margin-top: 22px; font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-2); max-width: 40ch; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; } }
.page-hero { padding-top: 28px; padding-bottom: 64px; }
@media (min-width: 960px) { .page-hero { padding-top: 48px; padding-bottom: 96px; } }
.page-hero h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; letter-spacing: -.028em; max-width: 18ch; }
.page-hero .lead { margin-top: 20px; font-size: clamp(18px, 2vw, 20px); color: var(--ink-2); max-width: 46ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--grey); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.kicker { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-tint-ink); font-size: 14px; font-weight: 700; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.facts li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.facts li::before { content: ""; flex: none; width: 24px; height: 12px; border-radius: 999px; background: var(--blue); }

.section { padding: 80px 0; }
@media (min-width: 960px) { .section { padding: 120px 0; } }
.section.tight { padding: 64px 0; }
.rule { border-top: 1px solid var(--line); }
.section h2, .h2 { font-size: clamp(32px, 4.8vw, 48px); line-height: 1.06; letter-spacing: -.024em; max-width: 20ch; }
.section .intro { margin-top: 18px; color: var(--ink-2); font-size: 19px; max-width: 52ch; }
.section-head { margin-bottom: 48px; }
.center { text-align: center; }
.center h2, .center .intro { margin-left: auto; margin-right: auto; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
  .split.flip > :first-child { order: 2; }
}
.split .copy p { margin-top: 16px; color: var(--ink-2); font-size: 18px; max-width: 46ch; }
.split .copy .facts { margin-top: 24px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 24px; padding: 26px 24px; }
.tile h3 { margin-top: 14px; }
.tile p { margin-top: 10px; color: var(--ink-2); }
.tile .link-arrow { margin-top: 16px; }
.tile.hover { transition: transform 280ms var(--ease-spring), box-shadow 280ms var(--ease-out), border-color 180ms; text-decoration: none; color: inherit; display: block; }
.tile.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--line); }
.icon-pill { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 32px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-tint-ink); }
.icon-pill svg { width: 18px; height: 18px; }
.lines { display: grid; gap: 0 48px; }
@media (min-width: 760px) { .lines { grid-template-columns: 1fr 1fr; } }
.lines > div { padding: 24px 0; border-top: 1px solid var(--line); }
.lines h3 { font-size: 19px; line-height: 1.3; }
.lines p { margin-top: 8px; color: var(--ink-2); }

/* Before and after */
.versus { display: grid; gap: 16px; }
@media (min-width: 860px) { .versus { grid-template-columns: 1fr 1fr; gap: 20px; } }
.versus > div { border-radius: 24px; padding: 28px 24px; }
.versus .before { background: var(--track); }
.versus .after { background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.versus h3 { font-size: 20px; }
.versus ul { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 12px; }
.versus li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.versus li svg { width: 22px; height: 22px; margin-top: 2px; }
.versus .before li { color: var(--ink-2); }
.versus .before svg { color: var(--grey); }
.versus .after svg { color: var(--blue); }

/* Industries */
.industries { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; list-style: none; padding: 0; }
.industries li { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); font-weight: 600; font-size: 15px; }

/* ── Scroll reveal ────────────────────────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── Scene: the board (who has paid) ──────────────────────────────────── */
.card-ui { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 28px; padding: 22px 20px 18px; box-shadow: var(--shadow); width: 100%; max-width: 480px; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.board-head h3, .board-head .t { font-size: 20px; font-weight: 800; }
.board-head > span:not(.t) { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.board-total { margin-top: 14px; font-size: 15px; color: var(--ink-2); font-weight: 600; }
.board-total strong { color: var(--ink); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.meter { position: relative; margin-top: 10px; height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.meter span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--paid); transition: width 420ms var(--ease-out); }
.rows { list-style: none; padding: 0; margin: 14px 0 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.row .who { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .who small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.row .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.chip {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-grid; grid-template-columns: auto auto; align-items: center; justify-content: center; gap: 6px;
  height: 32px; min-width: 96px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--grey); color: var(--ink-2); font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: border-color 100ms linear, color 100ms linear;
}
.chip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paid-tint); clip-path: inset(0 100% 0 0); transition: clip-path 150ms var(--ease-out); }
.chip svg { width: 14px; height: 14px; display: none; }
.chip path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 250ms var(--ease-draw) 50ms; }
.chip .w { display: grid; }
.chip .w span { grid-area: 1 / 1; transition: opacity 100ms linear; }
.chip .yes { opacity: 0; }
.chip.paid { border-color: var(--paid); color: var(--paid-ink); }
.chip.paid::before { clip-path: inset(0 0 0 0); }
.chip.paid svg { display: block; }
.chip.paid path { stroke-dashoffset: 0; }
.chip.paid .no { opacity: 0; }
.chip.paid .yes { opacity: 1; }
.chip.pulse { animation: pulse 250ms var(--ease-move) 100ms; }
.chip.wait { border-color: var(--line); color: var(--ink-2); }
.chip.flag { border-color: var(--error); color: var(--error-ink); background: var(--error-tint); }
@keyframes pulse { 50% { transform: scale(1.08); } }
.all-paid { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); color: var(--paid-ink); font-weight: 700; transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); }
.js .all-paid[data-at]:not(.show) { opacity: 0; transform: translateY(6px); }
.all-paid svg { width: 18px; height: 18px; flex: none; }
.card-ui { position: relative; }
.toast { position: absolute; z-index: 2; left: 50%; top: -20px; transform: translate(-50%, 6px); opacity: 0; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 15px; white-space: nowrap; box-shadow: var(--shadow); pointer-events: none; }
.toast.pop { animation: toast 1300ms var(--ease-out) both; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 6px); } 18%, 78% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -4px); } }
.toast i { width: 8px; height: 8px; border-radius: 999px; background: var(--paid); }
.scene-wrap { position: relative; display: flex; justify-content: center; }

/* ── Scene: the WhatsApp invoice ──────────────────────────────────────── */
.chat { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--blue-tint); color: var(--blue-tint-ink); font-weight: 800; font-size: 14px; }
.chat-head b { display: block; font-size: 16px; }
.chat-head small { display: block; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.chat-body { position: relative; min-height: 360px; padding: 18px; background:
  radial-gradient(circle at 20% 10%, var(--track) 0 1px, transparent 1.5px) 0 0 / 22px 22px, var(--paper); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.compose { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); }
.compose b { color: var(--ink); }
.compose .btn { margin-top: 10px; height: 40px; font-size: 15px; width: 100%; }
.compose .btn { pointer-events: none; }
.compose .btn.pressed { transform: scale(.97); background: var(--blue-press); }
.compose.gone { opacity: 0; transform: translateY(8px); pointer-events: none; position: absolute; left: 18px; right: 18px; bottom: 18px; }
.bubble { align-self: flex-end; max-width: 92%; background: var(--blue-tint); color: var(--ink); border-radius: 18px 18px 6px 18px; padding: 12px 14px 8px; font-size: 14.5px; line-height: 1.5; white-space: pre-line; transform-origin: bottom right; transition: opacity 280ms var(--ease-out), transform 420ms var(--ease-spring); }
.js .bubble[data-at]:not(.in) { opacity: 0; transform: translateY(12px) scale(.98); }
.bubble.them { align-self: flex-start; background: var(--surface); border-radius: 18px 18px 18px 6px; transform-origin: bottom left; }
.bubble a { color: var(--blue-text); font-weight: 700; text-decoration: underline; }
.bubble .meta { display: block; text-align: right; font-size: 11.5px; color: var(--ink-2); margin-top: 4px; font-weight: 600; }
.sys { align-self: center; transition: opacity 280ms var(--ease-out), transform 420ms var(--ease-spring); }
.js .sys[data-at]:not(.in) { opacity: 0; transform: scale(.9); }
.paylink { display: flex; align-items: center; gap: 12px; margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface); white-space: normal; }
.paylink i { flex: none; width: 34px; height: 16px; border-radius: 999px; background: var(--blue); }
.paylink span { font-size: 13px; line-height: 1.35; color: var(--ink-2); font-weight: 600; }
.paylink b { display: block; color: var(--ink); font-size: 13.5px; }

/* ── Scene: the customer's invoice page ──────────────────────────────── */
.pay-block { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.pay-h { font-weight: 800; font-size: 17px; }
.pay-l { margin-top: 10px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.pay-ref { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.pay-ref > span:first-child { font-size: 26px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.copy-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--track); color: var(--ink); font-size: 14px; font-weight: 700; transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out); }
.copy-pill .ok { display: none; }
.copy-pill.copied { background: var(--blue-tint); color: var(--blue-tint-ink); }
.copy-pill.copied .ok { display: inline; }
.copy-pill.copied .go { display: none; }
.pay-hint { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.pay-rows { margin: 12px 0 0; }
.pay-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 14.5px; transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); }
.js .pay-rows > div[data-at]:not(.in) { opacity: 0; transform: translateY(6px); }
.pay-rows dt { color: var(--ink-2); font-weight: 600; }
.pay-rows dd { margin: 0; font-weight: 700; text-align: right; }
.timeline-card { max-width: 560px; }

/* ── Scene: matching the bank statement ───────────────────────────────── */
.match { display: grid; gap: 16px; width: 100%; max-width: 520px; }
.stmt { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 24px; padding: 16px; box-shadow: var(--shadow); }
.stmt-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 0 4px 10px; }
.stmt-head .ok { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-tint-ink); font-size: 12.5px; transition: opacity 280ms var(--ease-out); }
.js .stmt-head .ok[data-at]:not(.show) { opacity: 0; }
.sline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px; border-radius: 14px; font-size: 13.5px; transition: background-color 280ms var(--ease-out); }
.sline + .sline { margin-top: 2px; }
.sline .d { font-weight: 700; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sline .v { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.sline .v.out { color: var(--ink-2); }
.sline .tag { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; line-height: 1.3; font-weight: 700; background: var(--blue-tint); color: var(--blue-tint-ink); transition: opacity 180ms var(--ease-out) 450ms, transform 280ms var(--ease-out) 450ms; }
.sline .tag.grey { background: var(--track); color: var(--ink-2); }
.js .sline[data-at]:not(.scan) .tag { opacity: 0; transform: translateY(-4px); }
.sline.scan { animation: scan 900ms var(--ease-out); }
@keyframes scan { 0% { background: transparent; } 25% { background: var(--blue-tint); } 100% { background: transparent; } }
.sline.mini { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); transition: opacity 280ms var(--ease-out), transform 420ms var(--ease-out); }
.js .sline.mini[data-at]:not(.in) { opacity: 0; transform: translateY(10px); }
.inv { padding-top: 6px; padding-bottom: 6px; }
.inv .rows { margin-top: 0; }
.inv .row { padding: 10px 0; }
.inv .row:first-child { border-top: 0; }
.row.cust { transition: opacity 280ms var(--ease-out), transform 420ms var(--ease-out); }
.js .row.cust[data-at]:not(.in) { opacity: 0; transform: translateX(-10px); }
.refpill { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-tint-ink); font-weight: 800; font-size: 14px; letter-spacing: .04em; }

/* ── Scene: proof of payment ──────────────────────────────────────────── */
.pop { width: 100%; max-width: 460px; display: grid; gap: 14px; }
.pop-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); transition: opacity 280ms var(--ease-out), transform 420ms var(--ease-out); }
.js .pop-card[data-at]:not(.in) { opacity: 0; transform: translateY(12px); }
.pop-wait { display: inline-flex; align-items: center; gap: 10px; }
.pop-wait.gone { display: none; }
.js .chip.pop-paid:not(.shown) { display: none; }
.chip.flag { min-width: 0; white-space: normal; height: auto; min-height: 32px; padding: 4px 12px; line-height: 1.3; }
.shot { width: 64px; height: 84px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); padding: 8px 7px; display: grid; gap: 5px; align-content: start; }
.shot i { display: block; height: 5px; border-radius: 3px; background: var(--line); }
.shot i:nth-child(1) { width: 70%; background: var(--grey); }
.shot i:nth-child(3) { width: 55%; }
.shot i.amt { height: 10px; width: 80%; background: var(--ink-2); margin-top: 4px; }
.pop-card b { display: block; font-size: 15px; }
.pop-card small { display: block; font-size: 13px; color: var(--ink-2); font-weight: 600; margin-top: 2px; }
.pop-card .chip { margin-top: 10px; }
.pop-state { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 32px; }
.pop-state .loader { width: 40px; height: 18px; }
.pop-state .note { font-size: 13px; font-weight: 700; color: var(--ink-2); }

/* ── Scene: the reminder timeline ─────────────────────────────────────── */
.timeline { position: relative; width: 100%; padding: 8px 0 0; }
.tl-track { position: relative; height: 10px; border-radius: 999px; background: var(--track); margin: 28px 8.333% 0; }
.tl-fill { position: absolute; inset: 0; border-radius: 999px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 1800ms var(--ease-draw); }
.timeline.is-on .tl-fill { transform: scaleX(1); }
.tl-nodes { list-style: none; padding: 0; margin: 0; position: absolute; left: 0; right: 0; top: 26px; height: 30px; }
.tl-node { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; width: 0; }
.tl-node .dot { width: 30px; height: 30px; border-radius: 999px; background: var(--surface); border: 3px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--ink-2); transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out), color 180ms, transform 280ms var(--ease-spring); }
.timeline.is-on .tl-node .dot { border-color: var(--blue); background: var(--blue); color: #FFFFFF; transform: scale(1.06); transition-delay: var(--d, 0ms); }
a.dot { text-decoration: none; }
.tl-labels a { color: inherit; text-decoration: none; }
.tl-labels a:hover { text-decoration: underline; }
.tl-node.call .dot { border-style: dashed; }
.timeline.is-on .tl-node.call .dot { background: var(--surface); color: var(--blue-text); }
.tl-labels { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tl-labels li { font-size: 13px; line-height: 1.35; color: var(--ink-2); font-weight: 600; text-align: center; }
.tl-labels b { display: block; color: var(--ink); font-size: 14px; }
@media (max-width: 719px) {
  .tl-track, .tl-nodes { display: none; }
  .tl-labels { grid-template-columns: 1fr; gap: 0; margin-top: 0; position: relative; padding-left: 40px; }
  .tl-labels::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 4px; border-radius: 999px; background: var(--track); }
  .tl-labels::after { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 4px; border-radius: 999px; background: var(--blue); transform: scaleY(0); transform-origin: top; transition: transform 1800ms var(--ease-draw); }
  .timeline.is-on .tl-labels::after { transform: scaleY(1); }
  .tl-labels li { position: relative; text-align: left; padding: 12px 0; }
  .tl-labels li::before { content: ""; position: absolute; left: -35px; top: 15px; width: 18px; height: 18px; border-radius: 999px; background: var(--surface); border: 3px solid var(--line); transition: border-color 180ms, background-color 180ms; transition-delay: var(--d, 0ms); }
  .timeline.is-on .tl-labels li::before { border-color: var(--blue); background: var(--blue); }
}

/* ── Story: the sticky stage on wide screens ──────────────────────────── */
.story { display: grid; gap: 64px; }
.story-step { display: grid; gap: 28px; }
.story-step .num { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 34px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-tint-ink); font-weight: 800; transition: background-color 280ms var(--ease-out), color 280ms var(--ease-out); }
.story-step.is-active .num { background: var(--blue); color: #FFFFFF; }
.story-step h3 { margin-top: 16px; font-size: clamp(24px, 3vw, 30px); line-height: 1.15; letter-spacing: -.015em; }
.story-step p { margin-top: 12px; color: var(--ink-2); font-size: 18px; max-width: 44ch; }
.story-step .facts { margin-top: 18px; }
@media (min-width: 960px) {
  .story.staged { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
  .story.staged .stage { position: sticky; top: 104px; height: calc(100vh - 160px); min-height: 520px; max-height: 680px; }
  .story.staged .stage .scene-wrap { position: absolute; inset: 0; align-items: center; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); pointer-events: none; }
  .story.staged .stage .scene-wrap.is-active { opacity: 1; transform: none; pointer-events: auto; }
  .story.staged .steps-col { display: grid; gap: 0; }
  .story.staged .story-step { min-height: 72vh; align-content: center; opacity: .35; transition: opacity 420ms var(--ease-out); }
  .story.staged .story-step.is-active { opacity: 1; }
}

/* ── Steps with a filling track (how it works) ────────────────────────── */
.steps-wrap { position: relative; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 36px; counter-reset: s; }
.steps-track { display: none; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 36px; }
  .steps-track { display: block; position: absolute; left: 0; right: 0; top: 17px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
  .steps-track span { position: absolute; inset: 0; border-radius: 999px; background: var(--blue); transform: scaleX(0); transform-origin: left center; transition: transform 1200ms var(--ease-draw); }
  .steps-wrap.is-on .steps-track span { transform: scaleX(1); }
}
.step-no { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 40px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-tint-ink); font-weight: 800; font-size: 17px; box-shadow: 0 0 0 6px var(--paper); transition: background-color 280ms var(--ease-out), color 280ms var(--ease-out); }
.steps-wrap.is-on .step-no { background: var(--blue); color: #FFFFFF; transition-delay: var(--d, 0ms); }
.steps h3 { margin-top: 20px; }
.steps h3 a { color: inherit; text-decoration: none; }
.steps h3 a:hover { color: var(--blue-text); text-decoration: underline; }
.steps p { margin-top: 10px; color: var(--ink-2); }

/* ── Message templates (payment reminders) ────────────────────────────── */
.seg-tabs { position: relative; display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 48px; padding: 4px; border-radius: 999px; background: var(--track); }
.seg-tabs button { position: relative; z-index: 1; -webkit-appearance: none; appearance: none; border: 0; background: transparent; cursor: pointer; padding: 0 22px; border-radius: 999px; font: 700 15px/1 var(--font); color: var(--ink-2); transition: color 180ms var(--ease-out); }
.seg-tabs button[aria-pressed="true"] { color: var(--ink); }
.seg-tabs .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--thumb); box-shadow: 0 1px 3px rgba(14, 26, 43, .14); transition: transform 280ms var(--ease-move); }
.seg-tabs[data-value="firm"] .thumb { transform: translateX(100%); }
.tpl-list { display: grid; gap: 20px; margin-top: 32px; }
.tpl { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 24px; padding: 24px; scroll-margin-top: 96px; }
@media (min-width: 900px) { .tpl { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 28px; } }
.tpl .when { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-tint-ink); font-size: 13.5px; font-weight: 700; }
.tpl h3 { margin-top: 12px; font-size: 20px; }
.tpl .why { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.tpl .msg { position: relative; background: var(--blue-tint); border-radius: 18px 18px 6px 18px; padding: 16px 18px; white-space: pre-line; font-size: 15.5px; line-height: 1.55; color: var(--ink); transition: opacity 180ms var(--ease-out); }
.tpl .msg.swap { opacity: 0; }
.tpl-list[data-tone="friendly"] .t-firm, .tpl-list[data-tone="firm"] .t-friendly { display: none; }
.tpl .msg mark { background: transparent; color: var(--blue-text); font-weight: 700; }
.tpl .tools { display: flex; justify-content: flex-end; margin-top: 12px; }
.copy-btn .ok { display: none; }
.copy-btn.copied { background: var(--blue-tint); color: var(--blue-tint-ink); }
.copy-btn.copied .ok { display: inline; }
.copy-btn.copied .go { display: none; }

/* ── Long reads (guides) ──────────────────────────────────────────────── */
.prose { max-width: 70ch; font-size: 18px; }
.prose h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -.02em; margin-top: 56px; max-width: none; }
.prose h3 { font-size: 21px; margin-top: 32px; }
.prose p { margin-top: 16px; color: var(--ink-2); }
.prose p strong, .prose li strong { color: var(--ink); }
.prose ul, .prose ol { margin-top: 16px; padding-left: 0; list-style: none; display: grid; gap: 12px; color: var(--ink-2); }
.prose ul li { position: relative; padding-left: 34px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 20px; height: 10px; border-radius: 999px; background: var(--blue); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 46px; counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 32px; height: 26px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-tint-ink); font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.callout { margin-top: 28px; border-radius: 22px; padding: 22px 22px; background: var(--blue-tint); color: var(--blue-tint-ink); }
.callout b { display: block; font-size: 18px; color: var(--ink); }
.callout p { color: var(--ink); margin-top: 8px; }
.toc { margin-top: 32px; padding: 20px 22px; border-radius: 22px; border: 1px solid var(--line); }
.toc b { font-size: 15px; }
.toc ol { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 6px; }
.toc a { font-weight: 600; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.article-meta { margin-top: 18px; font-size: 14px; color: var(--ink-2); font-weight: 600; }

/* ── Questions ────────────────────────────────────────────────────────── */
.faq { margin-top: 32px; max-width: 800px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { position: relative; flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--track); transition: transform 280ms var(--ease-move), background-color 180ms var(--ease-out); }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--ink); }
.faq .plus::after { transform: rotate(90deg); }
.faq details[open] .plus { transform: rotate(45deg); background: var(--blue-tint); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }
.faq details[open] p { animation: rise-in 280ms var(--ease-out); }

/* ── The waiting list ─────────────────────────────────────────────────── */
.join { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .join { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } .join .copy { position: sticky; top: 120px; } }
.join .copy p { margin-top: 16px; color: var(--ink-2); font-size: 18px; max-width: 44ch; }
.promise { margin-top: 28px; padding: 20px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-soft); }
.promise b { display: block; font-size: 17px; }
.promise p { margin-top: 6px !important; font-size: 16px !important; }
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 28px; padding: 24px 20px; box-shadow: var(--shadow); scroll-margin-top: 96px; }
@media (min-width: 480px) { .card { padding: 32px 28px; } }
.card h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.015em; max-width: none; }
.card .sub { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.field { margin: 20px 0 0; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--field); color: var(--ink); font: 500 17px/1 var(--font);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out); -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--grey); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.err { display: none; margin-top: 8px; color: var(--error); font-size: 14px; font-weight: 700; }
.field.bad .err { display: block; }
.field.bad .input { border-color: var(--error); }
.field.bad .input:focus { box-shadow: 0 0 0 4px var(--error-tint); }
.seg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 52px; padding: 4px; border-radius: 999px; background: var(--track); }
.seg label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 0 6px; border-radius: 999px; text-align: center; line-height: 1.1; font-size: 15px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: color 180ms var(--ease-out); }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg label:has(input:checked) { color: var(--ink); }
.seg label:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--blue); }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: var(--thumb); box-shadow: 0 1px 3px rgba(14, 26, 43, .14); opacity: 0; transition: transform 280ms var(--ease-move), opacity 180ms var(--ease-out); }
.seg:has(input:checked) .seg-thumb { opacity: 1; }
.seg:has(input[value="trades"]:checked) .seg-thumb { transform: translateX(100%); }
.seg:has(input[value="both"]:checked) .seg-thumb { transform: translateX(200%); }
.field.bad .seg { box-shadow: inset 0 0 0 1.5px var(--error); }
.seg-hint { margin-top: 8px; min-height: 1.5em; font-size: 14px; color: var(--ink-2); }
.field > .consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 0; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.field.bad > .consent { color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.card .btn.wide { margin-top: 24px; }
.status { margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--error); }
.status:empty { display: none; }
.card .note { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.done { display: none; }
.card.joined form { display: none; }
.card.joined .done { display: block; animation: rise-in 280ms var(--ease-out) both; }
.done h2:focus { outline: none; }
.done p { margin-top: 12px; color: var(--ink-2); }
.done p strong { color: var(--ink); }
.done .btn { margin-top: 24px; }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── The blue band and the footer ─────────────────────────────────────── */
.band-wrap { padding: 0 16px 72px; }
@media (min-width: 640px) { .band-wrap { padding: 0 24px 96px; } }
.band { position: relative; overflow: hidden; max-width: 1160px; margin: 0 auto; background: #2A66B0; color: #FFFFFF; border-radius: 32px; padding: 72px 24px; text-align: center; }
.band .logo { width: min(220px, 56vw); margin: 0 auto; }
.band .tagline { margin-top: 26px; font-size: clamp(26px, 3.8vw, 36px); font-weight: 700; letter-spacing: -.015em; }
.band p { margin: 12px auto 0; max-width: 42ch; color: rgba(255, 255, 255, .88); }
.band .btn { margin-top: 30px; }

footer.foot { padding: 56px 0 48px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .foot-brand { grid-column: auto; } }
.foot-brand .logo { width: 72px; }
.foot-brand p { margin-top: 14px; max-width: 30ch; }
.foot h2 { font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: .02em; max-width: none; }
.foot ul { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 8px; }
.foot a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ── The real app in a phone ──────────────────────────────────────────── */
.phone-wrap { margin: 0; display: flex; flex-direction: column; align-items: center; }
.phone { position: relative; width: min(300px, 78vw); padding: 10px; border-radius: 50px; background: #0E1A2B; box-shadow: 0 0 0 1.5px #2A3C55 inset, var(--shadow-lift); }
.phone-screen { position: relative; overflow: hidden; border-radius: 40px; background: #F4F6F9; padding-top: 30px; }
.phone-screen .island { position: absolute; z-index: 1; top: 9px; left: 50%; width: 82px; height: 22px; margin-left: -41px; border-radius: 999px; background: #0E1A2B; }
.phone-video { display: block; width: 100%; height: auto; aspect-ratio: 600 / 1262; background: #F4F6F9; }
.phone-wrap figcaption { margin-top: 16px; font-size: 14px; color: var(--ink-2); font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; text-align: center; }
.replay { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-tint-ink); font: 700 14px/1 var(--font); transition: transform 280ms var(--ease-spring); }
.replay:active { transform: scale(.97); transition-duration: 120ms; }

/* The showcase: four features, one phone; each tab's pill fills as its clip plays */
.showcase { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .showcase { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head phone" "tabs phone"; column-gap: 80px; row-gap: 0; align-items: start; }
  .showcase .sc-head { grid-area: head; align-self: end; }
  .showcase .sc-tabs { grid-area: tabs; }
  .showcase .phone-wrap { grid-area: phone; align-self: center; }
}
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 960px) { .features { margin-top: 32px; } }
@media (max-width: 959px) { .showcase .phone-wrap { order: 1; } .showcase .sc-tabs { order: 2; } }
.feature { -webkit-appearance: none; appearance: none; width: 100%; text-align: left; cursor: pointer; border: 1px solid transparent; border-radius: 22px; padding: 18px 20px; background: transparent; color: var(--ink); font: inherit; transition: background-color 280ms var(--ease-out), border-color 280ms var(--ease-out), transform 280ms var(--ease-spring); }
.feature:hover { background: var(--surface); }
.feature:active { transform: scale(.99); }
.feature[aria-pressed="true"] { background: var(--surface); border-color: var(--line-soft); box-shadow: var(--shadow); }
.feature b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.feature span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.feature .bar { position: relative; display: block; height: 6px; margin-top: 14px; border-radius: 999px; background: var(--track); overflow: hidden; }
.feature .bar i { position: absolute; inset: 0; border-radius: 999px; background: var(--blue); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 260ms linear; }
.feature[aria-pressed="false"] .bar { display: none; }

/* ── Reduced motion: everything simply there ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0s !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .loader-fill { animation: none; clip-path: none; }
}
