/* ==========================================================================
Cash Command OS — design system
Layout concept: a dark executive "command room". Blue-lit hero and product
window up top; calmer emerald-tinted sections below for features, pricing,
explanations. Numbers set in mono so figures align like a ledger.
========================================================================== */
:root {
/* Color */
--bg: #060A14;            /* midnight */
--bg-2: #0A1020;          /* charcoal navy */
--surface: #0E1628;
--surface-2: #142039;
--line: rgba(160, 180, 220, .12);
--line-2: rgba(160, 180, 220, .22);
--text: #F2F0EA;          /* warm white */
--muted: #A0AABD;
--faint: #7D88A1;
--emerald: #3FD99A;
--emerald-2: #2BB57D;
--emerald-ink: #03130C;
--emerald-soft: rgba(63, 217, 154, .12);
--blue: #5B8CFF;
--blue-soft: rgba(91, 140, 255, .16);
--amber: #F2BE5C;
--amber-soft: rgba(242, 190, 92, .14);
--red: #FF8080;
--red-soft: rgba(255, 128, 128, .14);
--green-ground: #07120F;

/* Type */
--font-ui: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
--font-num: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
--t-xs: .78rem; --t-sm: .9rem; --t-md: 1.0625rem; --t-lg: 1.25rem;
--t-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
--t-2xl: clamp(2.1rem, 1.4rem + 3vw, 3.5rem);
--t-hero: clamp(2.5rem, 1.5rem + 4.4vw, 4.6rem);

/* Space & shape */
--gutter: clamp(16px, 4vw, 40px);
--maxw: 1180px;
--r-sm: 8px; --r-md: 12px; --r-lg: 18px;
--shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -24px rgba(0,0,0,.65);
--ease: cubic-bezier(.2, .7, .2, 1);

color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
margin: 0; background: var(--bg); color: var(--text);
font-family: var(--font-ui); font-size: var(--t-md); line-height: 1.6;
-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--emerald); color: var(--emerald-ink); }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.num, .tabular { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.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 { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--emerald); color: var(--emerald-ink); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: var(--t-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--emerald); margin: 0; }
.eyebrow--blue { color: #8FB0FF; }
.lede { font-size: var(--t-lg); color: var(--muted); max-width: 62ch; line-height: 1.55; }
.prose { max-width: 68ch; display: grid; gap: 1rem; color: var(--muted); }
.prose h2 { color: var(--text); font-size: var(--t-lg); margin-top: 1rem; }
.prose strong { color: var(--text); }

/* ---------- Status banner ---------- */
.banner { background: linear-gradient(90deg, #0B1733, #0A1226 60%, #0B1733); border-bottom: 1px solid var(--line); font-size: var(--t-xs); color: #C9D3E6; }
.banner__inner { display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; padding-block: .55rem; text-align: center; }
.banner a { color: #fff; font-weight: 600; text-decoration: none; }
.banner a:hover { text-decoration: underline; }
.banner__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); flex: none; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(6, 10, 20, .78); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 600; letter-spacing: -.02em; font-size: 1.05rem; }
.mark .mk-b { fill: #C9D3E6; }
.mark .mk-a { fill: var(--emerald); }
.brand__os { font-family: var(--font-num); font-size: .66rem; font-weight: 500; letter-spacing: .08em; padding: .12rem .38rem; border: 1px solid var(--line-2); border-radius: 5px; color: var(--muted); margin-left: -.15rem; }
.nav__menu { display: flex; align-items: center; gap: 1.6rem; }
.nav__menu ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav__menu ul a { text-decoration: none; font-size: var(--t-sm); color: var(--muted); transition: color .2s; }
.nav__menu ul a:hover, .nav__menu ul a[aria-current="page"] { color: var(--text); }
.nav__menu ul a[aria-current="page"] { box-shadow: 0 2px 0 var(--emerald); }
.nav__toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: var(--r-sm); width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 980px) {
.nav__toggle { display: inline-flex; }
.nav__menu { position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--gutter) 1.4rem; background: var(--bg-2); border-bottom: 1px solid var(--line); display: none; }
.nav__menu.is-open { display: flex; }
.nav__menu ul { flex-direction: column; gap: 0; }
.nav__menu ul a { display: block; padding: .7rem 0; font-size: var(--t-md); border-bottom: 1px solid var(--line); }
.nav__menu ul a[aria-current="page"] { box-shadow: none; color: var(--emerald); }
}

/* ---------- Buttons ---------- */
.btn { --b: var(--line-2); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.25rem; border-radius: 10px; border: 1px solid var(--b); font: 600 var(--t-sm)/1 var(--font-ui); text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s; background: transparent; color: var(--text); }
.btn:hover { transform: translateY(-1px); border-color: rgba(200, 215, 240, .4); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--emerald); border-color: var(--emerald); color: var(--emerald-ink); box-shadow: 0 8px 24px -10px rgba(63, 217, 154, .55); }
.btn--primary:hover { background: #5BE3AA; border-color: #5BE3AA; }
.btn--ghost { background: rgba(255, 255, 255, .03); }
.btn--sm { min-height: 38px; padding: .55rem .95rem; font-size: var(--t-xs); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Status pills ---------- */
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 600; letter-spacing: .02em; padding: .25rem .6rem; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--demo { color: var(--emerald); border-color: rgba(63, 217, 154, .35); background: var(--emerald-soft); }
.status--planned { color: #B9C3D6; border-color: var(--line-2); background: rgba(255, 255, 255, .03); }
.status--live { color: #062016; background: var(--emerald); border-color: var(--emerald); }
.pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; }
.pill--healthy { color: var(--emerald); background: var(--emerald-soft); }
.pill--below-reserve, .pill--elevated { color: var(--amber); background: var(--amber-soft); }
.pill--shortfall, .pill--high { color: var(--red); background: var(--red-soft); }
.pill--lower { color: var(--emerald); background: var(--emerald-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 6.5rem) 0; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto -10%; height: 900px; z-index: -1;
background:
radial-gradient(50% 45% at 50% 30%, rgba(70, 120, 255, .30), transparent 70%),
radial-gradient(35% 30% at 18% 10%, rgba(80, 110, 230, .18), transparent 70%),
radial-gradient(30% 30% at 85% 18%, rgba(40, 180, 160, .12), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
background-size: 64px 64px; mask-image: radial-gradient(60% 50% at 50% 20%, #000, transparent 75%); -webkit-mask-image: radial-gradient(60% 50% at 50% 20%, #000, transparent 75%); }
.hero__copy { text-align: center; display: grid; justify-items: center; gap: 1.4rem; }
.hero__chip { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .8rem .35rem .4rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(14, 22, 40, .7); font-size: var(--t-xs); color: #C9D3E6; }
.hero__chip b { background: var(--blue-soft); color: #A9C1FF; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; }
.hero h1 { font-size: var(--t-hero); font-weight: 600; letter-spacing: -.035em; max-width: 17ch; }
.hero h1 .soft { color: #9DB2DA; }
.hero__sub { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.hero__note { font-size: var(--t-xs); color: var(--faint); }

/* ---------- Product window (hero preview) ---------- */
.window { margin-top: clamp(2.5rem, 6vw, 4rem); border-radius: var(--r-lg) var(--r-lg) 0 0; border: 1px solid var(--line-2); border-bottom: 0; background: linear-gradient(180deg, rgba(20, 30, 55, .9), rgba(10, 16, 32, .96)); box-shadow: 0 -20px 80px -30px rgba(70, 120, 255, .45), var(--shadow); overflow: hidden; }
.window__bar { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font-size: var(--t-xs); color: var(--faint); }
.window__dots { display: flex; gap: 6px; }
.window__dots i { width: 10px; height: 10px; border-radius: 50%; background: #26314A; display: block; }
.window__title { flex: 1; text-align: center; font-family: var(--font-num); font-size: .72rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window__tag { font-size: .68rem; font-weight: 600; color: var(--amber); background: var(--amber-soft); padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.window__body { display: grid; grid-template-columns: 210px 1fr; min-height: 420px; }
.side { border-right: 1px solid var(--line); padding: 1.1rem .8rem; display: grid; align-content: start; gap: .2rem; font-size: var(--t-sm); }
.side__label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: .3rem .6rem; margin-top: .5rem; }
.side__item { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 8px; color: var(--muted); }
.side__item.is-on { background: rgba(255, 255, 255, .05); color: var(--text); }
.side__item i { width: 8px; height: 8px; border-radius: 2px; background: currentColor; opacity: .6; display: block; }
.side__item.is-on i { background: var(--emerald); opacity: 1; }
.dash { padding: clamp(1rem, 2vw, 1.5rem); display: grid; gap: 1rem; min-width: 0; }
.dash__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dash__head h2 { font-size: 1.15rem; }
.dash__head p { font-size: var(--t-xs); color: var(--faint); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.kpi { background: rgba(255, 255, 255, .025); border: 1px solid var(--line); border-radius: var(--r-md); padding: .85rem .95rem; display: grid; gap: .3rem; min-width: 0; }
.kpi__label { font-size: .72rem; color: var(--faint); }
.kpi__value { font-family: var(--font-num); font-size: clamp(1.05rem, .9rem + .6vw, 1.45rem); font-weight: 500; letter-spacing: -.02em; transition: color .3s; white-space: nowrap; }
.kpi__delta { font-size: .72rem; font-family: var(--font-num); color: var(--faint); min-height: 1.1em; }
.kpi__delta.is-down { color: var(--red); }
.kpi__delta.is-up { color: var(--emerald); }
.kpi--warn .kpi__value { color: var(--amber); }
.kpi--bad .kpi__value { color: var(--red); }
.dash__grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1rem; }
.panel { background: rgba(255, 255, 255, .025); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; min-width: 0; }
.panel__title { font-size: var(--t-xs); color: var(--muted); display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.legend { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .7rem; color: var(--faint); }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { width: 14px; height: 2px; display: block; background: var(--emerald); }
.legend i.base { background: none; border-top: 2px dashed #6E7FA6; }
.legend i.floor { background: none; border-top: 2px dotted var(--amber); }

/* ---------- Chart ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--faint); font: 500 10px var(--font-num); }
.chart .floor { stroke: var(--amber); stroke-width: 1.2; stroke-dasharray: 2 4; }
.chart .floor-label { fill: var(--amber); font: 500 10px var(--font-num); }
.chart .zero { stroke: rgba(255, 128, 128, .5); stroke-width: 1; }
.chart .base { fill: none; stroke: #6E7FA6; stroke-width: 1.6; stroke-dasharray: 5 5; }
.chart .line { fill: none; stroke: var(--emerald); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#ccArea); }
.chart .bar-in { fill: rgba(91, 140, 255, .55); }
.chart .bar-out { fill: rgba(160, 175, 205, .22); }
.chart .dot { fill: var(--bg); stroke: var(--emerald); stroke-width: 2; }
.chart .dot--low { stroke: var(--amber); fill: var(--amber); }
.chart .dot--neg { stroke: var(--red); fill: var(--red); }
.chart .low-label { fill: var(--text); font: 500 11px var(--font-num); }
.chart .below { fill: rgba(242, 190, 92, .07); }

/* Control panel inside preview */
.control { display: grid; gap: .55rem; }
.control__label { font-size: var(--t-sm); font-weight: 600; }
.control__hint { font-size: .74rem; color: var(--faint); line-height: 1.45; }
.control output { font-family: var(--font-num); font-size: var(--t-sm); color: var(--emerald); }
.control__row { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.invoice { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; display: grid; gap: .2rem; background: rgba(91, 140, 255, .06); }
.invoice__name { font-size: .78rem; color: var(--muted); }
.invoice__amt { font-family: var(--font-num); font-size: 1.05rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--emerald) var(--fill, 0%), #26324C var(--fill, 0%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: #26324C; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--emerald); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--text); border: 4px solid var(--emerald); margin-top: -7px; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 4px solid var(--emerald); }
input[type="range"]:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
.scale { display: flex; justify-content: space-between; font: 500 .68rem var(--font-num); color: var(--faint); }

@media (max-width: 1020px) {
.window__body { grid-template-columns: 1fr; }
.side { display: none; }
}
@media (max-width: 860px) {
.dash__grid { grid-template-columns: 1fr; }
.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
.section--line { border-top: 1px solid var(--line); }
.section--green { background:
radial-gradient(60% 50% at 80% 0%, rgba(63, 217, 154, .10), transparent 70%),
radial-gradient(50% 50% at 0% 100%, rgba(63, 217, 154, .06), transparent 70%),
var(--green-ground);
border-top: 1px solid rgba(63, 217, 154, .12); border-bottom: 1px solid rgba(63, 217, 154, .08); }
.section--deep { background: var(--bg-2); border-top: 1px solid var(--line); }
.section__head { display: grid; gap: 1rem; max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head h2 { font-size: var(--t-2xl); }
.section__head--split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 2rem; }
@media (max-width: 820px) { .section__head--split { grid-template-columns: 1fr; } }
.page-hero { padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(2rem, 5vw, 3rem); position: relative; isolation: isolate; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -60% 0 auto 0; height: 700px; z-index: -1; background: radial-gradient(45% 50% at 30% 40%, rgba(70, 120, 255, .22), transparent 70%); }
.page-hero h1 { font-size: var(--t-2xl); max-width: 20ch; margin-block: .9rem 1.1rem; letter-spacing: -.03em; }

/* ---------- Story (late invoice) ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.story__card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); display: grid; gap: 1rem; align-content: start; }
.story__card--late { border-color: rgba(242, 190, 92, .28); background: linear-gradient(180deg, rgba(242,190,92,.07), rgba(242,190,92,.01)); }
.story__label { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; align-items: center; font-size: var(--t-sm); color: var(--muted); }
.story__figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fig { display: grid; gap: .2rem; min-width: 0; }
.fig__v { font-family: var(--font-num); font-size: clamp(1.15rem, 1rem + .9vw, 1.7rem); letter-spacing: -.02em; }
.fig__l { font-size: .75rem; color: var(--faint); }
.story__foot { margin-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } }

/* ---------- Modules ---------- */
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(63, 217, 154, .12); border: 1px solid rgba(63, 217, 154, .12); border-radius: var(--r-lg); overflow: hidden; }
.module { background: var(--green-ground); padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: .85rem; align-content: start; transition: background .25s; }
.module:hover { background: #0A1915; }
.module__top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.module__code { font: 500 .75rem var(--font-num); color: var(--faint); }
.module h3 { font-size: 1.2rem; }
.module p { color: var(--muted); font-size: .97rem; }
.module ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; display: grid; gap: .3rem; }
.module ul li::marker { color: var(--emerald); }
.module__icon { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(63, 217, 154, .25); background: var(--emerald-soft); display: grid; place-items: center; color: var(--emerald); }
@media (max-width: 960px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .modules { grid-template-columns: 1fr; } }

/* ---------- Value / objection rows ---------- */
.rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.row h3 { font-size: 1.15rem; }
.row p { color: var(--muted); }
@media (max-width: 720px) { .row { grid-template-columns: 1fr; gap: .6rem; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.step { counter-increment: step; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; display: grid; gap: .7rem; align-content: start; background: rgba(255,255,255,.02); position: relative; }
.step::before { content: counter(step, decimal-leading-zero); font: 500 .8rem var(--font-num); color: var(--emerald); }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 960px; margin-inline: auto; }
.plan { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); display: grid; gap: 1.25rem; align-content: start; position: relative; }
.plan--featured { border-color: rgba(63, 217, 154, .4); background: linear-gradient(180deg, rgba(63,217,154,.08), rgba(63,217,154,.01)); box-shadow: 0 30px 80px -40px rgba(63, 217, 154, .35); }
.plan__head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.plan h3 { font-size: 1.25rem; }
.plan__price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.plan__price .num { font-size: clamp(2.4rem, 2rem + 2vw, 3.2rem); font-weight: 500; letter-spacing: -.02em; }
.plan__price span:last-child { color: var(--faint); font-size: var(--t-sm); }
.plan p { color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .95rem; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: .6rem; color: #D6DCE8; }
.plan li::before { content: ""; width: 14px; height: 14px; margin-top: .3rem; border-radius: 4px; background: var(--emerald-soft); border: 1px solid rgba(63,217,154,.5); }
.plan li.is-planned { color: var(--muted); }
.plan li.is-planned::before { background: transparent; border-color: var(--line-2); }
.plan__note { font-size: .78rem; color: var(--faint); border-top: 1px solid var(--line); padding-top: 1rem; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .3rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding-bottom: 1.4rem; color: var(--muted); display: grid; gap: .75rem; max-width: 70ch; }
.faq-group { margin-top: 3rem; }
.faq-group:first-of-type { margin-top: 0; }
.faq-group h2 { font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--emerald); margin-bottom: .8rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--t-sm); font-weight: 600; }
.field .opt { color: var(--faint); font-weight: 400; }
.field small { color: var(--faint); font-size: .78rem; }
.input, .select, .textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 10px; padding: .75rem .9rem; transition: border-color .2s, box-shadow .2s; min-height: 46px; }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem; }
.select option { background: var(--bg-2); color: var(--text); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(200,215,240,.35); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-soft); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--red); }
.field__error { color: var(--red); font-size: .8rem; min-height: 0; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: .7rem; align-items: start; font-size: var(--t-sm); color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--emerald); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--r-md); padding: 1rem 1.1rem; font-size: var(--t-sm); border: 1px solid; display: grid; gap: .25rem; }
.notice--info { border-color: rgba(242,190,92,.35); background: var(--amber-soft); color: #F6DDA8; }
.notice--ok { border-color: rgba(63,217,154,.4); background: var(--emerald-soft); color: #BFF3DB; }
.notice--err { border-color: rgba(255,128,128,.4); background: var(--red-soft); color: #FFD0D0; }
.card { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- Demo page ---------- */
.demo { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.demo__controls { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); display: grid; gap: 1.4rem; }
.demo__main { display: grid; gap: 1.25rem; min-width: 0; }
.demo__label { display: inline-flex; align-items: center; gap: .5rem; font: 600 .74rem var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.toggle { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: center; }
.switch { position: relative; width: 46px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #26324C; transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--emerald); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--emerald); outline-offset: 2px; }
.control .insight { font-size: .88rem; }
.insight { border-left: 2px solid var(--emerald); padding: .2rem 0 .2rem 1rem; color: #D6DCE8; font-size: 1rem; }
.insight.is-warn { border-color: var(--amber); }
.insight.is-bad { border-color: var(--red); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table.ledger { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 640px; }
.ledger th, .ledger td { padding: .6rem .8rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger th:first-child, .ledger td:first-child { text-align: left; }
.ledger thead th { font-size: .72rem; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.02); }
.ledger td { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.ledger tr.is-below td:last-child { color: var(--amber); }
.ledger tr.is-neg td:last-child { color: var(--red); }
.ledger tbody tr:last-child td { border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font: 500 .78rem var(--font-num); padding: .35rem .65rem; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; min-height: 34px; }
.chip[aria-pressed="true"] { background: var(--emerald-soft); color: var(--emerald); border-color: rgba(63,217,154,.5); }
@media (max-width: 960px) { .demo { grid-template-columns: 1fr; } .demo__controls { position: static; } }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.25rem; align-items: start; }
.calc__result { display: grid; gap: 1.1rem; }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.result-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.money { position: relative; }
.money .input { padding-left: 1.7rem; font-family: var(--font-num); }
.money::before { content: "$"; position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--faint); font-family: var(--font-num); pointer-events: none; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .result-figs { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, #0D1A35, #08111F 60%); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 80% at 100% 0%, rgba(63,217,154,.16), transparent 70%), radial-gradient(40% 80% at 0% 100%, rgba(91,140,255,.18), transparent 70%); }
.cta-band h2 { font-size: var(--t-xl); max-width: 22ch; }
.cta-band p { color: var(--muted); margin-top: .8rem; max-width: 52ch; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
.footer__brand { display: grid; gap: 1rem; max-width: 40ch; font-size: var(--t-sm); }
.footer__col { display: grid; gap: .55rem; align-content: start; font-size: var(--t-sm); }
.footer__col a { color: var(--muted); text-decoration: none; }
.footer__col a:hover { color: var(--text); }
.footer__col .eyebrow { margin-bottom: .3rem; color: var(--faint); }
.footer__legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--faint); }
.footer__legal a { text-decoration: none; }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__copy > * { animation: rise .7s var(--ease) both; }
.hero__copy > *:nth-child(2) { animation-delay: .06s; }
.hero__copy > *:nth-child(3) { animation-delay: .12s; }
.hero__copy > *:nth-child(4) { animation-delay: .18s; }
.window { animation: rise .9s .2s var(--ease) both; }
.chart .line, .chart .area { transition: d .45s var(--ease); }
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Small-screen refinements ---------- */
.hero__chip b { white-space: nowrap; }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chip { padding-inline: .3rem; }
@media (max-width: 600px) {
.banner__dot { display: none; }
.banner__inner { gap: .2rem .6rem; }
.window__title { visibility: hidden; }
.hero__chip { font-size: .72rem; text-align: left; }
}
