/* ==========================================================================
   xlsonic
   Two languages, one page:
     structured  = mono + green   (data)
     spoken      = serif + amber  (voice)
   ========================================================================== */

:root {
    --bg: #0b0d0c;
    --bg-2: #111412;
    --surface: #151917;
    --surface-2: #1b201d;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #eef2ef;
    --muted: #97a19b;
    --dim: #9aa49e;

    --data: #34d399;          /* structured */
    --data-soft: rgba(52, 211, 153, 0.12);
    --voice: #ffb547;         /* spoken */
    --voice-soft: rgba(255, 181, 71, 0.12);

    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

    --radius: 16px;
    --gutter: clamp(16px, 4vw, 40px);
    --ease: cubic-bezier(.2, .7, .2, 1);

    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--voice); letter-spacing: 0; }
strong, b { font-weight: 600; color: var(--text); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.mono-inline {
    font-family: var(--mono);
    font-size: 0.72em;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--data);
    background: var(--data-soft);
    border: 1px solid rgba(52, 211, 153, 0.25);
    padding: 0.08em 0.35em;
    border-radius: 8px;
    white-space: nowrap;
    vertical-align: 0.08em;
}
.section h2 .mono-inline {
    white-space: normal;
    overflow-wrap: anywhere;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 2px solid var(--voice); outline-offset: 3px; border-radius: 6px; }

/* ---------- Background: faint spreadsheet grid ---------- */
.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(600px 400px at 85% 10%, rgba(255, 181, 71, 0.10), transparent 70%),
        radial-gradient(700px 500px at 10% 30%, rgba(52, 211, 153, 0.08), transparent 70%),
        linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 36px,
        linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 120px 100%;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.15) 100%);
            mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.15) 100%);
    opacity: .7;
}

/* ---------- Buttons ---------- */
.btn {
    --b: var(--voice);
    display: inline-flex;
    align-items: center;
    gap: .55em;
    padding: .85em 1.35em;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--b);
    color: #1a1204;
    font: 600 .95rem/1 var(--sans);
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
    white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(255, 181, 71, .6); }
.btn:active { transform: translateY(0); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255,255,255,.05); box-shadow: none; border-color: rgba(255,255,255,.28); }
.btn-ghost .muted { font-weight: 400; }
.btn-small { padding: .6em 1.05em; font-size: .85rem; }
.btn-tiny { padding: .45em .8em; font-size: .78rem; gap: .4em; }
.btn-tiny svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-big { padding: 1.05em 1.8em; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 13, 12, 0.72);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
            backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 600 1.2rem/1 var(--sans);
    letter-spacing: -0.03em;
    text-decoration: none;
}
.logo-mark { display: inline-flex; align-items: center; gap: 2px; height: 20px; }
.logo-mark i { width: 3px; border-radius: 2px; background: var(--data); animation: eq 1.4s ease-in-out infinite; }
.logo-mark i:nth-child(1) { height: 40%; animation-delay: -.2s; }
.logo-mark i:nth-child(2) { height: 75%; animation-delay: -.6s; }
.logo-mark i:nth-child(3) { height: 100%; background: var(--voice); animation-delay: -.4s; }
.logo-mark i:nth-child(4) { height: 55%; background: var(--voice); animation-delay: -.9s; }
@keyframes eq { 50% { transform: scaleY(.45); } }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }

/* ---------- Hero ---------- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    padding-block: clamp(48px, 9vh, 110px) clamp(56px, 10vh, 120px);
}
.hero-copy, .hero-demo { min-width: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font: 500 .8rem/1 var(--mono);
    color: var(--muted);
    background: rgba(255,255,255,.02);
}
.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--voice);
    box-shadow: 0 0 0 0 rgba(255,181,71,.6);
    animation: ping 2s infinite;
    flex-shrink: 0;
}
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(255,181,71,0); } 100% { box-shadow: 0 0 0 0 rgba(255,181,71,0); } }

.hero h1 {
    margin-top: 24px;
    font-size: clamp(3rem, 7.2vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: .95;
}
.hero h1 em { font-size: 1.1em; letter-spacing: -0.02em; line-height: 1; }

.lede {
    margin-top: 28px;
    max-width: 38em;
    font-size: clamp(1.02rem, 1.3vw, 1.15rem);
    color: var(--muted);
}
.lede em { font-size: 1.2em; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px clamp(24px, 4vw, 48px);
    margin: 44px 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.hero-stats dt { font: 500 1.9rem/1 var(--mono); letter-spacing: -0.04em; color: var(--data); }
.hero-stats dd { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }

/* Hero demo card */
.hero-demo {
    position: relative;
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--line-2);
    border-radius: 20px;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.02) inset;
    overflow: hidden;
}
.hero-demo::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(52,211,153,.5), transparent 40%, transparent 60%, rgba(255,181,71,.5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
.chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    font: 500 .75rem/1 var(--mono);
    color: var(--muted);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.file { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--voice); letter-spacing: .06em; }
