/* Mindscast marketing — console-reveal aesthetic.
   Inherits the dashboard's Premium Dark + neo-brutalist 3D language
   (web-dashboard/app/globals.css) and extends it with three console
   tokens per T7_LANDING_PAGE_PLAN.md §2.1. All animation is CSS-only
   enhancement; content renders fully without JS. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --border: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --accent-mint: #10b981;
  --accent-coral: #f43f5e;
  --accent-sun: #f59e0b;
  --border-3d: #070b14;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Console extensions (T7 §2.1) */
  --console-void: #05070f;
  --glow-core: rgba(99, 102, 241, 0.35);
  --speed-ramp: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent-hover); }

/* ───────── shared act layout ───────── */

.act {
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 24px;
}

.chapter-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.act h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.act-lede {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 40px;
}

/* ───────── Act 0 — BOOT ───────── */

.act-boot {
  max-width: none;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, var(--bg-primary) 0%, var(--console-void) 70%);
}

.boot-inner { max-width: 760px; padding: 0 24px; position: relative; z-index: 2; }

.boot-logo {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: 0.5em;
  padding-left: 0.5em; /* optical center vs tracking */
  text-shadow: 0 0 40px var(--glow-core);
  animation: logo-in 0.9s var(--speed-ramp) both;
  margin-bottom: 36px;
}
@keyframes logo-in {
  from { letter-spacing: 1.1em; opacity: 0; }
  to   { letter-spacing: 0.5em; opacity: 1; }
}

.answer-capsule {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.answer-capsule strong { color: var(--text-primary); }

.boot-stats {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.stat-source { display: block; font-size: 11px; margin-top: 4px; opacity: 0.7; }

.boot-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--border-3d);
  border-bottom-width: 5px;
  border-right-width: 3px;
  transition: transform 0.1s var(--speed-ramp), box-shadow 0.15s var(--speed-ramp), border-width 0.1s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px var(--glow-core); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--accent); }
.btn:active {
  transform: translate(2px, 3px);
  border-bottom-width: 2px;
  border-right-width: 1px;
}

/* particle mist — pure CSS, hidden under reduced motion */
.particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.particles::before, .particles::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -20%;
  height: 60%;
  background:
    radial-gradient(2px 2px at 12% 80%, var(--glow-core), transparent),
    radial-gradient(2px 2px at 28% 60%, var(--accent-glow), transparent),
    radial-gradient(3px 3px at 45% 85%, var(--glow-core), transparent),
    radial-gradient(2px 2px at 63% 70%, var(--accent-glow), transparent),
    radial-gradient(2px 2px at 78% 90%, var(--glow-core), transparent),
    radial-gradient(3px 3px at 91% 65%, var(--accent-glow), transparent);
  animation: drift 14s linear infinite;
  opacity: 0.7;
}
.particles::after { animation-duration: 22s; animation-delay: -8s; transform: scaleX(-1); }
@keyframes drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-55vh); }
}
@media (prefers-reduced-motion: reduce) { .particles { display: none; } }

.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: var(--text-muted); font-size: 20px;
  animation: bob 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ───────── Act 1 — REVEAL ───────── */

.graph-stage {
  position: relative;
  background: var(--console-void);
  border: 2px solid var(--border-3d);
  border-bottom-width: 5px;
  border-radius: var(--radius-lg);
  padding: 18px 16px 14px;
  margin-bottom: 40px;
  overflow: hidden;
}
.graph-stage svg { width: 100%; height: auto; display: block; }

