/* TraxxTool website.
   Dark stage theme. Amber is the brand (matches the mark); teal is the tool
   (matches the app's accent). Amber says "show", teal says "go".
   Class names are shared with the account/billing/legal pages, so restyle
   values here, and don't rename things without checking those views.

   The custom properties below are NOT free-form: src/core/brand.py is the
   canonical palette (it feeds the app's theme.py and the OAuth landing pages
   too), and tests/test_brand_tokens.py parses this block and fails if a value
   drifts from it. Change a colour there, not here. */

/* Generated by tools/make_web_fonts.py from assets/fonts, the same TTFs the
   desktop app ships, so the site and the app render in one typeface instead of
   the site quietly falling back to Segoe. swap, not block: text should paint
   immediately and reflow, rather than hold the page blank for a font. */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/SpaceGrotesk-Medium.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/SpaceGrotesk-Bold.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2"); }

:root {
  /* Blue-slate charcoal, hue ~220°, derived from the logo tile. These used to
     be near-neutral greys, which read as a different product to the app. */
  --bg-darkest: #0C0E12;
  --bg-dark: #12141A;
  --bg-mid: #171A21;
  --surface: #1A1D25;
  --surface-2: #21252F;
  --border: #252A35;
  --border-light: #343B4A;
  --text: #E9EAEE;
  --text-2: #9AA4B5;
  --text-3: #6A7383;
  --teal: #00D4AA;
  --teal-hover: #00E8BC;
  --teal-ink: #062820;
  --indigo: #6366F1;
  --purple: #8B5CF6;
  --amber: #FFB547;
  --amber-2: #F08124;
  --amber-dim: rgba(255,181,71,.14);
  --success: #22C55E;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, "SF Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-darkest);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); }
/* Space Grotesk is the display voice (BRAND_STYLE_GUIDE.md section 4 names it
   for website headings). Weights are 500/700 because those are the only two
   faces we ship, so asking for 800 here would synthesise a fake bold. */
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-weight: 500; }
code { background: var(--bg-mid); border: 1px solid var(--border); border-radius: 6px; padding: .05em .4em; font-size: .88em; color: var(--amber); font-family: var(--mono); }
main { min-height: 60vh; }
/* Selection is an interaction, so it's teal. Amber is identity only, and it was
   wrong here (BRAND_STYLE_GUIDE.md section 3: never a selection colour). */
::selection { background: rgba(0,212,170,.28); }

/* --- Nav --- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
  position: sticky; top: 0; z-index: 20;
  /* Tracks --bg-darkest (#0C0E12) at 78%; a literal, since color-mix on a
     custom property isn't safe to rely on for the sticky nav's blur. */
  background: rgba(12,14,18,.78); backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand-mark { border-radius: 8px; display: block; }
