/*
 * Meridian public website stylesheet.
 * Tokens mirror the app design system (dashboard/src/app/globals.css, dark theme):
 * warm graphite surfaces, translucent hairlines, one Signal Orange accent.
 * Layout and rhythm follow a quiet, product-first marketing page:
 * 1300px content width, 22px section leads, large tonal panels 4px apart.
 */

:root {
  color-scheme: dark;
  --bg: #12110d;
  --bg-1: #16150f;
  --panel: #1b1913;
  --panel-1: #1f1d17;
  --panel-2: #221f19;
  --surface-2: #2a2720;
  --line: #edecec1a;
  --line-2: #edecec29;
  --ink-0: #edecec;
  --ink-1: #cfccc6;
  --ink-2: #a8a49c;
  --ink-3: #97938b;
  --ink-4: #6e6a62;
  --accent: #f54e00;
  --accent-dim: #f54e0026;
  --accent-ln: #f54e0059;
  --accent-ink: #ff6a1f;
  --on-accent: #12110d;
  --track: #2a2720;
  --sand-1: #ead9b0;
  --sand-2: #cbb685;
  --sand-3: #a48f63;
  --sand-4: #76664a;
  --sand-5: #4f4535;
  --up: #8cc29a;
  --down: #e8806e;
  --status-good: #6fc2ae;
  --status-good-dim: #6fc2ae1f;
  --status-good-ln: #6fc2ae55;
  --status-warn: #e5c07b;
  --status-warn-dim: #e5c07b1f;
  --status-warn-ln: #e5c07b55;
  --status-bad: #f0837a;
  --status-down: #f0837a;
  --statutory: #b39cf0;
  --chart-1: #38bdf8;
  --chart-2: #a3e635;
  --table-row: #edecec0d;
  --table-hover: #201e18;
  --topbar-bg: #15130e;
  --radius-base: 4px;
  --radius-dialog: 6px;
  --radius-pill: 999px;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --serif: Fraunces, Georgia, serif;
  --dur-1: 80ms;
  --dur-2: 140ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "tnum" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--ink-0); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--ink-0); }
ul, ol { margin: 0; padding: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-dim); color: var(--ink-0); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 14px; border-radius: var(--radius-pill); font-size: 14px;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

