/* ================================================================
   Reglyph — Parchment Marketing Stylesheet
   ================================================================ */

/* ---- Tokens ---- */
:root {
  /* Surfaces */
  --bg: #f5f1ea;
  --panel: #ebe6db;
  --surface: #faf7f1;
  --surface-alt: #f0ebdf;
  /* Ink */
  --ink: #1c1917;
  --ink-muted: #57534e;
  --ink-dim: #a8a29e;
  /* Lines */
  --line: rgba(28, 25, 23, 0.08);
  --line-strong: rgba(28, 25, 23, 0.16);
  /* Accent */
  --accent: #7c2d12;
  --accent-soft: #fde6d0;
  --accent-ink: #7c2d12;
  /* Support */
  --gold: #a16207;
  --moss: #4d5f32;
  /* Rail */
  --rail: #1c1917;
  --rail-ink: #e7e2d6;
  /* Fonts */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  /* Entity type colors */
  --npc-bg: rgba(124, 45, 18, 0.08);
  --npc-ink: #7c2d12;
  --npc-dot: #a3431c;
  --loc-bg: rgba(77, 95, 50, 0.10);
  --loc-ink: #4d5f32;
  --loc-dot: #6b8142;
  --event-bg: rgba(161, 98, 7, 0.10);
  --event-ink: #92400e;
  --event-dot: #ca8a04;
  /* Misc */
  --transition: 180ms ease-out;
  --radius: 10px;
  --radius-lg: 14px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  /* Defensive: any rogue child that overflows the viewport (third-party
     embeds, etc.) shouldn't widen the page and trigger horizontal scroll. */
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 72px;
}
section {
  padding: 80px 0;
  position: relative;
}
section .container { position: relative; }

/* ---- Typography ---- */
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
}
h1 { font-size: clamp(38px, 5vw, 72px); letter-spacing: -2.4px; }
h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -1.4px; }
h3 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -1px; line-height: 1.1; }
.accent-text { font-style: italic; color: var(--accent-ink); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.1px;
  cursor: pointer;
  transition: opacity var(--transition), background var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; }
.btn-sm  { padding: 6px 12px; font-size: 12px; }
.btn-md  { padding: 9px 16px; font-size: 13px; }
.btn-lg  { padding: 12px 20px; font-size: 14px; }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--line); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-full { width: 100%; }

/* ---- Chips ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.chip-dot {
  width: 6px; height: 6px; border-radius: 3px;
}
.chip-npc      { background: var(--npc-bg); color: var(--npc-ink); }
.chip-npc .chip-dot { background: var(--npc-dot); }
.chip-location { background: var(--loc-bg); color: var(--loc-ink); }
.chip-location .chip-dot { background: var(--loc-dot); }
.chip-event    { background: var(--event-bg); color: var(--event-ink); }
.chip-event .chip-dot { background: var(--event-dot); }

/* ---- Wordmark ---- */
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wordmark-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.2px;
}

/* ================================================================
   TOP BAR
   ================================================================ */