.brand-name { font-size: 1.18rem; letter-spacing: -.01em; }
.brand-accent { color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .btn { color: var(--teal-ink); }
.nav-links .btn-ghost { color: var(--text-2); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: .96rem; cursor: pointer;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: transform .06s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 15px; font-size: .9rem; }
.btn-lg { padding: 14px 28px; font-size: 1.03rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--teal); color: var(--teal-ink); box-shadow: 0 6px 24px -8px rgba(0,212,170,.45); }
.btn-primary:hover { background: var(--teal-hover); color: var(--teal-ink); box-shadow: 0 8px 28px -8px rgba(0,212,170,.6); }
.btn-primary:disabled { background: var(--border-light); color: var(--text-3); cursor: not-allowed; box-shadow: none; }
.btn-outline { background: transparent; border-color: var(--border-light); color: var(--text); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-outline:disabled { color: var(--text-3); border-color: var(--border); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-ghost:disabled { color: var(--text-3); cursor: not-allowed; }
.is-current { cursor: default; color: var(--text-2); }
.is-current:hover { border-color: var(--border-light); color: var(--text-2); }
button.btn { font-family: inherit; }

/* --- Hero (split) --- */
.hero { position: relative; overflow: hidden; padding: 64px 24px 24px; }
.hero-ruler {
  /* Faint timeline-ruler ticks, like the top of the workbench. */
  position: absolute; inset: 0 0 auto 0; height: 100%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1200px 480px at 18% -10%, rgba(255,181,71,.13), transparent 65%),
    radial-gradient(1000px 460px at 85% -14%, rgba(0,212,170,.10), transparent 65%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.016) 0 1px, transparent 1px 24px);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
.hero-grid {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px; align-items: center;
}
.hero-copy h1 { margin-bottom: .4em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .13em;
  font-size: .72rem; font-weight: 600; color: var(--amber);
  background: var(--amber-dim); border: 1px solid rgba(255,181,71,.28);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.grad {
  background: linear-gradient(95deg, var(--amber), var(--amber-2) 45%, var(--teal) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1.02rem, 1.9vw, 1.18rem); color: var(--text-2); max-width: 640px; margin: 14px 0 0; }
.lede strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.center-cta { margin-top: 26px; justify-content: center; }
.hero-note { color: var(--text-3); font-size: .9rem; margin-top: 16px; }
.hero-note .sep { margin: 0 8px; color: var(--border-light); }

/* Hero screenshot: flat, framed, lit from behind. */
.hero-shot-frame { position: relative; }
.hero-shot-frame::before {
  content: ""; position: absolute; inset: -8% -6%;
  background:
    radial-gradient(60% 60% at 30% 20%, rgba(255,181,71,.17), transparent 70%),
    radial-gradient(55% 60% at 75% 80%, rgba(0,212,170,.13), transparent 70%);
  filter: blur(14px); z-index: 0;
}
.hero-shot-frame img {
  position: relative; z-index: 1; width: 100%; height: auto; display: block;
  border-radius: 12px; border: 1px solid var(--border-light);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
}
.shot-topbar {
  position: relative; z-index: 1; display: flex; gap: 6px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--border-light); border-bottom: none;
  border-radius: 12px 12px 0 0; padding: 9px 12px; margin-bottom: -1px;
}
.shot-topbar + img { border-radius: 0 0 12px 12px; }
.shot-topbar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-light); }
.shot-topbar span { margin-left: 8px; font-family: var(--mono); font-size: .72rem; color: var(--text-3); letter-spacing: .04em; }

/* Animated EQ bars: decorative, and honest about being decorative. */
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; margin-right: 2px; }
.eq i { width: 3px; border-radius: 1px; background: var(--amber); animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .18s; background: var(--amber-2); }
.eq i:nth-child(3) { animation-delay: .36s; background: var(--teal); }
.eq i:nth-child(4) { animation-delay: .52s; }
@keyframes eq { 0%,100% { height: 30%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; height: 70%; } }

