/* GENERATED by landing/site/build.mjs from landing/site/src. Edit the source, then rebuild. */
/* LEDGENT SITE. Landmate brand kept: warm paper ground, warm ink, one sage accent, Plus Jakarta Sans.
   New in this pass: paper grain, tactile documents, a working mini-app as the hero, pill nav, five pages.
   Shape rule: controls 10px, panels 16px, app window 18px, chips and nav pills full round. */
:root {
  --bg: oklch(0.9385 0.0132 82);
  --card: oklch(0.972 0.008 82);
  --band: oklch(0.907 0.014 82);
  --desk: oklch(0.885 0.016 80);
  --ink: oklch(0.21 0.018 50);
  --body: oklch(0.35 0.016 50);
  --muted: oklch(0.5 0.015 60);
  --line: oklch(0.21 0.018 50 / 0.12);
  --line-soft: oklch(0.21 0.018 50 / 0.07);
  --accent: oklch(0.94 0.018 145);
  --accent-fg: oklch(0.32 0.05 145);
  --accent-ink: oklch(0.42 0.07 145);
  --deep: oklch(0.3 0.045 145);
  --on-deep: oklch(0.95 0.01 85);
  --on-deep-muted: oklch(0.82 0.025 130);
  --on-deep-line: oklch(0.95 0.01 85 / 0.22);
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  --warn: oklch(0.53 0.1 65);
  --warn-bg: oklch(0.96 0.025 75);
  --neg: oklch(0.5 0.13 25);
  --grain-op: 0.5;
  --grain-blend: multiply;
  --shadow: 0 1px 2px oklch(0.2 0.02 50 / 0.06), 0 14px 34px oklch(0.2 0.02 50 / 0.08);
  --shadow-lift: 0 2px 4px oklch(0.2 0.02 50 / 0.08), 0 28px 56px oklch(0.2 0.02 50 / 0.16);
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-num: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --r-ctl: 10px;
  --r-panel: 16px;
  --r-app: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.195 0.012 50); --card: oklch(0.235 0.014 50); --band: oklch(0.255 0.014 50); --desk: oklch(0.225 0.014 50);
    --ink: oklch(0.94 0.008 85); --body: oklch(0.84 0.01 78); --muted: oklch(0.7 0.012 70);
    --line: oklch(0.94 0.008 85 / 0.14); --line-soft: oklch(0.94 0.008 85 / 0.08);
    --accent: oklch(0.33 0.042 145); --accent-fg: oklch(0.82 0.07 145); --accent-ink: oklch(0.78 0.08 145); --deep: oklch(0.29 0.04 145);
    --warn: oklch(0.78 0.1 75); --warn-bg: oklch(0.3 0.04 70); --neg: oklch(0.72 0.12 25);
    --grain-op: 0.35; --grain-blend: soft-light;
    --shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 14px 34px oklch(0 0 0 / 0.35);
    --shadow-lift: 0 2px 4px oklch(0 0 0 / 0.35), 0 28px 56px oklch(0 0 0 / 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--body); font-family: var(--font-ui); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
/* paper grain over the whole page: fixed, never intercepts the pointer */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: var(--grain-op); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.45  0 0 0 0 0.4  0 0 0 0.09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; letter-spacing: -0.03em; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 3px; border-radius: 4px; }
/* Section links (75-section-links.js): a linked section stops below the sticky nav (68px). .mod sets its own, larger margin. */
:where(section[id]) { scroll-margin-top: calc(68px + env(safe-area-inset-top, 0px)); }
/* Script focuses the section after a section link so a keyboard user knows where they are. It is not a control: no ring. */
section[tabindex="-1"]:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
section { padding-block: 88px; }
@media (max-width: 720px) { section { padding-block: 60px; } }
.h2 { font-size: clamp(27px, 3.2vw, 40px); line-height: 1.12; font-weight: 700; }
.lead { font-size: 19px; max-width: 58ch; }
.mono { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; white-space: nowrap; font: 600 15.5px/1 var(--font-ui); border-radius: var(--r-ctl); border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), opacity .2s, background-color .2s; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn.primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn.primary:hover { opacity: .88; }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.quiet:hover { background: var(--line-soft); }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.on-deep { background: var(--on-deep); color: var(--deep); }
.btn.ghost-deep { background: transparent; color: var(--on-deep); border-color: var(--on-deep-line); }
.btn.ghost-deep:hover { background: var(--on-deep-line); }
.textlink { font-weight: 600; color: var(--ink); text-underline-offset: 4px; }

/* announcement bar and pill nav */
.bar { background: var(--deep); color: var(--on-deep); font-size: 14.5px; position: relative; z-index: 3; }
.bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: center; padding-block: 10px; text-align: center; line-height: 1.4; }
.bar a { color: var(--on-deep); font-weight: 600; text-underline-offset: 3px; }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.logo svg { width: 30px; height: 30px; border-radius: 9px; display: block; }
.logo span { font-size: 20px; font-weight: 700; letter-spacing: -0.035em; }
.pills { display: flex; gap: 4px; margin-left: 18px; }
.pills a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--body); padding: 8px 16px; border-radius: 999px; transition: background-color .2s; }
.pills a:hover { background: var(--line-soft); }
.pills a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }
/* Product dropdown: opens on hover, keyboard focus, or the chevron */
.dd { position: relative; display: flex; align-items: center; }
.dd-t { padding-right: 6px !important; border-radius: 999px 0 0 999px !important; }
.dd-b { appearance: none; border: 0; background: none; color: var(--body); cursor: pointer; height: 34px; padding: 0 12px 0 4px; border-radius: 0 999px 999px 0; display: grid; place-items: center; }
.dd-b svg { transition: transform .2s; }
.dd:hover .dd-b, .dd:focus-within .dd-b, .dd.open .dd-b { background: var(--line-soft); }
.dd:hover .dd-t, .dd:focus-within .dd-t, .dd.open .dd-t { background: var(--line-soft); }
.dd.open .dd-b svg, .dd:hover .dd-b svg { transform: rotate(180deg); }
.dd-menu { position: absolute; top: 100%; left: -14px; padding-top: 12px; width: min(620px, 92vw); display: none; grid-template-columns: 1fr 1fr; gap: 4px; z-index: 70; }
.dd-menu::before { content: ""; position: absolute; inset: 12px 0 0 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -24px color-mix(in oklab, var(--ink) 45%, transparent); z-index: -1; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { display: grid; padding: 22px 10px 10px; }
.dd-menu a { display: flex; flex-direction: column; gap: 3px; text-decoration: none; padding: 11px 14px; border-radius: 12px; color: var(--ink); }
.dd-menu a:hover { background: var(--line-soft); }
.dd-menu a b { font-size: 14.5px; font-weight: 650; }
.dd-menu a span { font-size: 13px; line-height: 1.4; color: var(--body); font-weight: 400; }
.dd-menu a[aria-current="page"] { box-shadow: inset 0 0 0 1px var(--line); }
.dd-menu .dd-all { grid-column: 1 / -1; background: var(--line-soft); }
.menu-btn { display: none; appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.mpanel { display: none; border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100dvh - 68px); overflow-y: auto; }
.mpanel .wrap { display: flex; flex-direction: column; padding-block: 8px 16px; height: auto; gap: 0; align-items: stretch; }
.mpanel a { text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 600; padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
.mpanel a.sub { font-weight: 500; color: var(--body); padding-left: 18px; font-size: 15px; }
.mpanel a[aria-current="page"] { color: var(--accent); }
@media (max-width: 860px) { .pills { display: none; } .nav-cta .quiet { display: none; } .menu-btn { display: inline-block; } .mpanel:not([hidden]) { display: block; } }
@media (min-width: 861px) { .mpanel { display: none !important; } }
@media (max-width: 560px) { .nav .wrap { gap: 10px; } .nav-cta { gap: 6px; } .nav-cta .primary { display: none; } .menu-btn { padding: 0 12px; height: 36px; line-height: 1; display: inline-flex; align-items: center; }.logo span { font-size: 18px; } }
.mpanel a.cta { margin-top: 12px; text-align: center; background: var(--ink); color: var(--bg); border-radius: 999px; border: 0; }
@media (max-width: 1000px) { .dd-menu { grid-template-columns: 1fr; } }
.menu-m { display: none; }
@media (max-width: 860px) { .menu-m { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 0 14px; font-size: 14.5px; font-weight: 600; } .menu-m a { text-decoration: none; } }

/* hero: uniform text block, then the mini-app as the focal point */
.demo-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* the mini app */
.app { margin-top: 34px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-app); box-shadow: var(--shadow-lift); overflow: hidden; }
.app-top { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: color-mix(in oklab, var(--card) 70%, var(--band)); }
.app-top .dots { display: flex; gap: 6px; }
.app-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.co { margin-left: 6px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.co small { color: var(--muted); font-weight: 500; }
.app-top .sample { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.app-body { display: grid; grid-template-columns: 188px 1fr; min-height: 470px; }
.rail { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; background: color-mix(in oklab, var(--card) 80%, var(--band)); }
.rail button { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: var(--r-ctl); font: 500 14px/1.2 var(--font-ui); color: var(--body); cursor: pointer; }
.rail button:hover { background: var(--line-soft); }
.rail button[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.rail button:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 1px; }
.rail .badge { font: 600 11.5px/1 var(--font-num); background: var(--ink); color: var(--bg); border-radius: 999px; padding: 3px 7px; }
.rail .grp { margin: 12px 12px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pane { display: none; padding: 20px; min-width: 0; }
.pane.on { display: block; }
@media (max-width: 860px) {
  .app-body { grid-template-columns: 1fr; }
  .rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .rail .grp { display: none; }
  .rail button { flex: none; }
}

/* AI Review pane: desk of documents + the drafted entry */
.review { display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; }
@media (max-width: 1000px) { .review { grid-template-columns: 1fr; } }
.desk { position: relative; background: var(--desk); border-radius: 14px; min-height: 410px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), inset 0 8px 30px oklch(0.2 0.02 50 / 0.06); }
.desk-hint { position: absolute; left: 16px; bottom: 12px; font-size: 12.5px; color: var(--muted); z-index: 6; }
.paper { position: absolute; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 14px 16px; font-size: 12.5px; line-height: 1.45; text-align: left; cursor: pointer; border-radius: 3px; transition: transform .6s var(--ease), box-shadow .6s var(--ease), z-index 0s .15s; color: var(--body); font-family: var(--font-ui); }
.paper:hover { box-shadow: var(--shadow-lift); }
.paper b { color: var(--ink); }
.paper .r { display: flex; justify-content: space-between; gap: 12px; padding-top: 5px; }
.paper .t { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 7px; font-weight: 700; color: var(--ink); }
.paper .hl { border-radius: 3px; padding: 0 3px; margin: 0 -3px; transition: background-color .4s; }
.paper.sel { z-index: 5; box-shadow: var(--shadow-lift); transform: translate(var(--sx, 0), var(--sy, 0)) rotate(0deg) scale(1.05) !important; }
.paper.sel .hl.on { background: var(--accent); color: var(--accent-fg); }
.paper.sel::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 36px; background: linear-gradient(to bottom, transparent, color-mix(in oklab, var(--accent-ink) 32%, transparent) 70%, var(--accent-ink)); opacity: 0; pointer-events: none; }
.paper.scan::after { animation: scan 1.1s var(--ease) forwards; }
@keyframes scan { 0% { top: -36px; opacity: .9; } 85% { opacity: .9; } 100% { top: 100%; opacity: 0; } }
/* four document looks */
.p-invoice { width: 54%; left: 5%; top: 7%; transform: rotate(-4deg); --sx: 9%; --sy: 7%; }
.p-rent { width: 46%; left: 44%; top: 5%; transform: rotate(3.5deg); background-image: repeating-linear-gradient(to bottom, transparent 0 21px, var(--line-soft) 21px 22px); --sx: -22%; --sy: 6%; }
.p-loan { width: 52%; left: 6%; top: 52%; transform: rotate(2deg); --sx: 8%; --sy: -34%; }
.p-receipt { width: 34%; left: 60%; top: 46%; transform: rotate(-3deg); font-family: var(--font-num); font-size: 11.5px; border-radius: 0 0 2px 2px; -webkit-mask: radial-gradient(circle 5px at 5px 100%, #0000 98%, #000) -5px 100% / 10px 100% repeat-x, linear-gradient(#000 0 0); -webkit-mask-composite: source-in; mask: radial-gradient(circle 5px at 5px 100%, #0000 98%, #000) -5px 100% / 10px 100% repeat-x, linear-gradient(#000 0 0); mask-composite: intersect; --sx: -30%; --sy: -28%; }
.tape { position: absolute; width: 54px; height: 16px; top: -8px; left: 42%; overflow: hidden; background: var(--card); border: 1px solid var(--line-soft); border-block-color: var(--line); box-shadow: inset 0 -4px 0 -3px var(--line); transform: rotate(-3deg); }

.ledger { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; position: relative; display: flex; flex-direction: column; min-height: 410px; background-image: linear-gradient(to right, transparent 28px, color-mix(in oklab, var(--neg) 38%, transparent) 28px 29px, transparent 29px); background-size: 100% 100%; background-blend-mode: normal; }
.ledger::before { content: ""; position: absolute; inset: 0; border-radius: 14px; background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--line-soft) 31px 32px); background-position: 0 56px; pointer-events: none; opacity: .8; }
.ledger > * { position: relative; }
.l-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-left: 22px; }
.l-head b { color: var(--ink); font-size: 15px; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent); color: var(--accent-fg); white-space: nowrap; }
.chip.wait { background: var(--warn-bg); color: var(--warn); }
.chip.plain { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.l-meta { padding-left: 22px; margin-top: 6px; font-size: 13px; color: var(--muted); min-height: 40px; }
.l-lines { padding-left: 22px; margin-top: 8px; display: grid; gap: 0; }
.l-line { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; height: 32px; font-size: 14px; opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.l-line.on { opacity: 1; transform: none; }
.l-line .a { color: var(--ink); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-line .c { display: flex; gap: 20px; flex: none; }
.l-line .c span { width: 76px; text-align: right; }
.l-line .c span.z { color: var(--muted); }
.l-cols { padding-left: 22px; display: flex; justify-content: flex-end; gap: 20px; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.l-cols span { width: 76px; text-align: right; }
.l-bal { margin: 10px 0 0 22px; padding: 8px 12px; border-radius: var(--r-ctl); background: var(--accent); color: var(--accent-fg); font-size: 13px; font-weight: 600; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; opacity: 0; transition: opacity .4s; }
.l-bal.on { opacity: 1; }
.l-foot { margin-top: auto; padding: 14px 0 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.l-foot .note { font-size: 12.5px; color: var(--muted); }
.stamp { position: absolute; right: 26px; bottom: 92px; z-index: 4; border: 3px solid var(--accent-ink); color: var(--accent-ink); border-radius: 6px; padding: 4px 14px; font: 800 22px/1.2 var(--font-num); letter-spacing: .12em; transform: rotate(-9deg) scale(1.9); opacity: 0; pointer-events: none; mix-blend-mode: multiply; }
.stamp.hit { animation: thump .38s cubic-bezier(.2,.9,.3,1.3) forwards; }
@keyframes thump { 0% { opacity: 0; transform: rotate(-9deg) scale(1.9); } 60% { opacity: .95; transform: rotate(-9deg) scale(.94); } 100% { opacity: .9; transform: rotate(-9deg) scale(1); } }
@media (prefers-color-scheme: dark) { :root .stamp { mix-blend-mode: normal; } }

/* ledger and reports panes */
.pane h4 { margin: 0 0 12px; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 0 8px 8px 0; }
.tbl th.r, .tbl td.r { text-align: right; padding-right: 0; }
.tbl td { padding: 10px 8px 10px 0; border-top: 1px solid var(--line-soft); color: var(--ink); }
.tbl tr.new td { animation: rowin .8s var(--ease); background: var(--accent); }
@keyframes rowin { from { opacity: 0; transform: translateY(-8px); } }
.tbl-wrap { overflow-x: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips button { all: unset; box-sizing: border-box; cursor: pointer; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font: 500 13.5px/1 var(--font-ui); color: var(--body); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips button:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 2px; }
.pl { display: grid; gap: 12px; }
.pl-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 100px; align-items: center; gap: 14px; font-size: 14px; }
.pl-row .nm { color: var(--ink); font-weight: 500; }
.pl-plot { position: relative; height: 22px; }
.pl-plot::before { content: ""; position: absolute; left: var(--zero, 20%); top: -3px; bottom: -3px; width: 1px; background: var(--muted); }
.pl-bar { position: absolute; top: 3px; height: 16px; border-radius: 3px; background: var(--accent-ink); transition: width .9s var(--ease), left .9s var(--ease); }
.pl-bar.neg { background: var(--neg); }
.pl-row .mono { text-align: right; font-size: 13.5px; color: var(--ink); }
.pl-total { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; margin-top: 4px; }
.pl-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
@media (max-width: 560px) { .pl-row { grid-template-columns: 1fr 90px; } .pl-plot { grid-column: 1 / -1; grid-row: 2; } }


/* arming simulator */
.sim { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow); padding: 22px; }
.sim-controls { display: grid; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink); font-weight: 600; }
.switch-row small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.sw { all: unset; box-sizing: border-box; cursor: pointer; width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background-color .25s; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px oklch(0.2 0.02 50 / 0.3); transition: transform .3s var(--ease); }
.sw[aria-checked="true"] { background: var(--accent-ink); }
.sw[aria-checked="true"]::after { transform: translateX(20px); }
.sw:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 3px; }
.range-row label { display: flex; justify-content: space-between; color: var(--ink); font-weight: 600; margin-bottom: 8px; }
input[type=range] { width: 100%; accent-color: var(--accent-ink); height: 28px; }
.sim-list { margin-top: 6px; }
.sim-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); transition: background-color .4s; }
.sim-item:last-child { border-bottom: 0; }
.sim-item b { display: block; color: var(--ink); font-size: 15px; }
.sim-item span.sub { font-size: 13px; color: var(--muted); }
.sim-item .res { display: flex; align-items: center; gap: 12px; }
.sim-item .res .mono { color: var(--ink); }

