/* MindFin marketing site v2 — shell and motion system.
   Same house palette as v1 (dark default, light via data-theme), same three
   typefaces. What changes is the register: fewer words, product shots and
   scroll-driven demonstrations carry the argument. */

:root {
  --midnight: #0A1F2E; --card: #1A3040; --card-2: #142838; --border: #234B60;
  --teal: #2FB3B3; --on-teal: #0A1F2E; --teal-mark: #2FB3B3; --gold: #D99A33;
  --text: #F0F4F8; --secondary: #94A3B8; --muted: #4a5568; --negative: #F87171;
  --nav-bg: rgba(10,31,46,0.78); --glow: rgba(47,179,179,0.16);
  --logo-idle: rgba(255,255,255,0.35); --logo-node: #2FB3B3; --logo-term: #D99A33;
  --radius: 14px; --radius-sm: 9px;
  --display: 'Bricolage Grotesque','IBM Plex Sans',system-ui,sans-serif;
  --body: 'IBM Plex Sans','Helvetica Neue',Arial,system-ui,sans-serif;
  --mono: 'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --ease: cubic-bezier(.22,.8,.26,1);
  color-scheme: dark;
}
:root[data-theme="light"], :root:not([data-theme="dark"]).sys-light {
  --midnight: #F3F5F7; --card: #FFFFFF; --card-2: #EDF0F3; --border: #DCE2E8;
  --teal: #0B6E6E; --on-teal: #FFFFFF; --teal-mark: #0E8A8A; --gold: #8A5613;
  --text: #131F2A; --secondary: #3C4A56; --muted: #5C6B77; --negative: #C81E1E;
  --nav-bg: rgba(243,245,247,0.82); --glow: rgba(14,138,138,0.12);
  --logo-idle: #C9D2DA; --logo-node: #0E8A8A; --logo-term: #B8741A;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--midnight); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--text); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.06; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.container { width: min(1180px, 100% - 48px); margin: 0 auto; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.sub { color: var(--secondary); font-size: 17px; line-height: 1.6; max-width: 58ch; }

/* ── Nav ── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: var(--nav-bg); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 30px; height: 30px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
/* "Mind" is bare text inside <a class="brand">, so without this it inherits the
   global link colour (teal at rest, ink on hover) — exactly reversed. Ink at
   rest; a hover only shifts the ink, never the Fin/.AI accents. */
.wordmark { color: var(--text); }
.brand:hover .wordmark { color: var(--teal); }
.wordmark .fin { color: var(--teal-mark); } .wordmark .ai { color: var(--gold); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--secondary); font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 100px; font-weight: 600; font-size: 14.5px; letter-spacing: -0.005em; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: var(--on-teal); } .btn-teal:hover { color: #0A1F2E; filter: brightness(1.06); }
.btn-ghost { border: 1.5px solid var(--border); color: var(--text); } .btn-ghost:hover { border-color: var(--teal); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--secondary); border: 1px solid var(--border); }
.theme-btn:hover { color: var(--text); border-color: var(--teal); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .sun { display: none; } :root[data-theme="light"] .theme-btn .sun, .sys-light .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon, .sys-light .theme-btn .moon { display: none; }
/* ── Language ──
   Beside the theme toggle, because they are the same kind of control: two
   things about how the page is shown rather than what it says. Pill rather
   than circle — a globe alone does not say which language you are in, and
   the two characters that do are the whole point of the control. */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 10px; border-radius: 100px; color: var(--secondary); border: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.lang-btn:hover { color: var(--text); border-color: var(--teal); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-btn .lang-caret { width: 13px; height: 13px; opacity: .7; }
.lang-short { min-width: 1.4em; text-align: center; }
.lang-menu { display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 168px; padding: 6px; border-radius: 12px; background: var(--midnight); border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(0,0,0,.28); }
.lang.open .lang-menu { display: block; }
.lang-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border-radius: 8px; color: var(--text); font-size: 14px; text-align: left; }
.lang-item:hover { background: var(--border); }
/* background and radius reset: the auth pages style a .tick of their own as a
   round promise badge, and without this the menu's checkmark renders as a
   teal dot (21 November 2026). */
.lang-item .tick { width: 14px; height: 14px; flex: none; opacity: 0; color: var(--teal); background: none; border-radius: 0; }
.lang-item.on { color: var(--teal); font-weight: 600; }
.lang-item.on .tick { opacity: 1; }
/* The mobile menu keeps the three as a row: a phone reader who cannot see
   the nav bar's control would otherwise be stuck in whatever the browser
   guessed. */
.lang-row { display: flex; gap: 8px; padding: 14px 0 2px; }
.lang-row button { flex: 1; padding: 10px 6px; border-radius: 100px; border: 1px solid var(--border); color: var(--secondary); font-size: 14px; font-weight: 600; }
.lang-row button.on { color: var(--teal); border-color: var(--teal); }

.burger { display: none; width: 40px; height: 40px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; transition: transform .25s, opacity .25s; }
.mobile-menu { display: none; position: fixed; inset: 72px 0 auto 0; z-index: 49; background: var(--midnight); border-bottom: 1px solid var(--border); padding: 12px 24px 20px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 13px 0; color: var(--text); font-size: 17px; border-bottom: 1px solid var(--border); }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; }