/* --- "Plays well with" strip --- */
.withbar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-dark); }
.withbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: center;
}
.withbar-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.withbar-item { color: var(--text-2); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.withbar-item small { color: var(--text-3); font-weight: 500; }

/* --- Sections --- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 84px 24px; }
.section.narrow { max-width: 720px; }
.section.center { text-align: center; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--text-2); font-size: 1.06rem; }
.section-kicker {
  display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 12px; font-weight: 600;
}

.grid { display: grid; gap: 20px; }
.features { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.feature { transition: transform .16s ease, border-color .16s ease; }
.feature:hover { transform: translateY(-3px); border-color: var(--border-light); }
.feature-ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  font-size: 1.3rem; margin-bottom: 14px; color: var(--amber);
  background: var(--amber-dim); border: 1px solid rgba(255,181,71,.22);
}
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--text-2); margin: 0; font-size: .97rem; }

/* --- Workflow rail --- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.flow-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.flow-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em;
  color: var(--amber); display: block; margin-bottom: 12px;
}
.flow-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.flow-step p { color: var(--text-2); font-size: .93rem; margin: 0; }
.flow-step .free-chip { margin-top: 12px; }

/* Honesty chips: free vs credits, right on the feature. */
.free-chip, .credit-chip {
  display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px; font-weight: 600;
}
.free-chip { color: var(--teal); background: rgba(0,212,170,.1); border: 1px solid rgba(0,212,170,.3); }
.credit-chip { color: var(--amber); background: var(--amber-dim); border: 1px solid rgba(255,181,71,.3); }

/* --- Showcase (interactive feature tour) --- */
.showcase { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 34px; align-items: start; }
.showcase-tabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 88px; }
.showcase-tab {
  text-align: left; background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 14px 16px; cursor: pointer; font-family: inherit; color: var(--text-2);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.showcase-tab h3 { font-size: 1rem; margin: 0 0 3px; color: inherit; display: flex; align-items: center; gap: 10px; }
.showcase-tab p { margin: 0; font-size: .86rem; color: var(--text-3); }
.showcase-tab:hover { background: var(--surface); color: var(--text); }
.showcase-tab.active { background: var(--surface); border-color: var(--border-light); color: var(--text); }
.showcase-tab.active h3::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); flex: none; }
.showcase-panels { min-width: 0; }
.showcase-panel { display: none; }
.showcase-panel.active { display: block; animation: panelin .28s ease; }
@keyframes panelin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .showcase-panel.active { animation: none; } }
/* Fixed-height frame: the screenshots have very different aspect ratios, so a
   consistent viewer keeps the panel (and the copy below it) from jumping as you
   switch tabs. Images are eager-loaded, so nothing pops in either. */
