/* ============================================================
   Workbench Budgeting — marketing site
   Visual system mirrored from the desktop app:
   Inter type, deep navy accent (#003a70), paper surfaces,
   crisp corners, layered soft shadows, uppercase letter-spaced labels.
   ============================================================ */

:root {
  /* Surfaces & ink (from the app) */
  --surface-0: #eef0f4;
  --surface-1: #ffffff;
  --surface-2: #f6f8fa;
  --surface-3: #eceff3;
  --ink: #14142b;
  --ink-muted: #3d3d5c;
  --muted: #6b7280;

  /* Investment-banking navy accent */
  --accent: #003a70;
  --accent-hover: #00264d;
  --accent-bright: #0a5fae;
  --accent-subtle: rgba(0, 58, 112, 0.06);
  --accent-line: rgba(0, 58, 112, 0.18);
  --accent-grad: linear-gradient(135deg, #0a4f8f 0%, #003a70 55%, #00264d 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(10, 95, 174, 0.10), rgba(0, 58, 112, 0.03));

  /* Gains / losses */
  --good: #0d6e3f;
  --bad: #c0392b;

  /* Structure */
  --border: #dde1e6;
  --border-strong: #b8bec6;
  --titlebar: #14142b;
  --titlebar-2: #2d2d4a;

  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 9px;

  /* Layered, soft shadow system — reads as depth, not a hard drop shadow */
  --shadow-xs: 0 1px 2px rgba(20, 20, 43, 0.05);
  --shadow-sm: 0 1px 2px rgba(20, 20, 43, 0.06), 0 2px 6px rgba(20, 20, 43, 0.05);
  --shadow-pop: 0 1px 3px rgba(20, 20, 43, 0.07), 0 6px 16px -4px rgba(20, 20, 43, 0.10);
  --shadow-lift: 0 2px 6px rgba(20, 20, 43, 0.06),
    0 18px 40px -12px rgba(0, 40, 80, 0.28),
    0 40px 64px -32px rgba(20, 20, 43, 0.22);
  --shadow-glow: 0 0 0 3px var(--accent-subtle);

  --t-fast: 90ms ease;
  --t-normal: 200ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-slow: 420ms cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --maxw: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 52px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--surface-0);
  background-image:
    radial-gradient(120% 60% at 50% -10%, rgba(10, 95, 174, 0.07) 0%, transparent 55%),
    radial-gradient(90% 50% at 100% 0%, rgba(0, 58, 112, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Faint engineering-paper grid — subtle texture, ties to the "tools" theme */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(20, 20, 43, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 20, 43, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 30%, transparent 78%);
}

.wrap {
  width: min(var(--maxw), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ── Shared label / kicker ── */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker::before {
  content: "";
  width: 1.7rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ── Display type: refined serif for headlines & pull-quotes ──
   Signals institutional-finance authority, while Inter keeps body/UI copy
   and the app-mockup chrome crisp and legible, and mono carries the numbers. */
.hero__title,
.section__title,
.problem__title,
.flow-step__title,
.feature__title,
.philosophy__quote,
.proof__quote,
.pricing__tier-name,
.download__title,
.about-hero__title {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
}

/* ============================================================
   Top navigation — app titlebar motif
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(20, 20, 43, 0.92), rgba(45, 45, 74, 0.9));
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 8px 24px -12px rgba(0, 0, 0, 0.6);
}
/* Accent gradient hairline — the same navy→sky motif used across the page */
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-bright) 30%, #38bdf8 50%, var(--accent) 70%, transparent);
  opacity: 0.85;
  pointer-events: none;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 54px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #f6f8ff;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
}

.nav__dots {
  display: flex;
  gap: 5px;
}
.nav__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.nav__dots span:first-child {
  background: var(--accent-bright);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 8px rgba(10, 95, 174, 0.9);
}

.nav__spacer {
  flex: 1 1 auto;
}

.nav__links {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.nav__links a:not(.btn) {
  position: relative;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color var(--t-normal);
}
/* Animated accent underline — mirrors the hero/intro underline motif */
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.12rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-bright), #38bdf8);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-normal);
}
.nav__links a:not(.btn):hover {
  color: #fff;
}
.nav__links a:not(.btn):hover::after,
.nav__links a:not(.btn):focus-visible::after,
.nav__links a:not(.btn)[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav__links a:not(.btn)[aria-current="page"] {
  color: #fff;
}

.nav__cta {
  margin-left: 0.4rem;
}

/* ── Mobile menu toggle (hamburger → X) — hidden until the bar gets tight ── */
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.nav__toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}
.nav__toggle:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}
.nav__toggle-bars {
  position: relative;
  width: 20px;
  height: 14px;
}
.nav__toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #f6f8ff;
  transition: transform var(--t-normal), opacity var(--t-fast);
}
.nav__toggle-bars span:nth-child(1) { top: 0; }
.nav__toggle-bars span:nth-child(2) { top: 6px; }
.nav__toggle-bars span:nth-child(3) { top: 12px; }
.nav.is-open .nav__toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle-bars span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Buttons (mirrors app)
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.64rem 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: background var(--t-fast), border-color var(--t-fast),
    color var(--t-fast), transform var(--t-normal), box-shadow var(--t-normal);
}
.btn:hover {
  background: var(--surface-2);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

.btn--primary {
  background-image: var(--accent-grad);
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent-hover);
  box-shadow: 0 1px 2px rgba(0, 38, 77, 0.4),
    0 6px 16px -6px rgba(0, 58, 112, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn--primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 38, 77, 0.4),
    0 12px 26px -8px rgba(0, 58, 112, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 38, 77, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--lg {
  padding: 0.85rem 1.6rem;
  font-size: 0.84rem;
}

.btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.7rem;
}

/* ============================================================
   Hero
   ============================================================ */
/* The headline holds the vertical center of the first screen. As you scroll,
   the hero stays pinned and the promise + download reveal beneath it — so the
   headline itself never moves. Without pinning (no JS / reduced motion) it
   gracefully falls back to a normal stacked hero. Nav is 52px, sticky. */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 52px);
  min-height: calc(100svh - 52px);
  /* Shared width for the headline + detail so their left edges align while
     the whole block stays centered on the page (finance-deck ragged-right). */
  --hero-w: min(700px, 90vw);
}