/* ── Hero ── */
.hero { padding: 104px 0 32px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto; height: 70%; background: radial-gradient(60% 50% at 50% 30%, var(--glow), transparent 70%); pointer-events: none; }
.hero-top { text-align: center; display: grid; gap: 22px; justify-items: center; position: relative; }
.hero h1 { font-size: clamp(38px, 6.4vw, 78px); font-weight: 700; max-width: 16ch; }
.hero h1 .ai { color: var(--gold); } .hero h1 .hl, .page-hero h1 .hl, .hiw-intro h1 .hl, .band h2 .hl { color: var(--teal); }
.hero .sub { text-align: center; font-size: clamp(16px, 1.5vw, 19px); max-width: 60ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; font-family: var(--mono); font-size: 11.5px; color: var(--secondary); letter-spacing: .04em; }
.trust span { display: inline-flex; align-items: center; gap: 7px; } .trust i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ── Film frame ── */
.film { margin: 38px auto 0; width: min(1120px, 100%); aspect-ratio: 16/9; position: relative; border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--border); box-shadow: 0 40px 120px -30px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset; }
.film iframe, .film video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0b1c29; }
.film-poster { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 45%, rgba(47,179,179,.18), transparent 70%), var(--card); cursor: pointer; transition: opacity .5s; }
.film-poster.hide { opacity: 0; pointer-events: none; }
.play { width: 84px; height: 84px; border-radius: 50%; background: var(--teal); color: #0A1F2E; display: grid; place-items: center; box-shadow: 0 20px 50px -10px rgba(47,179,179,.6); transition: transform .3s var(--ease); }
.film-poster:hover .play { transform: scale(1.06); }
.play svg { width: 30px; height: 30px; margin-left: 4px; }
.film-meta { position: absolute; left: 22px; bottom: 18px; display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); }
.film-meta b { color: var(--text); font-weight: 500; }
.film-poster .lattice { width: 120px; opacity: .18; position: absolute; right: 6%; top: 12%; }

/* ── Reel (six features) ── */
.reel { padding: 52px 0 20px; }
.reel-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.reel h2 { font-size: clamp(28px, 3.6vw, 44px); }
.reel-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 340px; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .3s; }
.tile:hover { transform: translateY(-4px); border-color: rgba(47,179,179,.5); }
.tile-art { height: 196px; position: relative; background: var(--card-2); border-bottom: 1px solid var(--border); overflow: hidden; }
.tile-body { padding: 20px 22px 22px; display: grid; gap: 8px; }
.tile h3 { font-size: 20px; font-weight: 700; }
.tile p { color: var(--secondary); font-size: 14.5px; line-height: 1.55; }
.tile details { margin-top: 4px; }
.tile summary { list-style: none; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }
.tile summary::-webkit-details-marker { display: none; }
.tile summary::after { content: '+'; font-size: 14px; } .tile details[open] summary::after { content: '−'; }
.tile details p { margin-top: 8px; font-size: 13.5px; }

