/* ============================================================
   Drive Your Way — site styles (Control Tower design, 2026-07)
   Dark dispatcher theme: bg #0b0d0f, orange #ff8a3d, teal #46dccb
   Fonts: Space Grotesk (display), Hanken Grotesk (body),
          IBM Plex Mono (labels). Loaded from Google Fonts per page.
   ============================================================ */

:root {
  --bg: #0b0d0f;
  --pan: #15181c;
  --pan2: #1b2026;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #eef1f4;
  --mut: #98a0a8;
  --acc: #ff8a3d;
  --acc-soft: rgba(255, 138, 61, 0.12);
  --acc2: #46dccb;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--acc); }
a:hover { color: #ffa668; }

::selection { background: rgba(255, 138, 61, 0.35); }

/* ---------- keyframes ---------- */
@keyframes dyw-move { 0% { left: -4%; } 100% { left: 104%; } }
@keyframes dyw-move-rev { 0% { left: 104%; } 100% { left: -4%; } }
@keyframes dyw-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.65); } }
@keyframes dyw-dash { to { background-position: 40px 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo:hover { color: var(--ink); }

.logo-badge {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: var(--acc);
  display: grid;
  place-items: center;
  color: #0b0d0f;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.nav-links a {
  color: var(--mut);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  padding: 8px 10px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 11px;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--acc);
  color: #0b0d0f;
  box-shadow: 0 8px 22px rgba(255, 138, 61, 0.3);
}

.btn-primary:hover {
  color: #0b0d0f;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255, 138, 61, 0.45);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover { color: var(--ink); background: rgba(255, 255, 255, 0.09); }

.btn-lg { font-size: 17px; padding: 16px 28px; border-radius: 13px; }

/* ============================================================
   Hero (landing)
   ============================================================ */
.hero {
  position: relative;
  padding: 78px 28px 150px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/images/hero.webp') center/cover;
  opacity: 0.42;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 70% 0%, rgba(255, 138, 61, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(11, 13, 15, 0.5) 0%, rgba(11, 13, 15, 0.7) 55%, var(--bg) 100%);
}

.hero-dots {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
}

.hero-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; }

.hero-copy { max-width: 780px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(11, 13, 15, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  padding: 7px 13px;
  border-radius: 999px;
}

.dot-live {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--acc2);
  animation: dyw-pulse 1.6s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 22px 0 18px;
  text-wrap: balance;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--mut);
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* animated road line */
.road {
  position: relative;
  z-index: 2;
  height: 2px;
  margin: 46px auto 0;
  max-width: 1180px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--acc) 0 11px, transparent 11px 22px);
  background-size: 22px 2px;
  animation: dyw-dash 1s linear infinite;
}

.road i {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--acc);
}

.road i:nth-child(1) { width: 11px; height: 11px; box-shadow: 0 0 0 5px rgba(255, 138, 61, 0.22); animation: dyw-move 7s linear infinite; }
.road i:nth-child(2) { width: 8px; height: 8px; background: var(--acc2); box-shadow: 0 0 0 4px rgba(70, 220, 203, 0.2); animation: dyw-move-rev 9s linear infinite; animation-delay: -2s; }
.road i:nth-child(3) { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.18); animation: dyw-move 4.2s linear infinite; animation-delay: -1.2s; }
.road i:nth-child(4) { width: 7px; height: 7px; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); animation: dyw-move-rev 5.5s linear infinite; animation-delay: -3.4s; }
.road i:nth-child(5) { width: 9px; height: 9px; background: var(--acc2); box-shadow: 0 0 0 4px rgba(70, 220, 203, 0.18); animation: dyw-move 11s linear infinite; animation-delay: -5s; }

/* stat strip */
.stat-strip {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -1px;
  z-index: 3;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

@media (min-width: 1240px) { .stat-strip { left: 50%; right: auto; transform: translateX(-50%); width: 100%; } }

.stat {
  background: rgba(16, 20, 24, 0.72);
  padding: 22px 24px;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.stat b.hl { color: var(--acc); }

.stat span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
  margin-top: 6px;
}

/* ============================================================
   Sections (landing)
   ============================================================ */
.section { padding: 88px 28px 56px; }

.section-inner { max-width: 1180px; margin: 0 auto; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc);
}

.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--acc); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 34px;
}

.section-head h2, .section-inner > h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  margin: 14px 0 0;
}

