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

/* ══════════════════════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════════════════════ */
:root {
  --bg:      #050508;
  --surface: #0c0c0f;
  --s2:      #131316;
  --s3:      #1a1a1e;
  --s4:      #222226;

  --border:  #1e1e22;
  --border2: #2c2c31;
  --border3: #3a3a40;

  --text:      #f0f0f0;
  --secondary: #a0a0a8;
  --muted:     #606068;
  --faint:     #3a3a42;

  --accent:      #ffffff;
  --accent-dim:  rgba(255,255,255,0.08);
  --accent-tint: rgba(255,255,255,0.04);

  --lime:      #c8f060;
  --lime-tint: rgba(200,240,96,0.08);
  --cyan:      #60d0f0;
  --red:       #f04040;
  --gold:      #c8f060;
  --blue:      #60d0f0;

  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --mono:  'DM Mono', 'Courier New', monospace;

  --max-w: 1200px;
  --px:    2.5rem;
  --nav-h: 60px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -999px; left: 1rem;
  background: var(--accent); color: var(--bg);
  padding: 0.5rem 1rem; border-radius: 6px;
  font-size: 0.875rem; font-weight: 600; z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ══════════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: #050508;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo em, .logo span { color: var(--gold); font-style: normal; }
.logo svg { flex-shrink: 0; }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-links ul {
  display: flex; align-items: center; gap: 0.25rem; list-style: none;
}
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.875rem; padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--accent-dim); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 7px !important;
  margin-left: 0.5rem;
  text-decoration: none;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.88 !important; background: var(--accent) !important; }

/* hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--muted);
  border-radius: 2px;
  transition: background 0.2s, transform 0.25s, opacity 0.2s;
  transform-origin: center;
}
.nav-hamburger:hover span { background: var(--text); }
.nav.open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav.open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════
   MAIN WRAPPER
══════════════════════════════════════════════════════════════ */
.main {
  padding-top: var(--nav-h);
}

/* ══════════════════════════════════════════════════════════════
   TYPOGRAPHY ATOMS
══════════════════════════════════════════════════════════════ */
.ttl {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  color: var(--text);
}
.ttl-accent, .ttl em { font-style: italic; color: var(--accent); }

.section-h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text);
}
.section-h2 em { font-style: italic; color: var(--accent); }
.section-h2--sm { font-size: 1.5rem; margin-bottom: 1.5rem; }
.section-h2--md { font-size: 1.6rem; margin-bottom: 1rem; }
.section-h2--lg { font-size: 1.8rem; margin-bottom: 1.5rem; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: ''; display: block; width: 20px; height: 1px; background: var(--lime);
}
.section-eyebrow--gold { color: var(--gold); }
.section-eyebrow--gold::before { background: var(--gold); }