.hero__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  min-height: calc(100vh - 52px);
  min-height: calc(100svh - 52px);
  padding: clamp(1.5rem, 5vh, 3.5rem) 0 clamp(4rem, 10vh, 6rem);
}
.hero__stage-inner::before {
  content: "";
  position: absolute;
  top: 48%;
  left: calc(var(--hero-w) / 2);
  width: min(760px, 92vw);
  height: min(560px, 70vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 45%, rgba(10, 95, 174, 0.12), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
}

.hero__stage-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__title {
  margin: 0;
  width: var(--hero-w);
  max-width: 100%;
  font-size: clamp(2.5rem, 6.6vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  text-wrap: pretty;
}
/* Underline highlight that wraps cleanly across lines */
.hero__title em {
  font-style: normal;
  color: var(--accent);
  background-image: linear-gradient(90deg, var(--accent), var(--accent-bright));
  background-repeat: no-repeat;
  background-position: 0 94%;
  background-size: 100% 0.16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* The promise + download. Default (fallback) layout: sits beneath the
   headline in normal flow. When pinning is active it's lifted out of flow
   and revealed on scroll (see the .is-pinnable rules below). */
.hero__detail {
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: var(--hero-w);
  max-width: 100%;
}

.hero__tagline {
  margin: 0;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.5;
  text-wrap: balance;
}
.hero__tagline strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.btn__os-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}
.hero__platform-note {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero__more {
  margin-top: clamp(1.75rem, 5vh, 3rem);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 3px;
  transition: border-color var(--t-fast), gap var(--t-fast);
}
.hero__more:hover {
  border-bottom-color: var(--accent);
  gap: 0.6rem;
}
.hero__more-arrow {
  width: 0.95rem;
  height: 0.95rem;
}

/* Scroll cue — only shown while pinning is active, before the reveal */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: opacity var(--t-normal);
}
.hero__cue-arrow {
  width: 1.15rem;
  height: 1.15rem;
  animation: heroCueBob 1.8s ease-in-out infinite;
}
@keyframes heroCueBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ── Pinned reveal (enabled by JS via .is-pinnable) ──
   The stage sticks for one extra screen of scroll; the headline stays put
   while the detail block fades and rises into the space beneath it. */
.hero.is-pinnable {
  min-height: 175vh;
}
.hero.is-pinnable .hero__stage {
  position: sticky;
  top: 52px;
  min-height: 0;
  height: calc(100vh - 52px);
  height: calc(100svh - 52px);
}
.hero.is-pinnable .hero__detail {
  position: absolute;
  top: calc(100% + clamp(1.5rem, 4vh, 2.75rem));
  left: 0;
  margin-top: 0;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.hero.is-pinnable.is-revealed .hero__detail {
  opacity: 1;
  transform: translateY(0);
}
.hero.is-pinnable .hero__cue {
  display: inline-flex;
}
.hero.is-pinnable.is-revealed .hero__cue {
  opacity: 0;
}

/* Reveal animation for hero text */
.reveal-up {
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-up.d1 { animation-delay: 0.05s; }
.reveal-up.d2 { animation-delay: 0.16s; }
.reveal-up.d3 { animation-delay: 0.27s; }
.reveal-up.d4 { animation-delay: 0.38s; }
.reveal-up.d5 { animation-delay: 0.49s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── The product window (replaces the old video) ── */
.window {
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.99);
  animation: revealUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  background: linear-gradient(180deg, var(--titlebar), var(--titlebar-2));
  color: #eef1ff;
}
.window__bar .dots {
  display: flex;
  gap: 5px;
}
.window__bar .dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.window__title {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
}

.window__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  overflow-x: auto;
}
.window__tab {
  appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.window__tab:hover {
  color: var(--ink);
}
.window__tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--surface-1);
}

.window__body {
  padding: 1rem 1.1rem 1.2rem;
}

/* KPI stat tiles */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.kpi {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
  background: var(--surface-2);
}
.kpi__label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.kpi__value {
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.kpi__value.good { color: var(--good); }
.kpi__delta {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--good);
}
.kpi__delta.bad { color: var(--bad); }

/* Forecast chart */
.chart {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  padding: 0.7rem 0.8rem 0.4rem;
}
.chart__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}
.chart__title {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.chart__legend {
  display: flex;
  gap: 0.8rem;
  font-size: 0.6rem;
  color: var(--muted);
}
.chart__legend i {
  display: inline-block;
  width: 14px;
  height: 2px;
  vertical-align: middle;
  margin-right: 0.3rem;
}
.chart__legend i.dash {
  background: repeating-linear-gradient(90deg, #2a7ab0 0 3px, transparent 3px 5px);
}
.chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-line--base { stroke: var(--border-strong); stroke-dasharray: 3 3; }
.chart-line--plan { stroke: var(--accent); }

/* Draw-in animation for the plan line */
.chart-line--draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}
.chart-area {
  fill: url(#planFill);
  opacity: 0;
  animation: fadeIn 1.4s ease 1.6s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* Mini ledger rows */
.ledger {
  margin-top: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.ledger__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.5rem 0.7rem;
  font-size: 0.74rem;
  border-bottom: 1px solid var(--border);
}
.ledger__row:last-child { border-bottom: none; }
.ledger__row--head {
  background: var(--surface-2);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ledger__amt {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink);
}
.ledger__tag {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 1px;
  border: 1px solid var(--border-strong);
  color: var(--ink-muted);
  background: var(--surface-2);
}
.ledger__tag.in { color: var(--good); border-color: rgba(13,110,63,0.4); }
.ledger__tag.out { color: var(--bad); border-color: rgba(192,57,43,0.4); }

/* ============================================================
   Ticker strip — adds restrained motion + terminal feel
   ============================================================ */
.ticker {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--border);
  background: var(--surface-1);
  overflow: hidden;
}
.ticker__track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  width: max-content;
  padding: 0.7rem 0;
  animation: tickerScroll 38s linear infinite;
}
.ticker:hover .ticker__track {
  animation-play-state: paused;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ticker__item::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Section scaffolding
   ============================================================ */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section__head {
  max-width: 680px;
  margin-bottom: 2.5rem;
}
.section__title {
  margin-top: 0.85rem;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.section__lead {
  margin-top: 0.9rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ── Why this exists: the problem bridge ── */
.problem__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: start;
}
@media (min-width: 900px) {
  .problem__grid { grid-template-columns: 1.05fr 1fr; }
}
.problem__title {
  margin-top: 0.7rem;
  font-size: clamp(1.55rem, 3.3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.14;
  color: var(--ink);
  text-wrap: balance;
}
.problem__title em {
  font-style: normal;
  color: var(--accent);
  background-image: linear-gradient(var(--accent-line), var(--accent-line));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 0.14em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.problem__thesis {
  margin-top: 1.3rem;
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}
.problem__para {
  margin-bottom: 1rem;
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}
.problem__para strong {
  color: var(--ink);
  font-weight: 600;
}
.problem__para em {
  font-style: italic;
  color: var(--ink);
}
.problem__audience {
  margin-top: 1.6rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop);
}
.problem__audience-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}
.problem__audience p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.62;
}

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}
@media (min-width: 680px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}

.feature {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.3rem 1.3rem;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
.feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t-normal);
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--border-strong);
}
.feature:hover::before {
  transform: scaleY(1);
}

