/* ==========================================================================
   Backends Backup — styles
   Identity: ANSI-shadow terminal logo, strict monochrome.
   Glyph language: ■ solid (extension / selected) · □ outline (scanning)
   · ◩ split (answer access / found).
   ========================================================================== */

:root {
  --bg: #000;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-3: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);

  --text: #fafafa;
  --ink: #ededed; /* logo */
  --text-2: rgba(255, 255, 255, 0.62);
  --text-3: rgba(255, 255, 255, 0.4);

  --radius-xl: 22px;
  --radius-lg: 14px;
  --radius: 10px;

  --ease-fluid: cubic-bezier(0.3, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1160px;
  --gutter: 16px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
b, strong { font-weight: 600; }
[id] { scroll-margin-top: 92px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
::selection { background: #fff; color: #000; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 16px; }

.icon {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Glyphs — ■ solid, □ outline, ◩ split. ext/access are the product-line aliases. */
.glyph {
  display: inline-block; width: 10px; height: 10px; flex: none;
  border: 1.5px solid currentColor;
}
.glyph--red, .glyph--ext { background: currentColor; }
.glyph--blue { background: transparent; }
.glyph--purple, .glyph--access { background: linear-gradient(135deg, currentColor 50%, transparent 50%); }
.glyph--lg { width: 22px; height: 22px; border-width: 2px; }

/* ==========================================================================
   Intro overlay
   ========================================================================== */
.intro { display: none; }
.intro-pending .intro {
  display: block;
  position: fixed; inset: 0; z-index: 100;
  background: #000;
}
.intro-quick .intro { display: none !important; }
.intro-pending:not(.intro-quick) body { overflow: hidden; }

.intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__skip {
  position: absolute; right: 20px; bottom: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3); padding: 8px 10px; border-radius: 8px;
  transition: color 0.2s;
}
.intro__skip:hover { color: var(--text); }

/* Held state while the intro plays */
.intro-pending .logo,
.intro-pending [data-pop] { opacity: 0; }
.intro-pending .nav__links,
.intro-pending .nav__cta,
.intro-pending .nav__toggle { opacity: 0; }

/* Release: hard stepped pops, 78ms apart */
.intro-in [data-pop] {
  transition: opacity 180ms steps(1, end);
  transition-delay: calc(var(--i, 0) * 78ms);
}
.intro-in .nav__links,
.intro-in .nav__cta,
.intro-in .nav__toggle { transition: opacity 400ms ease-out; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background-color 0.25s var(--ease-fluid), border-color 0.25s var(--ease-fluid),
    color 0.25s var(--ease-fluid), transform 0.25s var(--ease-fluid);
}
.btn .icon { width: 15px; height: 15px; }
.btn--primary { background: var(--text); color: #000; }
.btn--primary:hover { background: #fff; transform: translateY(-1px); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.2); }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; }

/* ==========================================================================
   Logo
   ========================================================================== */
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); flex: none;
}
.logo__mark { height: 20px; width: auto; }
.logo__tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--text-2); }
.inline-logo { height: 1em; width: auto; color: var(--ink); }

/* ==========================================================================
   Navigation — full-width terminal bar, [ bracketed ] active tab
   ========================================================================== */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.nav-wrap.is-scrolled {
  background: rgba(0, 0, 0, 0.8);
  border-bottom-color: var(--line-soft);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav {
  max-width: var(--max); margin: 0 auto; height: 64px;
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--gutter);
}
.nav__links { display: flex; gap: 10px; margin-left: auto; }
.nav__links a {
  position: relative; display: block; padding: 8px 14px;
  font-size: 13.5px; color: var(--text-2);
  transition: color 0.25s var(--ease-fluid);
}
.nav__links a::before,
.nav__links a::after {
  position: absolute; top: 7px;
  font-family: var(--mono); color: var(--text); opacity: 0;
  transition: opacity 0.2s steps(1, end);
}
.nav__links a::before { content: "["; left: 1px; }
.nav__links a::after { content: "]"; right: 1px; }
.nav__links a:hover { color: var(--text); }
.nav__links a[aria-current] { color: var(--text); }
.nav__links a[aria-current]::before,
.nav__links a[aria-current]::after { opacity: 1; }
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none; margin-left: auto;
  width: 40px; height: 40px; border-radius: 8px;
  place-items: center; border: 1px solid var(--line);
}
.nav__toggle-bars,
.nav__toggle-bars::before {
  display: block; width: 16px; height: 1.5px; background: var(--text);
  transition: transform 0.3s var(--ease-fluid);
}
.nav__toggle-bars { position: relative; transform: translateY(-3px); }
.nav__toggle-bars::before { content: ""; position: absolute; top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { transform: translateY(0) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }

.mobile-menu {
  margin: 0 var(--gutter) 12px;
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 12px 14px; border-radius: 8px; color: var(--text-2); }
.mobile-menu a:not(.btn):hover,
.mobile-menu a[aria-current] { background: var(--surface-2); color: var(--text); }
.mobile-menu .btn { margin-top: 8px; }

/* ==========================================================================
   Shared type
   ========================================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 22px; padding: 5px 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface);
}
.status-dot {
  width: 6px; height: 6px; background: var(--text);
  animation: blink 1.2s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

/* ==========================================================================
   Hero (left-aligned, terminal-editorial)
   ========================================================================== */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: 152px var(--gutter) 48px;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px;
}
.hero__title {
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 500; line-height: 0.98; letter-spacing: -0.045em;
}
.hero__line { display: block; }
.hero__line--dim { color: var(--text-3); }
.hero__sub {
  max-width: 560px; margin-top: 26px;
  color: var(--text-2); font-size: 16.5px; line-height: 1.6;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__actions--center { justify-content: center; }

.hero__plans {
  display: grid; min-width: 270px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  font-family: var(--mono); font-size: 12.5px;
}
.hero__plans li { border-bottom: 1px solid var(--line-soft); }
.hero__plans li:last-child { border-bottom: 0; }
.hero__plans a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 12px;
  padding: 13px 16px;
  transition: background-color 0.2s var(--ease-fluid);
}
.hero__plans a:hover { background: var(--surface-2); }
.hero__plans b { font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.hero__plans em { font-style: normal; color: var(--text); }
.hero__plans span:last-child { grid-column: 2 / 4; color: var(--text-3); }
.hero__plans .glyph { grid-row: span 2; width: 12px; height: 12px; }

/* ==========================================================================
   Extension demo
   ========================================================================== */
.demo-section { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.demo {
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: #050505; overflow: hidden;
  font-family: var(--mono);
}
.demo__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  font-size: 11.5px; letter-spacing: 0.04em; color: var(--text-3);
}
.demo__dots { display: flex; gap: 6px; }
.demo__dots i { width: 8px; height: 8px; background: rgba(255, 255, 255, 0.16); }
.demo__url {
  flex: 1; min-width: 0; padding: 6px 12px; border-radius: 6px;
  border: 1px solid var(--line-soft); background: var(--surface);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.demo__state { display: inline-flex; align-items: center; gap: 8px; color: var(--text); letter-spacing: 0.08em; white-space: nowrap; }
.demo__state i { width: 6px; height: 6px; background: var(--text); animation: blink 1.2s steps(1, end) infinite; }

.demo__stage { display: grid; grid-template-columns: 1fr 300px; gap: 14px; padding: 14px; }

.demo__quiz {
  position: relative; overflow: hidden;
  padding: 28px 28px 24px; border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft); background: #0a0a0a;
  font-family: var(--font);
}
/* scanline while the extension reads the question */
.demo__quiz::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: #fff; box-shadow: 0 0 18px 2px rgba(255, 255, 255, 0.35);
  opacity: 0; pointer-events: none;
}
.demo__quiz.is-scanning::after { opacity: 1; animation: scan 1.1s var(--ease-fluid) forwards; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(320px); opacity: 0; } }
.demo__subject {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
}
.demo__q { margin-top: 10px; min-height: 2.5em; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.demo__options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.demo__options li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14.5px; color: var(--text-2);
  transition: background-color 0.15s steps(1, end), color 0.15s steps(1, end), border-color 0.15s steps(1, end);
}
.demo__options li span {
  width: 24px; height: 24px; flex: none; display: grid; place-items: center;
  border: 1.5px solid currentColor; border-radius: 4px;
  font-family: var(--mono); font-size: 11.5px;
}
/* ◩ found */
.demo__options li.is-found { border-color: #fff; color: var(--text); }
.demo__options li.is-found span { background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 50%, transparent 50%); }
/* ■ selected */
.demo__options li.is-picked { background: var(--text); border-color: var(--text); color: #000; }
.demo__options li.is-picked span { background: #000; border-color: #000; color: #fff; }

.demo__ext {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: #080808;
  font-size: 12px;
}
.demo__ext-head {
  display: flex; justify-content: space-between; padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.demo__ext-head span:last-child { color: var(--text-3); }
.demo__log { flex: 1; display: grid; align-content: end; gap: 6px; min-height: 150px; padding: 14px; color: var(--text-3); }
.demo__log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo__log li:last-child { color: var(--text-2); }
.demo__log b { color: var(--text); font-weight: 500; }
.demo__ext-foot {
  display: flex; justify-content: space-between; padding: 10px 14px;
  border-top: 1px solid var(--line-soft); color: var(--text-3);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.demo__ext-foot b { color: var(--text); font-weight: 500; }

.demo__hud {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  margin: 0 14px; padding: 14px 16px;
  border: 1px solid var(--line-soft); border-radius: 10px; background: #080808;
  font-size: 12.5px;
}
.demo__step { color: var(--text-3); }
.demo__msg { display: flex; flex-wrap: wrap; gap: 4px 14px; min-width: 0; }
.demo__msg b { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.demo__msg span { color: var(--text-2); }
.demo__cells { display: flex; gap: 4px; }
.demo__cells i { width: 14px; height: 14px; border: 1.5px solid rgba(255, 255, 255, 0.25); }
.demo__cells i.is-on { background: #fafafa; border-color: #fafafa; }

.demo__legend {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding: 14px 16px 16px;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3);
}
.demo__legend li { display: inline-flex; align-items: center; gap: 8px; }
.demo__legend .glyph { color: var(--text-2); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { max-width: var(--max); margin: 0 auto; padding: 136px var(--gutter) 0; }
.section__head { margin-bottom: 44px; max-width: 640px; }
.section__head .eyebrow { margin-bottom: 18px; }
.section__head h2 {
  font-size: clamp(30px, 4.2vw, 48px); font-weight: 500;
  letter-spacing: -0.04em; line-height: 1.05;
}
.section__head p { margin-top: 14px; color: var(--text-2); max-width: 56ch; }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__copy h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.08; }
.split__copy p { margin-top: 16px; color: var(--text-2); }

.flow {
  position: relative; margin-top: 72px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.flow::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 4px, transparent 4px 8px);
}
.flow li { position: relative; display: grid; gap: 4px; padding-top: 28px; }
.flow__dot { position: absolute; top: 0; left: 0; width: 13px; height: 13px; background: #000; border: 1.5px solid var(--text); }
.flow li:nth-child(2) .flow__dot { background: var(--text); }
.flow li:nth-child(4) .flow__dot,
.flow li:nth-child(5) .flow__dot { background: linear-gradient(135deg, var(--text) 50%, #000 50%); }
.flow b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.flow span { font-size: 13.5px; color: var(--text-2); }

.numbers {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-soft); border-radius: var(--radius-xl); overflow: hidden;
}
.number { padding: 28px 24px; border-right: 1px solid var(--line-soft); }
.number:last-child { border-right: 0; }
.number b { display: block; font-size: 36px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.number span { display: block; margin-top: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }

/* Terminal panel */
.terminal {
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: #070707; overflow: hidden;
}
.terminal__bar {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
}
.terminal__bar i { width: 8px; height: 8px; background: rgba(255, 255, 255, 0.16); }
.terminal__bar span { margin-left: 8px; }
.terminal__body {
  padding: 28px 24px; display: grid; justify-items: center; gap: 18px;
  font-family: var(--mono); font-size: 13px; color: var(--ink);
}
.terminal__logo-wrap { display: block; width: 100%; max-width: 420px; }
.terminal__logo-wrap .inline-logo { width: 100%; height: auto; }
.terminal__tag { letter-spacing: 0.32em; }
.terminal__rule { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 340px; color: var(--text-2); }
.terminal__rule::before, .terminal__rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.terminal__lines { margin: 0; white-space: pre; line-height: 1.75; color: var(--text-2); font: inherit; text-align: left; }
.terminal__lines b { color: var(--text); font-weight: 500; }

/* Services & Pricing — one panel per product line, plan cards inside */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-group {
  display: flex; flex-direction: column; gap: 18px;
  padding: 12px; border-radius: var(--radius-xl);
  border: 1px solid var(--line); background: #050505;
}
.plan-group__head { display: flex; gap: 14px; padding: 12px 12px 0; }
.plan-group__icon {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2);
}
.plan-group__head h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.plan-group__head p { margin-top: 4px; font-size: 13.5px; color: var(--text-2); }
.plan-group__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }

.plan {
  display: flex; flex-direction: column;
  padding: 22px; border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft); background: var(--surface);
  transition: border-color 0.25s var(--ease-fluid);
}
.plan:hover { border-color: rgba(255, 255, 255, 0.22); }
.plan--featured, .plan--featured:hover { border-color: var(--text); }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.plan__name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.plan__badge {
  padding: 3px 8px; border-radius: 5px;
  background: var(--text); color: #000;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin-top: 16px; }
.plan__price b { font-size: clamp(26px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.plan__price span { font-size: 13px; color: var(--text-3); }
.plan__note { margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.plan__features { display: grid; gap: 9px; margin: 20px 0 24px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.plan__features li { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.plan__features .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--text); }
.plan__cta { margin-top: auto; width: 100%; }
.plan__cta .icon { width: 13px; height: 13px; }

/* Order steps */
.order { margin-top: 64px; }
.order__label { margin-bottom: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step { position: relative; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line-soft); background: var(--surface); }
.step__num { position: absolute; top: 22px; right: 24px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.step__icon {
  width: 38px; height: 38px; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2);
}
.step h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.015em; }
.step p { margin-top: 6px; font-size: 13.5px; color: var(--text-2); }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 40px; }
.faq__title {
  margin-bottom: 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3);
}
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; width: 14px; height: 14px; flex: none; }
.faq__plus::before, .faq__plus::after {
  content: ""; position: absolute; left: 0; top: 6.25px; width: 14px; height: 1.5px; background: var(--text-2);
  transition: transform 0.35s var(--ease-fluid);
}
.faq__plus::after { transform: rotate(90deg); }
.faq__item[open] .faq__plus::after { transform: rotate(0deg); }
.faq__a { padding: 0 32px 20px 0; color: var(--text-2); }

/* Terms / prose (terms.html) */
.page-hero { max-width: var(--max); margin: 0 auto; padding: 152px var(--gutter) 24px; }
.page-hero__title { font-size: clamp(36px, 5.4vw, 64px); font-weight: 500; line-height: 1; letter-spacing: -0.045em; }
.section--tight { padding-top: 56px; }
.legal { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; display: grid; gap: 2px; }
.toc p { margin-bottom: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.toc a { padding: 6px 10px; border-radius: 6px; font-size: 13.5px; color: var(--text-2); transition: background-color 0.2s, color 0.2s; }
.toc a:hover { background: var(--surface-2); color: var(--text); }
.prose { max-width: 70ch; color: var(--text-2); font-size: 15.5px; line-height: 1.75; }
.prose h2 { margin: 48px 0 12px; color: var(--text); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 14px; }
.prose ul { margin-top: 14px; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: "▪"; position: absolute; left: 2px; color: var(--text-3); }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.updated { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }

/* CTA */
.cta { max-width: var(--max); margin: 136px auto 0; padding: 0 var(--gutter); }
.cta__card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 80px 28px; text-align: center;
  border-radius: var(--radius-xl); border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 130%, rgba(255, 255, 255, 0.14), transparent 60%), #050505;
}
/* Block-character cell pattern — echoes the █ cells of the logo */
.cta__pattern {
  position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(0deg, #050505 0 3px, transparent 3px 20px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 8px, transparent 8px 10px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 10%, #000);
  mask-image: linear-gradient(to bottom, transparent 10%, #000);
}
.cta__card h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.cta__card p { margin: 14px auto 0; max-width: 46ch; color: var(--text-2); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  display: block; margin-top: 136px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(to bottom, #0a0a0a, #000);
}
.footer__top {
  max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 40px;
  display: flex; justify-content: space-between; gap: 48px;
}
.footer__brand { max-width: 320px; }
.footer__logo { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink); }
.footer__mark { width: 200px; height: auto; }
.footer__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--text-2); }
.footer__brand p { margin-top: 18px; font-size: 13.5px; color: var(--text-3); }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(140px, auto)); gap: 56px; }
.footer__cols h2 {
  margin-bottom: 14px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3);
}
.footer__cols div { display: flex; flex-direction: column; gap: 10px; }
.footer__cols a { font-size: 13.5px; color: var(--text-2); transition: color 0.2s; }
.footer__cols a:hover { color: var(--text); }
.footer__bottom {
  max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 28px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  font-size: 12px; color: var(--text-3);
}
.footer__status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); letter-spacing: 0.06em; }
.footer__status i { width: 6px; height: 6px; background: var(--text); animation: blink 1.2s steps(1, end) infinite; }