/* numbers strip */
.stats { padding-block: 0 20px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 26px 32px 0; }
.stat + .stat { padding-left: 26px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(42px, 5.2vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); }
.stat span { display: block; margin-top: 12px; font-size: 15.5px; max-width: 24ch; }
@media (max-width: 860px) { .stat-row { grid-template-columns: 1fr 1fr; } .stat { padding: 26px 16px 24px 0; } .stat + .stat { padding-left: 0; border-left: 0; } .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* two-column feature rows */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split.flip { grid-template-columns: 1.1fr 1fr; }
.split p.lead { margin-top: 16px; }
.facts { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.facts li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 16.5px; }
@media (max-width: 980px) { .split, .split.flip { grid-template-columns: 1fr; gap: 36px; } }
.band { background: var(--band); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow); padding: 22px; }

/* founder band: the page's one colour block */
.founder { background: var(--deep); color: var(--on-deep-muted); }
.founder h2, .founder .num { color: var(--on-deep); }
.f-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.big100 { font-size: clamp(120px, 20vw, 270px); line-height: .82; font-weight: 800; letter-spacing: -0.06em; color: var(--on-deep); }
.big100-cap { margin-top: 20px; font-size: 18px; max-width: 22ch; color: var(--on-deep); font-weight: 500; }
.f-copy p { margin-top: 16px; font-size: 18px; max-width: 52ch; }
.f-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.f-cta span { font-size: 14.5px; }
@media (max-width: 980px) { .f-grid { grid-template-columns: 1fr; gap: 36px; } }

/* team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 26px; box-shadow: var(--shadow); }
.mono-cut { width: 84px; height: 84px; border-radius: 22px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; transform: rotate(-3deg); box-shadow: 0 6px 16px oklch(0.2 0.02 50 / 0.12); }
.person:nth-child(even) .mono-cut { transform: rotate(3deg); background: var(--band); color: var(--ink); }
.person h3 { margin-top: 20px; font-size: 21px; }
.person .role { color: var(--accent-ink); font-weight: 600; font-size: 14.5px; margin-top: 2px; }
.person p { margin-top: 12px; font-size: 16px; }
.person-points { margin: 12px 0 0; padding-left: 18px; font-size: 16px; }
.person-points li + li { margin-top: 4px; }
.draft { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* principles / guarantees groups */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.groups > div { padding: 26px 28px 8px 0; }
.groups > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.groups h3 { font-size: 22px; }
.groups dl { margin: 16px 0 0; }
.groups dt { font-weight: 600; color: var(--ink); margin-top: 14px; font-size: 16px; }
.groups dd { margin: 3px 0 0; font-size: 15.5px; }
@media (max-width: 900px) { .groups { grid-template-columns: 1fr; } .groups > div, .groups > div + div { padding: 24px 0 8px; border-left: 0; border-top: 1px solid var(--line); } .groups > div:first-child { border-top: 0; } }

/* pricing */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--band); border: 1px solid var(--line); }
.seg button { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 22px; border-radius: 999px; font: 600 14.5px/1 var(--font-ui); color: var(--body); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.seg > span { box-sizing: border-box; padding: 9px 22px; border-radius: 999px; font: 600 14.5px/1 var(--font-ui); }
.seg button:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 2px; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 36px; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; gap: 30px; } }
.total { font-size: clamp(56px, 8vw, 104px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.total small { font-size: 22px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.breakdown { margin-top: 18px; display: grid; gap: 0; }
.breakdown div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); }
.breakdown div span:first-child { color: var(--body); }
.ladder-wrap { overflow-x: auto; }
.ladder { width: 100%; border-collapse: collapse; }
.ladder th { text-align: right; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 0 0 12px; }
.ladder th:first-child, .ladder td:first-child { text-align: left; }
.ladder td { text-align: right; padding: 15px 0; border-top: 1px solid var(--line); font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 17px; color: var(--ink); }
.ladder td:first-child { font-family: var(--font-ui); color: var(--body); }
.ladder td.f { font-weight: 600; font-size: 20px; }
.checks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--ink); font-size: 16.5px; }
.checks li::before { content: "\2713"; color: var(--accent-ink); font-weight: 700; flex: none; }

/* property lifecycle stepper */
.life { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; }
.life button { all: unset; box-sizing: border-box; cursor: pointer; padding: 22px 18px 20px 0; border-top: 3px solid var(--line); text-align: left; transition: border-color .3s; }
.life button b { display: block; color: var(--ink); font-size: 20px; letter-spacing: -0.02em; }
.life button span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.life button[aria-pressed="true"] { border-top-color: var(--accent-ink); }
.life button:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 2px; }
.life-detail { margin-top: 8px; padding: 18px 22px; border-radius: var(--r-panel); background: var(--accent); color: var(--accent-fg); font-size: 16.5px; min-height: 84px; }
@media (max-width: 760px) { .life { grid-template-columns: 1fr 1fr; } }