.top-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 72px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.top-bar-nav {
  display: flex;
  gap: 24px;
  margin-left: 16px;
  font-size: 13px;
  color: var(--ink-muted);
}
.top-bar-nav a { cursor: pointer; transition: color var(--transition); }
.top-bar-nav a:hover { color: var(--ink); }
.top-bar-spacer { flex: 1; }
.top-bar-signin {
  font-size: 13px;
  color: var(--ink-muted);
  cursor: pointer;
}
.top-bar-signin:hover { color: var(--ink); }
.mobile-menu-btn {
  display: none;
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  padding-top: 96px;
  padding-bottom: 72px;
  /* Contain the soft glow that bleeds past the visual column so it
     can't widen the page / introduce horizontal scroll. */
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero-text { display: flex; flex-direction: column; justify-content: center; }
.hero h1 { margin: 22px 0 24px; text-wrap: balance; line-height: 0.98; }
.hero-body {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 520px;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  align-items: center;
}
.hero-proof {
  margin-top: 28px;
  display: flex;
  gap: 28px;
  font-size: 12px;
  color: var(--ink-dim);
}

/* Hero artwork */
.hero-visual { position: relative; min-height: 520px; }
/* Extend the glow box past the visual column so the radial gradient
   has room to fully fade to transparent before any clipping edge —
   `.hero { overflow: hidden }` keeps the bleed from widening the page. */
.hero-visual-glow {
  position: absolute;
  inset: -60px -300px -60px -60px;
  background: radial-gradient(circle at 50% 40%, var(--accent-soft) 0, transparent 50%);
  pointer-events: none;
}
.hero-card-session {
  position: absolute;
  right: 0; top: 40px;
  width: 420px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
  transform: rotate(1.8deg);
}
.hero-card-session .card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.hero-card-session h3 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin: 10px 0 14px;
  line-height: 1.1;
}
.hero-card-session p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  text-wrap: pretty;
}
.hero-card-session .card-chips {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-card-processing {
  position: absolute;
  left: 0; bottom: 0;
  width: 320px;
  background: var(--rail);
  color: var(--rail-ink);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 22px;
  transform: rotate(-2.2deg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.hero-card-processing .card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.hero-card-processing .card-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}
.hero-card-processing .waveform { margin-top: 14px; }
.hero-card-processing .card-progress {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
}

/* ================================================================
   LOGO BAR
   ================================================================ */
.logo-bar {
  padding: 28px 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-dim);
  font-family: var(--font-mono);
}
.logo-bar-label {
  text-transform: uppercase;
  letter-spacing: 2px;
}
.logo-bar-names {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  flex: 1;
}
.logo-bar-names span {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: -0.2px;
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how-it-works .section-header {
  margin-bottom: 56px;
}
.how-it-works h2 { margin: 14px 0 0; max-width: 720px; text-wrap: balance; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
}
.step-number {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  color: var(--accent-ink);
  line-height: 1;
  letter-spacing: -1px;
}
.step-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.step-card p {
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ================================================================
   FEATURE ROWS
   ================================================================ */
.feature-rows { border-top: 1px solid var(--line); }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row + .feature-row { margin-top: 72px; }
.feature-text .kicker { margin-bottom: 14px; }
.feature-text h3 { margin-bottom: 18px; text-wrap: balance; }
.feature-text p {
  font-size: 15.5px;
  color: var(--ink-muted);
  line-height: 1.6;
  text-wrap: pretty;
}
.feature-bullets {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-bullets li {
  font-size: 14.5px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.feature-bullets li .bullet { color: var(--accent); flex-shrink: 0; margin-top: 1px; }

/* Feature visuals */
.visual-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* Session visual */
.session-visual .card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.session-visual .waveform { margin-top: 12px; }
.session-visual .timestamps {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  margin-top: 4px;
}
.session-visual .chapters {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chapter-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.chapter-num {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.chapter-title { flex: 1; font-size: 14px; font-weight: 500; }
.chapter-duration {
  font-size: 11px;
  color: var(--ink-dim);
  font-family: var(--font-mono);
}

/* Article grid visual */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.article-tile {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 82px;
}
.article-tile-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.1px;
}

/* Fluid edit visual */
.fluid-edit-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fluid-edit-article,
.fluid-edit-mention {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}
.fluid-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.fluid-edit-status {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.fluid-edit-field { display: flex; flex-direction: column; gap: 4px; }
.fluid-edit-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.fluid-edit-input {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.4px;
  line-height: 1.2;
  border-bottom: 2px solid var(--accent);
  padding: 2px 0 4px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
}
.fluid-edit-cursor {
  display: inline-block;
  width: 2px;
  height: 22px;
  background: var(--accent);
  margin-left: 2px;
  animation: fluid-edit-blink 1.05s steps(2) infinite;
}
@keyframes fluid-edit-blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.fluid-edit-bio {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-top: 14px;
  text-wrap: pretty;
}
.fluid-edit-mention-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.fluid-edit-mention-text {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.7;
  text-wrap: pretty;
}
.fluid-edit-mention-text .chip {
  vertical-align: baseline;
  margin: 0 1px;
}

/* ================================================================
   TESTIMONIAL
   ================================================================ */
.testimonial {
  background: var(--rail);
  color: var(--rail-ink);
}
.testimonial .container { max-width: 900px; }
.testimonial .kicker { color: rgba(255,255,255,0.4); }
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin: 22px 0 28px;
  text-wrap: balance;
}
.testimonial .quote-mark {
  color: var(--accent);
  font-size: 54px;
  line-height: 0;
  margin-right: 6px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 22px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}
.testimonial-name { font-weight: 600; }
.testimonial-role { font-size: 12px; color: rgba(255,255,255,0.55); }

/* ================================================================
   INTERVIEWS (Game Master Interviews — dark rail, anonymous)
   ================================================================ */
.interviews {
  background: var(--rail);
  color: var(--rail-ink);
}
.interviews .container { max-width: 900px; }
.interviews .kicker { color: rgba(255,255,255,0.4); }
.interviews-sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  margin-top: 14px;
  line-height: 1.5;
  max-width: 640px;
}
.interviews-quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin: 36px 0 22px;
  text-wrap: balance;
}
.interviews-quote-mark {
  font-size: 54px;
  line-height: 0;
  margin-right: 4px;
  vertical-align: -8px;
}
/* Brighter rust for the italic emphasis and the closing quote mark
   — lifts contrast against the near-black rail bg, and ties the end
   of the quote to the emphasised phrase. */
.interviews-quote .accent-text,
.interviews-quote-mark-close { color: var(--npc-dot); }
.interviews-attribution {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.interviews-thesis {
  font-family: var(--font-body);
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-top: 40px;
  max-width: 720px;
  text-wrap: pretty;
}

/* ================================================================
   PRICING
   ================================================================ */
.pricing .section-header { text-align: center; margin-bottom: 52px; }
.pricing h2 { margin: 14px 0 12px; }
.pricing .section-sub {
  font-size: 16px;
  color: var(--ink-muted);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 30px 26px 28px;
  position: relative;
}
.pricing-card.featured {
  background: var(--rail);
  color: var(--rail-ink);
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.pricing-badge {
  position: absolute;
  top: -12px; left: 26px;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-family: var(--font-mono);
}
.pricing-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}
.pricing-desc {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-top: 4px;
  min-height: 36px;
}
.pricing-card.featured .pricing-desc { color: rgba(255,255,255,0.65); }
.pricing-price {
  margin: 20px 0 22px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pricing-amount {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -1.4px;
  line-height: 1;
}
.pricing-period {
  font-size: 13px;
  color: var(--ink-muted);
}
.pricing-card.featured .pricing-period { color: rgba(255,255,255,0.55); }
.pricing-feats {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-feats li {
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pricing-feats li .bullet { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.pricing-card.featured .pricing-feats li { color: rgba(255,255,255,0.85); }

/* ================================================================
   FAQ
   ================================================================ */
.faq .container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
}
.faq { border-top: 1px solid var(--line); }
.faq h2 { margin: 14px 0 0; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .toggle-icon { color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] .toggle-icon { transform: rotate(45deg); }
.faq details p {
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-top: 10px;
  text-wrap: pretty;
}

/* ================================================================
   EARLY ACCESS / FINAL CTA
   ================================================================ */
.final-cta {
  background: var(--surface);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 96px 0;
}
.final-cta h2 {
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -2px;
  margin: 20px auto 18px;
  max-width: 820px;
  text-wrap: balance;
  line-height: 1.02;
}
.final-cta p {
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.final-cta .cta-row {
  display: inline-flex;
  gap: 12px;
}

/* Early access form (inside final CTA) */
.early-access-form {
  max-width: 480px;
  margin: 0 auto;
}
.form-row {
  display: flex;
  gap: 10px;
}
.form-row input[type="email"] {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.form-row input[type="email"]::placeholder { color: var(--ink-dim); }
.form-row input[type="email"]:focus { border-color: var(--ink); }
.form-privacy {
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 8px;
}
.form-message[hidden] { display: none; }
.form-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-top: 12px;
}
.form-success {
  background: rgba(77, 95, 50, 0.1);
  border: 1px solid rgba(77, 95, 50, 0.3);
  color: var(--moss);
}
.form-error {
  background: rgba(124, 45, 18, 0.08);
  border: 1px solid rgba(124, 45, 18, 0.2);
  color: var(--accent);
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  padding: 48px 72px 36px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
}
.footer-about p {
  font-size: 13px;
  margin-top: 14px;
  line-height: 1.55;
  max-width: 320px;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-dim);
  font-family: var(--font-mono);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  section { padding: 56px 0; }
  .top-bar {
    padding: 14px 20px;
    /* Tighter gap so wordmark + CTA + menu button fit without wrapping
       on narrow screens. */
    gap: 12px;
  }
  .top-bar-nav, .top-bar-signin { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  /* Keep wordmark and CTA at their natural size — no squeezing. */
  .top-bar .wordmark,
  .top-bar .btn { flex-shrink: 0; }
  .top-bar .wordmark-text { white-space: nowrap; }

  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  /* Hide the floating hero cards (+ ambient glow) on narrow screens —
     they crowd the text and don't fit usefully under it. */
  .hero-visual { display: none; }

  .logo-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 14px;
  }
  .logo-bar-names { gap: 12px 20px; }
  .logo-bar-names span { font-size: 14px; }

  .steps-grid { grid-template-columns: 1fr; }

  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .feature-row.reverse > * { direction: ltr; }
  .feature-row + .feature-row { margin-top: 48px; }

  /* Article grid: 3 columns is too tight on narrow screens; drop to 2.
     `min-width: 0` lets the tiles shrink below content-width so long
     names wrap inside the tile instead of expanding the grid. */
  .article-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .article-tile { min-width: 0; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }

  .faq .container { grid-template-columns: 1fr; gap: 32px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  footer { padding: 36px 24px 24px; }

  .final-cta .cta-row { flex-direction: column; }
  .final-cta .cta-row .btn { width: 100%; }

  .form-row { flex-direction: column; }
  .form-row .btn { width: 100%; }
}