/* ── UI vocabulary for product shots (stylised, not screenshots) ── */
.ui { position: absolute; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 12px; color: var(--secondary); box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); }
.ui-head { font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--teal); margin-bottom: 9px; }
.ui-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--border); font-size: 11.5px; }
.ui-row:first-of-type { border-top: 0; }
.ui-row b { font-family: var(--mono); font-weight: 500; color: var(--text); white-space: nowrap; }
.ui-pill { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; border-radius: 100px; padding: 3px 9px; border: 1px solid; }
.pill-teal { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 45%, transparent); background: color-mix(in srgb, var(--teal) 10%, transparent); }
.pill-gold { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.ui-btn { display: inline-block; background: var(--teal); color: var(--on-teal); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; border-radius: 6px; padding: 6px 11px; font-weight: 600; }
.ui-stamp { position: absolute; right: 12px; bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--teal); border: 1.5px solid var(--teal); border-radius: 4px; padding: 2px 8px; transform: rotate(-8deg); }
.ui-bubble { position: absolute; background: var(--card); border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; padding: 10px 13px; font-size: 12.5px; color: var(--text); max-width: 78%; box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); }
.ui-bubble.me { border-radius: 14px 14px 4px 14px; background: color-mix(in srgb, var(--teal) 16%, var(--card)); }
.ui-bubble .who { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--teal); display: block; margin-bottom: 4px; }
.lattice-sm { width: 22px; height: 22px; }

/* Tile loops: gentle, self-contained, keyed to the reel */
@keyframes tl-rise { 0%,4% { opacity: 0; transform: translateY(14px); } 12%,96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes tl-scan { 0%,20% { transform: translateY(-10px); opacity: 0; } 30% { opacity: 1; } 60% { transform: translateY(120px); opacity: 1; } 70%,100% { opacity: 0; } }
@keyframes tl-fill { 0%,30% { transform: scaleX(0); } 70%,100% { transform: scaleX(1); } }
@keyframes tl-stamp { 0%,65% { opacity: 0; transform: rotate(-8deg) scale(1.5); } 80%,100% { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes tl-bar { 0%,25% { height: 12%; } 60%,100% { height: var(--h); } }
@keyframes tl-blink { 0%,40% { opacity: .35; } 55%,100% { opacity: 1; } }
.tile-art .a1 { animation: tl-rise 7s var(--ease) infinite; }
.tile-art .a2 { animation: tl-rise 7s var(--ease) infinite .9s; }
.tile-art .a3 { animation: tl-rise 7s var(--ease) infinite 1.8s; }
.tile-art .scan { position: absolute; left: 14%; right: 14%; height: 34px; top: 22px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--teal) 35%, transparent), transparent); animation: tl-scan 7s linear infinite; }
.tile-art .fill { transform-origin: left; animation: tl-fill 7s var(--ease) infinite; }
.tile-art .stamp { animation: tl-stamp 7s var(--ease) infinite; }
.tile-art .bar { position: absolute; bottom: 0; width: 10%; border-radius: 3px 3px 0 0; background: var(--teal); animation: tl-bar 7s var(--ease) infinite; }
.tile-art .node { animation: tl-blink 7s var(--ease) infinite; }

/* ── Real screens ──
   A crop of the app as it runs, captured at 2x from the demo business, in a
   plain frame and tagged as a real screen. It replaces the drawn vocabulary
   above wherever a picture shows the product (13 October 2026: every
   product picture on the site had been drawn, before there were screens to
   capture). Phone-width captures go in the tiles, where a desktop card
   would shrink past reading. */