/* faq, final, footer */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
@media (max-width: 980px) { .faq-grid { grid-template-columns: 1fr; gap: 28px; } }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 21px 0; font-size: 18px; font-weight: 600; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-num); font-weight: 400; font-size: 24px; color: var(--muted); transition: transform .3s var(--ease); flex: none; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 44px 22px 0; font-size: 16.5px; max-width: 60ch; }
.final { background: var(--deep); color: var(--on-deep-muted); text-align: center; }
.final h2 { color: var(--on-deep); font-size: clamp(30px, 4.2vw, 52px); line-height: 1.08; max-width: 20ch; margin: 0 auto; }
.final p { margin: 18px auto 0; font-size: 19px; max-width: 46ch; }
.final .f-cta { justify-content: center; }
footer { padding-block: 48px 56px; border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot p { margin-top: 12px; font-size: 14.5px; max-width: 40ch; color: var(--muted); }
.foot .meta { font-size: 13.5px; color: var(--muted); display: grid; gap: 8px; align-content: start; }
.foot .meta a { text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .l-line, .l-bal { opacity: 1 !important; transform: none !important; } .paper.scan::after { display: none; } }

/* the race and the comparison table */
.race { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
@media (max-width: 860px) { .race { grid-template-columns: 1fr; } }
.lane { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px; box-shadow: var(--shadow); position: relative; transition: box-shadow .5s var(--ease), border-color .5s; }
.lane.new.won { border-color: var(--accent-ink); box-shadow: 0 0 0 1px var(--accent-ink), var(--shadow-lift); }
.lane h3 { font-size: 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lane .clock { font: 600 14px/1 var(--font-num); color: var(--muted); }
.lane.new .clock { color: var(--accent-ink); }
.lane ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.lane li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 16px; transition: color .3s; }
.lane li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: background-color .3s, border-color .3s; }
.lane li.now { color: var(--ink); font-weight: 600; }
.lane li.now::before { border-color: var(--warn); animation: pulse 1.1s ease-in-out infinite; }
.lane.new li.now::before { border-color: var(--accent-ink); }
.lane li.done { color: var(--ink); }
.lane li.done::before { background: var(--accent-ink); border-color: var(--accent-ink); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in oklab, currentColor 0%, transparent), 0 0 0 5px var(--warn-bg); } }
.ticket { margin-top: 16px; padding: 10px 14px; border-radius: var(--r-ctl); background: var(--band); font-size: 14px; color: var(--muted); min-height: 42px; display: flex; align-items: center; }
.ticket.on { background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.race-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.race-foot small { color: var(--muted); font-size: 13px; }
.vs { width: 100%; border-collapse: collapse; margin-top: 34px; }
.vs th { text-align: left; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 0 16px 12px 0; }
.vs td { padding: 18px 16px 18px 0; border-top: 1px solid var(--line); vertical-align: top; font-size: 16px; }
.vs td:first-child { color: var(--ink); font-weight: 600; width: 24%; }
.vs td:nth-child(2) { color: var(--muted); }
.vs td:nth-child(3) { color: var(--ink); }
.vs-wrap { overflow-x: auto; }
.vs-wrap .vs { min-width: 640px; }

/* demo pieces stand off the page: a dotted desk behind them, a deep shadow, and a tag that says "Try it" */
.zone { position: relative; margin-top: 34px; padding: 34px 30px 30px; border-radius: 26px; background-color: var(--desk); background-image: radial-gradient(color-mix(in oklab, var(--ink) 16%, transparent) 1px, transparent 1.4px); background-size: 20px 20px; box-shadow: inset 0 0 0 1px var(--line), inset 0 10px 40px oklch(0.2 0.02 50 / 0.07); }
.zone > .tag { position: absolute; top: -13px; left: 28px; z-index: 8; background: var(--ink); color: var(--bg); font: 600 12px/1 var(--font-ui); letter-spacing: .05em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 14px oklch(0.2 0.02 50 / 0.3); }
.zone > .tag::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.zone .app, .zone .sim, .zone .lane, .zone .panel { box-shadow: 0 0 0 1px var(--line), 0 2px 4px oklch(0.2 0.02 50 / 0.1), 0 30px 60px -12px oklch(0.2 0.02 50 / 0.3), 0 60px 110px -30px oklch(0.2 0.02 50 / 0.22); }
.zone .app { margin-top: 0; }
.zone .race { margin-top: 0; }
.zone-cap { margin-top: 18px; font-size: 13.5px; color: var(--muted); text-align: center; }
@media (max-width: 720px) { .zone { padding: 26px 12px 18px; border-radius: 18px; } .zone > .tag { left: 16px; } }
/* The :root .board .zone selectors keep the specificity the dark rule has always had over the .board rule in the Home bento. */
@media (prefers-color-scheme: dark) { :root .zone .app, :root .zone .sim, :root .zone .lane, :root .zone .panel, :root .board .zone .app, :root .board .zone .sim, :root .board .zone .lane, :root .board .zone .panel { box-shadow: 0 0 0 1px var(--line), 0 30px 60px -12px oklch(0 0 0 / 0.6); } }

/* feature reel */
.reel { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .reel { grid-template-columns: 1fr; gap: 26px; } }
.reel-list { display: grid; gap: 0; }
.reel-list button { all: unset; box-sizing: border-box; position: relative; cursor: pointer; padding: 16px 0 18px; border-top: 1px solid var(--line); display: block; opacity: .55; transition: opacity .3s; }
.reel-list button:last-child { border-bottom: 1px solid var(--line); }
.reel-list button b { display: block; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.reel-list button span { display: block; margin-top: 2px; font-size: 14.5px; color: var(--muted); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--ease), opacity .3s; }
.reel-list button:hover { opacity: .85; }
.reel-list button[aria-selected="true"] { opacity: 1; }
.reel-list button[aria-selected="true"] span { max-height: 40px; opacity: 1; }
.reel-list button:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 2px; }
.reel-list .bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent-ink); }
.reel-list button[aria-selected="true"] .bar { width: 100%; opacity: .35; }
.reel-list button.run .bar { animation: fill 7s linear forwards; width: 0; opacity: 1; }
.reel-list button.hold .bar { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
@media (max-width: 900px) { .reel-list { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; } .reel-list button, .reel-list button:last-child { flex: none; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; } .reel-list button span, .reel-list .bar { display: none; } .reel-list button b { font-size: 15px; } .reel-list button[aria-selected="true"] { background: var(--ink); } .reel-list button[aria-selected="true"] b { color: var(--bg); } }
.reel-stage { position: relative; }
.sheet { --r1: -1.5deg; --r2: 2deg; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 36px 38px 30px; min-height: 420px; box-shadow: var(--shadow-lift); background-image: repeating-linear-gradient(to bottom, transparent 0 35px, var(--line-soft) 35px 36px); }
.sheet::before, .sheet::after { content: ""; position: absolute; inset: 0; border-radius: 6px; background: var(--card); border: 1px solid var(--line); z-index: -1; box-shadow: var(--shadow); }
.sheet::before { transform: rotate(var(--r1)) translate(6px, 8px); }
.sheet::after { transform: rotate(var(--r2)) translate(-5px, 14px); z-index: -2; }
.sheet.swap { animation: shuffle .55s var(--ease); }
@keyframes shuffle { from { opacity: 0; transform: translateY(26px) rotate(1.8deg); } }
.sheet h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.sheet ul { list-style: none; margin: 0; padding: 0; display: grid; }
.sheet li { padding: 14px 0 12px; border-bottom: 1px solid var(--line-soft); opacity: 0; transform: translateX(-14px); transition: opacity .45s var(--ease), transform .45s var(--ease); display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; }
.sheet li::before { content: "\2713"; color: var(--accent-ink); font-weight: 800; grid-row: 1 / span 2; }
.sheet li.on { opacity: 1; transform: none; }
.sheet li b { color: var(--ink); font-size: 18px; letter-spacing: -0.01em; }
.sheet li span { font-size: 15.5px; color: var(--body); }
.reel-ctl { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.reel-ctl button { all: unset; box-sizing: border-box; cursor: pointer; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: 18px; transition: background-color .2s, transform .2s var(--ease); }
.reel-ctl button:hover { background: var(--line-soft); }
.reel-ctl button:active { transform: scale(.94); }
.reel-ctl button:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 2px; }
.reel-count { margin-left: 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .sheet { padding: 26px 22px 22px; } }

/* report viewer, underline tabs, theme toggle, intake papers */
.utabs { display: flex; flex-wrap: wrap; gap: 4px 26px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.utabs button { all: unset; box-sizing: border-box; cursor: pointer; padding: 6px 0 12px; font: 600 15px/1 var(--font-ui); color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.utabs button:hover { color: var(--ink); }
.utabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.utabs button:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 2px; }
.rsheet { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 24px 26px 18px; min-height: 360px; box-shadow: var(--shadow); background-image: repeating-linear-gradient(to bottom, transparent 0 43px, var(--line-soft) 43px 44px); background-position: 0 60px; }
.rs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; padding-bottom: 12px; }
.rs-head b { display: block; font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }
.rs-head > div > span { font-size: 13.5px; color: var(--muted); }
.rsheet .tbl td { padding: 11px 8px 11px 0; background: transparent; }
.rsheet .tbl tr { animation: rowin .5s var(--ease) both; }
.rsheet .tbl tr.sub td { font-weight: 600; }
.rsheet .tbl tr.tot td { font-weight: 800; border-top: 2px solid var(--ink); }
.rs-foot { margin-top: 12px; font-size: 13px; color: var(--muted); }
.intake { position: relative; height: 330px; background: var(--desk); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.intake .paper { cursor: default; }
.intake .p-invoice { left: 4%; top: 8%; width: 48%; --sx: 0; }
.intake .p-rent { left: 50%; top: 6%; width: 44%; }
.intake .p-loan { left: 8%; top: 54%; width: 46%; }
.intake .p-receipt { left: 62%; top: 50%; width: 30%; }
@media (prefers-reduced-motion: no-preference) { .intake .paper { animation: drift 7s ease-in-out infinite alternate; } .intake .p-rent { animation-delay: -2s; } .intake .p-loan { animation-delay: -4s; } .intake .p-receipt { animation-delay: -1s; } }
@keyframes drift { to { translate: 0 -7px; } }

/* footer */
footer { padding-block: 64px 28px; border-top: 1px solid var(--line); background: var(--band); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
.foot-brand p { margin-top: 14px; font-size: 15px; max-width: 34ch; color: var(--body); }
.foot-brand .foot-offer { color: var(--ink); }
.foot-brand .btn { margin-top: 18px; }
.foot-grid nav { display: grid; gap: 10px; align-content: start; }
.foot-grid h4 { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.foot-grid nav a { text-decoration: none; font-size: 15px; color: var(--ink); width: fit-content; }
.foot-grid nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; font-size: 13.5px; color: var(--muted); }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.foot-legal a { text-underline-offset: 3px; }
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr 1fr; } }


/* phone: let grid children shrink so the demo never widens the page */
.app-body > *, .review > *, .split > *, .calc > *, .reel > *, .race > * { min-width: 0; }
@media (max-width: 860px) { .app-body { grid-template-columns: minmax(0, 1fr); } .rail { max-width: 100%; } }
.l-lines { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) { .l-line .c span, .l-cols span { width: 64px; } .l-line .c, .l-cols { gap: 10px; } .ledger { padding: 16px 14px; } .l-line { font-size: 13px; } }
@media (max-width: 560px) {
  .app-top .dots, .app-top .sample { display: none; }
  .co { margin-left: 0; }
  .desk { min-height: 400px; }
  .paper { font-size: 11.5px; padding: 10px 12px; }
  .p-invoice { width: 66%; left: 4%; top: 5%; }
  .p-rent { width: 56%; left: 40%; top: 30%; }
  .p-loan { width: 62%; left: 4%; top: 56%; }
  .p-receipt { width: 40%; left: 56%; top: 66%; }
  .pane { padding: 12px; }
  .zone .app { border-radius: 14px; }
}

.team.five { grid-template-columns: repeat(5, 1fr); }
.team.five .person { padding: 22px; }
@media (max-width: 1100px) { .team.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .team.five { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .team.five { grid-template-columns: 1fr; } }

/* founder story */
.story { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.story-text .lead { margin-top: 16px; max-width: 60ch; }
.story-text .h2 { max-width: 20ch; }
.pull { margin: 34px 0 0; padding: 24px 0 0; border-top: 2px solid var(--ink); font-size: clamp(24px, 2.8vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); max-width: 24ch; text-wrap: balance; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; gap: 28px; } }

/* app explorer */
.xrail { overflow-y: auto; max-height: 600px; }
.xpane { padding: 26px 30px; min-height: 560px; }
.xpane.flip { animation: shuffle .45s var(--ease); }
.xhead h3, .xhead h4 { margin: 0; font-size: 26px; letter-spacing: -0.03em; color: var(--ink); display: block; }
.xhead p { margin-top: 8px; font-size: 17px; max-width: 60ch; color: var(--body); }
.xsheet { margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; box-shadow: var(--shadow); background-image: repeating-linear-gradient(to bottom, transparent 0 39px, var(--line-soft) 39px 40px); min-height: 190px; }
.xsheet .tbl td { background: transparent; padding: 10px 8px 10px 0; font-size: 13.5px; }
.xsheet .tbl tr { animation: rowin .45s var(--ease) both; }
.xlist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; }
.xlist li { display: grid; grid-template-columns: 26px 1fr; padding: 11px 0; border-top: 1px solid var(--line-soft); color: var(--ink); font-size: 16px; animation: rowin .45s var(--ease) both; }
.xlist li::before { content: "\2713"; color: var(--accent-ink); font-weight: 800; }
.xvs { margin-top: 16px; padding: 12px 16px; border-radius: var(--r-ctl); background: var(--band); font-size: 14.5px; color: var(--body); }
.xvs b { color: var(--ink); margin-right: 6px; }
.xbars { display: grid; gap: 12px; }
.xb { display: grid; grid-template-columns: minmax(110px, 190px) 1fr 96px; gap: 12px; align-items: center; font-size: 13.5px; }
.xb .nm { color: var(--ink); font-weight: 500; }
.xb .mono { text-align: right; color: var(--ink); }
.xtrack { position: relative; height: 16px; }
.xbar { position: absolute; left: 0; top: 0; height: 16px; border-radius: 3px; background: var(--accent-ink); transform-origin: left; animation: grow .8s var(--ease) both; }
.xbar.over { background: var(--neg); }
.xtrack u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
@keyframes grow { from { transform: scaleX(0); } }
.xstats { display: flex; flex-wrap: wrap; gap: 6px 36px; margin-bottom: 14px; }
.xstats div { min-width: 110px; }
.xstats b { display: block; font-size: 26px; color: var(--ink); letter-spacing: -0.03em; }
.xstats span { font-size: 13px; color: var(--muted); }
.xsteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0; }
.xsteps div { padding: 14px 14px 12px 0; border-top: 3px solid var(--accent-ink); animation: rowin .5s var(--ease) both; }
.xsteps b { display: block; color: var(--ink); font-size: 16px; }
.xsteps span { font-size: 13px; color: var(--muted); }
.xkv { display: grid; }
.xkv div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); animation: rowin .45s var(--ease) both; }
.xkv span { color: var(--muted); font-size: 14px; }
.xkv b { color: var(--ink); font-size: 14.5px; text-align: right; }
.xtheme { display: grid; gap: 14px; justify-items: start; padding: 24px 4px; }
@media (max-width: 860px) { .xpane { padding: 18px 14px; min-height: 0; } .xrail { max-height: none; } .xb { grid-template-columns: 1fr 80px; } .xtrack { grid-column: 1 / -1; grid-row: 2; } }

/* explorer polish: plain paper under data, roomier columns, no wrapping values */
.xsheet { background-image: none; }
.xsheet .tbl th, .xsheet .tbl td { padding-right: 18px; }
.xsheet .tbl th:last-child, .xsheet .tbl td:last-child { padding-right: 0; }
.xb { grid-template-columns: minmax(110px, 190px) 1fr 130px; }
.xb .mono { white-space: nowrap; }
@media (max-width: 860px) { .xb { grid-template-columns: 1fr 120px; } }

/* module pages */
.subpills { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: calc(68px + env(safe-area-inset-top, 0px)); z-index: 40; }
.subpills .wrap { display: flex; gap: 4px; overflow-x: auto; padding-block: 10px; }
.subpills a { flex: none; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--body); padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.subpills a:hover { background: var(--line-soft); }
.subpills a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.modnav { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 26px; border-bottom: 1px solid var(--line); }
.modnav a { text-decoration: none; padding: 6px 0 12px; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.modnav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.mod { padding-block: 72px; scroll-margin-top: 130px; }
.mod-head { max-width: 760px; margin-bottom: 8px; }
.mod-head .lead { margin-top: 12px; }
.mod .zone { margin-top: 30px; }
.mod-app .xrail { max-height: 520px; }
.mod-app .xpane { min-height: 440px; }
.walk { margin-top: 56px; }
.walk-title { font-size: 22px; max-width: 40ch; }
.walk-box { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-app); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -12px oklch(0.2 0.02 50 / 0.3); padding: 24px; }
@media (max-width: 860px) { .walk-box { grid-template-columns: 1fr; } }
.walk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; align-content: start; }
.walk-steps button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 10px; border-radius: var(--r-ctl); cursor: pointer; font-size: 15.5px; color: var(--body); line-height: 1.35; }
.walk-steps button:hover { background: var(--line-soft); }
.walk-steps button[aria-current="true"] { background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.walk-steps button:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 1px; }
.wn { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font: 600 12.5px/1 var(--font-num); color: var(--muted); }
.walk-steps button[aria-current="true"] .wn { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--bg); }
.walk-steps button.past .wn { background: var(--line-soft); color: var(--ink); }
.walk-view { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.walk-view.flip { animation: shuffle .4s var(--ease); }
.wk-see { font-size: 17px; color: var(--ink); max-width: 56ch; }
.wk-see b { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.walk-view .reel-ctl { margin-top: auto; }
.reel-ctl button:disabled { opacity: .35; cursor: default; }
.det { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 1px solid var(--line); }
.det > div { padding: 16px 0 14px; border-bottom: 1px solid var(--line-soft); display: grid; gap: 2px; }
.det b { color: var(--ink); font-size: 16px; }
.det span { font-size: 15.5px; }
@media (max-width: 860px) { .det { grid-template-columns: 1fr; } }
.nb { margin-top: 26px; padding: 18px 22px; border-radius: var(--r-panel); background: var(--warn-bg); color: var(--ink); }
.nb b { display: block; color: var(--warn); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.nb ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15.5px; }
.xform { display: grid; gap: 0; max-width: 520px; }
.xf-title { color: var(--ink); font-size: 17px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.xf { display: grid; grid-template-columns: 150px 1fr; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); animation: rowin .4s var(--ease) both; align-items: baseline; }
.xf span { font-size: 13px; color: var(--muted); }
.xf em { font-style: normal; color: var(--ink); font-size: 14.5px; }
.xf small { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.xf-btns { display: flex; gap: 10px; margin-top: 16px; }
.xf-btn { padding: 9px 18px; border-radius: var(--r-ctl); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.xf-btn.pri { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.xlistv { display: grid; }
.xlistv > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); animation: rowin .4s var(--ease) both; }
.xlistv b { display: block; color: var(--ink); font-size: 15px; }
.xlistv span { font-size: 13px; color: var(--muted); }
.xlistv .xr { display: flex; align-items: center; gap: 12px; }
.xlistv .xr .mono { color: var(--ink); font-size: 14px; }

/* product hub index */
.hub { margin-top: 26px; border-top: 1px solid var(--line); }
.hub-row { display: grid; grid-template-columns: minmax(180px, 260px) 1fr minmax(180px, 300px) 32px; gap: 8px 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--body); transition: background-color .25s, padding .3s var(--ease); }
.hub-row:hover { background: var(--line-soft); padding-left: 14px; padding-right: 14px; }
.hub-n { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.hub-d { font-size: 16.5px; }
.hub-m { font-size: 13.5px; color: var(--muted); }
.hub-go { font-size: 20px; color: var(--ink); text-align: right; }
@media (max-width: 860px) { .hub-row { grid-template-columns: 1fr 32px; } .hub-d, .hub-m { grid-column: 1; } .hub-go { grid-column: 2; grid-row: 1; } }

.nb.soon { background: var(--accent); }
.nb.soon b { color: var(--accent-fg); }


/* PAPER PASS: the app's warm paper ground, plus the structure of a ledger page.
   Ruling, a margin line and double rules are all ink at low alpha, so they follow both themes. */
:root { --rule: oklch(0.21 0.018 50 / 0.055); --margin: oklch(0.5 0.1 25 / 0.2); --wash-a: oklch(0.94 0.02 145 / 0.5); --wash-b: oklch(0.95 0.02 75 / 0.45); }
@media (prefers-color-scheme: dark) { :root { --rule: oklch(0.94 0.008 85 / 0.045); --margin: oklch(0.62 0.1 25 / 0.22); --wash-a: oklch(0.3 0.04 145 / 0.4); --wash-b: oklch(0.3 0.03 70 / 0.3); } }
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 38% at 50% -6%, var(--wash-a), transparent 72%),
    radial-gradient(ellipse 50% 30% at 100% 2%, var(--wash-b), transparent 66%);
  background-repeat: no-repeat;
}
/* the ledger sheet: horizontal rules every 34px and a red margin line, on tinted bands */
.band {
  background-image:
    linear-gradient(to right, transparent calc(max(20px, (100% - 1240px) / 2 + 20px) - 14px), var(--margin) calc(max(20px, (100% - 1240px) / 2 + 20px) - 14px), var(--margin) calc(max(20px, (100% - 1240px) / 2 + 20px) - 13px), transparent calc(max(20px, (100% - 1240px) / 2 + 20px) - 13px)),
    repeating-linear-gradient(to bottom, transparent 0, transparent 33px, var(--rule) 33px, var(--rule) 34px);
}
.band { background-color: var(--band); }
@media (max-width: 700px) { .band { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 33px, var(--rule) 33px, var(--rule) 34px); } }
/* an accountant's double rule between plain sections and above totals */
section + section:not(.band):not(.founder):not(.final):not(.stats) { border-top: 0; position: relative; }
section + section:not(.band):not(.founder):not(.final):not(.stats)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); opacity: .8; }
.stats { background: var(--card); border-block: 1px solid var(--line); box-shadow: inset 0 -4px 0 -3px var(--line); }
.dd-t[aria-current="page"] { box-shadow: none !important; background: none !important; }
.dd:has(.dd-t[aria-current="page"]) { background: var(--card); box-shadow: 0 0 0 1px var(--line); border-radius: 999px; }