.live .pulse-dot { width: 6px; height: 6px; }

.mini-sheet {
    display: grid;
    grid-template-columns: auto 1fr;
    font: 400 .8rem/1 var(--mono);
    margin: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}
.mini-sheet .k, .mini-sheet .v {
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    transition: background .35s, color .35s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mini-sheet .k { color: var(--dim); border-right: 1px solid var(--line); background: rgba(255,255,255,.015); }
.mini-sheet .v { color: var(--text); }
.mini-sheet .k:nth-last-child(2), .mini-sheet .v:last-child { border-bottom: 0; }
.mini-sheet .on { background: var(--data-soft); color: var(--data); }
.mini-sheet .k.on { color: var(--data); }
.mini-sheet .done.v { color: var(--muted); }

.convert-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 16px;
    font: 500 .62rem/1 var(--mono);
    letter-spacing: .12em;
    color: var(--dim);
}
.convert-line span:first-child { color: var(--data); }
.convert-line span:last-child { color: var(--voice); }
.mini-wave { flex: 1; display: flex; align-items: center; justify-content: space-between; height: 28px; }
.mini-wave i {
    width: 3px;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(var(--data), var(--voice));
    transform: scaleY(.12);
    transition: transform .12s linear;
}

.spoken {
    min-height: 7.8em;
    margin: 12px 16px 20px;
    padding: 18px 20px;
    border-radius: 12px;
    background: var(--voice-soft);
    border: 1px solid rgba(255,181,71,.18);
    font: italic 400 clamp(1.25rem, 2vw, 1.5rem)/1.3 var(--serif);
    color: #ffe3b8;
}
.spoken span { opacity: 0; filter: blur(6px); animation: wordIn .6s var(--ease) forwards; }
.spoken .caret {
    display: inline-block;
    width: 2px; height: 1em;
    margin-left: 3px;
    vertical-align: -0.12em;
    background: var(--voice);
    animation: blink 1s steps(1) infinite;
    opacity: 1; filter: none;
}
@keyframes wordIn { to { opacity: 1; filter: blur(0); } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee {
    border-block: 1px solid var(--line);
    background: var(--bg-2);
    overflow: hidden;
    contain: inline-size paint;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 60s linear infinite;
}
.marquee span {
    padding: 18px 32px;
    font: 400 .85rem/1 var(--mono);
    color: var(--muted);
    white-space: nowrap;
    border-right: 1px solid var(--line);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 12vw, 140px) 0; }
.kicker {
    font: 500 .78rem/1 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--data);
    margin-bottom: 20px;
}
.section h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: -0.04em;
    line-height: 1;
    max-width: 16em;
    overflow-wrap: anywhere;
}
.section h2 em { font-size: 1.08em; }
.section-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 64px; align-items: end; }
.section-head > * { min-width: 0; }
.section-sub { color: var(--muted); font-size: 1.02rem; max-width: 36em; }