/* ==========================================================================
   Scroll reveal (JS only)
   ========================================================================== */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.intro-pending .reveal { opacity: 0 !important; transform: translateY(64px) !important; }
.intro-in .demo-section.reveal { transition-duration: 1.1s; transition-delay: 0.6s; }
.plans .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.steps .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero__plans { grid-template-columns: 1fr 1fr; min-width: 0; }
  .hero__plans li:nth-child(odd) { border-right: 1px solid var(--line-soft); }
  .hero__plans li:nth-last-child(-n + 2) { border-bottom: 0; }
  .demo__stage { grid-template-columns: 1fr; }
  .demo__log { min-height: 0; }
  .split { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .number:nth-child(2) { border-right: 0; }
  .number:nth-child(-n + 2) { border-bottom: 1px solid var(--line-soft); }
  .flow { grid-template-columns: 1fr; gap: 20px; }
  .flow::before {
    left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.3) 0 4px, transparent 4px 8px);
  }
  .flow li { padding: 0 0 0 30px; }
  .footer__top { flex-direction: column; }
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
}

@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
  .steps { grid-template-columns: 1fr; }
  .demo__hud { grid-template-columns: auto 1fr; }
  .demo__cells { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero { padding-top: 120px; }
  .hero__plans { grid-template-columns: 1fr; }
  .hero__plans li { border-right: 0 !important; border-bottom: 1px solid var(--line-soft) !important; }
  .hero__plans li:last-child { border-bottom: 0 !important; }
  .demo__dots { display: none; }
  .demo__state { font-size: 10.5px; }
  .demo__stage { padding: 10px; }
  .demo__quiz { padding: 20px 16px 16px; }
  .demo__q { font-size: 17px; }
  .demo__options { grid-template-columns: 1fr; }
  .demo__hud { margin: 0 10px; }
  .plan-group__cards { grid-template-columns: 1fr; }
  .footer__cols { gap: 32px; }
  .terminal__body { font-size: 11px; padding: 22px 14px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}