.showcase-panel .shot {
  height: clamp(300px, 40vw, 440px); margin: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-mid); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.4);
}
.showcase-panel .shot img {
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  object-fit: contain; border: 0; border-radius: 6px; box-shadow: none;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.showcase-panel.active .shot img { animation: shotin .5s cubic-bezier(.2,.7,.2,1); }
@keyframes shotin { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .showcase-panel.active .shot img { animation: none; } }
.showcase-blurb { display: flex; gap: 14px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; margin-top: 16px; }
.showcase-blurb p { color: var(--text-2); font-size: .97rem; margin: 0; max-width: 60ch; }
/* No-JS fallback: stack all panels. */
.no-js .showcase { grid-template-columns: 1fr; }
.no-js .showcase-tabs { display: none; }
.no-js .showcase-panel { display: block; margin-bottom: 44px; }

/* --- Keys → one account (credits) --- */
.keys-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: center; }
.keys-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.keys-col h3 { font-size: .82rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.keys-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.keys-list li {
  font-family: var(--mono); font-size: .82rem; color: var(--text-3);
  background: var(--bg-mid); border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.keys-list li b { color: var(--text-2); font-weight: 600; }
.keys-list.struck li { text-decoration: line-through; text-decoration-color: rgba(255,181,71,.6); }
.keys-arrow { font-size: 1.6rem; color: var(--amber); text-align: center; }
.keys-one {
  font-family: var(--mono); font-size: .9rem; color: var(--text);
  background: linear-gradient(120deg, rgba(255,181,71,.12), rgba(0,212,170,.1));
  border: 1px solid rgba(255,181,71,.35); border-radius: 10px; padding: 14px 16px; text-align: center;
}
.keys-one b { color: var(--amber); }
.keys-note { color: var(--text-2); font-size: .95rem; max-width: 640px; margin: 26px auto 0; text-align: center; }
.keys-note a { text-decoration: underline; }

/* --- Cloud mirror --- */
.mirror { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.mirror-visual { position: relative; padding: 10px 0; }
.mirror-stack { display: grid; gap: 10px; }
.mirror-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px; font-size: .92rem; color: var(--text-2);
}
.mirror-row .ok { margin-left: auto; color: var(--teal); font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; }
.mirror-copy h2 { margin-bottom: .4em; }
.mirror-copy p { color: var(--text-2); }
.mirror-copy .plan-feats { margin-top: 18px; }

/* --- CTA band --- */
.band {
  background:
    radial-gradient(700px 300px at 50% 120%, rgba(255,181,71,.12), transparent 70%),
    linear-gradient(180deg, var(--bg-dark), var(--bg-mid));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); max-width: none;
}
.band-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.band-inner p { color: var(--text-2); font-size: 1.06rem; }
.band .hero-cta { justify-content: center; }

/* --- Pricing --- */
.pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: rgba(255,181,71,.5); box-shadow: 0 0 0 1px rgba(255,181,71,.22), 0 20px 60px -30px rgba(255,181,71,.45); }
.ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: #241300; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px;
}
.plan-head { padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.plan-head h3 { font-size: 1.3rem; margin-bottom: 10px; }
.tag { font-size: .7rem; color: var(--indigo); background: rgba(99,102,241,.14); border: 1px solid rgba(99,102,241,.3); padding: 2px 8px; border-radius: 999px; vertical-align: middle; display: inline-block; white-space: nowrap; }
.tag-pro { color: #17d3a4; background: rgba(0,212,170,.12); border-color: rgba(0,212,170,.35); }
.tag-free { color: var(--amber); background: var(--amber-dim); border-color: rgba(255,181,71,.35); }
.features h3 .tag { font-weight: 600; margin-left: 6px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price .amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.price .per { color: var(--text-3); font-size: .95rem; }
.plan-sub { color: var(--text-3); font-size: .9rem; margin: 6px 0 0; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan-feats li { position: relative; padding: 8px 0 8px 26px; color: var(--text-2); font-size: .95rem; border-bottom: 1px solid rgba(42,42,52,.5); }
.plan-feats li:last-child { border-bottom: none; }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--teal); font-weight: 700; }
.plan-feats strong { color: var(--text); }
.plan-cta { margin-top: auto; }
.cloud-forms { display: grid; gap: 8px; }
.fineprint { text-align: center; color: var(--text-3); font-size: .85rem; margin-top: 28px; }

/* Mini pricing teaser (homepage) */
.mini-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.mini-plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; text-align: left; }
.mini-plan h3 { font-size: 1.02rem; margin-bottom: 4px; }
.mini-plan .mini-price { font-family: var(--mono); color: var(--amber); font-size: .85rem; }
.mini-plan p { color: var(--text-2); font-size: .9rem; margin: 8px 0 0; }

/* --- Account --- */
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.account-head h1 { font-size: 1.5rem; margin: 4px 0 0; word-break: break-word; }
.account-card { margin-bottom: 18px; }
.account-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; margin-bottom: 14px; }
.account-card.subtle { background: var(--bg-dark); }
.account-card.subtle p { color: var(--text-2); font-size: .95rem; }
.status-list { list-style: none; padding: 0; margin: 0; }
.status-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text-2); }
.status-list li:last-child { border-bottom: none; }
.status-list .ok { color: var(--success); }
.status-list .muted { color: var(--text-3); }
.account-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.account-actions form { margin: 0; }

/* --- Badges --- */
.badge { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; }
.badge-free { color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border-light); }
.badge-pro { color: var(--teal-ink); background: var(--teal); }
.badge-cloud { color: #fff; background: linear-gradient(100deg, var(--amber-2), var(--indigo)); }

/* --- Result pages --- */
.result-mark { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; margin: 0 auto 22px; }
.result-mark.ok { color: var(--success); background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); }
.result-mark.muted { color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border-light); }

/* --- Legal --- */
.legal h3 { margin-top: 32px; font-size: 1.1rem; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-left: 20px; }
.legal .muted { color: var(--text-3); font-size: .9rem; }

/* --- Footer --- */
.footer { border-top: 1px solid var(--border); background: var(--bg-dark); margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 44px 24px 24px; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand p { color: var(--text-3); font-size: .9rem; margin: 8px 0 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: var(--text-2); font-size: .93rem; }
.footer-links a:hover { color: var(--text); }
.footer-legal { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 34px; color: var(--text-3); font-size: .82rem; }

/* --- Screenshots --- */
.shot { margin: 0; }
.shot img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 18px 60px rgba(0,0,0,.45); }
.shot figcaption { color: var(--text-3); font-size: .85rem; margin-top: 10px; text-align: center; }
.hero-shot { max-width: 1060px; margin: 0 auto; }
.hero-shot-wrap { padding-top: 0; }
.shot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 36px; }
@media (max-width: 800px) { .shot-grid { grid-template-columns: 1fr; } }