/* ---------- Manifesto ---------- */
.inversion {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 56px;
}
.inv-card {
    padding: clamp(24px, 3vw, 36px);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
}
.inv-card p:last-child { color: var(--muted); margin-top: 24px; }
.inv-them { opacity: .82; }
.inv-us {
    border-color: rgba(255,181,71,.3);
    background: linear-gradient(160deg, rgba(255,181,71,.08), var(--surface) 55%);
}
.inv-label { font: 500 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.inv-us .inv-label { color: var(--voice); }
.inv-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.inv-flow .arrow { width: 40px; height: 12px; fill: none; stroke: var(--muted); stroke-width: 1.5; flex-shrink: 0; }
.inv-them .arrow { transform: none; }
.chip { padding: 8px 12px; border-radius: 10px; font-size: .9rem; white-space: nowrap; }
.chip-data { font-family: var(--mono); font-size: .8rem; color: var(--data); background: var(--data-soft); border: 1px solid rgba(52,211,153,.25); }
.chip-voice { font: italic 400 1.1rem/1 var(--serif); color: var(--voice); background: var(--voice-soft); border: 1px solid rgba(255,181,71,.25); }

.big-quote {
    margin: clamp(56px, 8vw, 96px) 0 0;
    padding: 0;
    max-width: 22em;
}
.big-quote p {
    font: 400 clamp(1.8rem, 3.8vw, 3.2rem)/1.12 var(--serif);
    letter-spacing: -0.01em;
}
.hl-voice { color: var(--voice); font-style: italic; }
.big-quote footer {
    margin-top: 24px;
    font: 500 .9rem/1.4 var(--mono);
    color: var(--muted);
}
.big-quote footer::before { content: '— '; color: var(--voice); }

/* ---------- Demo ---------- */
.demo {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 20px;
    margin-top: 48px;
    align-items: start;
}
.sheet-panel {
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    min-width: 0;
}
.sheet-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.formula {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--line);
    font: 400 .8rem/1.2 var(--mono);
    color: var(--data);
    overflow: hidden;
}
.formula span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx { font-style: italic; color: var(--dim); font-family: var(--serif); font-size: 1rem; }
.toolbar-actions { display: flex; gap: 8px; }

.table-scroll {
    overflow: auto;
    max-height: 340px;
    scrollbar-width: thin;
    scrollbar-color: var(--line-2) transparent;
}
#sheet {
    border-collapse: separate;
    border-spacing: 0;
    font: 400 .78rem/1 var(--mono);
    white-space: nowrap;
    min-width: 100%;
}
#sheet th, #sheet td {
    padding: 11px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: left;
    transition: background .3s, color .3s;
}
#sheet th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface-2);
    color: var(--muted);
    font-weight: 500;
    font-size: .72rem;
}
#sheet .rownum {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface-2);
    color: var(--dim);
    text-align: center;
    min-width: 44px;
    padding-inline: 10px;
}
#sheet th.rownum { z-index: 3; }
#sheet tbody tr[data-row] { cursor: pointer; }
#sheet tbody tr[data-row]:hover td { background: rgba(255,255,255,.03); }
#sheet tbody tr[data-row]:hover td.rownum { background: var(--surface-2); color: var(--text); }
.ellipsis-row td { color: var(--dim); font-style: italic; }
.ellipsis-row td span { position: sticky; left: 64px; }

/* active highlights */
#sheet.hl-headers thead th:not(.rownum) { background: #1c3a2e; color: var(--data); }
#sheet tr.hl td:not(.rownum) { background: var(--data-soft); color: var(--data); }
#sheet tr.hl td.rownum { color: var(--data); box-shadow: inset 3px 0 0 var(--data); }
#sheet tr.hl-random td { animation: shuffle .9s steps(6) infinite; }
@keyframes shuffle { 50% { color: var(--voice); } }
#sheet td.speaking { background: var(--voice-soft) !important; color: var(--voice) !important; }
#sheet tr.live td.rownum { color: var(--voice); box-shadow: inset 3px 0 0 var(--voice); }