.screen { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--card); box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); line-height: 0; }
.screen img { display: block; width: 100%; height: auto; }
.tile-art.real .screen { position: absolute; left: 7%; right: 7%; top: 16px; transition: transform .5s var(--ease); }
.tile-art.real .screen.wide { left: 4%; right: 4%; }
.tile:hover .tile-art.real .screen { transform: translateY(-4px); }
.shot-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); background: color-mix(in srgb, var(--card) 90%, transparent); border: 1px solid var(--border); border-radius: 100px; padding: 3px 9px; white-space: nowrap; }
.shot-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none; }
/* The tiles carry one tag for the section, beside its label, not one on
   each screen, where it covered figures. */
.kicker-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.real-shot { margin: 0; display: grid; gap: 10px; justify-items: start; min-width: 0; }
.real-shot .screen { width: 100%; }
@media (prefers-reduced-motion: reduce) { .tile-art.real .screen { transition: none; } }

/* ── Bands ── */
.band { padding: 56px 0; }
.band-alt { background: var(--card-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band h2 { font-size: clamp(28px, 3.6vw, 44px); }
.band-head { display: grid; gap: 12px; margin-bottom: 34px; max-width: 760px; }

/* Rollout */
.roll { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; counter-reset: rj; }
.roll li { list-style: none; background: var(--card); padding: 22px 10px 18px; text-align: center; position: relative; }
.roll li::before { counter-increment: rj; content: counter(rj); position: absolute; top: 8px; left: 10px; font-family: var(--mono); font-size: 10px; color: var(--secondary); }
.roll .first { box-shadow: inset 0 2px 0 var(--teal); }
.roll img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; box-shadow: 0 0 0 1px var(--border); }
.roll b { display: block; font-size: 13.5px; font-weight: 600; } .roll small { display: block; margin-top: 5px; font-family: var(--mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--secondary); }
.roll .first small { color: var(--teal); }

/* Brand moment */
.brand-moment { padding: 56px 24px; text-align: center; display: grid; justify-items: center; gap: 16px; background: radial-gradient(50% 60% at 50% 50%, var(--glow), transparent 70%); }
.brand-moment svg { width: clamp(120px, 16vw, 180px); height: auto; }
.brand-moment h2 { font-size: clamp(28px, 4vw, 52px); }
.brand-moment .wordmark { font-size: clamp(22px, 2.6vw, 30px); }
.brand-moment p { color: var(--secondary); max-width: 52ch; }

/* CTA */
.cta { padding: 32px 0 56px; }
.cta-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 48px 32px; text-align: center; display: grid; gap: 18px; justify-items: center; position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(50% 50% at 50% 100%, var(--glow), transparent 70%); pointer-events: none; }
.cta-card h2 { font-size: clamp(26px, 3.4vw, 40px); position: relative; } .cta-card p { color: var(--secondary); position: relative; }
.cta-card .hero-actions { position: relative; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 44px 0 26px; color: var(--secondary); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin: 0 0 12px; }
.foot-grid a { display: block; color: var(--secondary); padding: 4px 0; font-size: 14px; } .foot-grid a:hover { color: var(--text); }
.foot-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 11px; line-height: 1.8; }

/* ── Scroll-scrub engine ──
   A .scrub is a tall track with a sticky full-viewport stage. JS sets --p
   (0→1) on the stage as the track passes. Every element inside animates with
   `animation: kf 1s linear paused; animation-delay: calc(var(--p) * -1s)`, so
   scroll position scrubs ordinary @keyframes. Works everywhere; no
   animation-timeline dependency. */
.scrub { position: relative; height: 260vh; }
.scrub .stage { position: sticky; top: var(--nav-h, 72px); height: auto; min-height: min(540px, calc(100vh - var(--nav-h, 72px))); max-height: calc(100vh - var(--nav-h, 72px)); padding: 26px 0; background: var(--midnight); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; gap: 48px; --p: 0; }
/* No pull-up on the first demo. The intro is now short enough (~470-520px on
   desktop) that the first stage already sits well inside the first viewport;
   a negative margin here only put the opaque stage over the intro at rest. The
   stage background handles the takeover once scrolling starts. */