.hero-p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 44ch;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.hero-sub {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 48ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.section-sub {
  color: var(--muted); font-size: 1rem;
  max-width: 50ch; line-height: 1.7; margin-bottom: 2.5rem;
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s, border-color 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-ghost, .btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 500;
}
.btn-ghost:hover, .btn-outline:hover { border-color: var(--muted); transform: translateY(-1px); }

.btn-full { width: 100%; text-align: center; }
.btn--sm { font-size: 0.875rem; padding: 0.6rem 1.4rem; }

.hero-btns, .btn-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.secure-note {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

/* ══════════════════════════════════════════════════════════════
   TAG / BADGE
══════════════════════════════════════════════════════════════ */
.tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--s2); border: 1px solid var(--border);
  border-radius: 100px; padding: 0.3rem 1rem;
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.tag-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); animation: blink 2s ease-in-out infinite;
}
.badge-wrap { margin-bottom: 1.5rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border-radius: 100px; padding: 0.28rem 0.9rem;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.badge--gold {
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.25);
  color: var(--gold);
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

/* ══════════════════════════════════════════════════════════════
   HERO — home two-column layout
══════════════════════════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  padding: 5rem 0 4rem;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 20% 50%, rgba(200,240,96,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 75% 70%, rgba(96,208,240,0.04) 0%, transparent 60%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  max-width: var(--max-w); margin: 0 auto;
  width: 100%;
  padding: 0 var(--px);
}
.hero-img-col { position: relative; }
.hero-img-col img {
  width: 100%;
  aspect-ratio: 680 / 420;
  border-radius: 16px;
  display: block;
  object-fit: contain;
}

.hero-figure-img {
  width: 100%;
  aspect-ratio: 680 / 420;
  border-radius: 14px;
  margin-top: 2rem;
  object-fit: contain;
}
.hero-stat-bar { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.hero-stat strong {
  display: block; font-family: var(--mono);
  font-size: 1.4rem; color: var(--accent); font-weight: 500;
}
.hero-stat span { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.hero-stat-divider { width: 1px; height: 32px; background: var(--border); }

/* Standard (non-home) hero */
.section-hero {
  padding: 4rem var(--px) 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════════════════════ */
.breadcrumb-nav {
  padding: 1.25rem var(--px) 0;
  max-width: var(--max-w);
  margin: 0 auto;
}
.breadcrumb-list {
  display: flex; align-items: center; gap: 0.4rem;
  list-style: none; flex-wrap: wrap;
}
.breadcrumb-list li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb-list li + li::before { content: '/'; color: var(--muted); font-size: 0.8rem; }
.breadcrumb-list a {
  color: var(--muted); text-decoration: none;
  font-size: 0.8rem; transition: color 0.2s;
}
.breadcrumb-list a:hover { color: var(--text); }

/* ══════════════════════════════════════════════════════════════
   AI SUMMARY BLOCK
══════════════════════════════════════════════════════════════ */
.ai-summary-section {
  padding: 1.5rem var(--px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.ai-summary-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.ai-summary-label {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(200,240,96,0.2);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  margin-top: 0.1rem;
}
.ai-summary-text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   SECTION CONTAINERS
══════════════════════════════════════════════════════════════ */
.section {
  padding: 5rem var(--px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section--sm {
  padding: 2.5rem var(--px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
}
.container--narrow {
  max-width: 760px;
}

/* ══════════════════════════════════════════════════════════════
   FEATURE PILL GRID
══════════════════════════════════════════════════════════════ */
.feat-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}
.feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.9rem 0.5rem 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.feat-pill:hover {
  background: var(--s2);
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
.pill-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--ib, var(--lime-tint));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pill-icon svg { width: 14px; height: 14px; }
.pill-label { color: var(--text); }
.pill-pro {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(96,208,240,0.25);
  border-radius: 3px;
  padding: 1px 4px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   PRO BANNER
══════════════════════════════════════════════════════════════ */
.pro-banner {
  margin-top: 0.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.2rem 1.6rem;
  display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.pro-banner-text strong {
  display: block; font-family: var(--serif);
  font-size: 1rem; font-weight: 400;
  letter-spacing: -0.01em; color: var(--text); margin-bottom: 0.15rem;
}
.pro-banner-text span { font-size: 0.8rem; color: var(--muted); }
.pro-banner-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: var(--bg);
  border: none; border-radius: 8px; padding: 0.6rem 1.2rem;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  text-decoration: none; font-family: var(--sans);
  white-space: nowrap; transition: opacity 0.2s;
  flex-shrink: 0;
}
.pro-banner-cta:hover { opacity: 0.85; }

/* ══════════════════════════════════════════════════════════════
   BIG FEATURE ROWS
══════════════════════════════════════════════════════════════ */
.big-feat {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  padding: 5rem var(--px);
  max-width: var(--max-w); margin: 0 auto;
  border-top: 1px solid var(--border);
}
.big-feat.reverse { direction: rtl; }
.big-feat.reverse > * { direction: ltr; }
.big-feat-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400; letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 1rem;
}
.big-feat-text p { color: var(--muted); line-height: 1.75; margin-bottom: 1.2rem; }
.feat-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.feat-list li {
  font-size: 0.875rem; color: var(--muted);
  display: flex; align-items: flex-start; gap: 0.55rem;
}
.feat-list li::before {
  content: '→'; color: var(--lime);
  font-family: var(--mono); font-size: 0.78rem;
  margin-top: 0.1rem; flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   MOCK SCREEN
══════════════════════════════════════════════════════════════ */
.mock-screen {
  background: #050508; border: 1px solid var(--border);
  border-radius: 14px; padding: 2.5rem 2rem;
  font-family: var(--serif); font-size: 1.05rem;
  line-height: 1.85; position: relative; overflow: hidden;
}
.mock-screen::before, .mock-screen::after {
  content: ''; position: absolute; left: 0; right: 0;
  height: 70px; pointer-events: none; z-index: 1;
}
.mock-screen::before { top: 0; background: linear-gradient(to bottom, #050508, transparent); }
.mock-screen::after  { bottom: 0; background: linear-gradient(to top, #050508, transparent); }
.mock-word      { color: rgba(232,232,240,0.22); }
.mock-word.done { color: rgba(232,232,240,0.18); }
.mock-word.current { color: #fff; font-weight: 600; background: var(--lime-tint); border-radius: 3px; padding: 0 3px; }
.mock-word.near { color: rgba(232,232,240,0.65); }
.mock-status { position: absolute; bottom: 12px; right: 16px; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; z-index: 2; }
.mock-rec { position: absolute; top: 12px; right: 16px; font-family: var(--mono); font-size: 0.65rem; color: var(--red); letter-spacing: 0.08em; text-transform: uppercase; z-index: 2; display: flex; align-items: center; gap: 4px; }
.rec-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; }

/* ══════════════════════════════════════════════════════════════
   PANEL / CARD
══════════════════════════════════════════════════════════════ */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}
.panel--form {
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem;
}
.panel--highlight { border-color: var(--border2); }

/* ══════════════════════════════════════════════════════════════
   HOW-TO STEPS
══════════════════════════════════════════════════════════════ */
.howto-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem 0;
}
.howto-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.howto-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--s2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--lime);
  font-weight: 500;
}
.howto-item h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.howto-text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.feature-step-name { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }

/* ══════════════════════════════════════════════════════════════
   TOC
══════════════════════════════════════════════════════════════ */
.toc-panel {
  padding: 1.25rem 1.75rem;
  margin-bottom: 2rem;
}
.toc-panel ol {
  list-style: decimal;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.toc-panel a {
  color: var(--muted); text-decoration: none;
  font-size: 0.875rem; transition: color 0.2s;
}
.toc-panel a:hover { color: var(--text); }

/* ══════════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════════ */
.section-faq {
  border-top: 1px solid var(--border);
  padding: 4rem var(--px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 0.975rem;
  color: var(--text);
  transition: color 0.2s;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute;
  background: var(--muted); border-radius: 1px;
  transition: opacity 0.2s, transform 0.2s;
}
.faq-icon::before { width: 8px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 8px; }
details[open] .faq-icon { border-color: var(--lime); }
details[open] .faq-icon::after { opacity: 0; transform: rotate(90deg); }
.faq-answer {
  padding: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.faq-answer p { max-width: 62ch; }

/* ══════════════════════════════════════════════════════════════
   ARTICLE BYLINE
══════════════════════════════════════════════════════════════ */
.article-byline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.lbl {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.18rem 0.55rem;
}
.lbl--muted { color: var(--muted); }
.meta-link { color: var(--muted); text-decoration: none; }
.meta-link:hover { color: var(--text); }

/* ══════════════════════════════════════════════════════════════
   DIRECT ANSWER
══════════════════════════════════════════════════════════════ */
.direct-answer {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   RELATED NAV
══════════════════════════════════════════════════════════════ */
.related-nav {
  border-top: 1px solid var(--border);
  padding: 2rem var(--px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.related-nav-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.related-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.related-link {
  color: var(--muted); text-decoration: none;
  font-size: 0.875rem; transition: color 0.2s;
}
.related-link:hover { color: var(--text); }

/* ══════════════════════════════════════════════════════════════
   INTERNAL LINKS
══════════════════════════════════════════════════════════════ */
.main a:not(.btn):not(.nav-cta):not(.logo):not(.feat-pill):not(.breadcrumb-list a):not(.related-link):not(.toc-panel a):not(.faq-summary):not(.footer a) {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--border2);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.main a:not(.btn):not(.nav-cta):not(.logo):not(.feat-pill):not(.breadcrumb-list a):not(.related-link):not(.toc-panel a):not(.faq-summary):not(.footer a):hover {
  color: var(--text);
  text-decoration-color: var(--muted);
}

/* ══════════════════════════════════════════════════════════════
   GRID HELPERS
══════════════════════════════════════════════════════════════ */
.grid { display: grid; }
.grid--footer { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }

/* ══════════════════════════════════════════════════════════════
   PRICING SECTION
══════════════════════════════════════════════════════════════ */
.section--pricing {
  padding: 4rem var(--px) 6rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   SUCCESS PAGE
══════════════════════════════════════════════════════════════ */
.success-panel-header { text-align: center; margin-bottom: 2rem; }
.success-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(200,240,96,0.1); border: 1px solid rgba(200,240,96,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--lime); margin: 0 auto 1rem;
}
.success-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.plan-pill { display: inline-block; margin: 0 auto; }
.pill-starter, .pill-pro {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border-radius: 100px; padding: 0.3rem 1rem;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.pill-starter {
  background: rgba(96,208,240,0.1); border: 1px solid rgba(96,208,240,0.25); color: var(--cyan);
}
.pill-pro {
  background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.25); color: var(--gold);
}
.success-body { display: flex; flex-direction: column; gap: 1.25rem; }
.success-body p { color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.success-label {
  display: block; font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.5rem;
}
.success-input {
  width: 100%; background: var(--s2); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.75rem 1rem;
  color: var(--text); font-family: var(--sans); font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}
.success-input:focus { border-color: var(--border2); }
.name-err { color: var(--red); font-size: 0.8rem; margin-top: 0.4rem; display: none; }
.code-display {
  font-family: var(--mono); font-size: 0.85rem;
  background: var(--s2); border: 1px solid var(--border);
  border-radius: 8px; padding: 1rem 1.25rem;
  letter-spacing: 0.06em; word-break: break-all;
  color: var(--text);
}
.badge-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.badge-sm {
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 4px; padding: 0.2rem 0.55rem;
}
.badge-blue  { background: rgba(96,208,240,0.1); border: 1px solid rgba(96,208,240,0.2); color: var(--cyan); }
.badge-gold  { background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.2); color: var(--gold); }
.badge-green { background: rgba(200,240,96,0.1); border: 1px solid rgba(200,240,96,0.2); color: var(--lime); }
.divider { height: 1px; background: var(--border); margin: 0.5rem 0; }
.code-actions { display: flex; gap: 0.75rem; }
.code-name { color: var(--text); }
.gen-spinner {
  display: none; width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.2); border-top-color: var(--bg);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.success-help { text-align: center; margin-top: 1.5rem; font-size: 0.82rem; color: var(--muted); }
.success-help a { color: var(--muted); }
#st-code { display: none; flex-direction: column; gap: 1rem; }
#st-code.active { display: flex; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.logo--footer { font-size: 1.1rem; display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); font-family: var(--serif); }
.footer-tagline { color: var(--muted); font-size: 0.82rem; line-height: 1.7; margin-top: 0.75rem; max-width: 26ch; }
.footer-col h4 {
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem; margin-top: 1.25rem;
}
.grid--footer .footer-col:first-child h4 { margin-top: 0; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a {
  color: var(--muted); text-decoration: none;
  font-size: 0.85rem; transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom span, .footer-bottom p { color: var(--muted); font-size: 0.8rem; }
.footer-bottom a { color: var(--muted); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--text); }

/* ══════════════════════════════════════════════════════════════
   APP SHELL
══════════════════════════════════════════════════════════════ */
body:has(.app-frame-wrap) { overflow: hidden; }
.app-frame-wrap {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  overflow: hidden;
  background: #0d0d0f;
  z-index: 10;
}
.app-frame-wrap iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}

/* ══════════════════════════════════════════════════════════════
   SCREEN-READER ONLY
══════════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ══════════════════════════════════════════════════════════════
   PHASE 1 — COMPONENT CLASSES (extracted from inline styles)
══════════════════════════════════════════════════════════════ */

/* ── Pricing grid ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.price-amount {
  font-family: var(--mono);
  font-size: 2rem;
  color: var(--text);
  font-weight: 500;
}
.price-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.price-per {
  font-size: 1rem;
  color: var(--muted);
}

/* ── Two-column feature grid ── */
.feat-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* ── Comparison table ── */
.cmp-wrap { overflow-x: auto; }
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.cmp-table tr { border-bottom: 1px solid var(--border); }
.cmp-table thead tr { border-bottom: 1px solid var(--border); }
.cmp-table th.cmp-feat {
  text-align: left;
  padding: 0.75rem 1rem 0.75rem 0;
  color: var(--muted);
  font-weight: 500;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cmp-table th.cmp-us {
  text-align: center;
  padding: 0.75rem 1rem;
  color: var(--lime);
  font-weight: 600;
  font-size: 0.9rem;
}
.cmp-table th.cmp-them {
  text-align: center;
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}
.cmp-table td.cmp-feat {
  padding: 0.8rem 1rem 0.8rem 0;
  color: var(--muted);
}
.cmp-table td.cmp-us {
  padding: 0.8rem 1rem;
  text-align: center;
  color: var(--text);
}
.cmp-table td.cmp-them {
  padding: 0.8rem 1rem;
  text-align: center;
  color: var(--muted);
}

/* ── Use-case row (best-for table) ── */
.usecase-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 2fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.usecase-label { font-size: 0.9rem; color: var(--text); }
.usecase-tool  { font-family: var(--mono); font-size: 0.8rem; color: var(--lime); }
.usecase-note  { font-size: 0.82rem; color: var(--muted); }

/* ── Nav card link (use/compare hub cards) ── */
.nav-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.nav-card:hover { border-color: var(--border2); }
.nav-card-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.nav-card-desc { font-size: 0.8rem; color: var(--muted); }
.nav-card-arrow { color: var(--muted); font-size: 1.1rem; flex-shrink: 0; margin-left: 1rem; }
.nav-card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
}

/* ── Numbered step row ── */
.step-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--s2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--lime);
}
.step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.step-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 56ch;
}

/* ── Generic bordered row ── */
.row-border {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.row-border h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.row-border p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 60ch;
}

/* ── Fix/tip row (eye contact tips, script rules) ── */
.tip-row {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.tip-row h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.tip-row p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 58ch;
}

/* ── Gear/pricing data row (3-col) ── */
.data-row-3 {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr 2fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.data-row-3 .col-label {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}
.data-row-3 .col-value {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--lime);
}
.data-row-3 .col-note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Script length / stats row (equal 3-col) ── */
.stat-row-3 {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.stat-row-3 .col-label { font-size: 0.875rem; color: var(--text); }
.stat-row-3 .col-value { font-family: var(--mono); font-size: 0.8rem; color: var(--lime); }
.stat-row-3 .col-meta  { font-size: 0.8rem; color: var(--muted); }

/* ── FAQ quick-link grid ── */
.faq-link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.faq-link-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.faq-link-card:hover { border-color: var(--border2); }
.faq-link-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.faq-link-desc { font-size: 0.78rem; color: var(--muted); }

/* ── Blog post meta label ── */
.post-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Intro paragraph (section lead copy) ── */
.section-lead {
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.section-lead--wide { max-width: 62ch; }
.section-lead--narrow { max-width: 44ch; }

/* ── "How to choose" decision row ── */
.choose-row {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  max-width: 680px;
}
.choose-row h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.choose-row p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 60ch;
}

/* ── Takes list (recording mock) ── */
.takes-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.take-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.take-item--active {
  background: rgba(200,240,96,0.06);
  border-color: rgba(200,240,96,0.2);
}
.take-name {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text);
}
.take-meta {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 2px;
}
.take-dl { color: var(--muted); font-size: 0.8rem; }
.take-item--active .take-dl { color: var(--accent); }

/* ── Mock screen takes header ── */
.takes-header {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links ul {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1.25rem 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    z-index: 99;
  }
  .nav.open .nav-links ul { display: flex; }
  .nav-links a { font-size: 1rem; padding: 0.65rem 0.75rem; }
  .nav-cta { margin-left: 0 !important; margin-top: 0.5rem; text-align: center; display: block; }
  .nav-hamburger { display: flex; }
  .nav-inner { padding: 0 1.5rem; }
}

@media (max-width: 1024px) {
  .grid--footer { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-img-col { order: -1; }
  .big-feat { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem var(--px); }
  .big-feat.reverse { direction: ltr; }
  .feat-grid-2 { grid-template-columns: 1fr; }
  .usecase-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .usecase-tool { font-size: 0.75rem; }
}

@media (max-width: 768px) {
  :root { --px: 1.5rem; }
  .hero { padding: 3rem 0 3rem; }
  .hero-btns, .btn-group { margin-bottom: 2rem; }
  .hero-stat-divider { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer { padding: 2.5rem 0 1.5rem; }
  .section { padding: 3.5rem var(--px); }
  .big-feat { padding: 3rem var(--px); }
  .grid--footer { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .faq-link-grid { grid-template-columns: 1fr; }
  .data-row-3 { grid-template-columns: 1fr 1fr; }
  .data-row-3 .col-note { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  :root { --px: 1.25rem; }
  .grid--footer { grid-template-columns: 1fr; }
  .code-actions { flex-direction: column; }
  .stat-row-3 { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}