.live-bar { padding: 16px; border-top: 1px solid var(--line); background: var(--bg-2); }
.live-bar-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: .85rem; }
.badge {
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--voice-soft);
    color: var(--voice);
    font: 500 .7rem/1 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.live-transcript {
    margin-top: 12px;
    min-height: 3.2em;
    position: relative;
    max-height: 9.6em;
    overflow-y: auto;
    scrollbar-width: thin;
    font: italic 400 1.2rem/1.35 var(--serif);
    color: var(--dim);
}
.live-transcript .w { transition: color .2s; }
.live-transcript .w.said { color: #ffe3b8; }
.live-transcript .w.now { color: var(--voice); }

/* tracks */
.tracks { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.track {
    display: flex;
    gap: 16px;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.track:hover { border-color: var(--line-2); }
.track.playing {
    border-color: rgba(255,181,71,.45);
    background: linear-gradient(160deg, rgba(255,181,71,.08), var(--surface) 60%);
}
.play {
    flex-shrink: 0;
    width: 52px; height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 0;
    background: var(--voice);
    color: #1a1204;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s;
}
.play:hover { transform: scale(1.06); box-shadow: 0 0 0 6px var(--voice-soft); }
.play svg { width: 22px; height: 22px; fill: currentColor; }
.play .i-pause, .track.playing .play .i-play { display: none; }
.track.playing .play .i-pause { display: block; }
.track-body { flex: 1; min-width: 0; }
.track-no { font: 500 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.track-no .mono { color: var(--data); }
.track h3 { margin-top: 8px; font: italic 400 1.6rem/1 var(--serif); letter-spacing: -0.01em; }
.track-desc { margin-top: 6px; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.viz { width: 100%; height: 36px; margin-top: 12px; }
.progress {
    position: relative;
    height: 4px;
    margin-top: 8px;
    border-radius: 4px;
    background: var(--line-2);
    cursor: pointer;
}
.progress::before { content: ''; position: absolute; inset: -8px 0; }
.progress span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--voice); }
.time { display: flex; justify-content: space-between; margin-top: 6px; font: 400 .7rem/1 var(--mono); color: var(--dim); }

/* ---------- How ---------- */
.steps {
    list-style: none;
    padding: 0;
    margin: 56px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: s;
}
.step {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
}
.step-no { font: 500 .8rem/1 var(--mono); color: var(--data); }
.step h3 { margin-top: 20px; font-size: 1.5rem; }
.step p { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.step-art {
    margin-top: auto;
    padding-top: 24px;
    min-height: 96px;
    display: flex;
    align-items: flex-end;
}
.step-art.mono { color: var(--data); font-size: .9rem; line-height: 2; letter-spacing: .1em; }
.step-art-mix { display: block; font-size: .9rem; color: var(--muted); }
.step-art-mix .mono { color: var(--data); }
.step-art-mix em { font-size: 1.15rem; line-height: 1.25; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 56px; width: 100%; }
.bars i {
    flex: 1;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(to top, var(--data), var(--voice));
    transform-origin: bottom;
    animation: eq 1.2s ease-in-out infinite;
}
.bars i:nth-child(3n) { animation-duration: .9s; }
.bars i:nth-child(3n+1) { animation-duration: 1.4s; animation-delay: -.3s; }
.bars i:nth-child(4n) { animation-delay: -.7s; }
.bars i:nth-child(5n) { animation-duration: 1.7s; }

.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.benefit { padding: 24px; border-right: 1px solid var(--line); }
.benefit:last-child { border-right: 0; }
.benefit h3 { font-size: 1rem; letter-spacing: -0.01em; }
.benefit p { margin-top: 8px; font-size: .88rem; color: var(--muted); }

/* ---------- Pricing ---------- */
.units {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 48px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.units > div { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: var(--bg-2); font-size: .85rem; color: var(--muted); }
.unit-sym { font: 500 1.2rem/1 var(--mono); color: var(--data); }

.plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
    align-items: stretch;
}
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: transform .3s var(--ease), border-color .3s;
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
.plan-featured {
    border-color: rgba(255,181,71,.5);
    background: linear-gradient(170deg, rgba(255,181,71,.1), var(--surface) 50%);
    box-shadow: 0 30px 60px -30px rgba(255,181,71,.35);
}
.plan-featured:hover { border-color: var(--voice); }
.plan-dark { background: var(--bg-2); }
.ribbon {
    position: absolute;
    top: -11px; left: 24px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--voice);
    color: #1a1204;
    font: 600 .68rem/1 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.plan h3 { font: italic 400 2rem/1 var(--serif); letter-spacing: -0.01em; }
.plan-tag { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.price { margin-top: 24px; font: 600 2.4rem/1 var(--sans); letter-spacing: -0.04em; }
.price span { font: 500 .9rem/1.3 var(--mono); letter-spacing: 0; color: var(--muted); }
.price-note { margin-top: 10px; font-size: .75rem; line-height: 1.45; color: var(--dim); min-height: 4.4em; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; flex: 1; border-top: 1px solid var(--line); padding-top: 20px; }
.plan li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: .86rem; color: #c9d1cc; line-height: 1.45; }
.plan li::before {
    content: '';
    position: absolute;
    left: 0; top: .45em;
    width: 10px; height: 6px;
    border-left: 2px solid var(--data);
    border-bottom: 2px solid var(--data);
    transform: rotate(-45deg);
}
.plan li.no { color: var(--dim); }
.plan li.no::before { border: 0; width: 10px; height: 2px; top: .7em; background: #f87171; transform: none; }
.plan li i { font-family: var(--serif); font-size: 1.08em; color: var(--voice); }
.plan .btn { justify-content: center; }
.fine { margin-top: 16px; font-size: .75rem; color: var(--dim); }

/* calculator */
.calc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 20px;
    margin-top: 48px;
    scroll-margin-top: 90px;
}
.calc-inputs {
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
}
.calc-inputs h3 { font-size: 1.4rem; }
.calc-inputs > p { margin-top: 8px; font-size: .9rem; }
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.field > span { display: flex; justify-content: space-between; font: 500 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.field output { color: var(--voice); }
.field input[type=number], .field select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line-2);
    background: var(--bg);
    color: var(--text);
    font: 400 .95rem/1.2 var(--mono);
    transition: border-color .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--voice); }
.field input[type=range] { width: 100%; accent-color: var(--voice); }

.receipt {
    position: relative;
    padding: 28px;
    border-radius: var(--radius);
    background: #f4efe4;
    color: #221d14;
    font: 400 .82rem/1.4 var(--mono);
    box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
}
.receipt .muted { color: #685e4e; }
.receipt-head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 16px; border-bottom: 1px dashed #c4b89f; }
.receipt-head span:last-child { font-size: .65rem; letter-spacing: .04em; }
#receiptLines { list-style: none; margin: 0; padding: 12px 0; border-bottom: 1px dashed #c4b89f; }
#receiptLines li { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
#receiptLines li small { display: block; color: #685e4e; font-size: .7rem; }
#receiptLines li b { color: #221d14; font-weight: 500; white-space: nowrap; }
#receiptLines li.neg b { color: #0f7a4f; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px dashed #c4b89f; font-size: .9rem; }
.receipt-total strong { font: 600 1.8rem/1 var(--sans); letter-spacing: -0.03em; color: #221d14; }
.receipt-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 16px; }
.receipt-foot div { display: flex; flex-direction: column; gap: 4px; }
.receipt-foot span { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.receipt-foot strong { color: #221d14; font-weight: 500; font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 22px 0;
    cursor: pointer;
    list-style: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    flex-shrink: 0;
    font: 400 1.5rem/1 var(--mono);
    color: var(--voice);
    transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 44em; color: var(--muted); }
.faq details p em { font-size: 1.15em; }

/* ---------- Final CTA ---------- */
.final {
    padding-block: clamp(100px, 14vw, 180px);
    text-align: center;
}
.final h2 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); letter-spacing: -0.04em; line-height: 1.02; }
.final h2 em { font-size: 1.08em; }
.final .btn { margin-top: 40px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; font-size: .82rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .plans { grid-template-columns: repeat(2, 1fr); }
    .benefits { grid-template-columns: repeat(2, 1fr); }
    .benefit:nth-child(2) { border-right: 0; }
    .benefit:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .units { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .nav { display: none; }
    .header-inner .btn-small { margin-left: auto; }
    .hero { grid-template-columns: minmax(0, 1fr); }
    .demo { grid-template-columns: 1fr; }
    .section-head { grid-template-columns: 1fr; }
    .calc { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .step-art { min-height: 0; }
}

@media (max-width: 680px) {
    .inversion { grid-template-columns: 1fr; }
    .plans { grid-template-columns: 1fr; }
    .benefits { grid-template-columns: 1fr; }
    .benefit { border-right: 0; border-bottom: 1px solid var(--line); }
    .benefit:last-child { border-bottom: 0; }
    .units { grid-template-columns: 1fr; }
    .receipt-foot { grid-template-columns: 1fr 1fr; }
    .receipt { padding: 22px 18px; }
    .price-note { min-height: 0; }
    .hero-stats dt { font-size: 1.5rem; }
    .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
    .track { padding: 16px; gap: 14px; }
    .play { width: 46px; height: 46px; }
    .chip { white-space: normal; }
}

@media (max-width: 420px) {
    .header-inner .btn-small { font-size: .78rem; padding: .55em .85em; }
    .toolbar-actions { width: 100%; }
}
@media (max-width: 380px) {
    .hero h1 { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
}