/* HOME LAYOUT PASS: a ledger tape, one dense proof board, a 100-place grid, a sticky sign-up pill */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--card); box-shadow: inset 0 -4px 0 -3px var(--line); }
.ticker-in { display: flex; width: max-content; gap: 0; animation: ticker 46s linear infinite; }
.ticker span { flex: none; padding: 14px 30px; font: 500 13.5px/1 var(--font-num); color: var(--body); border-right: 1px solid var(--line-soft); white-space: nowrap; }
.ticker i { font-style: normal; color: var(--accent-ink); font-weight: 600; margin-right: 8px; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-in { animation: none; } }
.board { background: var(--band); padding-block: 72px 80px; background-image: linear-gradient(to right, transparent calc(max(20px, (100% - 1240px) / 2 + 20px) - 14px), var(--margin) calc(max(20px, (100% - 1240px) / 2 + 20px) - 14px), var(--margin) calc(max(20px, (100% - 1240px) / 2 + 20px) - 13px), transparent calc(max(20px, (100% - 1240px) / 2 + 20px) - 13px)), repeating-linear-gradient(to bottom, transparent 0, transparent 33px, var(--rule) 33px, var(--rule) 34px); }
.board-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 40px; margin-bottom: 30px; }
.board-head .lead { margin: 0; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.cell { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cell h3 { font-size: clamp(21px, 2vw, 27px); line-height: 1.15; font-weight: 700; color: var(--ink); max-width: 26ch; }
.cell-k { font: 600 12px/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.cell-k .mono { color: var(--accent-ink); margin-right: 8px; }
.cell-note { font-size: 14.5px; color: var(--body); max-width: 60ch; }
.cell .zone { margin-top: 14px; padding: 26px 18px 18px; flex: 1; }
.c-race { grid-column: span 8; }
.c-nums { grid-column: span 4; background: var(--deep); color: var(--on-deep-muted); border-radius: 26px; padding: 12px 28px; justify-content: space-between; gap: 0; }
.num-row { padding: 22px 0; border-bottom: 1px solid var(--on-deep-line); }
.num-row:last-child { border-bottom: 0; }
.num-row b { display: block; font-size: clamp(46px, 5vw, 70px); line-height: 1; font-weight: 800; letter-spacing: -0.045em; color: var(--on-deep); }
.num-row span { display: block; margin-top: 8px; font-size: 14.5px; max-width: 26ch; }
.c-pl { grid-column: span 5; }
.c-sim { grid-column: span 7; }
.cell .race { grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 1040px) { .c-race, .c-pl, .c-sim { grid-column: 1 / -1; } .c-nums { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 28px; } .num-row:nth-last-child(2) { border-bottom: 0; } }
@media (max-width: 600px) { .c-nums { grid-template-columns: 1fr; } .num-row:nth-last-child(2) { border-bottom: 1px solid var(--on-deep-line); } .cell .race { grid-template-columns: 1fr; } .board { background-image: none; } }
/* 100 Founder places */
.places { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(7px, 1.2vw, 14px); max-width: 380px; }
.places i { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--on-deep-line); transition: background-color .3s, transform .3s; }
.places:hover i { border-color: var(--on-deep-muted); }
.places i:hover { background: var(--on-deep-muted); transform: scale(1.25); }
.f-grid .big100-cap { max-width: 30ch; }
.cell .zone { display: flex; flex-direction: column; justify-content: center; }
.cell .zone > .tag { position: absolute; }

/* module pages: key facts as a short bullet list */
.det { margin-top: 44px; display: block; border-top: 0; max-width: 760px; }
.det h3 { font: 600 12px/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.det ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.det li { position: relative; padding-left: 22px; font-size: 16.5px; line-height: 1.5; color: var(--body); }
.det li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-ink); }
.det li b { color: var(--ink); font-weight: 650; }

/* race: lane header */
.lane h3 { display: flex; align-items: center; gap: 10px; }
.lane h3 .clock { margin-left: auto; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* team headshots (About) */
.headshot { display: block; width: 96px; height: 96px; border-radius: 22px; object-fit: cover; background: var(--band); border: 1px solid var(--line); }
.story-who .headshot { width: 144px; height: 144px; border-radius: 30px; }
@media (min-width: 861px) { .hub-row.no-m { grid-template-columns: minmax(180px, 260px) 1fr 32px; } }

/* Ported from the design revision's home.css (hero, floating cards, reveals, page headers, AI flow, closing band).
   Hidden-until-revealed states are keyed on .js, which public/theme-init.js puts on <html>, so no script means no blank page. */
:root {
  --brand: #1d6a64; --brand-hi: #2b8a80; --brand-mint: #4fb3a2; --brand-wash: #d9ece7; --brand-fg: #fff;
  --btn-bg: var(--brand); --btn-fg: var(--brand-fg);
  --accent-ink: var(--brand);
}
@media (prefers-color-scheme: dark) {
  :root { --brand: #5fbfb1; --brand-hi: #7fd3c6; --brand-mint: #4fb3a2; --brand-wash: #1b302d; --brand-fg: #0f1a18;
    /* The dark value 10-base sets. This file's :root above would otherwise win now that both have the same specificity. */
    --accent-ink: oklch(0.78 0.08 145); }
}

.btn.primary { box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 20px -8px color-mix(in oklab, var(--brand) 70%, transparent); }
.btn.primary:hover { opacity: 1; background: var(--brand-hi); transform: translateY(-1px); }
.btn.quiet { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn.quiet:hover { border-color: var(--ink); }

/* ---------- hero ---------- */
.hx { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 84px) clamp(48px, 6vw, 90px);
  background: radial-gradient(60% 70% at 78% 45%, color-mix(in oklab, var(--brand-mint) 22%, transparent), transparent 70%), var(--bg); }
.hx-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hx-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font-ui); letter-spacing: .02em; color: var(--brand);
  background: var(--brand-wash); padding: 9px 14px; border-radius: 999px; }
.hx-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-mint); box-shadow: 0 0 0 0 var(--brand-mint); animation: hxPulse 2s infinite; }
@keyframes hxPulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand-mint) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.hx h1 { margin-top: 22px; font-size: clamp(38px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; color: var(--ink); }
.hx h1 em { font-style: normal; display: block; background: linear-gradient(100deg, var(--brand) 10%, var(--brand-mint) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-sub { margin-top: 22px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 34ch; color: var(--body); }
.hx-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hx-cta .btn { height: 54px; padding: 0 26px; font-size: 16px; }
.hx-ticks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--muted); }
.hx-ticks li { display: flex; align-items: center; gap: 8px; }
.hx-ticks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

.hx-stage { position: relative; height: clamp(440px, 46vw, 600px); }
.hx-orb { position: absolute; left: 50%; top: 50%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -52%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--brand-mint) 55%, var(--bg)), color-mix(in oklab, var(--brand) 30%, var(--bg)) 70%); opacity: .55; }
.hx-ring { position: absolute; left: 50%; top: 50%; width: 96%; aspect-ratio: 1; transform: translate(-50%, -52%); border-radius: 50%; border: 1.5px dashed color-mix(in oklab, var(--brand) 35%, transparent); animation: hxSpin 60s linear infinite; }
@keyframes hxSpin { to { transform: translate(-50%, -52%) rotate(360deg); } }
.hx-mascot { position: absolute; left: 50%; top: 50%; width: auto; height: 76%; max-width: 62%; object-fit: contain; transform: translate(-50%, -54%); z-index: 2;
  filter: drop-shadow(0 30px 30px rgba(20, 40, 38, .22)); animation: hxFloat 6s ease-in-out infinite; }
@keyframes hxFloat { 0%, 100% { transform: translate(-50%, -54%); } 50% { transform: translate(-50%, -57%); } }
.hx-shadow { position: absolute; left: 50%; bottom: 8%; width: 30%; height: 18px; transform: translateX(-50%); border-radius: 50%; background: rgba(20, 30, 28, .18); filter: blur(8px); animation: hxShadow 6s ease-in-out infinite; }
@keyframes hxShadow { 50% { transform: translateX(-50%) scale(.85); opacity: .7; } }

/* floating cards */
.fc { position: absolute; z-index: 3; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 13px; color: var(--body);
  box-shadow: 0 2px 4px rgba(31,22,17,.05), 0 24px 48px -16px rgba(31,22,17,.28); will-change: transform; }