.feature__index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.feature__title {
  margin-top: 0.5rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.feature__list {
  margin-top: 0.9rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.feature__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
}

/* Animation step list — ordered to match the demo loop */
.feature__list--steps {
  counter-reset: demo-step;
  gap: 0.65rem;
}
.feature__list--steps li {
  counter-increment: demo-step;
  padding: 0.65rem 0.85rem 0.65rem 2.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--muted);
  transition:
    color 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.feature__list--steps li::before {
  content: counter(demo-step);
  left: 0.65rem;
  top: 0.72rem;
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--muted);
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  transform: none;
  background: var(--surface-1);
  transition: color 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.feature__list--steps li.is-active {
  color: var(--ink);
  background: var(--accent-subtle);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-line);
}
.feature__list--steps li.is-active::before {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}
.feature__list--steps li.is-done {
  color: var(--ink-muted);
  border-color: var(--border);
}
.feature__list--steps li.is-done::before {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface-1);
}

/* ── How it works: vertical journey, full-width steps ── */

.flow > .wrap {
  width: min(var(--maxw), calc(100% - 2.5rem));
}

.flow__track {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 0.5rem;
}

.flow-step {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0 2rem;
  align-items: start;
}

.flow-step__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.35rem;
}
.flow-step__num {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  background-image: var(--accent-grad);
  border: 1px solid var(--accent-hover);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--accent-subtle),
    0 6px 14px -4px rgba(0, 58, 112, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.flow-step:not(:last-child) .flow-step__rail::after {
  content: "";
  flex: 1 1 auto;
  width: 2px;
  min-height: 2.5rem;
  margin-top: 0.75rem;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(0, 58, 112, 0.04));
}

.flow-step__body {
  min-width: 0;
  padding: 1.5rem 1.65rem 1.65rem;
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  transition: box-shadow var(--t-normal), border-color var(--t-normal), transform var(--t-normal);
}
.flow-step__body:hover {
  box-shadow: var(--shadow-lift);
  border-color: var(--border-strong);
}
.flow-step--payoff .flow-step__body {
  background: linear-gradient(135deg, rgba(0, 58, 112, 0.10) 0%, var(--surface-1) 60%);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-pop), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.flow-step__head {
  padding-bottom: 1.15rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--border);
}
.flow-step__kicker {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.22rem 0.55rem;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
}
.flow-step__title {
  margin-top: 0.35rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}
.flow-step__lead {
  margin-top: 0.55rem;
  max-width: 62ch;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.flow-step__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.flow-step__content--duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Feature cards inside steps */
.flow .feature {
  padding: 1.25rem 1.35rem 1.2rem;
}
.flow .feature--hero {
  padding: 1.35rem 1.45rem 1.3rem;
}
.flow .feature--compact {
  max-width: 34rem;
}
.flow .feature__title { margin-top: 0; }
.flow .feature__shot { margin-top: 0.85rem; }
.flow .feature__shot--demo {
  margin-bottom: 0;
}
.flow .feature__shot--demo + .feature__list,
.flow .feature__shot--demo + .feature__list--steps {
  margin-top: 0;
  padding-top: 1.2rem;
}
.flow-step .feature {
  border-color: var(--border);
  box-shadow: none;
}
.flow-step .feature:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-strong);
}
.flow-step .feature::before {
  display: none;
}

/* Step 4 payoff */
.payoff--wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2.5rem;
  align-items: center;
  padding: 0;
  background: transparent;
  border: none;
}
.payoff--wide .payoff__desc {
  font-size: 0.95rem;
  max-width: 48ch;
  margin: 0;
}
.payoff--wide .loop__number {
  text-align: right;
}
.payoff--wide .loop__number-value {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  background-image: linear-gradient(135deg, var(--accent-bright), var(--accent) 60%, var(--accent-hover));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

/* Legacy payoff block (step 4 uses payoff--wide) */
.payoff {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.payoff__desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* shared number block */
.loop__number-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.loop__number-value {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent);
}
.loop__number-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.66rem;
  color: var(--muted);
}

/* Privacy — beneath the journey */
.flow__privacy {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.4rem;
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.flow__privacy-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--accent);
  font-size: 0.95rem;
}
.flow__privacy-text {
  flex: 1 1 320px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-muted);
}
.flow__privacy-text strong { color: var(--ink); font-weight: 600; }
.flow__privacy-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.flow__privacy-chips .privacy-row__status { margin-left: 0; }

@media (max-width: 900px) {
  .flow-step {
    grid-template-columns: 1fr;
    gap: 0.75rem 0;
  }
  .flow-step__rail {
    flex-direction: row;
    gap: 0.65rem;
    padding-top: 0;
  }
  .flow-step:not(:last-child) .flow-step__rail::after {
    flex: 1;
    width: auto;
    height: 2px;
    min-height: 0;
    margin-top: 0;
    margin-left: 0.5rem;
    background: linear-gradient(to right, var(--accent-line), rgba(0, 58, 112, 0.04));
  }
  .flow-step__body {
    padding: 1.15rem 1.15rem 1.25rem;
  }
  .flow-step__content--duo {
    grid-template-columns: 1fr;
  }
  .payoff--wide {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .payoff--wide .loop__number {
    text-align: left;
  }
  .feature--compact {
    max-width: none;
  }
}

/* ── Philosophy / pull-quote ── */
.philosophy {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(10, 95, 174, 0.28) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(0, 58, 112, 0.22) 0%, transparent 50%),
    linear-gradient(165deg, var(--titlebar), #12122a 60%, var(--titlebar-2));
  color: #fff;
  overflow: hidden;
}
.philosophy::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 100% at 80% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 80% 0%, #000, transparent 70%);
}
.philosophy__inner {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.philosophy .kicker {
  color: #8fb6e6;
}
.philosophy .kicker::before {
  background: #8fb6e6;
}
.philosophy__quote {
  margin-top: 1.2rem;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.2;
  text-wrap: balance;
}
.philosophy__quote span {
  background: linear-gradient(90deg, #8fb6e6, #d6e6ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.philosophy__sub {
  margin-top: 1.3rem;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.80);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.65;
}

/* ── Social proof / build-in-public ── */
.proof__quote {
  margin: 1.1rem 0 0;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: balance;
}
.proof__quote span {
  color: var(--accent);
  background-image: linear-gradient(var(--accent-line), var(--accent-line));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 0.14em;
}
.proof__meta {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}
.proof__link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  transition: border-color var(--t-fast);
}
.proof__link:hover {
  border-bottom-color: var(--accent);
}