.graph-toolbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 2px 8px;
  fill: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.narrative-edge {
  stroke: rgba(100, 116, 139, 0.55);
  stroke-width: 1.35;
  fill: none;
  transition: opacity 0.16s, stroke 0.16s, stroke-width 0.16s;
}
.narrative-edge.has { stroke: #334155; }
.narrative-edge.targets { stroke: #a78bfa; }
.narrative-edge.pain { stroke: #fb7185; }
.narrative-edge.solves { stroke: #22d3ee; stroke-dasharray: 7 5; }
.narrative-edge.proves { stroke: #22c55e; }
.narrative-edge.diff,
.narrative-edge.vs { stroke: #f59e0b; stroke-dasharray: 3 4; }
.narrative-edge.forbidden { stroke: var(--accent-coral); stroke-dasharray: 2 5; }
.narrative-edge.dimmed { opacity: 0.12; }
.narrative-edge.focused {
  opacity: calc(1 - (var(--focus-depth, 0) * 0.18));
  stroke-width: 2.6;
  filter: drop-shadow(0 0 8px rgba(99,102,241,0.45));
}

.narrative-node { cursor: grab; transition: opacity 0.16s; }
.narrative-node.dragging { cursor: grabbing; }
.narrative-node.dimmed { opacity: 0.24; }
.narrative-node.focused { opacity: calc(1 - (var(--focus-depth, 0) * 0.12)); }
.narrative-node.focused .node-shell {
  stroke-width: 2.8;
  filter: drop-shadow(0 0 10px rgba(129, 140, 248, 0.45)) drop-shadow(0 9px 18px rgba(0, 0, 0, 0.35));
}
.node-halo {
  display: none;
  opacity: 0;
  transform-origin: center;
  transition: opacity 0.16s, transform 0.16s;
  fill: rgba(99, 102, 241, 0.17);
  stroke: none;
}
.node-shell {
  fill: var(--bg-secondary);
  stroke: var(--border-3d);
  stroke-width: 2;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}
.narrative-node.product .node-shell { fill: #111827; stroke: #f8fafc; }
.narrative-node.feature .node-shell { stroke: #bef264; }
.narrative-node.audience_segment .node-shell { stroke: #a78bfa; }
.narrative-node.pain_point .node-shell { stroke: #fb7185; }
.narrative-node.proof_point .node-shell { stroke: #22c55e; stroke-dasharray: 4 3; }
.narrative-node.differentiator .node-shell { stroke: #f59e0b; }
.narrative-node.competitor .node-shell { stroke: #94a3b8; }
.narrative-node.forbidden .node-shell { stroke: var(--accent-coral); stroke-dasharray: 3 4; }
.node-label {
  fill: var(--text-primary);
  font-size: 12px;
  font-weight: 750;
  pointer-events: none;
  text-anchor: middle;
}
.node-type {
  fill: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-anchor: middle;
  text-transform: uppercase;
  pointer-events: none;
}
.narrative-node.product .node-label,
.narrative-node.product .node-type { fill: #fff; }

.graph-inspector {
  width: 100%;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 3px solid var(--border-3d);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  margin-top: 10px;
}
.inspector-kicker {
  margin-bottom: 5px;
  color: var(--accent-mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.inspector-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.inspector-body {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.inspector-chain {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--accent-mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.45;
}

.graph-caption {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

.ports { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.port {
  background: var(--bg-card);
  border: 2px solid var(--border-3d);
  border-bottom-width: 4px;
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: transform 0.25s var(--speed-ramp), box-shadow 0.25s var(--speed-ramp);
}
.port:hover { transform: translateY(-4px) rotateX(1.5deg); box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 30px var(--accent-glow); }
.port h3 { font-size: 16px; margin-bottom: 8px; }
.port p { font-size: 13.5px; color: var(--text-secondary); }
.port-hero { border-color: var(--accent); box-shadow: 0 0 24px var(--accent-glow); }
.port-hero:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 36px var(--glow-core); }
.port-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  background: var(--accent); color: #fff;
  border-radius: 999px; padding: 3px 9px; margin-left: 8px;
  vertical-align: middle; text-transform: uppercase;
}

/* ───────── Act 2 — POWER ───────── */

.act-power { max-width: 880px; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--console-void);
  border: 2px solid var(--border-3d);
  border-bottom-width: 5px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.spec-table th, .spec-table td { padding: 14px 18px; text-align: left; }
.spec-table thead th {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-3d);
}
.spec-table tbody tr + tr td { border-top: 1px solid rgba(51, 65, 85, 0.5); }
.spec-table td:first-child { color: var(--text-secondary); font-size: 14px; }
.spec-table td:last-child { color: var(--text-muted); font-size: 12.5px; }

.spec-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}
.spec-num[data-punch] { opacity: 0; transform: scale(1.18); transition: opacity 0.5s var(--speed-ramp), transform 0.5s var(--speed-ramp); }
.spec-num.punched { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .spec-num[data-punch] { opacity: 1; transform: none; } }

.power-note {
  margin-top: 28px;
  font-size: 14.5px;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

/* ───────── Act 3 — TITLES ───────── */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }

.tile {
  background: var(--bg-card);
  border: 2px solid var(--border-3d);
  border-bottom-width: 5px;
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform 0.25s var(--speed-ramp), box-shadow 0.25s var(--speed-ramp);
}
.tile:hover { transform: translateY(-4px) rotateX(1.5deg); box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 30px var(--accent-glow); }

.tile-platform {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 12px;
}
.tile-angle {
  margin-bottom: 10px;
  color: var(--accent-mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tile-body { font-size: 14.5px; margin-bottom: 16px; }
.tile-grounding {
  font-size: 11.5px;
  color: var(--text-muted);
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  padding-top: 12px;
}
.tile-grounding code {
  font-size: 11px;
  background: var(--console-void);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-mint);
}

/* ───────── Act 4 — EDITIONS ───────── */

.editions {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 760px;
}

.billing-cycle {
  --cycle-index: 0;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  justify-self: start;
  position: relative;
  isolation: isolate;
  min-width: 292px;
  padding: 4px;
  background: var(--console-void);
  border: 2px solid var(--border-3d);
  border-bottom-width: 4px;
  border-right-width: 3px;
  border-radius: 12px;
}
.billing-cycle::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-secondary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transform: translateX(calc(var(--cycle-index) * 100%));
  transition: transform 0.24s var(--speed-ramp), background 0.2s var(--speed-ramp);
}
.billing-cycle.is-annual { --cycle-index: 1; }
.billing-cycle-option {
  position: relative;
  z-index: 1;
  min-height: 38px;
  padding: 7px 16px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.billing-cycle-option span {
  margin-left: 5px;
  color: var(--accent-mint);
  font-size: 11px;
}
.billing-cycle-option.active {
  color: var(--text-primary);
}
.billing-cycle-option:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

.edition {
  background: var(--bg-card);
  border: 2px solid var(--border-3d);
  border-bottom-width: 6px;
  border-right-width: 4px;
  border-radius: 12px;
  padding: 28px;
  position: relative;
}
.edition-hero {
  border-right-color: var(--accent);
  border-bottom-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}
.edition-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.edition-kicker {
  margin-bottom: 4px;
  color: var(--accent-mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.edition h3 { max-width: 380px; margin: 0; font-size: 20px; }
.edition-price { flex-shrink: 0; margin: 0; font-size: 38px; font-weight: 800; line-height: 1.1; }
.edition-price span { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.edition-billing-note { margin-top: 10px; color: var(--text-muted); font-size: 12.5px; }
.edition-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0;
}
.edition-fact { min-width: 0; padding: 0 18px; }
.edition-fact:first-child { padding-left: 0; }
.edition-fact:last-child { padding-right: 0; }
.edition-fact + .edition-fact { border-left: 1px solid var(--border); }
.edition-fact > span {
  display: block;
  margin-bottom: 7px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.edition-fact strong { display: block; color: var(--text-primary); font-size: 14px; line-height: 1.4; }
.edition-fact small { display: block; margin-top: 5px; color: var(--text-muted); font-size: 11.5px; line-height: 1.45; }
.trial-commitment {
  margin-bottom: 18px;
  padding: 13px 15px;
  border-left: 3px solid var(--accent-mint);
  background: var(--console-void);
}
.trial-commitment p { margin: 0; color: var(--text-secondary); font-size: 12.5px; }
.trial-commitment p + p { margin-top: 2px; }
.trial-commitment strong { color: var(--text-primary); font-size: 13.5px; }
.edition-cta { width: 100%; text-align: center; }

/* ───────── conversion elements (T7.5 CRO) ───────── */

.cta-microcopy {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 12px;
}
.boot-cta + .cta-microcopy { text-align: center; }
.edition .cta-microcopy { margin-top: 10px; text-align: center; }

.cta-band {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px;
  text-align: center;
  background: linear-gradient(180deg, transparent, var(--console-void) 30%, var(--console-void) 70%, transparent);
}
.cta-band-lede {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  margin-bottom: 20px;
}
.cta-band-lede em { color: var(--accent-hover); font-style: normal; }

.editions-anchor {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 36px;
}
.editions-anchor strong { color: var(--text-primary); }

.free-strip {
  margin-top: 32px;
  max-width: 640px;
  font-size: 14px;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent-mint);
  padding-left: 16px;
}
.free-strip strong { color: var(--accent-mint); }

/* ───────── FAQ ───────── */

.act-faq details {
  background: var(--bg-card);
  border: 2px solid var(--border-3d);
  border-bottom-width: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  padding: 0;
}
.act-faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  position: relative;
}
.act-faq summary::-webkit-details-marker { display: none; }
.act-faq summary::after {
  content: "+"; position: absolute; right: 20px; color: var(--text-muted);
  font-weight: 400; font-size: 20px; line-height: 1;
}
.act-faq details[open] summary::after { content: "–"; }
.act-faq details p { padding: 0 20px 18px; font-size: 14.5px; color: var(--text-secondary); }

/* ───────── footer ───────── */

.site-footer {
  text-align: center;
  padding: 64px 24px 48px;
  border-top: 2px solid var(--border-3d);
  background: var(--console-void);
}
.site-footer > p:first-child { font-weight: 800; letter-spacing: 0.4em; padding-left: 0.4em; margin-bottom: 10px; }
.footer-line { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 6px; }
.footer-meta { font-size: 12px; color: var(--text-muted); }
.footer-copyright { margin-top: 14px; font-size: 12px; color: var(--text-muted); }

/* ───────── returning-user entry ───────── */

.signin-entry {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 20;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s;
}
.signin-entry:hover { color: var(--text-primary); border-color: var(--accent); }

/* ───────── chapter indicator ───────── */

.chapters {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px;
  z-index: 10;
}
.chapters a {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, transform 0.2s;
}
.chapters a.active { background: var(--accent); transform: scale(1.4); box-shadow: 0 0 10px var(--glow-core); }
@media (max-width: 720px) { .chapters { display: none; } }

@media (max-width: 720px) {
  .act { padding: 76px 20px; }
  .act-boot { min-height: 92svh; }
  .boot-inner { width: 100%; padding: 0 20px; }
  .boot-logo {
    font-size: clamp(26px, 10vw, 38px);
    letter-spacing: 0.28em;
    padding-left: 0.28em;
  }
  @keyframes logo-in {
    from { letter-spacing: 0.55em; opacity: 0; }
    to   { letter-spacing: 0.28em; opacity: 1; }
  }
  .answer-capsule { font-size: 16px; }
  .boot-stats { font-size: 11px; white-space: normal; }
  .boot-cta { flex-direction: column; align-items: center; }
  .boot-cta .btn { width: min(100%, 260px); }
  .cta-microcopy { max-width: 280px; margin-left: auto; margin-right: auto; }
  .graph-toolbar { flex-direction: column; }
  .spec-table,
  .spec-table thead,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }
  .spec-table thead { display: none; }
  .spec-table tr { padding: 14px 16px; }
  .spec-table th,
  .spec-table td { padding: 0; }
  .spec-table tbody tr + tr { border-top: 1px solid rgba(51, 65, 85, 0.5); }
  .spec-table tbody tr + tr td { border-top: 0; }
  .spec-table td:first-child {
    margin-bottom: 4px;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .spec-table td:last-child { margin-top: 4px; }
  .spec-num {
    font-size: 20px;
    white-space: normal;
  }
  .billing-cycle { width: 100%; justify-self: stretch; }
  .billing-cycle-option { padding-left: 8px; padding-right: 8px; }
  .edition { padding: 22px 18px; }
  .edition-heading { align-items: flex-end; gap: 14px; }
  .edition h3 { font-size: 17px; }
  .edition-price { font-size: 30px; }
  .edition-facts { grid-template-columns: 1fr; gap: 16px; }
  .edition-fact { padding: 0; }
  .edition-fact + .edition-fact { padding-top: 16px; border-top: 1px solid var(--border); border-left: 0; }
}

/* ============================================================================
   Legal document pages (privacy.html, terms.html) — shared layout.
   ============================================================================ */
.doc-wrap { max-width: 1080px; margin: 0 auto; padding: 64px 24px 96px;
            display: grid; grid-template-columns: 220px 1fr; gap: 56px; }
.doc-head { grid-column: 1 / -1; border-bottom: 1px solid var(--border); padding-bottom: 28px; margin-bottom: 8px; }
.doc-eyebrow { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
               font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-mint); }
.doc-head h1 { font-size: clamp(30px, 5vw, 44px); margin: 10px 0 6px; color: var(--text-primary); line-height: 1.1; }
.doc-dates { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--text-muted); }
.doc-back { display: inline-block; margin-bottom: 20px; font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.doc-back:hover { color: var(--accent-hover); }

.doc-toc { position: sticky; top: 32px; align-self: start; font-size: 13px; }
.doc-toc p { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px;
             letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; }
.doc-toc a { display: block; padding: 6px 0 6px 12px; color: var(--text-secondary); text-decoration: none; border-left: 2px solid transparent; }
.doc-toc a:hover { color: var(--text-primary); border-left-color: var(--accent); }

.doc-body { min-width: 0; }
.doc-body section { margin-bottom: 44px; scroll-margin-top: 24px; }
.doc-body h2 { font-size: 21px; color: var(--text-primary); margin: 0 0 14px; display: flex; align-items: baseline; gap: 10px; }
.doc-body h2 .n { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--accent); }
.doc-body h3 { font-size: 15px; color: var(--text-primary); margin: 22px 0 8px; }
.doc-body p, .doc-body li { color: var(--text-secondary); line-height: 1.7; font-size: 15px; }
.doc-body ul { padding-left: 20px; margin: 10px 0; }
.doc-body li { margin: 6px 0; }
.doc-body strong { color: var(--text-primary); font-weight: 600; }
.doc-body a { color: var(--accent-hover); }

.rights-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
               padding: 24px; margin: 4px 0 40px; box-shadow: 0 0 40px var(--accent-glow); }
.rights-card h2 { margin-top: 0; }
/* CTA buttons are "into-the-app" transition elements: they wear the app's 3D
   button idiom (hard offset shadow + press-on-hover) so the jump from the
   marketing-skinned legal page into the product reads as one continuous system.
   See vps-context/LEGAL_PAGES_UX.md §3. */
.rights-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.rights-actions a { font-size: 13px; font-weight: 700; padding: 10px 18px;
                    border-radius: var(--radius-md); text-decoration: none;
                    border: 2px solid var(--border-3d);
                    box-shadow: 3px 3px 0 var(--border-3d);
                    transition: transform 0.12s var(--speed-ramp), box-shadow 0.12s var(--speed-ramp); }
.rights-actions a:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--border-3d); }
.a-export { background: var(--accent-mint); color: #05140d; }
.a-delete { background: var(--bg-card); color: var(--accent-coral); border-color: var(--accent-coral); }
.a-delete:hover { background: var(--accent-coral); color: #fff; }

.doc-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.doc-table th, .doc-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc-table th { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px;
                letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.doc-table td { color: var(--text-secondary); line-height: 1.5; }
.doc-table td strong { color: var(--text-primary); }

@media (max-width: 820px) {
  .doc-wrap { grid-template-columns: 1fr; gap: 8px; padding: 40px 20px 72px; }
  .doc-toc { display: none; }
}