.wrap { max-width: 1340px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* ---------- Type helpers ---------- */
.micro { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.ink { color: var(--ink-0); }
.up { color: var(--up); }
.statutory { color: var(--statutory); }
.statutory:hover { color: var(--ink-0); }
.lead { font-size: 22px; line-height: 1.3; letter-spacing: -0.005em; color: var(--ink-2); max-width: 34em; }
.lead b, .lead strong { font-weight: 400; color: var(--ink-0); }
.display {
  font-family: var(--serif); font-weight: 300; font-size: 36px; line-height: 1.22;
  letter-spacing: -0.02em; color: var(--ink-0); max-width: 26ch;
}
.display em { font-style: italic; color: var(--ink-2); }
.statement { font-size: 36px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink-0); text-align: center; }
.link-arrow { font-size: 16px; }

/* ---------- Buttons and pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: var(--radius-pill);
  border: 1px solid transparent; background: var(--surface-2); color: var(--ink-0);
  font: 400 16px/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: border-color var(--dur-1), color var(--dur-1);
  user-select: none;
}
.btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn:active { transform: translateY(0.5px); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { color: var(--on-accent); border-color: var(--accent); }
.btn.sm { height: 30px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px;
  border-radius: var(--radius-pill); border: 1px solid var(--line-2);
  font: 400 11px/1 var(--mono); color: var(--ink-2); white-space: nowrap;
}
.pill .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.good { color: var(--status-good); background: var(--status-good-dim); border-color: var(--status-good-ln); }
.pill.warn { color: var(--status-warn); background: var(--status-warn-dim); border-color: var(--status-warn-ln); }
.pill.bad { color: var(--status-bad); background: #f0837a1f; border-color: #f0837a55; }
.btn.block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; }
.site-header .bar { height: 52px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-0); justify-self: start; }
.brand:hover { color: var(--ink-0); }
.brand svg { width: 20px; height: 20px; }
.brand span { font: 600 14px/1 var(--sans); letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--ink-1); font-size: 14px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink-0); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-1);
  align-items: center; justify-content: center; cursor: pointer;
}
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 20px; color: var(--ink-1); border-bottom: 1px solid var(--line); }
.mobile-nav.open { display: block; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; padding: 56px 0; }
.site-footer nav { display: contents; }
.site-footer .col { display: flex; flex-direction: column; gap: 10px; }
.site-footer .col-title { font-size: 14px; color: var(--ink-0); }
.site-footer .col a { color: var(--ink-2); font-size: 14px; }
.site-footer .col a:hover { color: var(--ink-0); }
.site-footer .base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 0 32px; border-top: 1px solid var(--line); }
.site-footer .base p { font-size: 13px; color: var(--ink-3); }
.trust-line { display: inline-flex; align-items: center; gap: 6px; }
.trust-line svg { width: 13px; height: 13px; flex: none; }

/* ---------- Sections ---------- */
.section { padding-top: 136px; }
.section.tight { padding-top: 88px; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.section-title { font-size: 22px; line-height: 1.3; letter-spacing: -0.005em; color: var(--ink-0); max-width: 36em; }
.section-title span { color: var(--ink-2); }
.page-end { padding-bottom: 160px; }

/* ---------- Hero ---------- */
.hero { padding-top: 112px; display: flex; flex-direction: column; gap: 28px; }

/* ---------- Product stage and app window ---------- */
.stage {
  position: relative; overflow: hidden; border-radius: var(--radius-base);
  background: var(--panel-1); height: 680px; padding: 72px 96px 0;
  display: flex; align-items: flex-end; justify-content: center;
}
.stage .bgart { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.app {
  position: relative; width: 100%; max-width: 1040px; height: 608px;
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: var(--radius-dialog) var(--radius-dialog) 0 0;
  overflow: hidden; background: var(--bg); font-size: 13px; text-align: left;
}
.app-bar { height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--topbar-bg); border-bottom: 1px solid var(--line); }
.app-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); }
.app-bar .micro { margin: 0 auto; font-size: 10px; }
.app-body { display: grid; grid-template-columns: 176px minmax(0, 1fr); height: 576px; }
.app-side { background: var(--bg-1); border-right: 1px solid var(--line); padding: 14px 8px; display: flex; flex-direction: column; gap: 2px; }
.app-side .micro { padding: 0 8px 8px; font-size: 10px; }
.app-nav-item { height: 28px; display: flex; align-items: center; padding: 0 10px; color: var(--ink-2); border-radius: var(--radius-base); }
.app-nav-item.on { background: var(--accent-dim); color: var(--ink-0); box-shadow: inset 2px 0 0 var(--accent); }
.app-main { min-width: 0; overflow: hidden; }
.screen { padding: 24px 24px 32px; display: flex; flex-direction: column; gap: 16px; }
.screen-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.screen-title { font: 300 28px/1.1 var(--serif); letter-spacing: -0.02em; color: var(--ink-0); }
.screen-title em { color: var(--ink-2); }
.meta { display: flex; gap: 20px; align-items: flex-end; }
.meta .micro { font-size: 10px; padding: 0; }
.meta .v { font: 400 12px var(--mono); color: var(--ink-0); }
.fake-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); font: 500 13px var(--sans); color: var(--ink-1); }
.fake-search { flex: 1 1 220px; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--ink-4); border-radius: var(--radius-base); color: var(--ink-3); font-size: 13px; }
.fake-search svg { width: 14px; height: 14px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-base); padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kpi .l { font: 500 12px var(--sans); color: var(--ink-2); }
.kpi .v { font: 400 24px/1 var(--mono); letter-spacing: -0.03em; color: var(--ink-0); white-space: nowrap; }
.kpi .s { font: 400 11px var(--mono); color: var(--ink-3); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-base); }
.panel-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-title { font: 500 14px var(--sans); color: var(--ink-0); }
.panel-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.clip { overflow: hidden; }