.section-head p { font-size: 15px; color: var(--mut); max-width: 320px; margin: 0; line-height: 1.55; }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.card {
  background: var(--pan);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover { transform: translateY(-3px); border-color: rgba(255, 138, 61, 0.4); }

.card.span3 { grid-column: span 3; }
.card.span2 { grid-column: span 2; }
.card.tall { grid-row: span 2; display: flex; flex-direction: column; overflow: hidden; }

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--acc);
  background: var(--acc-soft);
  padding: 5px 9px;
  border-radius: 6px;
}

.card-tag-row { display: flex; align-items: center; justify-content: space-between; }

/* roadmap status chips */
.card-tag.tag-live { color: #0b0d0f; background: var(--acc2); }
.card-tag.tag-dev { color: #0b0d0f; background: var(--acc); }
.card-tag.tag-plan { color: var(--mut); background: rgba(255, 255, 255, 0.08); }

.card-tag-note { font-family: var(--font-mono); font-size: 11px; color: var(--mut); }

.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 16px 0 8px; }

.card p { font-size: 14px; color: var(--mut); line-height: 1.55; margin: 0; }

.card-media {
  position: relative;
  flex: 1;
  min-height: 220px;
  margin-top: 18px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.card-media .grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(70, 220, 203, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 220, 203, 0.14) 1px, transparent 1px);
  background-size: 34px 34px;
}

.card.accent {
  background: linear-gradient(150deg, rgba(255, 138, 61, 0.18), rgba(255, 138, 61, 0.04));
  border-color: rgba(255, 138, 61, 0.4);
}

.card.accent .card-tag { color: #0b0d0f; background: var(--acc); }
.card.accent p { color: var(--ink); opacity: 0.82; }

/* steps (how it works) */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.steps::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 34px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  background-size: 16px 2px;
}

.step {
  position: relative;
  background: var(--pan);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
}

.step-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: #0b0d0f;
  background: var(--acc);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0 0 8px; }
.step p { font-size: 14px; color: var(--mut); line-height: 1.55; margin: 0; }

/* screenshots row */
.shots-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.shots-row figure {
  margin: 0;
  background: var(--pan);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.shots-row img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.shots-row figcaption {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mut);
}

/* teaser lists (guides / devlog / faq on landing) */
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.teaser {
  display: flex;
  flex-direction: column;
  background: var(--pan);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, border-color 0.2s;
}

.teaser:hover { color: var(--ink); transform: translateY(-3px); border-color: rgba(255, 138, 61, 0.4); }

.teaser .t-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acc); margin-bottom: 12px; }

.teaser h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 0 0 8px; }

.teaser p { font-size: 14px; color: var(--mut); line-height: 1.55; margin: 0; flex: 1; }

.teaser .t-more { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--acc); }

.section-more { margin-top: 26px; }

.section-more a { font-family: var(--font-mono); font-size: 13px; }

/* CTA panel */
.cta-wrap { padding: 0 28px 78px; }

.cta-panel {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 138, 61, 0.35);
  background:
    radial-gradient(120% 130% at 80% 0%, rgba(255, 138, 61, 0.22), transparent 55%),
    var(--pan2);
  padding: 62px 48px;
  text-align: center;
}

.cta-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.cta-panel > * { position: relative; }

.cta-panel h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.cta-panel p { font-size: 17px; color: var(--mut); max-width: 460px; margin: 0 auto 30px; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 42px 28px 30px;
  background: rgba(0, 0, 0, 0.2);
}

.footer-inner { max-width: 1180px; margin: 0 auto; }

.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 12px;
}

.footer-brand .logo-badge { width: 24px; height: 24px; border-radius: 7px; font-size: 13px; }

.footer-desc { font-size: 13px; color: var(--mut); line-height: 1.6; max-width: 300px; margin: 0; }

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  margin: 0 0 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }

.footer-col a { color: var(--ink); text-decoration: none; opacity: 0.8; }
.footer-col a:hover { opacity: 1; color: var(--ink); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mut);
}

.footer-live { display: flex; align-items: center; gap: 8px; }

/* ============================================================
   Article pages (guides, how-to-play, faq, legal, devlog…)
   ============================================================ */
.page-shell { padding: 56px 28px 88px; }

.page-narrow { max-width: 780px; margin: 0 auto; }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mut);
  margin-bottom: 26px;
}