/* ── Pricing ── */
.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 760px) {
  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
.pricing__tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.45rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
.pricing__tier:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--border-strong);
}
.pricing__tier--paid {
  background:
    linear-gradient(135deg, rgba(10, 95, 174, 0.10), rgba(0, 58, 112, 0.03)),
    var(--surface-1);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-pop), 0 0 0 1px var(--accent-line) inset;
}
.pricing__tier--paid::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}
.pricing__tier--paid:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lift), 0 0 0 1px var(--accent-line) inset;
}
.pricing__tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.pricing__tier--paid .pricing__tier-head {
  border-bottom-color: var(--accent-line);
}
.pricing__tier-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pricing__price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.pricing__tier-tag {
  flex: 0 0 auto;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.22rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.pricing__tier--paid .pricing__tier-tag {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--surface-1);
}
.pricing__tier-body {
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--ink-muted);
}
.pricing__note {
  margin-top: 1.25rem;
  max-width: 62ch;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Download ── */
.download__card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(10, 95, 174, 0.08), transparent 60%),
    linear-gradient(180deg, var(--surface-1), var(--surface-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: clamp(2.75rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}
.download__card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), var(--accent), transparent);
}
.download__title {
  margin-top: 0.8rem;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.download__sub {
  margin: 0.9rem 0 0;
  max-width: 48ch;
  color: var(--ink-muted);
}
.download__actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.download__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.download__os-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}
.download__note {
  margin-top: 1.1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Download: coming-soon / greyed state ── */
.download__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.32rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.download__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
}
.download__card--soon .download__actions {
  opacity: 0.85;
}
.download__btn.is-disabled {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--border);
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(1);
}
.download__btn.is-disabled:hover {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--muted);
}

/* ── Notify-me email capture ── */
.notify {
  margin-top: 1.75rem;
  max-width: 32rem;
}
.notify__label {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.notify__row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.notify__field {
  flex: 1 1 15rem;
  min-width: 0;
  padding: 0.78rem 0.95rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.notify__field::placeholder {
  color: var(--muted);
}
.notify__field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.notify__btn {
  flex-shrink: 0;
}
.notify__btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.notify__status {
  margin-top: 0.7rem;
  min-height: 1.2em;
  font-size: 0.82rem;
  color: var(--muted);
}
.notify__status.is-success {
  color: var(--good);
}
.notify__status.is-error {
  color: var(--bad);
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--titlebar-2), var(--titlebar));
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(10, 95, 174, 0.35);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.04) inset;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem 0;
  font-size: 0.78rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #f6f8ff;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 700;
  letter-spacing: -0.005em;
  font-size: 1rem;
}
.footer__end {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer__social:hover {
  color: #fff;
}
.footer__x-icon {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

/* ============================================================
   About page (/about)
   ============================================================ */
.about-hero {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--border);
}
.about-hero__title {
  margin-top: 0.9rem;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.05;
  color: var(--ink);
}
.about-hero__lead {
  margin-top: 1rem;
  max-width: 48ch;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ink-muted);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}