/* --- Download page --- */
.dl-box { max-width: 640px; margin: 0 auto; text-align: center; padding: 34px; }
.dl-btn { min-width: 300px; }
.dl-meta { color: var(--text-3); font-size: .92rem; margin-top: 12px; }
.dl-meta a { text-decoration: underline; }
.dl-verify { margin-top: 18px; text-align: left; color: var(--text-2); font-size: .85rem; }
.dl-verify summary { cursor: pointer; color: var(--text-3); }
.dl-verify code { word-break: break-all; font-size: .78rem; }
.dl-smartscreen { margin-top: 16px; }
.steps { max-width: 640px; margin: 0 auto; color: var(--text-2); padding-left: 22px; }
.steps li { padding: 8px 0; }
.steps strong { color: var(--text); }

/* --- Credits/Cloud explainer cards (pricing page) --- */
.grid.explain { grid-template-columns: repeat(2, 1fr); }
.grid.explain.explain-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid.explain.explain-3 { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .grid.explain { grid-template-columns: 1fr; } }
.explain-card h3 { margin: 10px 0 10px; }
.explain-card p { color: var(--text-2); font-size: .97rem; }
.explain-card a { text-decoration: underline; }
.credits-head { margin-top: 64px; }

/* --- AI credits (account page) --- */
.credits-balance { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 10px; }
.credits-amount { font-size: 2.2rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.credits-unit { color: var(--text-3); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.ledger-head { margin: 18px 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.status-list.ledger li { font-size: .9rem; }

/* --- Multi-platform download cards + add-ons --- */
.grid.platforms { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.platforms { grid-template-columns: 1fr; } }
.platform .plan-cta { margin-top: 8px; }
.platform .fineprint { text-align: left; margin-top: 14px; }
.center-verify { max-width: 720px; margin: 26px auto 0; }
.steps-tight { padding-left: 20px; max-width: none; }
.steps-tight li { padding: 4px 0; }
.account-card h4.ledger-head { margin-top: 16px; }
.btn-danger { border-color: #b34; color: #e77; }
.btn-danger:hover { border-color: #e55; color: #f88; }
.account-card.danger { border-color: rgba(200,60,70,.35); }
.delete-form { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.delete-form input { background: transparent; border: 1px solid var(--border-light); border-radius: 6px; padding: 6px 12px; color: var(--text); }

/* --- Burger menu (mobile nav) --- */
.nav-burger { display: none; background: transparent; border: 1px solid var(--border-light); border-radius: 8px; width: 40px; height: 36px; padding: 8px 9px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-burger span { display: block; height: 2px; background: var(--text); border-radius: 1px; }
@media (max-width: 640px) {
  .nav-burger { display: flex; }
  .nav-links { display: none; position: absolute; top: 60px; right: 12px; left: 12px; z-index: 60;
    background: var(--surface, #16161c); border: 1px solid var(--border); border-radius: 12px;
    padding: 14px; flex-direction: column; align-items: stretch; gap: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 6px 4px; }
}

/* --- Detected-platform card --- */
.platform.detected { border-color: var(--teal); position: relative; }
.platform .ribbon { position: absolute; top: 10px; right: 12px; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.platform .ribbon { background: transparent; padding: 0; left: auto; transform: none; }

/* --- Scroll reveal (JS adds .rv; no-JS shows everything) --- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* --- Responsive --- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-tabs { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .showcase-tab { flex: none; max-width: 260px; }
  .showcase-tab p { display: none; }
  .keys-compare { grid-template-columns: 1fr; }
  .keys-arrow { transform: rotate(90deg); }
  .mirror { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .mini-plans { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 860px) {
  .pricing { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .plan.featured { order: -1; }
}
@media (max-width: 620px) {
  .features { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .nav { padding: 14px 18px; }
  .nav-links { gap: 14px; }
  .section { padding: 52px 20px; }
  .hero { padding: 44px 20px 16px; }
}

/* --- Sign-in (login.ejs, login-code.ejs) ---
   The site had no form styling beyond .delete-form because /login used to be a
   bare redirect into Google. Values reuse the :root tokens above; don't add new
   custom properties here (tests/test_brand_tokens.py owns that block, and
   src/core/brand.py owns the values). */
.auth-section { max-width: 460px; padding-top: 56px; }
.auth-title { text-align: center; margin-bottom: 0; }
.auth-lede { text-align: center; margin: 12px auto 26px; max-width: none; }
.auth-card { padding: 28px 26px; }
.auth-google { text-decoration: none; gap: 10px; }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-label {
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-3);
}
.auth-input {
  width: 100%; background: var(--bg-dark); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 13px 14px; color: var(--text);
  font-family: var(--font); font-size: 1rem;
}
.auth-input::placeholder { color: var(--text-3); }
.auth-input:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,212,170,.16);
}
.auth-form .btn { margin-top: 6px; }
/* The code is the credential: wide tracking so a transcription slip is visible. */
.auth-code-input {
  font-family: var(--mono); font-size: 1.5rem; letter-spacing: .3em;
  text-align: center; padding: 14px;
}
.auth-hint { color: var(--text-3); font-size: .85rem; margin: 4px 0 0; text-align: center; }
.auth-or {
  display: flex; align-items: center; gap: 12px; margin: 18px 0;
  color: var(--text-3); font-size: .82rem;
}
.auth-or::before, .auth-or::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.auth-error {
  border: 1px solid rgba(200,60,70,.4); background: rgba(200,60,70,.1);
  border-radius: var(--radius-sm); padding: 11px 14px; margin: 0 0 18px;
  color: #f4a3a8; font-size: .92rem;
}
.auth-devcode {
  border: 1px dashed var(--border-light); border-radius: var(--radius-sm);
  padding: 11px 14px; margin: 0 0 18px; color: var(--text-2); font-size: .9rem;
}
.auth-devcode strong { font-family: var(--mono); color: var(--amber); }
.auth-alt {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  margin-top: 16px; flex-wrap: wrap;
}
.auth-inline-form { display: contents; }
.auth-legal { margin-top: 22px; }
.auth-legal a { color: var(--text-2); }

/* --- Feature spotlight (marquee new features on the homepage) ---
   Big image + copy, alternating sides. Reuses the :root tokens; no new custom
   properties (tests/test_brand_tokens.py owns that block). */
.spotlight { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 46px; align-items: center; }
.spotlight + .spotlight { margin-top: 84px; }
.spotlight-copy h2 { margin-bottom: .35em; }
.spotlight-copy p { color: var(--text-2); }
.spotlight-copy .plan-feats { margin: 18px 0 24px; }
.spotlight-shot { margin: 0; position: relative; }
.spotlight-shot img {
  width: 100%; height: auto; display: block; border-radius: 12px;
  border: 1px solid var(--border-light); box-shadow: 0 26px 74px -22px rgba(0,0,0,.72);
}
/* Reverse: image on the left, copy on the right. */
.spotlight.reverse .spotlight-copy { order: 2; }
/* "New" flag, sibling to the free/credit chips. */
.new-chip {
  display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px; font-weight: 600;
  color: var(--teal-ink); background: var(--teal); margin-bottom: 14px;
}
.showcase-tab .new-chip { margin: 0 0 0 auto; font-size: .6rem; padding: 2px 7px; }
@media (max-width: 980px) {
  .spotlight { grid-template-columns: 1fr; gap: 26px; }
  .spotlight.reverse .spotlight-copy { order: 0; }
}

/* --- Marketing consent (login checkbox + account email-prefs) --- */
.auth-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 2px;
  cursor: pointer; text-align: left; }
.auth-check input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px;
  accent-color: var(--teal); flex: none; cursor: pointer; }
.auth-check span { font-size: .88rem; color: var(--text-2); line-height: 1.45; }
.prefs-form { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; margin-top: 12px; }
.prefs-saved { color: var(--success); font-size: .9rem; margin: 0 0 6px; }

/* --- Motion & hover polish --- */
/* Download page: breathing room between the four room cards and the hero shot. */
.download-hero { margin-top: 48px; }
/* Platform brand marks in the download card headings (Windows / Apple / Tux). */
.platform .plan-head h3 { display: flex; align-items: center; gap: 9px; }
.platform-logo { width: 22px; height: 22px; flex: none; }
.platform-logo-tux { transform: translateY(1px); }
/* Anchor jumps (e.g. #tour) clear the sticky nav rather than hiding under it. */
[id] { scroll-margin-top: 92px; }
.hero-shot-frame img, .spotlight-shot img {
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease;
}
.hero-shot-frame:hover img, .spotlight-shot:hover img { transform: translateY(-4px); }
.mirror-row { transition: border-color .2s ease, transform .2s ease; }
.mirror-row:hover { border-color: var(--border-light); transform: translateX(3px); }
.mini-plan { transition: transform .16s ease, border-color .16s ease; }
.mini-plan:hover { transform: translateY(-3px); border-color: var(--border-light); }
.withbar-item { transition: color .18s ease; }
.withbar-item:hover { color: var(--text); }
/* Buttons already lift on :active; add a whisker of motion on hover for the
   primary/outline CTAs so they feel alive without being busy. */
.btn-primary:hover, .btn-outline:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .hero-shot-frame img, .spotlight-shot img, .mirror-row, .mini-plan { transition: none; }
  .hero-shot-frame:hover img, .spotlight-shot:hover img,
  .mirror-row:hover, .mini-plan:hover,
  .btn-primary:hover, .btn-outline:hover { transform: none; }
}

/* --- Footer newsletter signup (Listmonk double opt-in) --- */
.footer-signup { max-width: 460px; margin: 0 auto 34px; text-align: center; }
.footer-signup label { display: block; font-size: .95rem; color: var(--text-2); margin-bottom: 10px; }
.footer-signup-row { display: flex; gap: 8px; }
.footer-signup-row input {
  flex: 1; background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 10px 13px; color: var(--text); font-family: var(--font);
}
.footer-signup-row input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,212,170,.16); }
.footer-signup-note { font-size: .8rem; color: var(--text-3); margin: 8px 0 0; }

/* --- Shared sign-in consent row (applies to Google + email) --- */
.auth-consent {
  display: flex; gap: 10px; align-items: flex-start; max-width: 460px;
  margin: 16px auto 0; padding: 0 4px; cursor: pointer; text-align: left;
}
.auth-consent input[type="checkbox"] {
  margin-top: 3px; width: 16px; height: 16px; accent-color: var(--teal); flex: none; cursor: pointer;
}
.auth-consent span { font-size: .88rem; color: var(--text-2); line-height: 1.45; }

/* --- Changelog ------------------------------------------------------- */
.changelog .release { margin-bottom: 22px; padding: 26px 28px; }
.release-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--border);
  padding-bottom: 10px; margin-bottom: 6px;
}
.release-head h2 { font-size: 1.25rem; margin: 0; }
.release-head h2 a { color: var(--text); text-decoration: none; }
.release-head h2 a:hover { color: var(--teal); }
.release-date { color: var(--text-3); font-size: .88rem; }
.release-body h3 {
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); margin: 18px 0 6px;
}
.release-body p { color: var(--text-2); margin: 10px 0; line-height: 1.55; }
.release-body ul { margin: 8px 0 8px 20px; padding: 0; }
.release-body li { color: var(--text-2); margin: 8px 0; line-height: 1.55; }
.release-body li strong { color: var(--text); }
.release-body li ul { margin-top: 6px; }
.release-body code {
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 5px; font-size: .85em;
}
.release-body a { color: var(--teal); }
