/* Chitmunk Marketing Site: Shared Styles */
/* Brand: Nunito font, #12110F dark walnut bg, #E8913A warm amber accent */

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

:root {
  /* Site-specific layout tokens */
  --max-w: 1100px;
  --nav-h: 64px;

  /* Site-specific overrides: preserve current marketing site appearance */
  --text-muted: #857A70;        /* darker than editor's #A09890: used in 25+ places on site */
  --bg-input: #1C1A17;          /* lighter than editor's #0D0C0A: matches site card bg */
  --radius-lg: 16px;            /* rounder than editor's 12px: used on all marketing cards */
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
.hero h1, .section-title, .cta-banner h2 { font-family: 'Bricolage Grotesque', 'Nunito', system-ui, sans-serif; font-weight: 800; }

/* ── Nav ─────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(18,17,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-logo {
  font-size: 20px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.site-logo:hover { color: var(--accent); }
.site-nav-links { display: flex; align-items: center; gap: 28px; }
.site-nav-links a {
  color: var(--text-dim); font-size: 14px; font-weight: 600;
  transition: color 0.15s;
}
.site-nav-links a:hover { color: var(--text); }
.site-nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: var(--radius);
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700;
  transition: background 0.15s, transform 0.1s;
}
.site-nav-cta:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }

.site-nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; padding: 4px; }

.site-nav-dropdown-wrapper { position: relative; display: flex; align-items: center; }
.site-nav-dropdown {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 0; min-width: 180px; box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,0.4));
  z-index: 200;
}
.site-nav-dropdown.open { display: block; }
.site-nav-dropdown a {
  display: block; padding: 8px 20px; color: var(--text-dim); font-size: 13px;
  font-weight: 600; text-decoration: none; transition: color 0.15s, background 0.15s;
}
.site-nav-dropdown a:hover { color: var(--text); background: rgba(232,145,58,0.08); }

.site-nav-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  padding: 0;
}

@media (max-width: 768px) {
  .site-nav { padding: 0 16px; }
  .site-nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .site-nav-links.open { display: flex; }
  .site-nav-links a { padding: 14px 24px; border-top: 1px solid var(--border); }
  .site-nav-toggle { display: block; }
}

/* ── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 1;
  transform: none;
}
.js-loaded .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-loaded .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-loaded .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: calc(var(--nav-h) + 80px) 32px 80px;
  text-align: center;
  max-width: 800px; margin: 0 auto;
  position: relative;
  overflow: visible;
}

/* Hero background grain & gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: -60px -200px;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(232,145,58,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 30% 60%, rgba(232,100,58,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(240,176,96,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Floating Hero Cards ────────────────────────────────── */
.hero-float-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.hero-float-card {
  position: absolute;
  width: 110px; height: 150px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.6;
}
.hfc-inner {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.hfc-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 4px;
  white-space: nowrap;
}
.hfc-art {
  font-size: 36px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.hfc-stats {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 8px;
  font-weight: 700;
  color: var(--accent);
}

/* Card positions */
.hfc-1 { top: 15%; left: -8%; transform: rotate(-12deg); }
.hfc-2 { top: 10%; right: -6%; transform: rotate(8deg); }
.hfc-3 { bottom: 8%; left: -4%; transform: rotate(-6deg); }
.hfc-4 { bottom: 5%; right: -9%; transform: rotate(15deg); }

@media (max-width: 900px) {
  .hero-float-cards { display: none; }
}
.hero-badge {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  background: var(--accent-glow); color: var(--accent);
  font-size: 13px; font-weight: 700; margin-bottom: 20px;
  border: 1px solid rgba(232,145,58,0.25);
}
.hero h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 16px; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px); color: var(--text-dim);
  max-width: 560px; margin: 0 auto 32px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 700; border: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  background: transparent; color: var(--text);
  font-size: 16px; font-weight: 700; border: 1px solid var(--border-light); cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero-screenshot {
  margin: 48px auto 0; max-width: 900px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

/* ── Section ─────────────────────────────────────────────── */
.section { padding: 80px 32px; max-width: var(--max-w); margin: 0 auto; }
.section-wide { max-width: 1200px; }
.section-label {
  display: inline-block; font-size: 13px; font-weight: 700;
  color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; letter-spacing: -0.01em; }
.section-desc { color: var(--text-dim); font-size: 17px; max-width: 600px; margin-bottom: 48px; }
.section-center { text-align: center; }
.section-center .section-desc { margin-left: auto; margin-right: auto; }

/* ── Feature Grid ────────────────────────────────────────── */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Bento grid: 3 columns with wide items spanning 2 */
.bento-grid {
  grid-template-columns: repeat(3, 1fr);
}
.bento-wide {
  grid-column: span 2;
}
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
}

.feature-card {
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.35s ease, box-shadow 0.3s ease;
}
.feature-card:hover { border-color: var(--border-light); box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.feature-card-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.feature-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--accent-glow); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.feature-card h3 { font-size: 17px; margin: 0; }
.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.5; }

