/* BoothBalance website — shared styles.
   Brand: Twin B. Dark studio; warm and cool light drift behind the page.
   Tokens match Desktop\BoothBalance-brand\BRAND.md. Single dark theme by
   brand decision. */
:root {
  color-scheme: dark;
  --ink: #08080a;
  --ink-2: #0f1013;
  --steel: #2a2d33;
  --line: #1e2127;
  --white: #ffffff;
  --text: #e9ebef;
  --muted: #979da8;
  --warm: #ffa24c;
  --cool: #4fa3ff;
  --card: #777777;
  --ok: #3ddc84;
  --sample: #ffd23f;
  --bad: #ff6b6b;
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-data: "JetBrains Mono", Consolas, ui-monospace, monospace;
  --radius: 14px;
  --sy: 0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-family: var(--font-display); }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--cool); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 600 0.74rem/1 var(--font-data); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.data { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--white); color: var(--ink); border-radius: 6px; }
.skip:focus { left: 12px; }

.glow { position: fixed; inset: -20vh -20vw; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 30vmax at calc(18% + var(--sy) * 22%) calc(12% + var(--sy) * 30%), rgba(255,162,76,.13), transparent 70%),
    radial-gradient(40vmax 30vmax at calc(82% - var(--sy) * 22%) calc(78% - var(--sy) * 30%), rgba(79,163,255,.13), transparent 70%); }

/* ---- header ---- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--ink) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand svg { width: 22px; height: 29px; }
.wordmark { font-family: var(--font-display); font-stretch: 122%; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1; color: var(--white); }
.wordmark span { font-weight: 400; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.top-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--steel); background: transparent; color: var(--text); cursor: pointer; }
.mobile-nav { border-top: 1px solid var(--line); }
.mobile-nav .wrap { display: grid; gap: 4px; padding-block: 12px 18px; }
.mobile-nav a { padding: 10px 0; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
@media (max-width: 1040px) { .nav { display: none; } .menu-btn { display: inline-flex; } .top-cta { margin-left: 0; } .top-cta .signin { display: none; } }
@media (min-width: 1041px) { .mobile-nav { display: none !important; } }
/* On a phone the logo, menu and trial button don't fit on one line; the trial
   link moves into the menu (and every page has its own trial button). */
@media (max-width: 480px) { .top .wrap { gap: 14px; } .top-cta { display: none; } }
/* Single-column grids get a shrinkable track; an implicit `auto` track can't
   go narrower than its widest item's content and pushed phones sideways. */