.hiw-intro + .scrub { margin-top: 0; }
.scrub .copy { display: grid; gap: 14px; align-content: center; padding-left: max(24px, calc((100vw - 1180px) / 2)); }
.scrub .copy .kicker { opacity: calc(min(1, var(--p) * 6)); }
.scrub .copy h2 { font-size: clamp(30px, 4.2vw, 56px); }
.scrub .copy .sub { font-size: 16.5px; }
.scrub .steps { display: grid; gap: 10px; margin-top: 10px; }
.scrub .step { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: var(--secondary); opacity: .35; transition: opacity .3s; }
.scrub .step.on { opacity: 1; color: var(--text); }
.scrub .step i { font-family: var(--mono); font-size: 11px; color: var(--teal); flex: none; }
.scrub .shot { position: relative; height: min(72vh, 620px); margin-right: max(24px, calc((100vw - 1180px) / 2)); }
.scrub .shot > * { animation-duration: 1s; animation-timing-function: linear; animation-fill-mode: both; animation-play-state: paused; animation-delay: calc(var(--p) * -1s); }
.scrub-prog { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; }
.scrub-prog i { width: 120px; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; display: block; }
.scrub-prog i::after { content: ''; display: block; height: 100%; width: 100%; background: var(--teal); transform: scaleX(var(--p)); transform-origin: left; }

/* Generic scrub keyframes, composed per demo via animation-name */
@keyframes s-in   { 0% { opacity: 0; transform: translateY(24px); } 100% { opacity: 1; transform: none; } }
@keyframes s-out  { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes s-hold { 0%,100% { opacity: 1; } }
@keyframes s-grow { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes s-stamp { 0% { opacity: 0; transform: rotate(-8deg) scale(1.6); } 100% { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes s-slide { 0% { transform: translateX(-30px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes s-scanline { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(var(--dy, 200px)); opacity: 0; } }
@keyframes s-count { 0% { --n: 0; } 100% { --n: var(--to, 20); } }

/* Section intro between scrubs */
.hiw-intro { padding: 100px 0 16px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.hiw-intro h1 { font-size: clamp(36px, 6vw, 72px); max-width: 18ch; }
.hiw-intro .def { max-width: 62ch; background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--teal); border-radius: var(--radius-sm); padding: 14px 18px; text-align: left; font-size: 14.5px; color: var(--secondary); }
.hiw-intro .def b { color: var(--text); }
.hiw-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.hiw-toc a { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); border: 1px solid var(--border); border-radius: 100px; padding: 6px 12px; }
.hiw-toc a:hover { color: var(--teal); border-color: var(--teal); }

/* Feature page grid */
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.fcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; min-height: 260px; }
.fcard .fart { position: relative; background: var(--card-2); border-right: 1px solid var(--border); }
.fcard .fbody { padding: 24px; display: grid; gap: 10px; align-content: center; }
.fcard h3 { font-size: 21px; } .fcard p { color: var(--secondary); font-size: 14.5px; }
.fcard.wide { grid-column: 1 / -1; grid-template-columns: 1.3fr 1fr; }
/* The way out of a feature card to the film that shows it. Teal and mono so
   it reads as a link rather than another line of the paragraph it follows. */
/* The roll call: copy beside a vertical film.
   The other two films are 16:9 and run the width of the container. This one
   is a 9:16 Short, so it takes a column of its own and is capped rather than
   filling: a full-width vertical video would be taller than the viewport and
   push everything under it off the screen. */
.roll-call { display: grid; grid-template-columns: 1fr minmax(0, 320px); gap: 48px; align-items: center; }
.film-tall { aspect-ratio: 9/16; width: 100%; margin: 0; border-radius: 16px; }
@media (max-width: 900px) {
  .roll-call { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
  .film-tall { max-width: 300px; }
}

/* Two links stack rather than run on: inside a feature card they get about
   half the card's width, and side by side the second wraps mid-phrase. */
.film-link { margin-top: 10px; display: grid; gap: 6px; justify-items: start; }
.film-link a { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--teal); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--teal) 35%, transparent); padding-bottom: 1px; }
.film-link a:hover { border-bottom-color: var(--teal); }

/* Pills row */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--text); border: 1px solid var(--border); border-radius: 100px; padding: 6px 12px; }
.chip.soon { color: var(--gold); border-style: dashed; }
/* Live, with the ATO's own words (ATO registered software, 15 October 2026). */
.chip.live { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 45%, var(--border)); }
/* "Coming soon" set inline beside a feature that is not live yet (bank feeds,
   owner decision 2026-09-14): the pricing card's chip at the pricing list's
   size. It keeps its own case inside an uppercase panel header and its own
   weight inside a bold heading. Remove the <span>, not this rule. */