.bar-stack { display: flex; height: 10px; background: var(--track); }
.bar-stack > span { display: block; }
.progress { height: 6px; background: var(--track); }
.progress > span { display: block; height: 100%; background: var(--sand-2); }
.legend-row { display: flex; justify-content: space-between; font-size: 13px; }
.sw { display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: middle; }
.who { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.who.alex { background: var(--chart-1); }
.who.sam { background: var(--chart-2); }

.chart { width: 100%; height: 150px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.t { width: 100%; border-collapse: collapse; font-size: 13px; }
.t th { font: 400 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 8px 16px; background: var(--bg-1); border-bottom: 1px solid var(--line); vertical-align: bottom; }
.t td { padding: 10px 16px; border-bottom: 1px solid var(--table-row); vertical-align: top; }
.t tbody tr:hover td { background: var(--table-hover); }
.t .num { text-align: right; font: 400 12px var(--mono); color: var(--ink-0); white-space: nowrap; }
.t th.num { text-align: right; }
.t .strong { color: var(--ink-0); }
.t .sub { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.t tr.group th { background: var(--panel-1); color: var(--ink-2); }
.t.lg { font-size: 14px; }
.t.lg td { padding: 14px 16px; line-height: 1.5; }

.acct { display: flex; align-items: center; gap: 10px; }
.bank-tile { flex: none; width: 32px; height: 32px; border-radius: var(--radius-base); background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; font: 500 10px/1 var(--mono); letter-spacing: 0; color: var(--ink-0); }

/* ---------- Carousel controls ---------- */
.carousel-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-top: 16px; }
.carousel-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.carousel-tab {
  height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: transparent;
  color: var(--ink-2); font: 400 14px/1 var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.carousel-tab:hover { color: var(--ink-0); }
.carousel-tab[aria-selected="true"] { background: var(--surface-2); color: var(--ink-0); font-weight: 500; }
.carousel-tab .no { font: 400 11px var(--mono); color: var(--ink-3); }
.carousel-caption { font-size: 14px; color: var(--ink-2); }
.carousel-nav { display: flex; align-items: center; gap: 8px; justify-self: end; }
.carousel-count { font: 400 13px var(--mono); color: var(--ink-3); margin-right: 4px; }
.icon-btn { width: 36px; height: 36px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: transparent; color: var(--ink-1); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.icon-btn svg { width: 16px; height: 16px; }
.carousel-tab:active, .icon-btn:active { transform: translateY(0.5px); }

/* ---------- Trust tiles ---------- */
.tiles-title { text-align: center; font-size: 14px; color: var(--ink-1); margin-bottom: 24px; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.tiles li { list-style: none; background: var(--panel); border-radius: var(--radius-base); min-height: 72px; display: flex; align-items: center; justify-content: center; padding: 0 12px; text-align: center; font: 400 13px var(--mono); color: var(--ink-1); }

/* ---------- Option cards (bank feeds and statements) ---------- */
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.option { background: var(--panel); border-radius: var(--radius-base); overflow: hidden; display: flex; flex-direction: column; }
.option-copy { padding: 40px 40px 32px; display: flex; flex-direction: column; gap: 16px; }
.option-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.option h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.005em; }
.option p { font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.checks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-1); }
.checks svg { width: 16px; height: 16px; margin-top: 2px; color: var(--status-good); }

/* ---------- Feature panels ---------- */
.features { display: flex; flex-direction: column; gap: 64px; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); background: var(--panel); border-radius: var(--radius-base); overflow: hidden; min-height: 560px; }
.feature.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy { padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.feature-copy p { font-size: 22px; line-height: 1.3; letter-spacing: -0.005em; color: var(--ink-2); max-width: 19em; }
.feature-copy p b { font-weight: 400; color: var(--ink-0); }
.vis { position: relative; overflow: hidden; background: var(--panel-1); margin: 20px; border-radius: var(--radius-base); display: flex; align-items: flex-end; justify-content: center; padding: 56px 40px 0; }
.option .vis { margin: 0 20px 20px; padding: 40px 32px 0; flex: 1; }
.vis.center { align-items: center; padding: 40px; }
.win { position: relative; width: 100%; max-width: 640px; background: var(--bg); border: 1px solid var(--line-2); border-bottom: 0; border-radius: var(--radius-dialog) var(--radius-dialog) 0 0; overflow: hidden; font-size: 13px; }
.win-foot { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.flow { width: 100%; max-width: 560px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.flow .node { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.flow .node .name { font: 500 14px var(--sans); color: var(--ink-0); }
.flow .node .note { font-size: 13px; color: var(--ink-2); }
.flow .h-link { position: relative; display: flex; align-items: center; }
.flow .h-link::before { content: ""; height: 1px; width: 100%; background: var(--line-2); }
.flow .h-link .micro { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -160%); font-size: 10px; white-space: nowrap; }
.flow .v-link { display: flex; justify-content: center; }
.flow .v-link::before { content: ""; width: 1px; height: 44px; background: var(--line-2); }

/* Security boundary diagram: sources, the device boundary, and Meridian's servers */
.boundary-feature { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); min-height: 640px; }
.boundary { width: 100%; max-width: 760px; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.15fr) 56px minmax(0, 1fr); align-items: center; }
.boundary .node { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.boundary .node .name { font: 500 14px var(--sans); color: var(--ink-0); }
.boundary .node .note { font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.b-col { display: flex; flex-direction: column; gap: 8px; }
.b-label { padding: 0 2px 2px; }
.b-link { position: relative; align-self: stretch; display: flex; align-items: center; }
.b-link::before { content: ""; height: 1px; width: 100%; background: var(--line-2); }
.b-link .micro { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); font-size: 10px; white-space: nowrap; background: var(--panel-1); padding: 0 6px; }
.b-device { border: 1px solid var(--status-good-ln); border-radius: var(--radius-base); background: var(--bg); padding: 12px; display: flex; flex-direction: column; }
.b-device-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 2px 12px; flex-wrap: wrap; }
.b-device-head .micro { white-space: nowrap; }
.b-device .v-link { display: flex; justify-content: center; }
.b-device .v-link::before { content: ""; width: 1px; height: 16px; background: var(--line-2); }
.boundary .vault-node { background: var(--panel-1); border-color: var(--line-2); }
.boundary .b-empty { background: transparent; border-style: solid; border-color: var(--line); }
.boundary .b-empty .name { color: var(--ink-2); }

/* ---------- Question cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.card { background: var(--panel); border-radius: var(--radius-base); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card h3 { font-size: 18px; line-height: 1.35; letter-spacing: -0.005em; }
.card p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.card .foot { margin-top: auto; padding-top: 12px; }
.card.quiet { background: var(--panel-1); }
.qcard { justify-content: space-between; gap: 32px; min-height: 180px; padding: 24px; }
.qcard p { font-size: 16px; line-height: 1.5; color: var(--ink-0); }
.qcard .tag { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.icon-chip { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-1); flex: none; }
.icon-chip svg { width: 14px; height: 14px; }
.icon-chip.lg { width: 44px; height: 44px; color: var(--accent); }
.icon-chip.lg svg { width: 20px; height: 20px; }

/* ---------- FAQ ---------- */
.faq-list { background: var(--panel); border-radius: var(--radius-base); }
.faq-list details + details { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-question { font-size: 16px; line-height: 1.4; color: var(--ink-0); font-weight: 400; }
.faq-list .chev { width: 16px; height: 16px; flex: none; color: var(--ink-2); transition: transform var(--dur-2) var(--ease-out); }
.faq-list details[open] .chev { transform: rotate(180deg); }
.faq-answer { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 10px; max-width: 72ch; }
.faq-answer p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 22px; margin-bottom: 16px; }
.toc { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- Rates log ---------- */
.log { list-style: none; border-bottom: 1px solid var(--line); }
.log li { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); align-items: baseline; }
.log .when { font: 400 13px var(--mono); color: var(--ink-3); }

/* ---------- Beta / waitlist ---------- */
.beta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; }
.beta-copy { background: var(--panel); border-radius: var(--radius-base); padding: 48px; display: flex; flex-direction: column; gap: 20px; }
.beta-form-wrap { background: var(--panel-1); border-radius: var(--radius-base); padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.facts { display: flex; gap: 32px; flex-wrap: wrap; }
.facts .v { font: 400 14px var(--mono); color: var(--ink-0); margin-top: 4px; }
.waitlist-form { display: flex; flex-direction: column; gap: 8px; }
.waitlist-form .row { display: flex; gap: 8px; flex-wrap: wrap; }
.field {
  flex: 1 1 240px; height: 44px; padding: 0 14px; border-radius: var(--radius-base);
  border: 1px solid var(--ink-4); background: var(--bg); color: var(--ink-0); font: 400 15px var(--sans);
}
.field::placeholder { color: var(--ink-3); }
.form-note { font-size: 13px; color: var(--ink-3); }
.waitlist-card { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--ink-2); }
.waitlist-card > div:first-child { font: 400 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--status-good); display: flex; align-items: center; gap: 8px; }
.waitlist-card > div:first-child span:first-child:empty { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.waitlist-card.error > div:first-child { color: var(--status-bad); }
.waitlist-card p { font-size: 14px; color: var(--ink-2); }
.waitlist-links-row { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.waitlist-links-row a, .waitlist-links-row button { color: var(--accent-ink); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

.cta { padding: 200px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }

/* ---------- Secondary pages ---------- */
.page-head { padding-top: 96px; display: flex; flex-direction: column; gap: 20px; }
.crumbs { font: 400 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink-0); }
.page-head .lead { font-size: 20px; max-width: 40em; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.step-no { font: 400 11px var(--mono); letter-spacing: 0.06em; color: var(--ink-3); }
.notice { background: var(--panel-1); border: 1px solid var(--line); border-radius: var(--radius-base); padding: 20px 24px; display: flex; gap: 16px; align-items: flex-start; }
.notice p { font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 80ch; }
.notice strong { color: var(--ink-0); font-weight: 500; }
.tabs-row { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.compare-tab-btn { height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-2); font: 400 14px/1 var(--sans); cursor: pointer; }
.compare-tab-btn:hover { color: var(--ink-0); }
.compare-tab-btn[aria-selected="true"] { background: var(--surface-2); color: var(--ink-0); font-weight: 500; }
.ext::after { content: " \2197"; }

/* Legal and long-form text */
.prose { max-width: 760px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { font-size: 22px; line-height: 1.3; margin: 56px 0 16px; color: var(--ink-0); }
.prose h3 { font-size: 17px; line-height: 1.4; margin: 32px 0 12px; color: var(--ink-0); }
.prose h4 { font-size: 15px; margin: 24px 0 8px; color: var(--ink-0); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose strong, .prose b { color: var(--ink-1); font-weight: 500; }
.prose a { color: var(--accent-ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 400 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); background: var(--bg-1); }
.prose .block { background: var(--panel); border-radius: var(--radius-base); padding: 20px 24px; margin: 0 0 16px; }
.prose > :first-child { margin-top: 0; }

/* ---------- Utility & Gated Form Pages (beta-survey, download, bank-connected) ---------- */
.form-stack { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.field-label { font: 500 13px/1.3 var(--sans); color: var(--ink-0); }
.field.full { flex: none; width: 100%; }
.field.area { flex: none; width: 100%; height: auto; min-height: 92px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.survey-option-group { display: flex; flex-wrap: wrap; gap: 8px; }
.survey-option {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--ink-1); font: 400 13px/1 var(--sans); cursor: pointer; user-select: none;
  transition: border-color var(--dur-1), background var(--dur-1), color var(--dur-1);
}
.survey-option:hover { border-color: var(--accent); color: var(--ink-0); }
.survey-option.active { background: var(--accent-dim); border-color: var(--accent); color: var(--ink-0); font-weight: 500; }
.survey-option-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; flex: none; }
.survey-option.active .survey-option-dot { background: var(--accent); border-color: var(--accent); }
.status-banner {
  background: var(--panel-1); border: 1px solid var(--status-good-ln); border-radius: var(--radius-base);
  padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.status-banner-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.text-link-btn { background: none; border: 0; padding: 0; font: 400 12px var(--mono); color: var(--accent-ink); cursor: pointer; text-decoration: underline; }
.text-link-btn:hover { color: var(--ink-0); }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.checksum-card { background: var(--panel-1); border: 1px solid var(--line); border-radius: var(--radius-base); padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.checksum-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-base); padding: 10px 14px; }
.checksum-code { font: 400 12px/1.5 var(--mono); color: var(--ink-0); word-break: break-all; user-select: all; }
.guide-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.guide-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.guide-list strong { color: var(--ink-0); font-weight: 500; }
.guide-list code { font: 400 12px var(--mono); color: var(--ink-0); background: var(--panel-1); padding: 2px 6px; border-radius: var(--radius-base); }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stage { padding: 48px 32px 0; }
  .site-nav { gap: 18px; }
}
@media (max-width: 960px) {
  .site-header .bar { grid-template-columns: 1fr auto; }
  .site-nav, .header-actions .hide-sm { display: none; }
  .menu-btn { display: inline-flex; }
  .feature, .feature.flip, .options, .cards-3, .cards-2, .beta, .faq-layout, .steps, .cards-4, .spec-grid { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 0; }
  .boundary-feature { grid-template-columns: minmax(0, 1fr); }
  .boundary { grid-template-columns: minmax(0, 1fr); max-width: 420px; gap: 0; }
  .b-link { height: 44px; justify-content: center; }
  .b-link::before { height: 100%; width: 1px; }
  .b-link .micro { transform: translate(-50%, -50%); }
  .feature { min-height: 0; }
  .feature-copy, .option-copy, .beta-copy, .beta-form-wrap { padding: 28px; }
  .feature-copy p { font-size: 19px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .carousel-controls { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .carousel-nav { justify-self: start; }
  .section { padding-top: 96px; }
  .cta { padding: 120px 0; }
  .statement { font-size: 28px; }
}
@media (max-width: 720px) {
  .stage { height: 560px; padding: 24px 12px 0; }
  .app { height: 520px; }
  .app-body { grid-template-columns: minmax(0, 1fr); height: 488px; }
  .app-side { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .v { font-size: 18px; white-space: normal; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .hide-sm { display: none; }
  .display { font-size: 30px; }
  .lead { font-size: 19px; }
  .btn, .carousel-tab, .icon-btn, .compare-tab-btn { min-height: 44px; }
  .icon-btn { width: 44px; }
  .hero { padding-top: 64px; }
  .page-head { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