@media (min-width: 900px) {
  .about__inner {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
}

.prose p {
  margin: 0 0 1.2rem;
  max-width: 66ch;
  color: var(--ink-muted);
  font-size: 1.06rem;
  line-height: 1.7;
}
.prose p:first-child {
  font-size: clamp(1.15rem, 2vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink);
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* Studio detail card — app panel motif */
.about-card {
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
@media (min-width: 900px) {
  .about-card {
    position: sticky;
    top: 72px;
  }
}
.about-card__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(180deg, var(--titlebar), var(--titlebar-2));
}
.about-card__bar .dots {
  display: flex;
  gap: 5px;
}
.about-card__bar .dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.about-card__bar .dots span:first-child {
  background: var(--accent);
}
.about-card__name {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.about-card__list {
  margin: 0;
  padding: 0.5rem 1rem;
}
.about-card__list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.about-card__list > div:last-child {
  border-bottom: none;
}
.about-card__list dt {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-card__list dd {
  margin: 0;
  text-align: right;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
}
.about-card__cta {
  display: flex;
  width: calc(100% - 2rem);
  margin: 0.4rem 1rem 1rem;
}

/* ============================================================
   Scroll reveal (JS toggles .in-view)
   ============================================================ */
.on-scroll {
  opacity: 0;
  transform: translateY(26px) scale(0.995);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.on-scroll.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger children */
.on-scroll[data-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.on-scroll[data-stagger].in-view > * {
  opacity: 1;
  transform: translateY(0);
}
.on-scroll[data-stagger].in-view > *:nth-child(1) { transition-delay: 0.02s; }
.on-scroll[data-stagger].in-view > *:nth-child(2) { transition-delay: 0.08s; }
.on-scroll[data-stagger].in-view > *:nth-child(3) { transition-delay: 0.14s; }
.on-scroll[data-stagger].in-view > *:nth-child(4) { transition-delay: 0.20s; }
.on-scroll[data-stagger].in-view > *:nth-child(5) { transition-delay: 0.26s; }
.on-scroll[data-stagger].in-view > *:nth-child(6) { transition-delay: 0.32s; }

/* ============================================================
   App-faithful recreations
   (mirrors the real Actuals screen + feature screens)
   ============================================================ */

/* ── Actuals toolbar (real app chrome) ── */
.app-toolbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.7rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.app-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  color: var(--ink);
  white-space: nowrap;
}
.app-control .caret { color: var(--muted); font-size: 0.6rem; }
.app-control--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.app-toolbar__spacer { flex: 1 1 auto; }
.app-control--profile { min-width: 92px; justify-content: space-between; }

/* ── Summary metric strip ── */
.kpi__sub {
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Actuals chart bars ── */
.chart-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0);
  animation: barRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes barRise { to { transform: scaleY(1); } }
.chart-bar--income { fill: #0d6e3f; }
.chart-bar--expense { fill: #c0392b; transform-origin: top; }
.chart-line--net { stroke: #5b2c8c; stroke-width: 2; fill: none; }
.chart-line--implied { stroke: #2a7ab0; stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; }

.chart__axis-label {
  font-family: var(--font-mono);
  font-size: 7px;
  fill: var(--muted);
}

/* ── Cashflow pivot grid (metric rows × periods) ── */
.cfgrid {
  margin-top: 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
}
.cfgrid__row {
  display: grid;
  grid-template-columns: 78px repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.cfgrid__row:last-child { border-bottom: none; }
.cfgrid__row--head {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.6rem;
}
.cfgrid__row--total {
  background: var(--accent-subtle);
  font-weight: 600;
}
.cfgrid__cell {
  padding: 0.36rem 0.5rem;
  text-align: right;
  border-left: 1px solid var(--border);
  color: var(--ink);
}
.cfgrid__cell:first-child {
  text-align: left;
  border-left: none;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: none;
  letter-spacing: 0;
}
.cfgrid__cell.pos { color: var(--good); }
.cfgrid__cell.neg { color: var(--bad); }

/* ── Window section labels (statement / transactions) ── */
.window__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1rem 0 0.45rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.window__label::before {
  content: "";
  width: 0.5rem;
  height: 2px;
  background: var(--accent);
}
.window__label .hint {
  margin-left: auto;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--accent);
}

/* ── Transactions table (the source of the statement) ── */
.txnlist {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.7rem;
}
.txnlist__row {
  display: grid;
  grid-template-columns: 40px minmax(72px, 1fr) 74px 46px 54px 52px;
  align-items: center;
  gap: 0.4rem;
  min-width: 360px;
  padding: 0.42rem 0.55rem;
  border-bottom: 1px solid var(--border);
}
.txnlist__row:last-child { border-bottom: none; }
.txnlist__row--head {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.txnlist__row--head span { text-align: center; }
.txnlist__row--head span:nth-child(1),
.txnlist__row--head span:nth-child(2) { text-align: left; }
.txnlist__row--head span:nth-child(3) { text-align: right; }
.txnlist__date {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--muted);
}
.txnlist__desc {
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.txnlist__amt {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink);
}
.txnlist__amt.pos { color: var(--good); }
.txnlist__amt.neg { color: var(--bad); }
.txnlist__marker { display: flex; justify-content: center; }
.txnpill {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  padding: 0.12rem 0.32rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-muted);
  white-space: nowrap;
}
.txnpill.is-set {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
  font-weight: 600;
}
.txnpill.muted {
  color: var(--muted);
  border-style: dashed;
}

/* greyed-out transaction (e.g. excluded transfer / pending) */
.txnlist__row.is-muted { opacity: 0.45; }
.txnlist__row.is-muted .txnlist__amt { color: var(--muted); }

/* ============================================================
   Feature "shot" mini-screens
   ============================================================ */
.feature__shot {
  margin: 0.2rem 0 1.05rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-normal), transform var(--t-normal);
}
.feature__shot:hover {
  box-shadow: var(--shadow-lift);
}
.shot__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  background: linear-gradient(180deg, var(--titlebar), var(--titlebar-2));
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.shot__bar .dots { display: flex; gap: 4px; }
.shot__bar .dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.shot__bar .dots span:first-child { background: var(--accent); }
.shot__name {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.shot__refresh {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.shot__refresh:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.shot__refresh svg {
  width: 0.72rem;
  height: 0.72rem;
}
.shot__refresh.is-spinning svg {
  animation: shotRefreshSpin 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes shotRefreshSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.shot__body { padding: 0.7rem; }

/* ── Screen-recording replacement for how-it-works mockups ──
   When a matching video is found in /static/videos/, JS adds .has-video
   and appends .shot__video; the animated mockup markup stays hidden as a
   fallback so anything without a recording still renders. */
.feature__shot.has-video {
  padding: 0;
  background: #000;
  position: relative;
}
.feature__shot.has-video > *:not(.shot__video):not(.shot__zoom) { display: none; }
/* Standard clip shape is 16:14 (portrait) — record these at 16:14
   (e.g. 1080x1350) so they fill the card without cropping. */
.shot__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 14;
  object-fit: cover;
  cursor: zoom-in;
}

/* Guided-setup clip is the exception: a short, wide strip.
   Record it at 16:5 (e.g. 1600x500) so it fills without cropping. */
.feature__shot[data-video="step1-guided-setup"].has-video .shot__video {
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

/* Tap-to-enlarge hint — recordings are small on phones, so let people
   open them fullscreen. Only shown on touch / small screens. */
.shot__zoom {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  display: none;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(10, 12, 24, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
@media (max-width: 720px), (hover: none) {
  .shot__zoom { display: inline-flex; }
  /* Break the recording out of the card padding so it's as wide as possible. */
  .flow .feature .feature__shot.has-video {
    margin-left: -1.35rem;
    margin-right: -1.35rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .flow .feature--hero .feature__shot.has-video {
    margin-left: -1.45rem;
    margin-right: -1.45rem;
  }
}

/* tabs row used in a few shots */
.shot__tabs {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.shot__tab {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: var(--surface-2);
}
.shot__tab.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* generic mini data table (variance, scenario compare, accounts) */
.minitable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}
.minitable th {
  text-align: left;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid var(--border-strong);
}
.minitable td {
  padding: 0.34rem 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
}
.minitable tr:last-child td { border-bottom: none; }
.minitable .num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.minitable .pos { color: var(--good); }
.minitable .neg { color: var(--bad); }
.minitable tr.is-total td {
  font-weight: 700;
  color: var(--ink);
  border-top: 1px solid var(--border-strong);
  background: var(--accent-subtle);
}
.minitable .acct-sub {
  display: block;
  font-size: 0.56rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* forecast params grid */
.paramgrid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 0.6rem;
  align-items: center;
}
.paramgrid__label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.paramgrid__control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.paramgrid__control .caret { color: var(--muted); font-size: 0.58rem; }
.paramgrid__control--focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-subtle);
  background: var(--surface-1);
}

/* privacy shot */
.privacy-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.privacy-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  color: var(--ink-muted);
}
.privacy-row__icon {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--accent);
}
.privacy-row__path {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink);
}
.privacy-row__status {
  margin-left: auto;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 1px;
}
.status-on { color: var(--good); background: rgba(13, 110, 63, 0.1); }
.status-off { color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); }

/* advanced accounting: transaction row with controls */
.txnrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 0.6rem;
  align-items: center;
  font-size: 0.72rem;
}
.txnrow__head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  grid-column: 1 / -1;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.txnrow__desc { font-weight: 600; color: var(--ink); }
.txnrow__amt {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--bad);
}
.txnrow__ctl-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.txnrow__ctl {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink);
  padding: 0.24rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.flagbox {
  width: 15px; height: 15px;
  flex: 0 0 auto;
  border: 1.5px solid var(--border-strong);
  border-radius: 1px;
  background: var(--surface-1);
  position: relative;
  justify-self: end;
  transition: background var(--t-normal), border-color var(--t-normal);
}
.flagbox.is-on {
  border-color: var(--accent);
  background: var(--accent);
}
.flagbox::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 4px; height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) scale(0.4);
  opacity: 0;
  transition: opacity var(--t-normal), transform var(--t-normal);
}
.flagbox.is-on::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

/* ── Sample animations (scroll-triggered reveal + looping accents) ── */
.feature__shot .minitable tbody tr,
.feature__shot .privacy-row,
.feature__shot .paramgrid > *,
.feature__shot .txnrow > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature__shot.is-live .minitable tbody tr,
.feature__shot.is-live .privacy-row,
.feature__shot.is-live .paramgrid > *,
.feature__shot.is-live .txnrow > * {
  opacity: 1;
  transform: none;
}

/* stagger — tables */
.feature__shot.is-live .minitable tbody tr:nth-child(1) { transition-delay: 0.06s; }
.feature__shot.is-live .minitable tbody tr:nth-child(2) { transition-delay: 0.13s; }
.feature__shot.is-live .minitable tbody tr:nth-child(3) { transition-delay: 0.20s; }
.feature__shot.is-live .minitable tbody tr:nth-child(4) { transition-delay: 0.27s; }
.feature__shot.is-live .minitable tbody tr:nth-child(5) { transition-delay: 0.34s; }
/* stagger — privacy rows */
.feature__shot.is-live .privacy-row:nth-child(1) { transition-delay: 0.06s; }
.feature__shot.is-live .privacy-row:nth-child(2) { transition-delay: 0.16s; }
.feature__shot.is-live .privacy-row:nth-child(3) { transition-delay: 0.26s; }
/* stagger — param grid pairs */
.feature__shot.is-live .paramgrid > *:nth-child(1),
.feature__shot.is-live .paramgrid > *:nth-child(2) { transition-delay: 0.06s; }
.feature__shot.is-live .paramgrid > *:nth-child(3),
.feature__shot.is-live .paramgrid > *:nth-child(4) { transition-delay: 0.14s; }
.feature__shot.is-live .paramgrid > *:nth-child(5),
.feature__shot.is-live .paramgrid > *:nth-child(6) { transition-delay: 0.22s; }
.feature__shot.is-live .paramgrid > *:nth-child(7),
.feature__shot.is-live .paramgrid > *:nth-child(8) { transition-delay: 0.30s; }
/* stagger — transaction row */
.feature__shot.is-live .txnrow > *:nth-child(1) { transition-delay: 0.06s; }
.feature__shot.is-live .txnrow > *:nth-child(2) { transition-delay: 0.16s; }
.feature__shot.is-live .txnrow > *:nth-child(3) { transition-delay: 0.22s; }
.feature__shot.is-live .txnrow > *:nth-child(4) { transition-delay: 0.28s; }
.feature__shot.is-live .txnrow > *:nth-child(5) { transition-delay: 0.34s; }
.feature__shot.is-live .txnrow > *:nth-child(6) { transition-delay: 0.40s; }
.feature__shot.is-live .txnrow > *:nth-child(7) { transition-delay: 0.46s; }

/* looping accents */
@keyframes focusPulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--accent-subtle); border-color: var(--accent); }
  50% { box-shadow: 0 0 0 3px rgba(0, 58, 112, 0.20); }
}
.feature__shot.is-live .paramgrid__control--focus {
  animation: focusPulse 1.2s ease-in-out 0.3s infinite;
}