.ui-head .chip, .scrub .step .chip, .legal .chip { font-size: 9.5px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; text-transform: none; letter-spacing: .06em; font-weight: 400; line-height: normal; }
.legal h2 .chip { vertical-align: middle; }
/* A chip in running text: a feature card's line, an "On every plan" item.
   The compact size above, so it reads as a note on the line, not a button. */
.fcard .body p .chip, .also p .chip { font-size: 9.5px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; letter-spacing: .06em; line-height: normal; }
/* A demo panel's header is narrow: a touch smaller and tighter, so the header stays on one line at 375px. */
.ui-head .chip { font-size: 9px; letter-spacing: .02em; margin-left: 2px; }

/* Lightbox for the film */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4,12,18,.92); display: none; place-items: center; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox .frame { width: min(1280px, 100%); aspect-ratio: 16/9; position: relative; border-radius: 16px; overflow: hidden; background: #0b1c29; border: 1px solid var(--border); }
.lightbox iframe, .lightbox video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox .close { position: absolute; top: 18px; right: 22px; color: #F0F4F8; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; }

@media (max-width: 960px) {
  .nav-links, .nav-cta .btn { display: none; } .burger { display: block; }
  .nav-cta .lang { display: none; }
  .reel-track { grid-template-columns: 1fr 1fr; }
  .roll { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .scrub { height: 260vh; }
  .scrub .stage { grid-template-columns: 1fr; align-content: start; gap: 22px; padding: 28px 24px 36px; min-height: 0; }
  .scrub .copy { padding-left: 0; } .scrub .copy h2 { font-size: clamp(26px, 6vw, 40px); }
  .scrub .steps { display: none; }
  .scrub .shot { height: min(50vh, 420px); margin-right: 0; }
  .fgrid { grid-template-columns: 1fr; } .fcard, .fcard.wide { grid-template-columns: 1fr; } .fcard .fart { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .reel-track { grid-template-columns: 1fr; } .roll { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 92px; } .film { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile-art * { animation: none !important; }
  .scrub .shot > * { animation-delay: -1s !important; }
  html { scroll-behavior: auto; }
}

/* ── Page heroes: two columns, art on the right. The left-anchored text with an
   empty right half read as unfinished. Each page gets one small self-contained
   product moment that previews what the page is about. Home and pricing stay
   centred: home's film sits directly below, pricing's toggle needs centring. ── */
.hero2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero-art { position: relative; min-height: 0; display: grid; align-content: center; gap: 12px; }
.hero-art .ui { position: relative; }
.hero-art .ui-bubble { position: relative; }
.hero-art .ui-bubble.me { justify-self: end; }
.hero-art .a1 { animation: tl-rise 7s var(--ease) infinite; }
.hero-art .a2 { animation: tl-rise 7s var(--ease) infinite .9s; }
.hero-art .a3 { animation: tl-rise 7s var(--ease) infinite 1.8s; }
.hero-art .a4 { animation: tl-rise 7s var(--ease) infinite 2.7s; }
.hero-art .dial { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.hero-art .dial > div { background: var(--card); padding: 14px 12px; text-align: center; }
.hero-art .dial b { display: block; font-family: var(--display); font-size: 17px; }
.hero-art .dial small { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); }
.hero-art .dial .on { background: color-mix(in srgb, var(--teal) 12%, var(--card)); box-shadow: inset 0 3px 0 var(--teal); }
.hero-art .dial .on small { color: var(--teal); }
.hero-art .lattice-lg { width: 100%; max-width: 300px; justify-self: center; }
.hero-art .founders-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-art .founders-mini img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 22%; border-radius: 12px; border: 1px solid var(--border); }
.hero-art .founders-mini figcaption { margin-top: 8px; font-size: 12.5px; color: var(--secondary); }
.hero-art .founders-mini b { display: block; color: var(--text); font-size: 14px; }
@media (max-width: 900px) { .hero2 { grid-template-columns: 1fr; gap: 28px; } .hero-art { min-height: 0; } }

/* The one idea: the copy beside the autonomy ladder.
   Both grids lived in `style=` attributes on index.html, which is why the
   ladder ran off the right edge of a phone: an inline declaration beats
   any stylesheet rule, so no media query could reach it and the three
   cards stayed at their desktop width whatever the viewport. They are
   here instead, where the breakpoint below can. */
.one-idea { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.ladder > div { background: var(--card); padding: 22px 18px; text-align: center; }
.ladder .on { background: color-mix(in srgb, var(--teal) 12%, var(--card)); box-shadow: inset 0 3px 0 var(--teal); }
/* Stacked, not squeezed. Three columns on a phone leaves about 110px a
   card, which breaks "Level 02 · default" across lines and still clips.
   Stacking also reads the way the thing itself works: 01, then 02, then
   03, a rung at a time. The teal edge stays on top of its own card. */
@media (max-width: 900px) {
  .one-idea { grid-template-columns: 1fr; gap: 28px; }
  .ladder { grid-template-columns: 1fr; }
}


/* ── Conversion pass, 21 November 2026 ──────────────────────────────────
   Repo-side, like the launch band and the real screens: a design drop that
   replaces v2.css loses this block, so re-apply it (DROP-IN-NOTES.md,
   "Conversion pass"). Week one of paid traffic was 81% phones, and on a
   phone the nav had no Start button, the hero never said what MindFin is
   or who it is for, and nothing stayed on screen to tap. */

/* A Start button in the nav on every width. The Log in link moves into the
   menu on a phone, and so does the theme toggle (js/convert.js adds it), so
   the bar keeps the brand, the one action and the menu. */
@media (max-width: 960px) {
  .nav-cta .btn-teal { display: inline-flex; height: 38px; padding: 0 16px; font-size: 14px; }
}
@media (max-width: 600px) {
  .nav-in { gap: 12px; }
  .nav-cta { gap: 8px; }
  .nav-cta .theme-btn { display: none; }
}
@media (max-width: 360px) {
  .nav .wordmark { font-size: 18px; }
  .nav-cta .btn-teal { padding: 0 12px; font-size: 13.5px; }
}
.mobile-menu .mm-theme { display: flex; width: 100%; height: auto; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 13px 0; justify-content: space-between; align-items: center; color: var(--text); font-size: 17px; }
.mobile-menu .mm-theme svg { width: 18px; height: 18px; color: var(--secondary); }

/* Home, /scan and /bas share the original .hero register: centred kicker,
   headline, sub, actions and trust chips, with the product screens in a figure
   below. The left-aligned .hx hero that /scan and /bas carried for a day went
   on 21 November 2026 (Xavier: the site should read as one site). */

/* Three steps: snap, the agents, you. */
.s3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s3; }
.s3 li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; display: grid; gap: 10px; align-content: start; }
.s3 .n { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--teal); }
.s3 h3 { font-size: 21px; font-weight: 700; }
.s3 p { color: var(--secondary); font-size: 15px; line-height: 1.55; }
.s3 li.you { border-color: color-mix(in srgb, var(--teal) 55%, var(--border)); box-shadow: inset 0 3px 0 var(--teal); }
@media (max-width: 900px) { .s3 { grid-template-columns: 1fr; gap: 12px; } .s3 li { padding: 20px 18px; } }

/* Price strip: the three plans most owners choose between, on the home page. */
.pstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 20px; display: grid; gap: 6px; align-content: start; position: relative; }
.pcard.pop { border-color: var(--teal); }
.pcard .pname { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.pcard .pop-tag { font-size: 9.5px; letter-spacing: .1em; padding: 3px 8px; border-radius: 100px; background: var(--teal); color: var(--on-teal); font-weight: 600; }
.pcard .pfig { font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pcard .pper { color: var(--secondary); font-size: 13.5px; }
.pcard .pfor { font-size: 14.5px; margin-top: 6px; }
.pnote { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; color: var(--secondary); font-size: 14.5px; }
.pnote a { font-weight: 600; }
@media (max-width: 900px) { .pstrip { grid-template-columns: 1fr; gap: 10px; } .pcard { grid-template-columns: 1fr auto; align-items: baseline; padding: 16px 18px; gap: 2px 12px; } .pcard .pname { grid-column: 1 / -1; } .pcard .pfig { font-size: 32px; } .pcard .pper { justify-self: end; } .pcard .pfor { grid-column: 1 / -1; margin-top: 2px; } }

/* Proof: a customer in their own words, and the facts an owner checks. */
.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.quote { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; display: grid; gap: 18px; }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text); }
.quote figcaption { font-size: 14px; color: var(--secondary); }
.quote figcaption b { display: block; color: var(--text); font-weight: 600; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.facts li { background: var(--card); padding: 18px 20px; display: grid; gap: 4px; }
.facts b { font-size: 16px; }
.facts p { color: var(--secondary); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 900px) { .proof { grid-template-columns: 1fr; } .quote blockquote { font-size: 16.5px; } }

/* The home hero's product screens, under the buttons in the centred hero:
   the published page's register, with the real screens where the film poster
   used to be (21 November 2026). */
.hero-screens { margin: 40px auto 0; max-width: 1040px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; justify-items: center; }
.hs-card { width: 100%; display: grid; gap: 10px; justify-items: start; }
.hs-step { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 4px 10px; border-radius: 100px; background: var(--teal); color: var(--on-teal); }
.hero-screens .screen { width: 100%; }
.hero-screens .shot-tag { grid-column: 1 / -1; justify-self: center; margin-top: 2px; }
/* One screen: /bas shows the BAS workpapers alone, wider than half a row. */
.hero-screens.one { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
@media (max-width: 700px) {
  .hero-screens { grid-template-columns: 1fr; gap: 26px; margin-top: 30px; }
}
/* The four trust chips on one or two rows, not three. */
@media (max-width: 600px) {
  .hero .trust { gap: 6px 12px; font-size: 10.5px; }
}

/* A part js/launch.js has hidden stays hidden. The .btn class sets display,
   which beats the bare [hidden] attribute, so a hero shows both of its
   buttons at once without this. */
[data-launch-when][hidden] { display: none !important; }

/* The phone menu's close control. The burger sits in the top right corner
   already, so it becomes a cross while the menu is open rather than a second
   control appearing beside it: one place to look, and the same tap that
   opened it closes it. js/convert.js sets aria-expanded and the label.
   Added 21 November 2026. */
.burger span { transition: transform .25s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.burger:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .burger span { transition: none; } }

/* A contextual link from one page to the page that covers the feature in
   depth (/scan, /bas). Added 21 November 2026; both pages were reachable only
   from an ad before this. */
.related { margin-top: 18px; font-size: 14.5px; }
.related a { font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--teal) 40%, transparent); }

/* Questions an owner asks before trying it. */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 17px 52px 17px 20px; font-weight: 600; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 20px; color: var(--teal); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 20px 18px; color: var(--secondary); font-size: 15px; line-height: 1.6; }

/* The sticky start bar on a phone (js/convert.js). Hidden until the hero's
   own button has scrolled away, and again while the closing call to action
   or the footer is on screen. */
.m-sticky { display: none; }
@media (max-width: 760px) {
  .m-sticky { display: grid; gap: 4px; justify-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 48; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--border); transform: translateY(110%); transition: transform .3s var(--ease); }
  .m-sticky.on { transform: none; }
  .m-sticky .btn { width: 100%; height: 48px; font-size: 15.5px; }
  .m-sticky small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--secondary); }
}
@media (prefers-reduced-motion: reduce) { .m-sticky { transition: none; } }