/* ── Steps ───────────────────────────────────────────────── */
.steps { display: flex; gap: 32px; counter-reset: step; }
.step {
  flex: 1; position: relative; padding: 28px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-dim); }
@media (max-width: 768px) { .steps { flex-direction: column; } }

/* ── Comparison Table ────────────────────────────────────── */
.compare-table-wrap {
  overflow-x: auto; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 500px; }
.compare-table th, .compare-table td {
  padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border);
  width: 50%;
}
.compare-table th {
  background: var(--bg-card); font-weight: 700; color: var(--text);
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em;
}
.compare-table td:first-child { color: var(--text-dim); }
.compare-table td { color: var(--text); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg-card); }
.compare-table .highlight { background: rgba(232,145,58,0.06); }
.compare-table .highlight th { color: var(--accent); }
.check { color: #4ade80; font-weight: 700; }
.cross { color: #ef4444; opacity: 0.7; }
.partial { color: var(--text-dim); }
.compare-table .highlight .check { color: var(--accent); }

/* Mobile: replace table with Chitmunk-only checklist */
.compare-mobile { display: none; }
@media (max-width: 768px) {
  .compare-table-wrap { display: none; }
  .compare-mobile {
    display: flex; flex-direction: column; gap: 12px;
    max-width: 400px; margin: 0 auto;
  }
  .compare-mobile-item {
    display: flex; align-items: baseline; gap: 10px;
    font-size: 15px; color: var(--text);
  }
  .compare-mobile-item .check { font-size: 16px; flex-shrink: 0; }
  .compare-mobile-item span { color: var(--text-dim); font-size: 13px; }
}

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding: 48px 32px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num { font-size: 36px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* ── Pricing Cards ───────────────────────────────────────── */
.pricing-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 960px; margin: 0 auto;
}
.pricing-card {
  padding: 32px 28px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; flex-direction: column; text-align: left;
  position: relative;
}
.pricing-card-free {
  opacity: 0.85;
}
.pricing-card-pro {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(232,145,58,0.1);
  transform: scale(1.03);
}
.pricing-card-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 14px;
  border-radius: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap;
}
.pricing-card-header { margin-bottom: 20px; }
.pricing-card-header h3 { font-size: 18px; margin-bottom: 8px; }
.pricing-price {
  font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1;
}
.pricing-price span {
  font-size: 16px; font-weight: 400; color: var(--text-dim);
}
.pricing-period {
  font-size: 13px; color: var(--text-dim); margin-top: 4px;
}
.pricing-features {
  list-style: none; padding: 0; margin: 0 0 24px; flex: 1;
}
.pricing-features li {
  font-size: 14px; color: var(--text-dim); padding: 5px 0;
  padding-left: 20px; position: relative;
}
.pricing-features li::before {
  content: '\2713'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700; font-size: 13px;
}
.pricing-features li strong { color: var(--text); }
.pricing-features li:has(strong)::before { content: ''; }
.pricing-cta {
  display: block; text-align: center; padding: 12px;
  border-radius: var(--radius); font-size: 15px; font-weight: 700;
  transition: background 0.15s, transform 0.1s;
}
.pricing-cta-primary {
  background: var(--accent); color: #fff;
}
.pricing-cta-primary:hover {
  background: var(--accent-hover); color: #fff; transform: translateY(-1px);
}
.pricing-cta-secondary {
  background: transparent; color: var(--text); border: 1px solid var(--border-light);
}
.pricing-cta-secondary:hover {
  border-color: var(--accent); color: var(--accent);
}
.pricing-cta-alt {
  display: block; text-align: center; margin-top: 10px;
  font-size: 13px; color: var(--text-muted);
  transition: color 0.15s;
}
.pricing-cta-alt:hover { color: var(--accent); }

@media (max-width: 860px) {
  .pricing-cards { grid-template-columns: 1fr; max-width: 380px; }
}

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
  text-align: center; padding: 80px 32px;
  background: linear-gradient(180deg, transparent, var(--accent-glow));
}
.cta-banner h2 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 12px; }
.cta-banner p { color: var(--text-dim); font-size: 17px; margin-bottom: 28px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 48px 32px 24px; }
.site-footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px;
}
.site-footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 8px; }
.site-footer-col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 12px;
}
.site-footer-col a { display: block; color: var(--text-dim); font-size: 14px; padding: 3px 0; }
.site-footer-col a:hover { color: var(--text); }
.site-footer-bottom {
  max-width: var(--max-w); margin: 32px auto 0;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.site-footer-bottom p { font-size: 13px; color: var(--text-muted); text-align: center; }
@media (max-width: 768px) { .site-footer-inner { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 480px) { .site-footer-inner { grid-template-columns: 1fr; } }

/* ── Guide Pages ─────────────────────────────────────────── */
.guide-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px;
  max-width: var(--max-w); margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 32px 80px;
}
.guide-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; }
.guide-sidebar h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 10px; margin-top: 20px;
}
.guide-sidebar h4:first-child { margin-top: 0; }
.guide-sidebar a {
  display: block; font-size: 13px; color: var(--text-dim);
  padding: 4px 12px; border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.guide-sidebar a:hover { color: var(--text); }
.guide-sidebar a.active { color: var(--accent); border-left-color: var(--accent); }
.guide-content { min-width: 0; }
.guide-content h1 { font-size: 32px; margin-bottom: 8px; }
.guide-content .guide-meta { font-size: 13px; color: var(--text-dim); margin-bottom: 32px; }
.guide-content h2 {
  font-size: 22px; margin-top: 48px; margin-bottom: 16px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.guide-content h2:first-of-type { border-top: none; padding-top: 0; }
.guide-content h3 { font-size: 17px; margin-top: 32px; margin-bottom: 12px; }
.guide-content p { margin-bottom: 16px; color: var(--text-dim); font-size: 15px; }
.guide-content strong { color: var(--text); }
.guide-content ul, .guide-content ol {
  margin-bottom: 16px; padding-left: 24px; color: var(--text-dim); font-size: 15px;
}
.guide-content li { margin-bottom: 6px; }
.guide-content code {
  background: var(--bg-card); padding: 2px 7px; border-radius: 4px;
  font-family: 'Fira Code', 'Consolas', monospace; font-size: 13px; color: var(--accent);
}
.guide-content pre {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; overflow-x: auto; margin-bottom: 16px;
}
.guide-content pre code { background: none; padding: 0; font-size: 13px; color: var(--text); }
.guide-content .tip {
  padding: 16px 20px; border-radius: var(--radius); margin-bottom: 16px;
  background: var(--accent-glow); border-left: 3px solid var(--accent);
}
.guide-content .tip strong { color: var(--accent); }
.guide-content .tip p { margin-bottom: 0; }
.guide-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px; }
.guide-content th, .guide-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.guide-content th { background: var(--bg-card); font-weight: 700; color: var(--text); }
.guide-content td { color: var(--text-dim); }
.guide-content kbd {
  display: inline-block; padding: 2px 7px; border-radius: 4px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  font-family: inherit; font-size: 12px; font-weight: 700; color: var(--text);
  box-shadow: 0 1px 0 var(--border-light);
}

/* Guide hub grid */
.guide-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.guide-card {
  display: block; padding: 24px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.15s;
}
.guide-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.guide-card h3 { font-size: 16px; margin-bottom: 6px; color: var(--text); }
.guide-card p { font-size: 13px; color: var(--text-dim); margin: 0; }
.guide-card .guide-card-level {
  font-size: 11px; color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
}
.guide-category-header {
  grid-column: 1 / -1;
  font-size: 18px; font-weight: 800; color: var(--text);
  margin: 24px 0 4px; padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.guide-category-header:first-child { margin-top: 0; }

/* Reference page (card-sizes) */
.ref-table-wrap { overflow-x: auto; }
.ref-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ref-table th, .ref-table td { padding: 8px 12px; border: 1px solid var(--border); }
.ref-table th {
  background: var(--bg-card); font-weight: 700; color: var(--text);
  position: sticky; top: 0;
}
.ref-table td { color: var(--text-dim); }
.ref-table tr:hover td { background: var(--bg-card); }
.ref-table .cat-row td {
  background: var(--accent-glow); color: var(--accent);
  font-weight: 700; border-color: var(--border);
}

/* Legal pages */
.legal-page {
  max-width: 720px; margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 32px 80px;
}
.legal-page h1 { font-size: 32px; margin-bottom: 8px; }
.legal-page .legal-date { font-size: 13px; color: var(--text-dim); margin-bottom: 32px; }
.legal-page h2 { font-size: 20px; margin-top: 40px; margin-bottom: 12px; }
.legal-page p, .legal-page li {
  font-size: 15px; color: var(--text-dim); margin-bottom: 12px; line-height: 1.7;
}
.legal-page ul { padding-left: 24px; }
.legal-page ol { padding-left: 24px; }
.legal-page a { color: var(--accent); }
.legal-page h3 { font-size: 17px; margin-top: 28px; margin-bottom: 8px; }
.legal-page table {
  width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px;
}
.legal-page th, .legal-page td {
  text-align: left; padding: 10px 12px; border: 1px solid var(--border, #e0d6cc);
  color: var(--text-dim); line-height: 1.6; vertical-align: top;
}
.legal-page th {
  background: var(--bg-secondary, #f8f5f0); font-weight: 700;
  color: var(--text-primary, #3e2c1a); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.03em;
}
.legal-page td code {
  background: var(--bg-secondary, #f8f5f0); padding: 2px 5px; border-radius: 3px;
  font-size: 13px;
}
@media (max-width: 600px) {
  .legal-page table { font-size: 13px; }
  .legal-page th, .legal-page td { padding: 8px; }
  .legal-page table { display: block; overflow-x: auto; }
}

@media (max-width: 768px) {
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 48px; }
  .section { padding: 48px 20px; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar {
    position: static; display: flex; gap: 8px; flex-wrap: wrap;
    border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 16px;
  }
  .guide-sidebar h4 { width: 100%; margin-top: 12px; }
  .guide-sidebar a {
    border-left: none; padding: 4px 10px;
    background: var(--bg-card); border-radius: var(--radius-sm); font-size: 12px;
  }
  .stats-bar { gap: 24px; }
  .hide-mobile { display: none !important; }
  .site-nav-cta { display: none !important; }
}

.mobile-only { display: none; }
@media (max-width: 768px) {
  .mobile-only { display: inline; }
}
.mobile-cta-note {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 600;
}

/* ── Feature Carousel ─────────────────────────────────────── */
.feature-carousel {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  position: relative;
}
.carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9.5;
  overflow: hidden;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.carousel-slide.active { opacity: 1; z-index: 1; }
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #111;
}
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85) 40%);
  color: #fff;
}
.carousel-caption h4 { font-size: 15px; font-weight: 800; margin: 0 0 2px; color: #fff; }
.carousel-caption p { font-size: 12px; margin: 0; color: rgba(255,255,255,0.8); line-height: 1.4; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-btn:hover { background: rgba(0,0,0,0.75); }
.carousel-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 10px 0;
  background: var(--bg-card);
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active { background: var(--accent); transform: scale(1.3); }

/* ── Generator Showcase ───────────────────────────────────── */
.gen-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--max-w);
}
.gen-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0 0 16px;
  overflow: hidden;
  text-align: center;
  transition: border-color 0.2s, transform 0.35s ease, box-shadow 0.3s ease;
}
.gen-showcase-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.gen-showcase-preview {
  width: 100%;
  height: 140px;
  display: block;
  background: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.gen-showcase-card h4 {
  font-size: 15px;
  margin: 12px 16px 4px;
  color: var(--text);
}
.gen-showcase-card p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 16px;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .gen-showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gen-showcase-grid { grid-template-columns: 1fr; }
}

/* ── Feature Card Links ───────────────────────────────────── */
.feature-card-link {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  margin-top: 8px;
  display: inline-block;
}
.feature-card-link:hover { text-decoration: underline; }