@keyframes deltaPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.feature__shot.is-live .pulse { animation: deltaPulse 0.9s ease-in-out 0.4s infinite; }

@keyframes lockPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}
.feature__shot.is-live .privacy-row__icon.lock {
  animation: lockPulse 1.1s ease-in-out 0.3s infinite;
}

@keyframes rowGlow {
  0%, 100% { background: var(--accent-subtle); }
  50% { background: rgba(0, 58, 112, 0.14); }
}
.feature__shot.is-live .minitable tr.is-total {
  animation: rowGlow 1.3s ease-in-out 0.3s infinite;
}

/* scenario active-row highlight (toggled via JS) */
.minitable tr.is-hot td { background: var(--accent-subtle); }
.minitable tbody tr td { transition: background 0.4s ease; }

@keyframes caretNudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(1.5px); }
}
.feature__shot.is-live .txnrow__ctl .caret {
  display: inline-block;
  animation: caretNudge 0.85s ease-in-out infinite;
}

/* ============================================================
   App-style demo shots (transactions + mini charts)
   ============================================================ */
.feature__shot--demo .shot__body--demo {
  padding: 0.85rem 0.95rem;
}

.app-demo {
  display: grid;
  grid-template-columns: minmax(280px, 36%) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.accounts-demo {
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
}
.accounts-demo__list {
  min-width: 0;
  padding: 0.15rem 0.1rem 0;
}
.accounts-demo__txns {
  min-width: 0;
  padding: 0.15rem 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.minitable--accounts tbody tr[data-account] {
  cursor: pointer;
  transition: background 0.35s ease;
}
.minitable--accounts tbody tr[data-account].is-active td {
  background: var(--accent-subtle);
  color: var(--ink);
}
.minitable--accounts tbody tr[data-account].is-active .acct-sub {
  color: var(--accent);
}
.minitable--accounts tbody tr[data-account]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.accounts-txn-list {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-height: 18.5rem;
  padding: 0.65rem 0.7rem 0.6rem;
}
.accounts-txn__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.48rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  font-size: 0.74rem;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature__shot.is-live .accounts-txn__row,
.accounts-txn-list.is-switching .accounts-txn__row {
  opacity: 1;
  transform: none;
}
.feature__shot.is-live .accounts-txn__row:nth-child(1),
.accounts-txn-list.is-switching .accounts-txn__row:nth-child(1) { transition-delay: 0.04s; }
.feature__shot.is-live .accounts-txn__row:nth-child(2),
.accounts-txn-list.is-switching .accounts-txn__row:nth-child(2) { transition-delay: 0.09s; }
.feature__shot.is-live .accounts-txn__row:nth-child(3),
.accounts-txn-list.is-switching .accounts-txn__row:nth-child(3) { transition-delay: 0.14s; }
.feature__shot.is-live .accounts-txn__row:nth-child(4),
.accounts-txn-list.is-switching .accounts-txn__row:nth-child(4) { transition-delay: 0.19s; }
.feature__shot.is-live .accounts-txn__row:nth-child(5),
.accounts-txn-list.is-switching .accounts-txn__row:nth-child(5) { transition-delay: 0.24s; }
.feature__shot.is-live .accounts-txn__row:nth-child(6),
.accounts-txn-list.is-switching .accounts-txn__row:nth-child(6) { transition-delay: 0.29s; }
.accounts-txn__desc {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.accounts-txn__amt {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  justify-self: end;
}
.accounts-txn__amt--income { color: var(--good); }
.accounts-txn__amt--expense { color: var(--bad); }
.app-demo__txns {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}
.app-demo__caption {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-muted);
  min-height: 2.6em;
  padding-top: 0.15rem;
}
.app-demo__chart {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.75rem 0.85rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.app-demo__chart--forecast {
  margin-top: 0;
}
.app-demo__chart--forecast .mini-chart--compact {
  width: 100%;
  min-height: 0;
  height: auto;
}

.forecast-demo--wide {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.forecast-demo__params {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.forecast-demo__params-title {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.forecast-demo__params-hint {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}
.paramgrid--panel {
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
}

.forecast-demo {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mini-chart-toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.1rem;
}
.mini-chart-toolbar__label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mini-chart-toolbar__status {
  margin-left: auto;
  font-size: 0.58rem;
  color: var(--muted);
  text-align: right;
}

.mini-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 210px;
}
.mini-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  padding-top: 0.15rem;
}
.mini-chart-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.mini-chart-legend__item::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 1px;
}
.mini-chart-legend__item--income::before { background: var(--good); }
.mini-chart-legend__item--expense::before { background: var(--bad); }
.mini-chart-legend__item--net::before {
  width: 0.75rem;
  height: 2px;
  background: #5b2c8c;
  border-radius: 0;
}

/* Transaction demo list */
.txn-demo {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  /* Reserve the height of the tallest phase (7 rows with split/transfer/
     amortize controls) so the list — and therefore the whole
     "transactions · actuals chart" window — stays a fixed size as rows are
     added and removed across the animation, instead of shifting the page. */
  min-height: 28.5rem;
}
.txn-demo--h6 { min-height: 24.5rem; }
.txn-demo--h5 { min-height: 20.5rem; }
.txn-demo--h1 { min-height: 5.5rem; }
.txn-demo__row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.2rem 0.55rem;
  align-items: center;
  padding: 0.48rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  font-size: 0.74rem;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.feature__shot.is-live .txn-demo__row {
  opacity: 1;
  transform: none;
}
.txn-demo__row.is-splitting {
  animation: txnSplitPulse 0.28s ease;
}
@keyframes txnSplitPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 2px rgba(0, 58, 112, 0.22); }
}
.txn-demo__row.is-selected {
  border-color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: 0 0 0 1px var(--accent-line);
}
.txn-demo__row.is-transfer .txn-demo__transfer .flagbox {
  border-color: var(--accent);
  background: var(--accent);
}
.txn-demo__row.is-transfer .txn-demo__transfer .flagbox::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
.txn-demo__row.is-muted {
  background: var(--surface-2);
  border-style: dashed;
}
.txn-demo__row.is-muted .txn-demo__desc,
.txn-demo__row.is-muted .txn-demo__amt {
  color: var(--muted);
}
.txn-demo__row.is-muted .txn-demo__ctl,
.txn-demo__row.is-muted .txn-demo__split-input:not(.is-active) {
  color: var(--muted);
}
.txn-demo__row.is-split-child {
  margin-left: 0.55rem;
  border-left: 2px solid var(--accent-line);
}
.txn-demo__desc {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.txn-demo__amt {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  justify-self: end;
}
.txn-demo__amt--income { color: var(--good); }
.txn-demo__amt--expense { color: var(--bad); }
.txn-demo__controls {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
  padding-top: 0.2rem;
  border-top: 1px solid var(--border);
}
.txn-demo__ctl {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.txn-demo__ctl-val {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  padding: 0.12rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.txn-demo__ctl-val.is-active {
  border-color: var(--accent);
  background: var(--accent-subtle);
  color: var(--accent);
}
.txn-demo__split-input {
  width: 4.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  padding: 0.12rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.txn-demo__split-input.is-active {
  border-color: var(--accent);
  background: var(--accent-subtle);
  color: var(--accent);
}
.txn-demo__split-input::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
.txn-demo__transfer .flagbox {
  width: 13px;
  height: 13px;
}

.paramgrid--interactive .paramgrid__control {
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.paramgrid--interactive .paramgrid__control:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}
.paramgrid--interactive .paramgrid__control:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

@media (max-width: 820px) {
  .app-demo,
  .accounts-demo,
  .forecast-demo--wide {
    grid-template-columns: 1fr;
  }
}

/* cashflow grid reveal in hero window */
.cfgrid__row { opacity: 0; transform: translateY(6px); }
.cfgrid.is-live .cfgrid__row {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cfgrid.is-live .cfgrid__row:nth-child(2) { transition-delay: 0.06s; }
.cfgrid.is-live .cfgrid__row:nth-child(3) { transition-delay: 0.12s; }
.cfgrid.is-live .cfgrid__row:nth-child(4) { transition-delay: 0.18s; }
.cfgrid.is-live .cfgrid__row:nth-child(5) { transition-delay: 0.24s; }

/* transactions reveal in hero window */
.txnlist__row:not(.txnlist__row--head) { opacity: 0; transform: translateY(6px); }
.txnlist.is-live .txnlist__row {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.txnlist.is-live .txnlist__row:nth-child(2) { transition-delay: 0.05s; }
.txnlist.is-live .txnlist__row:nth-child(3) { transition-delay: 0.12s; }
.txnlist.is-live .txnlist__row:nth-child(4) { transition-delay: 0.19s; }
.txnlist.is-live .txnlist__row:nth-child(5) { transition-delay: 0.26s; }

/* ============================================================
   Guided setup — hero interview window (the on-ramp)
   ============================================================ */
.setup__progress {
  padding: 0.7rem 1.1rem 0.55rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.setup__progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.45rem;
}
.setup__step {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}
.setup__time {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
}
.setup__bar {
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}
.setup__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--accent);
  transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.setup.is-live .setup__fill { width: 40%; }

.setup__body { padding: 1.2rem 1.2rem 1.1rem; }
.setup__kicker {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.setup__q {
  margin-top: 0.35rem;
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}
.setup__help {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-muted);
}
.setup__options {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.setup__option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
}
.setup__option.is-active {
  border-color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: 0 0 0 2px var(--accent-subtle);
}
.setup__radio {
  flex: 0 0 auto;
  margin-top: 0.12rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface-1);
  position: relative;
}
.setup__option.is-active .setup__radio { border-color: var(--accent); }
.setup__option.is-active .setup__radio::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: var(--accent);
}
.setup__opt-text { display: flex; flex-direction: column; }
.setup__opt-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.setup__opt-sub {
  font-size: 0.74rem;
  color: var(--muted);
}
.setup__nav {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.setup__navspacer { flex: 1 1 auto; }
.setup__back {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
}
.setup__hint {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
}
.setup__next {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.9rem;
}

/* Reveal options as the window comes alive */
.setup .setup__option { opacity: 0; transform: translateY(8px); }
.setup.is-live .setup__option {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.setup.is-live .setup__option:nth-child(1) { transition-delay: 0.10s; }
.setup.is-live .setup__option:nth-child(2) { transition-delay: 0.20s; }
.setup.is-live .setup__option:nth-child(3) { transition-delay: 0.30s; }

/* ── Guided setup — compact feature shot ── */
.setupmini { display: flex; flex-direction: column; }
.setupmini__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}
.setupmini__step {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.setupmini__count {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--muted);
}
.setupmini__bar {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.setupmini__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: var(--accent);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}
.feature__shot.is-live .setupmini__fill { width: 40%; }
.setupmini__q {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.55rem;
}
.setupmini__opts { display: flex; flex-direction: column; gap: 0.35rem; }
.setupmini__opt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--ink-muted);
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  transition: border-color var(--t-normal), background var(--t-normal), color var(--t-normal);
}
.setupmini__opt.is-active {
  border-color: var(--accent);
  background: var(--accent-subtle);
  color: var(--ink);
  font-weight: 600;
}
.setupmini__radio {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface-1);
  position: relative;
}
.setupmini__opt.is-active .setupmini__radio { border-color: var(--accent); }
.setupmini__opt.is-active .setupmini__radio::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   Responsive
   ============================================================ */

/* ── Mobile / narrow navigation: collapse links into an expanding panel ── */
@media (max-width: 820px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.55rem 1.25rem 1.1rem;
    background: linear-gradient(180deg, var(--titlebar-2), var(--titlebar));
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.75);
    /* Collapsed state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.24s;
  }

  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__links a:not(.btn) {
    display: block;
    padding: 0.72rem 0.7rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: color var(--t-fast), background var(--t-fast);
  }
  .nav__links a:not(.btn):last-of-type {
    border-bottom: none;
  }
  /* Stacked items read better with a fill than a centered underline */
  .nav__links a:not(.btn)::after {
    display: none;
  }
  .nav__links a:not(.btn):hover,
  .nav__links a:not(.btn)[aria-current="page"] {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 0.6rem;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .wrap { width: min(var(--maxw), calc(100% - 1.75rem)); }
}

@media (max-width: 480px) {
  .nav__brand {
    font-size: 0.95rem;
    letter-spacing: -0.005em;
    gap: 0.5rem;
  }
}

@media (max-width: 420px) {
  .kpi__value { font-size: 0.92rem; }
}

/* ============================================================
   How-it-works: mobile width overhaul
   Flatten nested card-in-card nesting to reclaim horizontal space.
   Steps are separated by the rail; sub-features use a left accent
   bar and thin dividers instead of nested padding.
   ============================================================ */
@media (max-width: 720px) {
  .flow > .wrap {
    width: min(var(--maxw), calc(100% - 1.75rem));
  }

  .flow__track {
    gap: 1.25rem;
  }

  .flow .flow-step__body {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  .flow .flow-step--payoff .flow-step__body {
    background: transparent;
  }

  .flow .flow-step__head {
    padding: 0 0 0.55rem;
    margin-bottom: 0.65rem;
  }

  .flow .flow-step__content {
    gap: 0;
  }

  .flow .feature,
  .flow .feature--hero {
    padding: 0.6rem 0;
    background: transparent;
    border: none;
    border-radius: 0;
  }

  .flow .flow-step__content > .feature + .feature {
    border-top: 1px solid var(--border);
  }

  .flow .flow-step__content > .feature:last-child {
    padding-bottom: 0;
  }

  .flow .feature__title {
    padding-left: 0.55rem;
    border-left: 3px solid var(--accent);
    font-size: 0.95rem;
  }

  .flow .feature__shot,
  .flow .feature .feature__shot.has-video,
  .flow .feature--hero .feature__shot.has-video {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .flow .feature__shot--demo .shot__body--demo {
    padding: 0.5rem;
  }

  .flow .feature .shot__body {
    padding: 0.45rem;
  }

  .flow .feature__list {
    margin-top: 0.5rem;
  }

  .flow .feature__list li {
    font-size: 0.84rem;
    padding-left: 1rem;
  }

  .flow__privacy {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ============================================================
   Reduced motion — kill all the moving parts
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-up,
  .hero__cue-arrow,
  .window,
  .chart-line--draw,
  .chart-area,
  .chart-bar {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .ticker__track { animation: none; }
  .on-scroll,
  .on-scroll[data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .feature:hover { transform: none; }

  .feature__shot .minitable tbody tr,
  .feature__shot .privacy-row,
  .feature__shot .paramgrid > *,
  .feature__shot .txnrow > *,
  .cfgrid__row,
  .txnlist__row:not(.txnlist__row--head) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .feature__shot *,
  .flagbox,
  .flagbox::after {
    animation: none !important;
    transition: none !important;
  }

  .setup .setup__option {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .setup__fill,
  .setupmini__fill {
    transition: none !important;
  }
}