.hero-copy, .dial-ctl, .head, .kread, .form, .panel, .news, .prose, .page-hero .wrap, .article-head { grid-template-columns: minmax(0, 1fr); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 8px; font: 600 1rem/1 var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-main { background: var(--warm); color: #170b00; }
.btn-main:hover { background: #ffb36c; }
.btn-ghost { border-color: var(--steel); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 10px 16px; font-size: 0.92rem; }
.btn-danger { border-color: rgba(255,107,107,.5); color: var(--bad); background: transparent; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- home hero ---- */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; padding-block: 64px 72px; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.switch { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 999px; background: var(--steel); justify-self: start; }
.switch button { appearance: none; border: 0; background: transparent; color: var(--muted); font: 600 0.9rem/1 var(--font-body); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.hero .eyebrow { color: var(--warm); }
.hero h1 { font-stretch: 116%; font-weight: 800; font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 0.98; letter-spacing: -0.015em; color: var(--white); }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 52ch; }
.lede b { color: var(--text); font-weight: 600; }
.price-note { font: 600 0.85rem/1 var(--font-data); color: var(--cool); }
.proof { display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--muted); font-size: 0.92rem; }
.proof b { color: var(--text); font-weight: 600; }
[data-swap] { transition: opacity .22s ease; }
.swapping [data-swap] { opacity: 0; }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 40px 56px; gap: 40px; } }

/* ---- inner page hero ---- */
.page-hero .wrap { padding-block: 72px 56px; display: grid; gap: 20px; }
.page-hero h1 { font-stretch: 116%; font-weight: 800; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.015em; color: var(--white); max-width: 18ch; }
.page-hero .eyebrow { color: var(--warm); }
.page-hero.split .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.page-hero.split .wrap > div { display: grid; gap: 20px; min-width: 0; }
@media (max-width: 900px) { .page-hero.split .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---- before/after + canvases ---- */
.ba { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%; background: #222; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px var(--line); --pos: 50%; touch-action: pan-y; cursor: ew-resize; user-select: none; }
.ba canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ba .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--white); transform: translateX(-1px); pointer-events: none; }
.ba .knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--white); color: var(--ink); display: grid; place-items: center; font: 700 0.9rem/1 var(--font-data); box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.tagchip { position: absolute; top: 14px; padding: 7px 10px; border-radius: 6px; font: 600 0.72rem/1.2 var(--font-data); letter-spacing: 0.06em; background: rgba(8,8,10,.72); color: var(--text); backdrop-filter: blur(6px); pointer-events: none; }
.tagchip.l { left: 14px; } .tagchip.r { right: 14px; }
.tagchip b { display: block; color: var(--white); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba:focus-within { box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 3px var(--cool); }
.caption { margin-top: 12px; color: var(--muted); font-size: 0.88rem; }
.view { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%; box-shadow: 0 0 0 1px var(--line); background: #222; }
.view canvas { width: 100%; height: 100%; display: block; }

/* ---- bands ---- */
.band { padding-block: 104px; border-top: 1px solid var(--line); position: relative; }
.band.tight { padding-block: 72px; }
.head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 760px; }
.head h2 { font-stretch: 112%; font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.04; color: var(--white); letter-spacing: -0.01em; }
.head p { color: var(--muted); font-size: 1.12rem; max-width: 60ch; }
.split2 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.split2.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split2 > * { min-width: 0; }
@media (max-width: 980px) { .split2, .split2.flip { grid-template-columns: minmax(0, 1fr); } }

/* how it works + app demo */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 20px; border-radius: 12px; border: 1px solid transparent; transition: background .3s, border-color .3s; }
.steps li.on { background: var(--ink-2); border-color: var(--line); }
.steps .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--steel); color: var(--text); font: 700 0.9rem/1 var(--font-data); transition: background .3s, color .3s; }
.steps li.on .n { background: var(--white); color: var(--ink); }
.steps h3 { font-stretch: 105%; font-weight: 700; font-size: 1.2rem; color: var(--white); margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 980px) { .how { grid-template-columns: minmax(0, 1fr); } }
.app { border-radius: var(--radius); overflow: hidden; background: #0e1116; border: 1px solid #222832; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); font-family: "Segoe UI", var(--font-body); }
.app-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #222832; font-size: 0.85rem; color: #9aa7b4; }
.app-bar svg { width: 12px; height: 16px; }
.app-bar b { color: #e8edf2; font-weight: 600; }
.app-steps { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #222832; flex-wrap: wrap; }
.app-steps span { padding: 6px 10px; border-radius: 6px; background: #171c23; color: #9aa7b4; font-size: 0.78rem; transition: background .3s, color .3s; }
.app-steps span.on { background: #4cc2ff; color: #06202e; font-weight: 600; }
.app-steps span.done { color: var(--ok); }
.app-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.app-frame { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(70% 90% at 50% 40%, #4a4a50, #1d1d21); overflow: hidden; }
.app-frame .live { position: absolute; top: 10px; left: 10px; font: 600 0.68rem/1 var(--font-data); color: #ff5a5a; letter-spacing: .1em; }
.app-frame .live::before { content: "● "; }
.app-frame .count { position: absolute; inset: 0; display: grid; place-items: center; font: 800 5rem/1 var(--font-display); color: rgba(255,255,255,.9); text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.app-frame .gc { position: absolute; left: 34%; top: 24%; width: 32%; height: 46%; background: var(--card); transform: rotate(-5deg); border-radius: 3px; box-shadow: 0 18px 30px rgba(0,0,0,.5); }
.app-frame .box { position: absolute; left: 42%; top: 38%; width: 16%; height: 18%; border: 2px solid var(--sample); opacity: 0; transition: opacity .3s; }
.app-frame.photo .box { opacity: 1; }
.app-frame.photo { background: radial-gradient(70% 90% at 50% 40%, #56565c, #26262a); }
.app-side { padding: 16px; display: grid; gap: 10px; align-content: start; border-left: 1px solid #222832; min-width: 0; }
.app-side .t { font-weight: 700; font-size: 1.05rem; color: #e8edf2; }
.app-side .r { font-size: 0.85rem; color: #9aa7b4; min-height: 2.6em; }
.app-chip { justify-self: start; padding: 8px 10px; border-radius: 6px; font: 600 0.8rem/1.2 var(--font-data); background: #171c23; color: #e8edf2; transition: background .3s, color .3s; }
.app-chip.warm { background: rgba(255,162,76,.15); color: var(--warm); }
.app-chip.ok { background: rgba(61,220,132,.12); color: var(--ok); }
.app-btn { margin-top: 4px; padding: 12px; border-radius: 6px; background: #4cc2ff; color: #06202e; font-weight: 700; text-align: center; font-size: 0.9rem; }
@media (max-width: 560px) { .app-body { grid-template-columns: minmax(0, 1fr); } .app-side { border-left: 0; border-top: 1px solid #222832; } }

/* Kelvin dial */
.dial-ctl { display: grid; gap: 22px; min-width: 0; }
.kread { display: grid; gap: 4px; }
.kread .big { font: 700 clamp(2.4rem, 5vw, 3.4rem)/1 var(--font-display); font-stretch: 112%; color: var(--white); font-variant-numeric: tabular-nums; }
.verdict { font: 600 0.95rem/1.4 var(--font-data); }
.verdict.warm { color: var(--warm); } .verdict.cool { color: var(--cool); } .verdict.ok { color: var(--ok); }
.ktrack .bar { height: 14px; border-radius: 7px; background: linear-gradient(90deg, #ff8a2b, #ffc48a 25%, #f4f2ee 45%, #cfdcff 70%, #86adff); }
.ktrack input { width: 100%; margin: 10px 0 0; accent-color: var(--white); }
.kscale { display: flex; justify-content: space-between; font: 400 0.72rem/1 var(--font-data); color: var(--muted); margin-top: 6px; }

/* mirror booth glass demo */
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 10px; background: var(--steel); }
.seg button { appearance: none; border: 0; background: transparent; color: var(--muted); font: 600 0.9rem/1 var(--font-body); padding: 10px 14px; border-radius: 7px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.mirror-badge { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 8px; background: rgba(255,210,63,.1); color: var(--sample); font: 600 0.82rem/1.2 var(--font-data); }

/* video placeholder */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: linear-gradient(120deg, rgba(255,162,76,.25), transparent 45%), linear-gradient(300deg, rgba(79,163,255,.25), transparent 45%), #15161a; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; }
.video .play { width: 76px; height: 76px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.video .play::after { content: ""; border-left: 22px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.video .vt { position: absolute; left: 18px; bottom: 16px; font: 600 0.78rem/1.3 var(--font-data); color: var(--text); }
.video.sm .play { width: 54px; height: 54px; }
.video.sm .play::after { border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; margin-left: 4px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.checks li::before { content: "✓"; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(61,220,132,.12); color: var(--ok); font-weight: 700; }
.checks b { color: var(--white); font-weight: 600; display: block; }
.checks span { color: var(--muted); font-size: 0.95rem; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { position: relative; background: var(--ink-2); padding: 30px 28px; display: grid; gap: 10px; align-content: start; min-width: 0; overflow: hidden; }
.feature::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 160px at var(--mx, -400px) var(--my, -400px), rgba(255,255,255,.06), transparent 70%); pointer-events: none; }
.feature h3 { font-stretch: 105%; font-weight: 700; font-size: 1.15rem; color: var(--white); }
.feature p { color: var(--muted); font-size: 0.97rem; }
.feature .k { font: 600 0.72rem/1 var(--font-data); letter-spacing: .12em; color: var(--cool); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.spec { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--steel); }
.spec .v { font: 700 clamp(2rem, 4vw, 2.8rem)/1 var(--font-display); font-stretch: 110%; color: var(--white); }
.spec p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* one booth or twenty */
.scale { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.scale > div { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); display: grid; gap: 16px; align-content: start; transition: border-color .3s, box-shadow .3s; min-width: 0; }
.scale h3 { font-stretch: 108%; font-weight: 800; font-size: 1.5rem; color: var(--white); }
.scale ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.who { font: 600 0.74rem/1 var(--font-data); letter-spacing: .14em; text-transform: uppercase; }
.who.warm { color: var(--warm); } .who.cool { color: var(--cool); }
body[data-audience="solo"] .scale .solo { border-color: rgba(255,162,76,.55); box-shadow: 0 0 0 1px rgba(255,162,76,.25), 0 30px 60px -30px rgba(255,162,76,.35); }
body[data-audience="co"] .scale .co { border-color: rgba(79,163,255,.55); box-shadow: 0 0 0 1px rgba(79,163,255,.25), 0 30px 60px -30px rgba(79,163,255,.35); }
@media (max-width: 820px) { .scale { grid-template-columns: minmax(0, 1fr); } }

/* pricing */
.seats { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); margin-bottom: 20px; }
.seats label { font-weight: 600; color: var(--white); }
.seats .count { font: 700 1.6rem/1 var(--font-display); font-stretch: 110%; color: var(--white); text-align: right; font-variant-numeric: tabular-nums; }
.seats input { grid-column: 1 / -1; width: 100%; accent-color: var(--warm); }
.tiers { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font: 400 0.75rem/1 var(--font-data); color: var(--muted); }
.tiers span.on { color: var(--warm); }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 14px; padding: 28px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); min-width: 0; }
.price.best { border-color: var(--warm); box-shadow: 0 30px 60px -30px rgba(255,162,76,.4); }
.price .tag { justify-self: start; padding: 5px 10px; border-radius: 999px; background: var(--warm); color: #170b00; font: 600 0.7rem/1.2 var(--font-data); letter-spacing: .08em; text-transform: uppercase; }
.price .tag.ghost { background: transparent; color: var(--muted); padding-left: 0; }
.price h3 { font-stretch: 105%; font-weight: 700; font-size: 1.25rem; color: var(--white); }
.price .amt { font: 800 2.6rem/1 var(--font-display); font-stretch: 108%; color: var(--white); font-variant-numeric: tabular-nums; }
.price .amt small { font: 500 0.95rem/1 var(--font-body); color: var(--muted); }
.price .each { font: 400 0.85rem/1.4 var(--font-data); color: var(--muted); min-height: 2.8em; }
.price ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; font-size: 0.95rem; }
@media (max-width: 960px) { .prices { grid-template-columns: minmax(0, 1fr); } }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.t { width: 100%; border-collapse: collapse; font-size: 0.97rem; min-width: 560px; }
table.t th, table.t td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t thead th { font: 600 0.74rem/1.3 var(--font-data); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--ink-2); }
table.t tbody th { font-weight: 600; color: var(--white); }
table.t tr:last-child td, table.t tr:last-child th { border-bottom: 0; }
table.t .y { color: var(--ok); } table.t .n { color: var(--muted); }
table.t td.num { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

/* quotes, faq */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.quote { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); display: grid; gap: 14px; min-width: 0; align-content: start; }
.quote blockquote { margin: 0; font: 600 1.3rem/1.4 var(--font-display); font-stretch: 102%; color: var(--white); }
.quote cite { font-style: normal; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 820px) { .quotes { grid-template-columns: minmax(0, 1fr); } }
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font: 600 1.15rem/1.35 var(--font-body); color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-data); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 70ch; }
.faq details p + p { margin-top: 8px; }

/* forms */
.form { display: grid; gap: 16px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); }
.form h3 { font-stretch: 105%; font-size: 1.25rem; color: var(--white); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.93rem; color: var(--white); }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; padding: 13px 14px; border-radius: 8px; border: 1px solid var(--steel); background: var(--ink); color: var(--text); font-size: 1rem; }
.field textarea { min-height: 130px; resize: vertical; }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field input[type="checkbox"], .field input[type="radio"] { width: auto; padding: 0; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.ok-msg { color: var(--ok); font-size: 0.95rem; }
.news form { display: flex; gap: 10px; flex-wrap: wrap; }
.news input { flex: 1 1 220px; min-width: 0; padding: 13px 14px; border-radius: 8px; border: 1px solid var(--steel); background: var(--ink); color: var(--text); font-size: 1rem; }

/* closing */
.closing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.closing h2 { font-stretch: 116%; font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; color: var(--white); }
.closing .ctas { margin-top: 24px; }
.news { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); display: grid; gap: 14px; }
.news h3 { font-stretch: 105%; font-size: 1.2rem; color: var(--white); }
.news p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .closing { grid-template-columns: minmax(0, 1fr); } }

/* docs (guide) */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; padding-block: 24px 104px; }
.toc { position: sticky; top: 96px; display: grid; gap: 2px; font-size: 0.93rem; }
.toc .eyebrow { margin-bottom: 10px; }
.toc a { text-decoration: none; color: var(--muted); padding: 7px 12px; border-left: 2px solid var(--line); }
.toc a:hover, .toc a.on { color: var(--white); border-left-color: var(--warm); }
@media (max-width: 900px) { .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; } .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose { max-width: 72ch; display: grid; gap: 18px; }
.prose h2 { font-stretch: 110%; font-weight: 800; font-size: 1.9rem; color: var(--white); margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-stretch: 105%; font-weight: 700; font-size: 1.25rem; color: var(--white); margin-top: 10px; }
.prose p, .prose li { color: #c9cdd4; }
.prose b, .prose strong { color: var(--white); font-weight: 600; }
.prose ol, .prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose code, .kbd { font: 500 0.88em/1 var(--font-data); padding: 2px 6px; border-radius: 5px; background: var(--steel); color: var(--white); }
.callout { padding: 16px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--ink-2); color: #c9cdd4; }
.callout b { color: var(--white); }
.callout.warm { border-color: rgba(255,162,76,.45); }
.callout.cool { border-color: rgba(79,163,255,.45); }

/* cards (tips) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cardlink { display: grid; grid-template-rows: 170px auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); overflow: hidden; text-decoration: none; min-width: 0; transition: border-color .2s, transform .2s; }
.cardlink:hover { border-color: var(--steel); transform: translateY(-2px); }
.cardlink .art { background: linear-gradient(135deg, rgba(255,162,76,.35), transparent 55%), linear-gradient(315deg, rgba(79,163,255,.35), transparent 55%), #16171b; display: grid; place-items: center; font: 800 2.4rem/1 var(--font-display); font-stretch: 115%; color: rgba(255,255,255,.85); }
.cardlink .body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.cardlink h3 { font-stretch: 104%; font-weight: 700; font-size: 1.15rem; color: var(--white); }
.cardlink p { color: var(--muted); font-size: 0.95rem; }
.cardlink.soon { opacity: .6; pointer-events: none; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.article-head { display: grid; gap: 16px; max-width: 72ch; }
.article-head h1 { font-stretch: 112%; font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.04; color: var(--white); }
.byline { color: var(--muted); font-size: 0.92rem; }

/* account dashboard mock */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.panel { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); display: grid; gap: 14px; min-width: 0; }
.panel h3 { font-stretch: 105%; font-size: 1.15rem; color: var(--white); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; font-size: 0.95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--white); }
.pc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.pc b { color: var(--white); }
.pc .meta { color: var(--muted); font-size: 0.88rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 0.72rem/1.2 var(--font-data); background: rgba(61,220,132,.12); color: var(--ok); }
.pill.off { background: var(--steel); color: var(--muted); }
@media (max-width: 860px) { .dash { grid-template-columns: minmax(0, 1fr); } }

/* legal */
.draft-banner { background: #b3261e; color: #fff; text-align: center; padding: 10px 16px; font-weight: 600; font-size: 0.92rem; }
.legal-doc mark { background: rgba(255,210,63,.18); color: var(--sample); padding: 0 3px; border-radius: 3px; }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.legal-doc th, .legal-doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: #c9cdd4; }
.legal-doc th { color: var(--white); }
.legal-doc h1 { font-stretch: 112%; font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--white); line-height: 1.05; }
.legal-doc hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

footer { border-top: 1px solid var(--line); padding-block: 44px 64px; color: var(--muted); font-size: 0.9rem; }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: start; }
footer nav { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 36px; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--text); }
footer .legal { margin-top: 26px; max-width: 90ch; font-size: 0.82rem; }
@media (max-width: 560px) { footer nav { grid-template-columns: repeat(2, auto); } }

.chat-btn { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 999px; border: 0; background: var(--white); color: var(--ink); font-weight: 600; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.chat-panel { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: min(320px, calc(100vw - 36px)); padding: 18px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--steel); box-shadow: 0 20px 50px rgba(0,0,0,.6); display: grid; gap: 10px; }
.chat-panel b { color: var(--white); }
.chat-panel p { color: var(--muted); font-size: 0.92rem; }

/* preview-only notes (removed from the production build) */
.notes-btn { position: fixed; left: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--steel); background: var(--ink-2); color: var(--text); font: 600 0.82rem/1 var(--font-body); cursor: pointer; }
.note { display: block; margin-bottom: 20px; padding: 10px 14px; border-radius: 8px; border: 1px dashed var(--cool); color: #bcd8ff; background: rgba(79,163,255,.07); font: 400 0.85rem/1.45 var(--font-body); max-width: 78ch; }
.note b { color: var(--white); }
body.notes-off .note { display: none; }

@media (prefers-reduced-motion: reduce) { [data-swap], .steps li, .app-steps span, .app-chip, .scale > div, .cardlink { transition: none; } }

/* Long button labels wrap on phones (after .btn so it wins). */
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; line-height: 1.25; } }

/* ---- promotions (run from the licence server's admin page) ---- */
.promo-bar { position: relative; border-bottom: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(90deg, rgba(255,162,76,.22), rgba(255,162,76,.08) 45%, rgba(79,163,255,.08) 55%, rgba(79,163,255,.22)), var(--ink-2); }
.promo-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding-block: 18px; }
.promo-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--warm); color: #170b00;
  font: 700 0.72rem/1 var(--font-data); letter-spacing: .12em; text-transform: uppercase; flex: none; }
.promo-dot { width: 8px; height: 8px; border-radius: 50%; background: #170b00; }
.promo-text { display: grid; gap: 2px; flex: 1 1 280px; min-width: 0; }
.promo-head { font: 800 clamp(1.15rem, 2.4vw, 1.5rem)/1.15 var(--font-display); font-stretch: 112%; color: var(--white); }
.promo-detail { color: var(--text); font-size: 0.95rem; }
.promo-clock { display: flex; align-items: center; gap: 6px; flex: none; }
.promo-ends { color: var(--muted); font-size: 0.85rem; margin-right: 4px; }
.promo-unit { display: grid; justify-items: center; min-width: 46px; padding: 6px 6px 5px; border-radius: 8px; background: rgba(8,8,10,.6); border: 1px solid var(--steel); }
.promo-unit b { font: 700 1.1rem/1 var(--font-data); color: var(--white); font-variant-numeric: tabular-nums; }
.promo-unit i { font: 400 0.62rem/1.4 var(--font-data); font-style: normal; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
@media (prefers-reduced-motion: no-preference) {
  .promo-dot { animation: promo-pulse 1.6s ease-in-out infinite; }
  @keyframes promo-pulse { 50% { opacity: .25; } }
}
.price-note.promo-note { color: var(--warm); }
.price { position: relative; }
.price.on-promo { border-color: var(--warm); box-shadow: 0 30px 60px -30px rgba(255,162,76,.45); }
.price.on-promo::before { content: "Offer"; position: absolute; top: -12px; right: 18px; padding: 5px 10px; border-radius: 999px;
  background: var(--warm); color: #170b00; font: 700 0.7rem/1 var(--font-data); letter-spacing: .1em; text-transform: uppercase; }
.price .was { color: var(--muted); font-size: 0.6em; font-weight: 600; text-decoration-thickness: 2px; }
@media (max-width: 560px) { .promo-clock { width: 100%; } .promo-unit { min-width: 0; flex: 1; } }

/* After a Paddle checkout completes: where the licence key went. */
.checkout-done { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 80; width: min(560px, calc(100% - 32px));
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--ok); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.checkout-done b { color: var(--white); }
.checkout-done span { grid-column: 1; color: var(--text); font-size: .95rem; }
.checkout-done button { grid-column: 2; grid-row: 1 / span 2; align-self: start; appearance: none; border: 0; background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }

/* A section whose video isn't filmed yet: its heading takes the video's
   place beside the list (see "videos" in launch.json). */
.text-pair > div { display: contents; }
.text-pair .head { margin: 0 !important; align-self: start; }

/* Reviews: the star picker, stars on published reviews, and the hidden
   field only bots fill in. */
.stars { display: flex; gap: 4px; }
.stars button { appearance: none; border: 0; background: transparent; padding: 2px 4px; font-size: 2rem; line-height: 1; color: var(--steel); cursor: pointer; transition: color .15s, transform .15s; }
.stars button:hover, .stars button:focus-visible { transform: scale(1.12); }
.stars button.on { color: var(--warm); }
.field .label { font-weight: 600; font-size: 0.93rem; color: var(--white); }
.quote .rating { color: var(--warm); letter-spacing: .1em; font-size: 1.05rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Download links on the download page. */
a.pc.dl { color: inherit; text-decoration: none; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); transition: border-color .2s; }
a.pc.dl:hover, a.pc.dl:focus-visible { border-color: var(--warm); }
a.pc.dl b { color: var(--white); }