.js .fc { opacity: 0; translate: 0 18px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
.hx.in .fc { opacity: 1; translate: 0 0; }
.hx.in .fc-pl { transition-delay: .25s; } .hx.in .fc-ok2 { transition-delay: 1.2s; } .hx.in .fc-match { transition-delay: .6s; }
.fc b { color: var(--ink); font-weight: 650; }
.fc .mono { font-family: var(--font-num); }
.fc-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.fc-ok { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-wash); padding: 4px 8px; border-radius: 999px; }
.fc-name { margin-top: 8px; font-weight: 700; color: var(--ink); font-size: 14.5px; }
.fc-lines { margin-top: 8px; display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; font-size: 12.5px; }
.fc-lines span:nth-child(even) { color: var(--ink); text-align: right; }
.fc-ic { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--brand-wash); }
.fc-top .fc-ic { width: 22px; height: 22px; border-radius: 7px; }
.fc-ic::after { content: ""; width: 60%; height: 60%; background: var(--brand); -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.fc-ic.doc { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 1.5h5l3.5 3.5v9.5H4z M9 1.5V5h3.5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E"); }
.fc-ic.check { background: var(--brand); } .fc-ic.check::after { background: var(--brand-fg); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fc-ic.bank { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 6 8 2l6.5 4M3 7v5M6.3 7v5M9.7 7v5M13 7v5M1.5 14h13' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E"); }
.fc-ok2, .fc-match { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; }
.fc-ok2 div, .fc-match div { display: grid; gap: 1px; } .fc-ok2 span:not(.fc-ic), .fc-match span:not(.fc-ic) { font-size: 12px; color: var(--muted); }
.fc-big { margin-top: 6px; font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.fc-big::before { content: "$"; color: var(--muted); font-size: 18px; margin-right: 2px; }
.fc-spark { display: block; width: 160px; height: 40px; margin-top: 4px; }
.fc-spark path { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 240; stroke-dashoffset: 240; transition: stroke-dashoffset 1.6s .6s var(--ease); }
.hx.in .fc-spark path { stroke-dashoffset: 0; }

.fc-bill { left: -4%; top: 10%; width: 250px; }
.fc-pl { right: -2%; top: 4%; }
.fc-ok2 { right: 2%; bottom: 20%; }
.fc-match { left: 2%; bottom: 10%; }
.fc-ok2.pop { animation: fcPop .5s var(--ease); }
@keyframes fcPop { 40% { scale: 1.06; } }

/* ---------- proof strip ---------- */
.proof { background: var(--deep); color: var(--on-deep-muted); padding-block: 26px; }
.proof { padding-block: 30px 34px; }
.proof-k { margin: 0 0 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-mint); }
.proof-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; }
.proof-list li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--brand-mint); }
@media (max-width: 900px) { .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.proof-list b { font-size: 19px; letter-spacing: -0.01em; color: var(--on-deep); font-weight: 700; }
.proof-list span { font-size: 13px; }

/* ---------- demo section ---------- */
.demo-sec { padding-block: clamp(56px, 7vw, 96px); position: relative; }
.demo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 10px; }
.demo-head .h2 { max-width: 20ch; }
.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.demo-peek { width: 170px; height: auto; margin-bottom: -56px; position: relative; z-index: 9; filter: drop-shadow(0 14px 14px rgba(20,40,38,.2)); }

/* ---------- bento fixes and colour ---------- */
.c-pl, .c-sim { align-self: start; }
.c-pl .zone { display: block; }
.c-nums { background: linear-gradient(160deg, var(--brand) 0%, color-mix(in oklab, var(--brand) 55%, #0b1f1d) 100%); }
@media (prefers-color-scheme: dark) { :root .c-nums { background: linear-gradient(160deg, #1d6a64, #0e2624); } }
.c-nums, .c-nums .num-row span { color: #d6ebe6; }
.c-nums .num-row b { color: #fff; }
.c-nums .num-row { border-color: rgba(255,255,255,.16) !important; }
.cell-k .mono { color: var(--brand); }

/* founder grid: 100 open dots that swell near the pointer */
.places { max-width: 400px; }
.places i { --s: 1; --g: 0; transform: scale(var(--s)); transition: transform .25s var(--ease), background-color .35s, border-color .35s, box-shadow .25s; box-shadow: 0 0 calc(var(--g) * 18px) calc(var(--g) * 2px) color-mix(in oklab, var(--brand-mint) 70%, transparent); }
.places i:hover { transform: scale(var(--s)); background: transparent; }

/* team photo */
.person-photo { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; display: block; transform: rotate(-3deg); box-shadow: 0 6px 16px rgba(31,22,17,.18); }

/* ---------- reveal on scroll ---------- */
.js .rv { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js .rv.in { opacity: 1; translate: 0 0; }
.hx-copy .rv:nth-child(2) { transition-delay: .08s; } .hx-copy .rv:nth-child(3) { transition-delay: .16s; } .hx-copy .rv:nth-child(4) { transition-delay: .24s; } .hx-copy .rv:nth-child(5) { transition-delay: .32s; }
.js .bento.rv > .cell { opacity: 0; translate: 0 30px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js .bento.rv.in > .cell { opacity: 1; translate: 0 0; }
.bento.rv.in > .cell:nth-child(2) { transition-delay: .1s; } .bento.rv.in > .cell:nth-child(3) { transition-delay: .2s; } .bento.rv.in > .cell:nth-child(4) { transition-delay: .3s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hx-grid { grid-template-columns: 1fr; }
  .hx-stage { height: 460px; max-width: 520px; width: 100%; margin-inline: auto; }
  .hx-sub { max-width: 46ch; }
}
@media (max-width: 560px) {
  .hx-stage { height: 400px; }
  .fc-bill { left: 0; top: 2%; width: 210px; } .fc-pl { right: 0; top: 30%; } .fc-pl .fc-spark { width: 110px; }
  .fc-ok2 { right: 0; bottom: 8%; } .fc-match { left: 0; bottom: 24%; }
  .fc { padding: 10px 12px; font-size: 12px; } .fc-big { font-size: 20px; }
  .hx-cta .btn { flex: 1 1 auto; }
  .demo-peek { display: none; }
  .proof-list { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-mascot, .hx-shadow, .hx-ring, .hx-eyebrow .dot { animation: none; }
  .js .rv, .js .bento.rv > .cell, .js .fc { opacity: 1; translate: none; transition: none; }
  .fc-spark path { stroke-dashoffset: 0; transition: none; }
}
@media (max-width: 560px) { .fc-match { display: none; } .fc-pl { top: 52%; } }

/* ======================= LOWER HALF ======================= */

/* ---------- personas ---------- */
.who { padding-block: clamp(64px, 8vw, 110px); background: var(--bg); }
.who-head { max-width: 760px; margin-bottom: 44px; }
.who-head .lead { margin-top: 14px; }
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.who-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.who-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.who-grid .who-card:nth-child(2) { transition-delay: .08s; } .who-grid .who-card:nth-child(3) { transition-delay: .16s; }
.who-img { position: relative; aspect-ratio: 4 / 3.4; background-size: cover; background-position: center 30%; transition: background-size .8s var(--ease); }
.who-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,25,23,.35), transparent 45%); }
.who-chip { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); font-size: 13px; transition: transform .6s .25s var(--ease), opacity .6s .25s var(--ease); }
.js .who-chip { transform: translateY(8px); opacity: 0; }
.who-card.in .who-chip { transform: none; opacity: 1; }
.who-chip div { display: grid; gap: 1px; } .who-chip b { color: var(--ink); font-size: 13px; } .who-chip span:not(.fc-ic) { font-size: 12px; color: var(--muted); }
.who-chip .mono { font-family: var(--font-num); }
.who-body { padding: 22px 24px 26px; }
.who-k { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); }
.who-body h3 { margin-top: 8px; font-size: 22px; line-height: 1.2; color: var(--ink); }
.who-body p:last-child { margin-top: 8px; font-size: 15.5px; color: var(--body); }
@media (max-width: 960px) { .who-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- three things: deep teal band ---------- */
.board { background: radial-gradient(80% 60% at 85% 0%, #2b8a80 0%, transparent 60%), linear-gradient(170deg, #17564f 0%, #0f3b37 100%) !important; background-image: radial-gradient(80% 60% at 85% 0%, rgba(79,179,162,.45) 0%, transparent 60%), linear-gradient(170deg, #17564f 0%, #0f3b37 100%) !important; color: #d6ebe6; padding-block: clamp(72px, 8vw, 110px) !important; }
.board .h2, .board .cell h3 { color: #fff; }
.board .lead, .board .cell-note { color: #bcd9d3; }
.board .cell-k { color: #9cc9c0; } .board .cell-k .mono { color: var(--brand-mint); }
.board .zone { background: transparent; background-image: none; box-shadow: none; padding: 0; margin-top: 18px; }
.board .zone .app, .board .zone .sim, .board .zone .lane, .board .zone .panel { box-shadow: 0 30px 60px -20px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); }
.board .race-foot small { color: #bcd9d3; }
.board .race-foot .btn.primary { background: var(--brand-mint); color: #0b2522; }
.c-nums { background: #f4efe7 !important; }
.c-nums .num-row b { color: #17564f !important; }
.c-nums, .c-nums .num-row span { color: #4b3f36 !important; }
.c-nums .num-row { border-color: rgba(23,86,79,.15) !important; }
.lane { overflow: hidden; }
.lane-photo { margin: -24px -24px 18px; height: 150px; background-size: cover; background-position: center; position: relative; }
.lane.old .lane-photo { filter: saturate(.75); }
.lane-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--card), transparent 55%); }

/* ---------- feature reel: big tabs over a full-width sheet ---------- */
.band#reel { background: var(--bg); }
.reel { grid-template-columns: 1fr !important; gap: 28px !important; }
@media (min-width: 901px) {
  .reel-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .reel-list button, .reel-list button:last-child { border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 20px; background: var(--card); opacity: 1; overflow: hidden; transition: background-color .3s, border-color .3s, transform .3s var(--ease); }
  .reel-list button:hover { transform: translateY(-2px); border-color: var(--brand); opacity: 1; }
  .reel-list button b { font-size: 17px; }
  .reel-list button span { max-height: none; opacity: 1; font-size: 13.5px; }
  .reel-list button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); }
  .reel-list button[aria-selected="true"] b { color: var(--brand-fg); }
  .reel-list button[aria-selected="true"] span { color: color-mix(in oklab, var(--brand-fg) 80%, transparent); }
  .reel-list .bar { background: var(--brand-mint); height: 3px; }
  .sheet ul { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .sheet { min-height: 0; }
}

/* ---------- founder ---------- */
.founder { position: relative; overflow: hidden; background: #0f1513 url(/site/img/founder-key.jpg) center/cover no-repeat; }
.founder::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,20,18,.92) 0%, rgba(12,20,18,.78) 45%, rgba(12,20,18,.88) 100%); }
.founder > .wrap { position: relative; }
.founder .f-grid { grid-template-columns: auto minmax(160px, 230px) minmax(0, 1fr); gap: 36px; }
@media (max-width: 900px) { .founder .f-grid { grid-template-columns: 1fr 150px; } .founder .f-copy { grid-column: 1 / -1; } }
.f-mascot { width: 100%; height: auto; align-self: end; filter: drop-shadow(0 20px 24px rgba(0,0,0,.45)); }


/* ---------- final CTA over a photo ---------- */
.final.final-photo { text-align: left; padding-block: clamp(90px, 10vw, 140px) !important; background: #0f2a27 url(/site/img/final-close.jpg) 70% center/cover no-repeat; position: relative; overflow: hidden; }
.final.final-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,38,35,.96) 0%, rgba(12,38,35,.86) 42%, rgba(12,38,35,.25) 72%, rgba(12,38,35,.05) 100%); }
.final-photo > .wrap { position: relative; display: flex; align-items: flex-end; gap: 24px; }
.final-copy { max-width: 540px; }
.final-photo h2 { margin: 0; text-align: left; color: #fff; }
.final-photo p { margin: 18px 0 0; color: #cfe5e0; }
.final-photo .f-cta { justify-content: flex-start; }
.final-photo .btn.on-deep { background: var(--brand-mint); color: #0b2522; }
@media (max-width: 720px) {
  .final.final-photo { background-position: 78% center; }
  .final.final-photo::before { background: linear-gradient(180deg, rgba(12,38,35,.9), rgba(12,38,35,.8)); }
  .final-photo > .wrap { flex-direction: column; align-items: flex-start; }
}
.board .lane h3 { color: var(--ink); }
.board .cell-k + h3 { color: #fff; }
@media (max-width: 560px) { .hx-mascot { height: 70%; } }

/* generated poses */
.who > .wrap { position: relative; }
.who-thumb { position: absolute; right: 40px; top: -24px; width: 168px; height: auto; filter: drop-shadow(0 18px 18px rgba(20,40,38,.18)); }
@media (max-width: 960px) { .who-thumb { width: 130px; right: 16px; top: -20px; } .who-head { padding-right: 130px; } }
@media (max-width: 560px) { .who-thumb { width: 96px; top: -10px; } .who-head { padding-right: 90px; } }

/* hero cards: spaced clear of the mascot, always drifting */
@keyframes fcBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (min-width: 961px) {
  .hx-mascot { height: 70%; }
  .fc-bill { left: -12%; top: 4%; }
  .fc-pl { right: -10%; top: -2%; }
  .fc-ok2 { right: -10%; bottom: 14%; }
  .fc-match { left: -10%; bottom: 4%; }
}
.hx.in .fc-bill { animation: fcBob 6s ease-in-out 1.2s infinite; }
.hx.in .fc-pl { animation: fcBob 7s ease-in-out 1.6s infinite; }
.hx.in .fc-match { animation: fcBob 6.5s ease-in-out 2s infinite; }
.hx.in .fc-ok2 { animation: fcBob 5.5s ease-in-out 2.4s infinite; }
.hx.in .fc-ok2.pop { animation: fcPop .5s var(--ease), fcBob 5.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hx.in .fc { animation: none; } }
@media (min-width: 961px) and (max-width: 1379px) {
  .fc-pl { right: -2%; } .fc-ok2 { right: -2%; }
  .fc-bill { left: -6%; } .fc-match { left: -4%; }
  .hx-mascot { height: 64%; }
}
@media (min-width: 961px) and (max-width: 1199px) {
  .fc-match { display: none; }
  .fc-bill { width: 200px; left: -6%; top: -2%; } .fc-bill .fc-lines { display: none; }
  .fc-pl { top: -6%; right: -4%; } .fc-pl .fc-spark { width: 110px; } .fc-pl .fc-big { font-size: 22px; }
  .fc-ok2 { bottom: 6%; }
  .hx-mascot { height: 60%; top: 54%; }
}

/* ======================= SUB-PAGES ======================= */
/* page hero: copy left, mascot or photo right, drifting cards */
.ph { position: relative; overflow: hidden; padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 76px);
  background: radial-gradient(55% 75% at 80% 45%, color-mix(in oklab, var(--brand-mint) 20%, transparent), transparent 70%), var(--bg); }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.ph .kicker { margin-bottom: 14px; }
.ph h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; color: var(--ink); max-width: 18ch; }
.ph-sub { margin-top: 18px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; max-width: 44ch; color: var(--body); }
.ph .hx-cta { margin-top: 26px; }
.ph-copy .rv:nth-child(2) { transition-delay: .08s; } .ph-copy .rv:nth-child(3) { transition-delay: .16s; } .ph-copy .rv:nth-child(4) { transition-delay: .24s; }
.ph-media { position: relative; height: clamp(340px, 34vw, 460px); }
.ph-media .hx-orb { width: 72%; }
.ph-photo { position: absolute; inset: 6% 6% 6% 10%; border-radius: 24px; background-size: cover; background-position: center; box-shadow: 0 30px 60px -24px rgba(20,30,28,.45); }
.ph-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.ph .fc { max-width: 260px; }
.ph .fc-a { left: -2%; top: 8%; }
.ph .fc-b { right: -2%; bottom: 8%; }
.ph.in .fc { opacity: 1; translate: 0 0; }
.ph.in .fc-b { transition-delay: .35s; }
.ph.in .fc-a { animation: fcBob 6s ease-in-out 1.2s infinite; }
.ph.in .fc-b { animation: fcBob 7s ease-in-out 1.8s infinite; }
.ph .fc-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; }
.ph .fc-row div { display: grid; gap: 1px; } .ph .fc-row span:not(.fc-ic) { font-size: 12px; color: var(--muted); }
@media (max-width: 960px) {
  .ph-grid { grid-template-columns: 1fr; }
  .ph-media { height: 340px; max-width: 520px; width: 100%; margin-inline: auto; }
  .ph .fc-a { left: 0; } .ph .fc-b { right: 0; }
}
@media (max-width: 560px) { .ph-media { height: 290px; } .ph .fc { font-size: 12px; } .ph .fc-row { padding: 9px 12px 9px 9px; } }
@media (prefers-reduced-motion: reduce) { .ph.in .fc { animation: none; } }

/* sub-nav pills in brand colour */
.subpills a[aria-current="page"] { background: var(--brand); color: var(--brand-fg); }

/* product hub as cards */
.hub { border-top: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hub-row { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 22px !important; border: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.hub-row:hover { background: var(--card); transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--brand); }
.hub-n { font-size: 21px; }
.hub-m { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.hub-go { position: absolute; display: none; }
.hub-row { position: relative; }
.hub-row::after { content: "\2192"; position: absolute; right: 22px; top: 22px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-wash); color: var(--brand); font-weight: 700; transition: transform .3s var(--ease); }
.hub-row:hover::after { transform: translateX(3px); background: var(--brand); color: var(--brand-fg); }
@media (max-width: 960px) { .hub { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hub { grid-template-columns: 1fr; } }

/* module pages: mascot beside the "Worth knowing" rules */
.det-pose { width: 100%; max-width: 230px; height: auto; justify-self: end; filter: drop-shadow(0 18px 18px rgba(20,40,38,.18)); }
@media (max-width: 860px) { .det-pose { max-width: 150px; justify-self: start; } }

/* about: founder photo */
.story-photo { width: 132px; height: 132px; border-radius: 30px; object-fit: cover; transform: rotate(-3deg); box-shadow: 0 10px 24px rgba(31,22,17,.18); display: block; }

/* reveal hooks added by script */
.js .js-rv { opacity: 0; translate: 0 22px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js .js-rv.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .js .js-rv { opacity: 1; translate: none; transition: none; } }

/* ============ PRODUCT-PAGE HEADERS: the real screen is the image ============ */
.ph.ph-app .ph-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; }
.ph.ph-app h1 { font-size: clamp(32px, 3.4vw, 50px); }
.ph-media.is-window { height: auto; padding: 18px 0 30px; }
.pw { position: relative; z-index: 2; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(31,22,17,.05), 0 40px 80px -30px rgba(20,40,38,.45); }
.pw-top { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: color-mix(in oklab, var(--card) 85%, var(--band)); font-size: 13px; }
.pw-dots { display: flex; gap: 6px; } .pw-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.pw-dots i:nth-child(1) { background: #e08b7c; } .pw-dots i:nth-child(2) { background: #e6c170; } .pw-dots i:nth-child(3) { background: var(--brand-mint); }
.pw-title { font-weight: 650; color: var(--ink); }
.pw-live { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.pw-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-mint); animation: hxPulse 2s infinite; }
.pw-body { display: grid; grid-template-columns: 158px minmax(0, 1fr); min-height: 360px; }
.pw-rail { border-right: 1px solid var(--line); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; background: color-mix(in oklab, var(--card) 70%, var(--band)); }
.pw-rail button { all: unset; box-sizing: border-box; position: relative; overflow: hidden; cursor: pointer; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 550; color: var(--body); }
.pw-rail button:hover { background: var(--line-soft); }
.pw-rail button[aria-selected="true"] { background: var(--brand); color: var(--brand-fg); }
.pw-rail button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.pw-rail u { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--brand-mint); }
.pw-rail button.run u { animation: pwFill 6s linear forwards; }
.pw.hold .pw-rail button.run u { animation-play-state: paused; }
@keyframes pwFill { to { width: 100%; } }
.pw-pane { padding: 16px 18px 18px; min-width: 0; }
.pw-pane.flip { animation: shuffle .45s var(--ease); }
.pw-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.pw-head b { font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.pw-head span { font-size: 13px; color: var(--muted); }
.pw-sheet { margin-top: 0 !important; padding: 14px 16px !important; font-size: 13px; }
.pw-sheet .tbl { font-size: 12.5px; }
.pw-sheet .xstats b { font-size: 21px; }
.ph-app .fc-a { left: -5%; top: auto; bottom: -2%; }
.ph-app .fc-b { right: -3%; top: -2%; bottom: auto; }
.ph-app .pw-mascot { position: absolute; z-index: 4; right: -4%; bottom: -6%; height: 210px; width: auto; filter: drop-shadow(0 16px 16px rgba(20,40,38,.22)); }
@media (max-width: 960px) {
  .ph.ph-app .ph-grid { grid-template-columns: 1fr; }
  .ph-media.is-window { max-width: none; }
  .pw-body { grid-template-columns: 1fr; }
  .pw-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .pw-rail button { flex: none; }
  .ph-app .pw-mascot { height: 140px; }
}
@media (max-width: 560px) { .ph-app .fc-b { display: none; } .ph-app .fc-a { left: 2%; } }

/* product overview: three screens fanned */
.pw-stack { position: relative; height: clamp(380px, 36vw, 470px); }
.pw-card { position: absolute; width: 74%; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(20,40,38,.45); transition: transform .5s var(--ease); }
.pw-card .pw-pane { padding: 12px 14px 14px; }
.pw-card-0 { left: 0; top: 0; transform: rotate(-3deg); z-index: 1; }
.pw-card-1 { right: 0; top: 18%; transform: rotate(2deg); z-index: 2; }
.pw-card-2 { left: 10%; bottom: 0; transform: rotate(-1deg); z-index: 3; }
.pw-stack:hover .pw-card-0 { transform: rotate(-4deg) translate(-8px, -6px); }
.pw-stack:hover .pw-card-1 { transform: rotate(3deg) translate(8px, -4px); }
.pw-card .xstats { margin-bottom: 8px; } .pw-card .tbl td { padding-block: 6px !important; }
@media (max-width: 560px) { .pw-stack { height: 420px; } .pw-card { width: 92%; } }

/* pricing: the monthly bill */
.bill { position: relative; z-index: 2; max-width: 420px; margin-inline: auto; background: var(--card); border-radius: 6px; padding: 26px 28px 30px; font-size: 14.5px; transform: rotate(-1.5deg);
  box-shadow: 0 2px 4px rgba(31,22,17,.06), 0 40px 70px -30px rgba(20,40,38,.45);
  -webkit-mask: radial-gradient(circle 7px at 10px 100%, #0000 98%, #000) 0 0/20px 100% repeat-x; mask: radial-gradient(circle 7px at 10px 100%, #0000 98%, #000) 0 0/20px 100% repeat-x; }
.bill h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bill .bl { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.bill .bl .mono { color: var(--ink); }
.bill .bl.strike .mono { color: var(--muted); text-decoration: line-through; }
.bill .bl.total { border-bottom: 0; padding-top: 14px; font-weight: 700; color: var(--ink); font-size: 17px; }
.bill .bl.total .mono { color: var(--brand); font-size: 22px; }
.bill .save { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--brand-wash); color: var(--brand); font-weight: 650; display: flex; justify-content: space-between; }
.bill small { display: block; margin-top: 12px; font-size: 12px; color: var(--muted); }

/* trust: the audit trail */
.audit .pw-pane { padding: 6px 18px 12px; }
.au { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); transition: opacity .5s var(--ease), translate .5s var(--ease); }
.js .au { opacity: 0; translate: 0 10px; }
.ph.in .au { opacity: 1; translate: 0 0; }
.ph.in .au:nth-child(2) { transition-delay: .25s; } .ph.in .au:nth-child(3) { transition-delay: .5s; } .ph.in .au:nth-child(4) { transition-delay: .75s; } .ph.in .au:nth-child(5) { transition-delay: 1s; }
.au:last-child { border-bottom: 0; }
.au b { display: block; color: var(--ink); font-size: 14px; } .au span { font-size: 12.5px; color: var(--muted); }
.au .chip { font-size: 11.5px; }
.au .t { font: 500 12px/1 var(--font-num); color: var(--muted); }

/* about: portrait */
.ph-portrait { position: relative; z-index: 2; width: min(78%, 360px); aspect-ratio: 1; margin-inline: auto; border-radius: 28px; overflow: hidden; transform: rotate(-2deg); box-shadow: 0 40px 70px -30px rgba(20,40,38,.45); }
.ph-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* keep hero windows to a screenful */
.pw .pw-pane { max-height: 390px; overflow: hidden; -webkit-mask: linear-gradient(to bottom, #000 82%, transparent); mask: linear-gradient(to bottom, #000 82%, transparent); }
.pw-body { min-height: 0; }
.pw-sheet .tbl th:nth-child(n+5), .pw-sheet .tbl td:nth-child(n+5) { display: none; }
.pw-sheet .tbl td { padding-block: 8px !important; }
.pw-card { max-height: 210px; }
.pw-card .pw-pane { max-height: 170px; overflow: hidden; -webkit-mask: linear-gradient(to bottom, #000 70%, transparent); mask: linear-gradient(to bottom, #000 70%, transparent); }
.pw-card-0 { width: 66%; left: 0; top: 2%; }
.pw-card-1 { width: 66%; right: 0; top: 30%; }
.pw-card-2 { width: 70%; left: 8%; top: auto; bottom: 2%; }
.pw-stack { height: clamp(420px, 38vw, 500px); }
@media (max-width: 560px) { .pw .pw-pane { max-height: 330px; } .pw-card { width: 90% !important; } .pw-stack { height: 470px; } }

/* ============ REAL APP SCREENSHOTS ============ */
.shot { margin: 0; position: relative; z-index: 2; background: #1b1714; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(31,22,17,.06), 0 40px 80px -30px rgba(20,40,38,.5); }
.shot .pw-top { background: color-mix(in oklab, var(--card) 85%, var(--band)); }
.shot img { display: block; width: 100%; height: auto; }
.ph-app .shot { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; transition: transform .8s var(--ease); }
.ph-app .ph-media:hover .shot { transform: none; }
@media (max-width: 960px) { .ph-app .shot { transform: none; } }
.pw-stack.real .pw-card { max-height: none; border: 0; background: none; box-shadow: none; overflow: visible; }
.pw-stack.real .pw-card-0 { width: 74%; left: 0; top: 0; }
.pw-stack.real .pw-card-1 { width: 74%; right: 0; top: 24%; }
.pw-stack.real .pw-card-2 { width: 74%; left: 8%; bottom: 0; top: auto; }
@media (max-width: 560px) { .pw-stack.real { height: 360px; } .pw-stack.real .pw-card { width: 86% !important; } }

/* AI Chat */
.chat-sec { padding-block: clamp(64px, 8vw, 110px); }
.chat-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.chat-copy .lead { margin-top: 16px; }
.chat-checks { margin-top: 22px; }
.chat-shot .shot img { aspect-ratio: auto; }
.chat-shot .zone-cap { margin-top: 14px; text-align: left; }
@media (max-width: 960px) { .chat-grid { grid-template-columns: 1fr; } }

/* nine feature groups: three by three */
@media (min-width: 901px) { .reel-list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }

/* ============ PRODUCT PAGES: more teal ============ */
main { counter-reset: mod; }
.mod { counter-increment: mod; position: relative; }
.mod-head { position: relative; padding-left: 0; }
.mod-head::before { content: counter(mod, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 30px; padding: 0 10px; margin-bottom: 14px; border-radius: 999px; background: var(--brand); color: var(--brand-fg); font: 600 13px/1 var(--font-num); letter-spacing: .04em; }
.mod-head .h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-mint)); }
/* alternate sections get a teal wash instead of beige */
.mod.band { background: radial-gradient(70% 60% at 100% 0%, color-mix(in oklab, var(--brand-mint) 18%, transparent), transparent 70%), color-mix(in oklab, var(--brand-wash) 55%, var(--bg)) !important; background-image: radial-gradient(70% 60% at 100% 0%, color-mix(in oklab, var(--brand-mint) 18%, transparent), transparent 70%) !important; background-color: color-mix(in oklab, var(--brand-wash) 55%, var(--bg)) !important; }
/* demo trays: teal dots on a teal-tinted desk */
.mod .zone { background-color: color-mix(in oklab, var(--brand-wash) 70%, var(--desk)); background-image: radial-gradient(color-mix(in oklab, var(--brand) 22%, transparent) 1px, transparent 1.4px); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 18%, var(--line)); }
.mod .zone > .tag { background: var(--brand); color: var(--brand-fg); }
.mod .zone > .tag::before { background: var(--brand-mint); }
/* selected tabs and steps in brand teal */
.rail button[aria-selected="true"], .walk-steps button[aria-current="true"] { background: var(--brand) !important; color: var(--brand-fg) !important; }
.walk-steps button[aria-current="true"] .wn { background: var(--brand-mint) !important; border-color: var(--brand-mint) !important; color: #0b2522 !important; }
.walk-steps button.past .wn { background: var(--brand-wash); color: var(--brand); border-color: transparent; }
.walk-box { border-left: 4px solid var(--brand); }
.walk-title::before { content: "Walk through it"; display: block; font: 700 12.5px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
/* "Worth knowing": a deep-teal card */
.det { background: linear-gradient(150deg, #1d6a64 0%, #0f3b37 100%); color: #d6ebe6; border-radius: 22px; padding: 26px 28px 24px; box-shadow: 0 30px 60px -30px rgba(15,59,55,.6); }
.det h3 { color: var(--brand-mint) !important; }
.det li { color: #d6ebe6 !important; } .det li b { color: #fff !important; }
.det li::before { background: var(--brand-mint) !important; }
.det-wrap { align-items: center; }
/* sub-page section rule in teal */
section.mod + section.mod::before { background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--brand) 40%, transparent), transparent) !important; height: 1px !important; border: 0 !important; }
/* the coming-soon / not-built note */
.nb.soon { background: var(--brand-wash) !important; border-left: 4px solid var(--brand); }
.nb.soon b { color: var(--brand) !important; }
.chat-shot { max-width: 560px; justify-self: center; width: 100%; }

/* every interactive demo window gets the same title bar as the header windows */
.app-top { background: color-mix(in oklab, var(--card) 85%, var(--band)); }
.app-top .dots i:nth-child(1) { background: #e08b7c; } .app-top .dots i:nth-child(2) { background: #e6c170; } .app-top .dots i:nth-child(3) { background: var(--brand-mint); }
.app-top .co { font-weight: 650; color: var(--ink); }
.app-top .sample { display: inline-flex; align-items: center; gap: 7px; }
.app-top .sample::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-mint); animation: hxPulse 2s infinite; }
@media (prefers-reduced-motion: reduce) { .app-top .sample::before { animation: none; } }

/* ============ WHAT THE AI DOES ============ */
.ai-sec { padding-block: clamp(64px, 8vw, 110px); }
.ai-head { max-width: 760px; margin-bottom: 36px; } .ai-head .lead { margin-top: 14px; }
.flow { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.flow-steps button { all: unset; box-sizing: border-box; position: relative; overflow: hidden; width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: background-color .3s, border-color .3s, transform .3s var(--ease); }
.flow-steps button:hover { border-color: var(--brand); transform: translateX(3px); }
.flow-steps button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.flow-steps .fn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--font-num); background: var(--brand-wash); color: var(--brand); }
.flow-steps b { display: block; font-size: 15.5px; color: var(--ink); letter-spacing: -0.01em; }
.flow-steps small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.flow-steps button[aria-current="step"] { background: var(--brand); border-color: var(--brand); }
.flow-steps button[aria-current="step"] b { color: var(--brand-fg); }
.flow-steps button[aria-current="step"] small { color: color-mix(in oklab, var(--brand-fg) 78%, transparent); }
.flow-steps button[aria-current="step"] .fn { background: var(--brand-mint); color: #0b2522; }
.flow-steps u { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--brand-mint); }
.flow-steps button.run u { animation: pwFill 7s linear forwards; }
.flow.hold .flow-steps button.run u { animation-play-state: paused; }
.flow-stage { position: relative; min-height: 470px; border-radius: 24px; padding: 30px; background: radial-gradient(70% 70% at 100% 0%, color-mix(in oklab, var(--brand-mint) 22%, transparent), transparent 70%), color-mix(in oklab, var(--brand-wash) 60%, var(--card)); border: 1px solid color-mix(in oklab, var(--brand) 20%, var(--line)); overflow: hidden; }
.js .flow-pane:not(.on) { display: none; }
.flow-pane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; height: 100%; }
.flow-pane.on { display: grid; animation: shuffle .5s var(--ease); }
.fp-copy h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; color: var(--ink); letter-spacing: -0.02em; }
.fp-copy p { margin-top: 12px; font-size: 16px; }
.fp-note { font-size: 14px !important; color: var(--brand) !important; font-weight: 600; }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chipset span { font: 600 12px/1 var(--font-num); padding: 7px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.fp-shot { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(15,40,37,.55); }
.fp-shot img { display: block; width: 100%; height: auto; }
.flow-pane:has(.fp-shot.wide) { grid-template-columns: 1fr; align-content: center; }
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.doc-grid span { padding: 12px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.js .doc-grid span { opacity: 0; translate: 0 8px; }
.flow-pane.on .doc-grid span { animation: docIn .45s var(--ease) forwards; }
.doc-grid span:nth-child(n) { animation-delay: calc(var(--i, 0) * 70ms) !important; }
.doc-grid .odd { border-style: dashed; color: var(--muted); } .doc-grid .odd em { display: block; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--warn); margin-top: 3px; }
@keyframes docIn { to { opacity: 1; translate: 0 0; } }
.route { display: grid; gap: 8px; }
.route div { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); align-items: center; }
.route span, .route b { padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.route span { background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.route b { background: var(--brand); color: var(--brand-fg); font-weight: 600; }
.route i { height: 2px; margin-inline: 6px; background: linear-gradient(90deg, var(--brand-mint) 50%, transparent 50%) 0 0/12px 2px repeat-x; position: relative; }
.flow-pane.on .route i { animation: dash 1s linear infinite; }
@keyframes dash { to { background-position: 12px 0; } }
.route i::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--brand-mint); }
.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.ticks li { padding-left: 22px; position: relative; } .ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.ticks b { color: var(--ink); }
.xcard { background: var(--card); border-radius: 16px; padding: 20px 22px; box-shadow: 0 30px 60px -28px rgba(15,40,37,.45); font-size: 14px; }
.xc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .xc-top b { color: var(--ink); } .xc-top .chip { margin-left: auto; background: var(--brand-wash); color: var(--brand); }
.xc-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); } .xc-row .mono { color: var(--ink); font-family: var(--font-num); }
.xc-row.tot { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); } .xc-row.blank .mono { color: var(--muted); }
.xcard p { margin-top: 12px; font-size: 13px; color: var(--muted); }
.tiers { display: flex; gap: 8px; margin-top: 16px; } .tiers span { padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.t-ready { background: var(--brand-wash); color: var(--brand); } .t-review { background: var(--warn-bg); color: var(--warn); } .t-exc { background: color-mix(in oklab, var(--neg) 15%, var(--card)); color: var(--neg); }
.learn { display: grid; gap: 10px; }
.lr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; }
.js .lr { opacity: 0; translate: 0 10px; }
.flow-pane.on .lr { animation: docIn .5s var(--ease) forwards; } .flow-pane.on .lr:nth-child(2) { animation-delay: .6s; } .flow-pane.on .lr:nth-child(3) { animation-delay: 1.3s; }
.lr-k { font-weight: 700; color: var(--ink); } .lr-from { text-decoration: line-through; color: var(--muted); } .lr-to { color: var(--brand); font-weight: 600; } .lr-arrow { color: var(--muted); }
.lr-n { margin-left: auto; font-size: 12px; color: var(--muted); }
.lr.learned { background: var(--brand); border-color: var(--brand); } .lr.learned .lr-k, .lr.learned .lr-to, .lr.learned .lr-n { color: var(--brand-fg); }
.ai-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ai-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 24px 22px; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.ai-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.ai-card h3 { margin-top: 12px; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.ai-card p, .ai-card li { font-size: 14.5px; color: var(--body); } .ai-card p { margin-top: 8px; }
.ai-card ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.ai-card.dark { background: linear-gradient(150deg, #1d6a64, #0f3b37); border-color: transparent; } .ai-card.dark h3 { color: #fff; } .ai-card.dark p { color: #d6ebe6; }
.ai-badge { display: inline-block; font: 700 11px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--brand-wash); color: var(--brand); }
.ai-badge.plain { background: var(--band); color: var(--muted); }
.ai-card.dark .ai-badge { background: rgba(255,255,255,.14); color: var(--brand-mint); }
.ai-more { margin-top: 22px; }
.soon-pill { display: inline-block; margin-right: 8px; padding: 5px 9px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: 11px; letter-spacing: .06em; vertical-align: 1px; }
@media (max-width: 1000px) { .flow { grid-template-columns: 1fr; } .flow-steps { grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; padding-bottom: 4px; } .flow-pane { grid-template-columns: 1fr; } .ai-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ai-grid { grid-template-columns: 1fr; } .flow-stage { padding: 20px; min-height: 0; } .doc-grid { grid-template-columns: 1fr 1fr; } .route div { grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { .js .doc-grid span, .js .lr { opacity: 1; translate: none; animation: none !important; } .flow-pane.on { animation: none; } }

/* Module pages: the Worth knowing list with the pose beside it (the grid the dropped mascot block used to carry). */
.det-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: center; margin-top: 44px; }
.det-wrap .det { margin-top: 0; }
@media (max-width: 860px) { .det-wrap { grid-template-columns: 1fr; } }

/* Label on the spending-limit demo: its $2,000 and $5,000 are examples, not the defaults. */
.sim-eg { justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--band); color: var(--muted); font: 600 11.5px/1.2 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .js .who-chip, .js .au { opacity: 1; translate: none; transform: none; transition: none; } }

/* FOUNDER LAUNCH POP-UP (AB-2969). Markup: lib/founder-popup.mjs. Behaviour: src/js/96-founder-popup.js.
   Always light, whatever the page theme: it is a celebration card on a dark overlay, with its own tokens (--fp-*).
   Wide layout: art panel + content, centred. Below 720px it is a bottom sheet. Between 720 and 960px the art panel
   and the padding shrink so the dialog never scrolls sideways. All class names start fpop-. */
.fpop {
  --fp-accent: #0F4C4A; --fp-ink: #10201F; --fp-body: #3D4D4B; --fp-mute: #4A5A58; --fp-soft: #5A6967; --fp-line: #DCE4E2;
  --fp-gold: #E9B949; --fp-coral: #E7745B; --fp-green: #3FB596;
  --fp-art: clamp(250px, calc((100vw - 32px) * 0.4), 360px); --fp-pad: 40px;
  position: fixed; inset: 0; z-index: 100; padding: 16px; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(8, 24, 23, 0.66); color: var(--fp-ink); font: 400 16px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  transition: opacity .25s ease;
}
/* display is set only while it is not [hidden], so the browser's own [hidden] rule keeps it closed. The fade-in is scoped under .js like every other hidden state on the site. */
.fpop:not([hidden]) { display: flex; }
.js .fpop { opacity: 0; }
.js .fpop.fpop-open { opacity: 1; }
/* a locked page: the pop-up owns the scroll while it is open */
html.fpop-lock, html.fpop-lock body { overflow: hidden; }

.fpop-dlg {
  position: relative; display: flex; width: min(900px, 100%); margin: auto; border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4); outline: none; transform: translateY(18px); transition: transform .3s cubic-bezier(0.32, 0.72, 0, 1);
}
.fpop.fpop-open .fpop-dlg { transform: none; }
.fpop p, .fpop h2 { margin: 0; }
.fpop button { font-family: inherit; }

/* ---------- art panel ---------- */
.fpop-art { position: relative; flex: 0 0 var(--fp-art); overflow: hidden; background: #F7F0DC; }
.fpop-sun {
  position: absolute; left: 50%; top: 58%; width: 760px; height: 760px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(233, 185, 73, 0.22) 0deg 9deg, rgba(233, 185, 73, 0) 9deg 18deg);
  transform: translate(-50%, -50%); animation: fpop-spin 60s linear infinite;
}
.fpop-conf { position: absolute; inset: 0; }
.fpop-p, .fpop-sp { position: absolute; left: var(--x); top: var(--y); animation: fpop-fall 9s linear infinite; }
.fpop-bar { width: 9px; height: 18px; border-radius: 2px; }
.fpop-dot { width: 10px; height: 10px; border-radius: 50%; }
.fpop-p.fpop-b { width: 12px; height: 12px; }
.fpop-p.fpop-d, .fpop-p.fpop-i { width: 8px; height: 8px; }
.fpop-p.fpop-c { height: 20px; }
.fpop-p.fpop-g { width: 8px; height: 16px; }
.fpop-p.fpop-a { transform: rotate(-24deg); } .fpop-p.fpop-c { transform: rotate(32deg); } .fpop-p.fpop-e { transform: rotate(18deg); }
.fpop-p.fpop-f { transform: rotate(-40deg); } .fpop-p.fpop-g { transform: rotate(60deg); } .fpop-p.fpop-j { transform: rotate(-12deg); }
.fpop-p.fpop-coral { background: var(--fp-coral); } .fpop-p.fpop-gold { background: var(--fp-gold); } .fpop-p.fpop-teal { background: var(--fp-accent); } .fpop-p.fpop-green { background: var(--fp-green); }
.fpop-sp.fpop-coral { fill: var(--fp-coral); } .fpop-sp.fpop-gold { fill: var(--fp-gold); }
.fpop-conf > :nth-child(2n) { animation-duration: 11s; } .fpop-conf > :nth-child(3n) { animation-duration: 8s; }
.fpop-conf > :nth-child(1) { animation-delay: -1s; } .fpop-conf > :nth-child(2) { animation-delay: -6s; } .fpop-conf > :nth-child(3) { animation-delay: -3s; }
.fpop-conf > :nth-child(4) { animation-delay: -8s; } .fpop-conf > :nth-child(5) { animation-delay: -2s; } .fpop-conf > :nth-child(6) { animation-delay: -5s; }
.fpop-conf > :nth-child(7) { animation-delay: -9s; } .fpop-conf > :nth-child(8) { animation-delay: -4s; } .fpop-conf > :nth-child(9) { animation-delay: -7s; }
.fpop-conf > :nth-child(10) { animation-delay: -10s; } .fpop-conf > :nth-child(11) { animation-delay: -2.5s; } .fpop-conf > :nth-child(12) { animation-delay: -6.5s; }
@keyframes fpop-spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes fpop-fall { from { translate: 0 -520px; rotate: 0deg; } to { translate: 0 560px; rotate: 540deg; } }

.fpop-tag {
  position: absolute; left: 50%; top: 34px; padding: 10px 18px; border-radius: 16px; background: var(--fp-ink); color: #fff; white-space: nowrap;
  font: 700 22px/1.3 'Space Grotesk', system-ui, sans-serif; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); transform: translateX(-50%) rotate(-4deg);
}
.fpop-note {
  position: absolute; left: 16px; top: 98px; width: 150px; transform: rotate(-5deg); transform-origin: left top;
  font: 700 22px/1.02 Caveat, 'Comic Sans MS', cursive; color: var(--fp-ink);
}
.fpop-arrow { position: absolute; left: 40px; top: 176px; overflow: visible; color: var(--fp-ink); }

/* ---------- content ---------- */
.fpop-main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 30px var(--fp-pad); }
.fpop-x {
  position: absolute; top: 16px; right: 16px; z-index: 3; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 22px; background: transparent; color: var(--fp-mute); cursor: pointer;
}
.fpop-x:hover { background: rgba(16, 32, 31, 0.07); }
.fpop-head { display: flex; flex-direction: column; gap: 10px; }
.fpop h2 { padding-right: 40px; color: var(--fp-ink); font: 700 36px/1.08 'Space Grotesk', system-ui, sans-serif; letter-spacing: 0; text-wrap: balance; }
.fpop-lede { color: var(--fp-body); font-size: 16px; line-height: 1.5; }

.fpop-price { display: flex; border: 1px solid var(--fp-line); border-radius: 14px; overflow: hidden; }
.fpop-first, .fpop-more { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; }
.fpop-first { background: #F2F8F6; }
.fpop-more { border-left: 1px solid var(--fp-line); }
.fpop-lab { color: var(--fp-mute); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.fpop-amt { display: flex; align-items: baseline; gap: 8px; color: var(--fp-soft); font-size: 13px; }
.fpop-more .fpop-amt { gap: 4px; }
.fpop-amt b { color: var(--fp-ink); font: 700 36px/1.2 'Space Grotesk', system-ui, sans-serif; }
.fpop-first .fpop-amt b { color: var(--fp-accent); }

.fpop-act { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
/* The mascot sits beside the button: 20px narrower than the art panel, bottom 49px below the button block, so it scales with the panel. */
.fpop-wave {
  position: absolute; z-index: 2; left: calc(var(--fp-art) * -0.7833 - var(--fp-pad)); bottom: -49px; display: block;
  width: calc(var(--fp-art) - 20px); height: auto; pointer-events: none;
}
.fpop-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: 12px; background: var(--fp-accent); color: #fff;
  font: 600 16px/1 Inter, system-ui, sans-serif; text-decoration: none; transition: background-color .2s;
}
.fpop-cta:hover { background: #0A3533; }
.fpop-later { height: 44px; padding: 0; border: 0; background: transparent; color: var(--fp-mute); font-size: 14px; cursor: pointer; }
.fpop-later:hover { text-decoration: underline; }
.fpop-fine { color: var(--fp-soft); font-size: 12px; line-height: 1.5; }
.fpop :focus-visible { outline: 2px solid var(--fp-accent); outline-offset: 3px; border-radius: 6px; }
.fpop-dlg:focus, .fpop-dlg:focus-visible { outline: none; } /* focus lands on the container on open; only real controls show a ring */
.fpop-note, .fpop-arrow { z-index: 2; } /* falling confetti passes behind the note */
.fpop-cta:focus-visible { outline-color: var(--fp-ink); }

/* ---------- wide: the phone-only parts stay out ---------- */
@media (min-width: 720px) {
  .fpop-brand, .fpop-lede-m, .fpop-still { display: none; }
}

/* ---------- 720 to 960px: a smaller art panel, tighter content ---------- */
@media (min-width: 720px) and (max-width: 960px) {
  .fpop { --fp-pad: 28px; }
  .fpop h2 { font-size: 30px; }
  .fpop-amt b { font-size: 30px; }
  .fpop-first, .fpop-more { padding: 12px 14px; }
}

/* ---------- below 720px: the bottom sheet ---------- */
@media (max-width: 719px) {
  .fpop { align-items: flex-end; padding: 0; }
  .fpop-dlg { flex-direction: column; width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.3); }
  .fpop-art { flex: none; height: 200px; }
  .fpop-sun { top: 100%; width: 640px; height: 640px; }
  .fpop-p, .fpop-sp { left: var(--mx); top: var(--my); animation: none; }
  .fpop-wide, .fpop-note, .fpop-arrow, .fpop-wave, .fpop-lede-d { display: none; }
  .fpop-tag { left: 22px; top: 22px; padding: 8px 14px; border-radius: 14px; font-size: 18px; transform: rotate(-4deg); }
  .fpop-still { display: block; position: absolute; left: 50%; bottom: 0; width: 170px; height: auto; transform: translateX(-38%); }
  .fpop-main { position: static; gap: 14px; padding: 20px 22px calc(26px + env(safe-area-inset-bottom, 0px)); }
  .fpop-x { top: 8px; right: 8px; background: rgba(255, 255, 255, 0.7); color: var(--fp-ink); }
  .fpop-x:hover { background: rgba(255, 255, 255, 0.9); }
  .fpop-head { gap: 14px; }
  .fpop-brand { display: block; color: var(--fp-accent); font: 700 20px/1.2 'Space Grotesk', system-ui, sans-serif; }
  .fpop h2 { padding-right: 0; font-size: 28px; line-height: 1.1; }
  .fpop-lede-m { display: inline; font-size: 15px; }
  .fpop-price { border-radius: 12px; }
  .fpop-first, .fpop-more { padding: 10px 14px; }
  .fpop-lab { font-size: 11px; }
  .fpop-amt { gap: 6px; font-size: 12px; }
  .fpop-more .fpop-amt { gap: 3px; }
  .fpop-amt b { font-size: 28px; }
  .fpop-act { gap: 2px; }
  .fpop-fine { text-align: center; }
}

/* ---------- phones, 560px and below (AB-3002): a compact bottom sheet, at most about 60% of the screen, page visible above ---------- */
@media (max-width: 560px) {
  .fpop { background: rgba(8, 24, 23, 0.5); }
  .fpop-dlg { max-height: 62vh; max-height: 62dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 18px 18px 0 0; }
  .fpop-art { height: 108px; }
  .fpop-still { width: 90px; transform: translateX(-30%); }
  .fpop-tag { left: 18px; top: 16px; padding: 6px 12px; border-radius: 12px; font-size: 16px; }
  .fpop-main { gap: 10px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .fpop-head { gap: 6px; }
  .fpop-brand { font-size: 16px; }
  .fpop h2 { font-size: 24px; }
  .fpop-lede-m { font-size: 14.5px; line-height: 1.4; }
  .fpop-first, .fpop-more { padding: 8px 12px; }
  .fpop-amt b { font-size: 24px; }
  .fpop-cta { height: 48px; }
  .fpop-later { height: 38px; }
  .fpop-fine { font-size: 11.5px; line-height: 1.3; }
}

/* ---------- short phones (AB-3002): the CTA and "Not right now" must both show without scrolling, down to 320x568 and 375x667 ---------- */
@media (max-width: 560px) and (max-height: 700px) {
  .fpop-dlg { max-height: 82vh; max-height: 82dvh; }
  .fpop-art { height: 76px; }
  .fpop-still { width: 64px; transform: translateX(-25%); }
  .fpop-tag { left: 14px; top: 12px; padding: 5px 10px; font-size: 14px; }
  .fpop-main { gap: 8px; padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .fpop-head { gap: 4px; }
  .fpop-brand { font-size: 14px; line-height: 1.1; }
  .fpop h2 { font-size: 21px; }
  .fpop-lede-m { font-size: 13.5px; line-height: 1.35; }
  .fpop-first, .fpop-more { padding: 6px 10px; }
  .fpop-amt b { font-size: 21px; line-height: 1.15; }
  .fpop-cta { height: 44px; }
  .fpop-later { height: 34px; }
  .fpop-fine { font-size: 11px; line-height: 1.2; }
  .fpop-x { width: 40px; height: 40px; top: 4px; right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .fpop { opacity: 1; }
  .fpop, .fpop-dlg { transition: none; }
  .fpop-sun, .fpop-p, .fpop-sp { animation: none; }
}


/* ---------- /demo (AB-2995): the product tour page ---------- */
.demo-ph-head { padding-block-end: clamp(20px, 3vw, 36px); }
.demo-ph-head .ph-sub { max-width: 56ch; }
.demo-stage { padding-block: 0 clamp(40px, 6vw, 72px); }
.demo-stage .wrap { max-width: 1040px; }
.demo-player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px oklch(0.2 0.02 50 / 0.35); }
.demo-player video p { padding: 24px; color: var(--bg); }
.demo-player video a { color: var(--bg); }
.demo-chapters { margin-top: 20px; }
.demo-ch-h { font: 600 12px/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.demo-chapters ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.demo-chapters button { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 14.5px/1.2 var(--font-ui); cursor: pointer; }
.demo-chapters button:hover { border-color: var(--ink); }
.demo-chapters button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.demo-chapters button[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
.demo-chapters .mono { font: 500 13px/1 var(--font-num); color: var(--muted); }
.demo-chapters button[aria-current="true"] .mono { color: inherit; }

/* The placeholder: the same box the player would fill, so the page does not jump when a video is added. */
.demo-ph:not([hidden]) { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; min-height: clamp(260px, 32vw, 420px); padding: clamp(28px, 5vw, 56px); border-radius: 18px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -28px oklch(0.2 0.02 50 / 0.3); }
.demo-ph h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); max-width: 20ch; }
.demo-ph p { margin: 0; max-width: 52ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: var(--body); }
.demo-ph .hx-cta { margin-top: 10px; }

.demo-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.demo-steps li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.demo-n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-wash); color: var(--brand); font: 700 15px/1 var(--font-num); }
.demo-steps h3 { margin: 4px 0 6px; font-size: 20px; color: var(--ink); }
.demo-steps p { margin: 0 0 10px; color: var(--body); font-size: 16px; line-height: 1.55; }
.demo-steps a { font-weight: 600; color: var(--brand); text-decoration: none; }
.demo-steps a:hover { text-decoration: underline; }
.demo-cta .lead { margin-top: 14px; }
.demo-cta .hx-cta { margin-top: 22px; }
.ph-link { margin-top: 16px; font-size: 15px; color: var(--muted); }
.ph-link a { color: var(--brand); font-weight: 600; }

@media (max-width: 720px) {
  .demo-steps { grid-template-columns: 1fr; }
  .demo-player video { border-radius: 12px; }
  .demo-ph { border-radius: 14px; }
  .demo-chapters button { flex: 1 1 100%; }
}


/* ---------- Founder ad pages (AB-2999): a compact hero, so the headline, offer and button fit a phone screen ---------- */
.hx-founder { padding-block: clamp(24px, 5vw, 72px) clamp(32px, 5vw, 72px); }
.hx-founder .hx-sub { margin-top: 14px; max-width: 46ch; }
.hx-offer { margin: 16px 0 0; max-width: 46ch; font-size: 14.5px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.hx-founder .hx-cta { margin-top: 20px; }
.hx-note { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }
.who-lite { padding-block: clamp(36px, 5vw, 64px); }
.who-lite .who-head { margin-bottom: 0; padding-right: 0; }
@media (max-width: 560px) { .hx-founder h1 { font-size: 34px; } }

/* PHONE POLISH (AB-3002). Everything here sits behind a phone-width query: the desktop layout is untouched.
   Loaded after 10-62 so these rules win on equal specificity. The founder pop-up's phone rules live in 60-founder-popup.css. */

/* the external link under the demo (all widths: it is a new line, not a change to an existing one) */
.demo-ext { margin-top: 6px; text-align: center; font-size: 14.5px; }
.demo-ext .textlink { display: inline-block; padding: 8px 4px; }

@media (max-width: 560px) {
  /* 1. demo window title bar: the company pill stays tidy (name over "sample company"), the sample note takes its own row */
  .app-top { flex-wrap: wrap; gap: 6px 10px; padding: 10px 12px; }
  .app-top .co { flex-direction: column; align-items: flex-start; gap: 0; max-width: 100%; padding: 5px 14px 6px; border-radius: 16px; line-height: 1.25; }
  .app-top .co small { font-size: 11.5px; }
  .app-top .sample { flex: 1 0 100%; margin-left: 0; font-size: 12px; }

  /* 2. the document pile: a staggered stack, so each paper's lines and amounts stay readable */
  .desk { min-height: 556px; }
  .desk-hint { bottom: 8px; }
  .paper { --sx: 0%; --sy: 0%; }
  .p-invoice { width: 82%; left: 3%; top: 2%; transform: rotate(-2deg); }
  .p-rent { width: 78%; left: 19%; top: 31.5%; transform: rotate(1.5deg); }
  .p-loan { width: 80%; left: 3%; top: 54.5%; transform: rotate(-1.5deg); }
  .p-receipt { width: 54%; left: 42%; top: 77.5%; transform: rotate(2deg); }
  .paper .r b { min-width: 0; }

  /* 3. the entry card: title, then badge under it; account names wrap instead of truncating; shorter empty area */
  .ledger { min-height: 330px; padding: 16px 10px 16px 14px; }
  .l-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .l-line { gap: 8px; height: auto; min-height: 32px; align-items: center; }
  .l-line .c, .l-cols { gap: 12px; }
  .l-line .c span, .l-cols span { width: 60px; }
  .l-line .c span { font-size: 12px; }
  .l-line .a { display: block; min-width: 0; padding-block: 1px; overflow-wrap: anywhere; white-space: normal; font-size: 12px; line-height: 15px; }

  /* 5. "Who it is for": the mascot leaves the heading column and sits above the heading, so the heading uses the full width */
  .who-thumb { position: static; display: block; width: 76px; margin: -26px 0 -8px auto; }
  .who-head { padding-right: 0; }

  /* 6. Founder band: the 100 dots become 20 x 5 across the full width, the caption gets the full width, and the pointing mascot is hidden */
  .founder .f-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .founder .f-grid .places { grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 5px; max-width: none; }
  .founder .f-grid .big100-cap { max-width: none; margin-top: 16px; }
  .founder .f-mascot { display: none; }

  /* 7. hero: a shorter stage. The mascot moves to the right and the two cards stack on the left, so nothing hides its face */
  .hx-stage { height: 290px; }
  .hx-orb { left: 72%; width: 64%; }
  .hx-ring { left: 72%; width: 80%; }
  .hx-mascot { left: 72%; height: 90%; }
  .hx-shadow { left: 72%; }
  .fc-bill { left: 0; top: 0; width: 196px; }
  .fc-bill .fc-ok { display: none; }
  .fc-pl { display: none; }
  .fc-ok2 { left: 0; right: auto; bottom: 4%; }
  .fc { padding: 8px 10px; font-size: 11.5px; }
  .fc-bill .fc-lines { margin-top: 6px; gap: 2px 12px; }
}

/* the narrowest phones (320 to 360px): the card is narrower and the mascot sits a little further right, so the card does not cover its face */
@media (max-width: 360px) {
  .hx-orb, .hx-ring, .hx-mascot, .hx-shadow { left: 77%; }
  .fc-bill { width: 168px; }
}

/* The feature reel's rotated backing sheets can poke past the viewport on a phone (up to 391px of scroll width against 375).
   Clip the reel section on its own, not html or body, so sticky and future overflow bugs stay visible. The section is the full
   viewport wide, so nothing that was on screen is cut. */
#reel { overflow-x: clip; }

/* 320px overflow (AB-3002): three places made the whole page scroll sideways on the narrowest phones. Each is fixed at its own box. */
@media (max-width: 560px) {
  /* the AI chat section: a 1fr column cannot shrink below its nowrap button, so let the column shrink and the button wrap */
  .chat-grid { grid-template-columns: minmax(0, 1fr); }
  .chat-copy .btn { white-space: normal; height: auto; min-height: 50px; padding: 12px 20px; line-height: 1.25; text-align: center; }
  /* the spending-limit simulator: the result chip wraps under the amount, and its own text wraps instead of running off the card */
  .sim-item .res { flex-wrap: wrap; gap: 6px 12px; min-width: 0; max-width: 100%; }
  .sim-item .chip { white-space: normal; height: auto; min-height: 24px; padding: 4px 10px; line-height: 1.25; }
  /* the footer: two columns that may shrink, and the long support address may break */
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid nav a { overflow-wrap: anywhere; }
}

/* AB-3002: on the narrowest phones (360px and below) the entry card is about 215px wide, too narrow for a label next to two amount
   columns. Each line becomes two rows instead: the account name across the full width, the amounts under it in their columns.
   The row grows with its content, so a name never spills into the next row or gets cut. */
@media (max-width: 360px) {
  .l-line { flex-wrap: wrap; align-content: center; padding-block: 3px; }
  .l-line .a { flex: 1 0 100%; }
  .l-line .c { margin-left: auto; }
}