.breadcrumb a { color: var(--mut); text-decoration: none; }
.breadcrumb a:hover { color: var(--acc); }

.article h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.article .lead { font-size: 18px; line-height: 1.6; color: var(--mut); margin: 0 0 34px; }

.article h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
}

.article h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 30px 0 10px; }

.article p { margin: 0 0 16px; }

.article ul, .article ol { margin: 0 0 16px; padding-left: 24px; }

.article li { margin-bottom: 8px; }

.article strong { color: var(--ink); }

.article figure.shot { margin: 26px 0; }

.article figure.shot img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.article figure.shot figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mut);
}

/* data tables */
.data-table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 14px; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}

table.data th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut);
  text-align: left;
  padding: 12px 16px;
  background: var(--pan2);
  border-bottom: 1px solid var(--line);
}

table.data td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }

table.data tr:last-child td { border-bottom: none; }

table.data td.num { font-family: var(--font-mono); font-size: 13px; }

/* callout */
.callout {
  border: 1px solid rgba(255, 138, 61, 0.35);
  background: var(--acc-soft);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 15px;
}

.callout.teal { border-color: rgba(70, 220, 203, 0.35); background: rgba(70, 220, 203, 0.08); }

/* table of contents (.legal-toc is the legacy class used by legal pages) */
.toc, .legal-toc {
  border: 1px solid var(--line);
  background: var(--pan);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 34px;
}

.toc h2, .legal-toc h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  margin: 0 0 12px;
}

.toc ul, .legal-toc ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; font-size: 14px; }

.toc li, .legal-toc li { margin-bottom: 8px; break-inside: avoid; }

.toc a, .legal-toc a { color: var(--ink); opacity: 0.85; text-decoration: none; }
.toc a:hover, .legal-toc a:hover { opacity: 1; color: var(--acc); }

/* legacy legal table (cookie durations) */
table.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 22px 0; }
table.legal-table th, table.legal-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.legal-table th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut); }

/* related links block */
.related {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.related h2 { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mut); margin: 0 0 16px; }

.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 15px; }

.related a { text-decoration: none; }

/* devlog */
.devlog-entry {
  border: 1px solid var(--line);
  background: var(--pan);
  border-radius: 16px;
  padding: 26px 28px;
  margin-bottom: 18px;
}

.devlog-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc);
  margin: 0 0 8px;
}

.devlog-entry h2 { margin: 0 0 12px; font-size: 23px; }

.devlog-entry p:last-child { margin-bottom: 0; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 6px 0 18px; margin-bottom: 18px; }

.faq-item h2 { font-size: 21px; margin: 18px 0 10px; }

/* legal */
.legal-updated { font-family: var(--font-mono); font-size: 13px; color: var(--mut); margin: 0 0 26px; }

/* guides hub */
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }

.guide-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--pan);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, border-color 0.2s;
}

.guide-card:hover { color: var(--ink); transform: translateY(-3px); border-color: rgba(255, 138, 61, 0.4); }

.guide-num {
  flex: none;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: #0b0d0f;
  background: var(--acc);
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}

.guide-card h2, .guide-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 2px 0 6px; }

.guide-card p { font-size: 14px; color: var(--mut); line-height: 1.55; margin: 0; }

/* page hero (small, for hub pages) */
.page-hero { max-width: 1180px; margin: 0 auto; }

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin: 14px 0 12px;
}

.page-hero .lead { font-size: 18px; color: var(--mut); max-width: 640px; margin: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .nav { padding: 12px 18px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0b0d0f;
    border-bottom: 1px solid var(--line);
    padding: 10px 18px 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .nav-actions .btn-ghost { display: none; }

  .cards { grid-template-columns: 1fr 1fr; }
  .card.span3, .card.span2 { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .shots-row { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: 1fr; }
  .stat-strip { position: static; grid-template-columns: 1fr 1fr; margin-top: 46px; border-radius: 14px; }
  .hero { padding-bottom: 40px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .toc ul { columns: 1; }
  .related ul { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card.span3, .card.span2 { grid-column: span 1; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 28px; }
  .section { padding: 64px 18px 40px; }
  .page-shell { padding: 40px 18px 64px; }
  .cta-wrap { padding: 0 18px 60px; }
  .cta-panel { padding: 44px 24px; }
  .footer { padding: 36px 18px 24px; }
  .footer-cols { grid-template-columns: 1fr }
  .hero { padding: 56px 18px 32px; }
}
