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

:root {
  --sidebar-w: 272px;
  /* ── Dark mode (default) ── */
  --bg: #0a0a0a;
  --sidebar-bg: #0e0e0e;
  --surface: #111111;
  --text: #f0ede8;
  --text-muted: rgba(240, 237, 232, 0.5);
  --text-dim: rgba(240, 237, 232, 0.28);
  --accent: #e87c5a;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --radius-lg: 20px;
  --radius-card: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Light mode ── */
[data-theme="light"] {
  --bg: #f4f1eb;
  --sidebar-bg: #ede9e2;
  --surface: #e5e1d8;
  --text: #0d0c0a;
  --text-muted: rgba(13, 12, 10, 0.55);
  --text-dim: rgba(13, 12, 10, 0.3);
  --accent: #d96b47;
  --border: rgba(0, 0, 0, 0.09);
  --border-strong: rgba(0, 0, 0, 0.16);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
}

/* ─────────────────────────────────────────────
   SIDEBAR
   ───────────────────────────────────────────── */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 100;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

/* ── Sidebar top ── */
.sidebar-top {
  padding: 36px 28px 28px;
  border-bottom: 1px solid var(--border);
}

.sidebar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sidebar-brand {
  display: block;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}

.sidebar-tagline {
  font-size: 20px;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.sidebar-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.tag-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Hide sample cards in sidenav layout */
#cards { display: none; }

/* ── Sidebar nav ── */
.sidebar-nav {
  flex: 1;
  padding: 20px 0;
}

.snav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s;
  position: relative;
}
.snav-link:hover { color: var(--text); }
.snav-link.active { color: var(--text); }

/* Animated left bar indicator */
.snav-indicator {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: transparent;
  flex-shrink: 0;
  transition: background 0.22s;
}
.snav-link.active .snav-indicator {
  background: var(--accent);
}
.snav-link:hover .snav-indicator {
  background: var(--border-strong);
}

/* Sub-links under Categories */
.snav-sub {
  padding: 4px 0 8px 52px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.snav-sub-link {
  font-size: 12.5px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.15s, padding-left 0.15s;
  cursor: pointer;
  /* Explicitly override any data-cat gradient rules */
  background: none !important;
  background-image: none !important;
}
.snav-sub-link:hover {
  color: var(--text-muted);
  padding-left: 4px;
  background: none !important;
}

/* ── Sidebar bottom ── */
.sidebar-bottom {
  padding: 24px 28px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-stats {
  display: flex;
  gap: 24px;
}

.sidebar-stat-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.sidebar-stat-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────
   MAIN CONTENT
   ───────────────────────────────────────────── */

main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
}

/* Sections are full-width — backgrounds & borders span the whole area */
main section {
  width: 100%;
  border-bottom: 1px solid var(--border);
}
main section:last-of-type { border-bottom: none; }

/* ── Centering wrapper — used inside every section ── */
/* Handles max-width + centering + fluid padding           */
.section-wrap,
.how-inner {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(48px, 6vw, 88px) clamp(24px, 4.5vw, 64px);
}

/* ─────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--text);
  color: #0a0a0a;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  font-family: var(--font);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary.btn-large { padding: 15px 36px; font-size: 16px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */

#hero {
  display: flex;
  align-items: stretch;
  padding: 0;
  min-height: 92vh;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  /* Full-bleed — no max-width, no extra padding */
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
}

#hero h1 {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 400px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  overflow: hidden;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─────────────────────────────────────────────
   INTRO
   ───────────────────────────────────────────── */

#intro { background: var(--surface); }

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.intro-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.intro-item h3 {
  font-size: 17px;
  font-weight: 720;
  margin-bottom: 12px;
  line-height: 1.3;
}

.intro-item p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   SECTION HEADER
   ───────────────────────────────────────────── */

.section-header { margin-bottom: 52px; }

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 820;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.65;
}

/* ── Category pills ── */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.cat-pill-btn {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 6px 15px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
}
.cat-pill-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

/* ─────────────────────────────────────────────
   CARD GRADIENTS  (scoped to card faces only —
   NOT sidebar links which also carry data-cat)
   ───────────────────────────────────────────── */

:is(.cat-flip-front, .flip-card-front)[data-cat="user-behaviour"] {
  background: linear-gradient(180deg,
    #0d1825 0%, #1a1230 18%, #3a1020 38%,
    #8a1a1a 58%, #c23030 80%, #c83535 100%);
}
:is(.cat-flip-front, .flip-card-front)[data-cat="trust-safety"] {
  background: linear-gradient(180deg,
    #c87820 0%, #a85e18 20%, #6a4010 40%,
    #3a3010 58%, #222c14 78%, #182818 100%);
}
:is(.cat-flip-front, .flip-card-front)[data-cat="system-state"] {
  background: linear-gradient(180deg,
    #e8a0a0 0%, #d88898 22%, #b87898 42%,
    #8870a0 60%, #4870a8 80%, #2870a8 100%);
}
:is(.cat-flip-front, .flip-card-front)[data-cat="cognitive-content"] {
  background: linear-gradient(180deg,
    #0a1412 0%, #0c1a18 20%, #101e28 40%,
    #182638 60%, #1e2e50 80%, #243060 100%);
}
:is(.cat-flip-front, .flip-card-front)[data-cat="context-device"] {
  background: linear-gradient(180deg,
    #08080f 0%, #100818 20%, #180c28 38%,
    #2c1442 58%, #4c3068 78%, #6e5888 100%);
}
:is(.cat-flip-front, .flip-card-front)[data-cat="interaction"] {
  background: linear-gradient(180deg,
    #080c06 0%, #0c1408 18%, #142010 38%,
    #1e3018 55%, #3a5020 72%, #707828 100%);
}
:is(.cat-flip-front, .flip-card-front)[data-cat="ai-specific"] {
  background: linear-gradient(180deg,
    #d4c0a0 0%, #caa880 18%, #c09070 32%,
    #b07880 48%, #906080 65%, #684878 82%, #4a3870 100%);
}

/* ─────────────────────────────────────────────
   CARD CONTENT (shared by category + flip fronts)
   ───────────────────────────────────────────── */

.category-card,
.flip-card-front {
  container-type: inline-size;
}

.cat-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 22px 24px;
}

.cat-name {
  font-size: 13cqi;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 0.05em;
}
.cat-failures {
  font-size: 9cqi;
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  margin-bottom: 0.6em;
}
.cat-question {
  font-size: 4cqi;
  font-style: italic;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.2em;
}
.cat-brand {
  font-size: 2.4cqi;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────
   CATEGORIES GRID
   ───────────────────────────────────────────── */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  justify-items: stretch;
}

/* Explicitly pin last card (AI-Specific) to column 1 */
.categories-grid .category-card:last-child {
  grid-column: 1;
}

.category-card {
  aspect-ratio: 5 / 7;
  perspective: 1200px;
  cursor: pointer;
  transition: opacity 0.25s;
}

.cat-flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.category-card:hover .cat-flip-inner {
  transform: rotateY(180deg);
}

.cat-flip-front,
.cat-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-card);
  overflow: hidden;
  will-change: transform;
}

.cat-flip-back {
  transform: rotateY(180deg);
  background: #f5f3ef;
  color: #0a0a0a;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ─────────────────────────────────────────────
   FLIP CARDS
   ───────────────────────────────────────────── */

#cards { background: var(--surface); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.flip-card {
  aspect-ratio: 5 / 7;
  perspective: 1200px;
  cursor: pointer;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-card);
  overflow: hidden;
  will-change: transform;
}

.flip-card-back {
  background: #f5f3ef;
  color: #0a0a0a;
  transform: rotateY(180deg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fc-back-top { flex: 1; }

.fc-back-cat {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.fc-back-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  color: #0a0a0a;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.fc-back-prompt {
  font-size: 12.5px;
  font-style: italic;
  color: #666;
  margin-bottom: 18px;
}
.fc-back-body {
  font-size: 13px;
  line-height: 1.65;
  color: #333;
}
.fc-back-stamp {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ccc;
  text-transform: uppercase;
  margin-top: 20px;
}

.cards-hint {
  text-align: center;
  margin-top: 36px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────────
   HOW IT WORKS
   ───────────────────────────────────────────── */

.how-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.how-content h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 820;
  letter-spacing: -0.022em;
  margin-bottom: 48px;
  line-height: 1.1;
}

.steps { display: flex; flex-direction: column; gap: 32px; }

.step { display: flex; gap: 20px; align-items: flex-start; }

.step-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 4px;
  flex-shrink: 0;
  width: 26px;
}
.step-text h3 { font-size: 16px; font-weight: 720; margin-bottom: 6px; }
.step-text p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.how-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}

/* ─────────────────────────────────────────────
   WHO IT'S FOR
   ───────────────────────────────────────────── */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.25s;
}
.audience-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.audience-icon { font-size: 20px; color: var(--text-dim); margin-bottom: 16px; }
.audience-card h3 { font-size: 16px; font-weight: 720; margin-bottom: 10px; }
.audience-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

/* ─────────────────────────────────────────────
   CTA
   ───────────────────────────────────────────── */

#get {
  position: relative;
  overflow: hidden;
}
#get::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(232, 124, 90, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner { max-width: 560px; position: relative; /* left-aligned within section-wrap */ }

.cta-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.cta-inner h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.cta-inner p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-actions { margin-bottom: 20px; }

.cta-detail { font-size: 12px; color: var(--text-dim); letter-spacing: 0.03em; }

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4.5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand { font-size: 11px; font-weight: 750; letter-spacing: 0.13em; }
.footer-tagline { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--text); }

/* ─────────────────────────────────────────────
   MOBILE TOP BAR + HAMBURGER — hidden on desktop
   ───────────────────────────────────────────── */

.mob-topbar { display: none; }
.mob-overlay { display: none; }

.mob-brand {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}

.mob-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
}
.mob-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}
/* Hamburger → X animation */
body.nav-open .mob-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .mob-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.nav-open .mob-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────────
   THEME TOGGLE BUTTON
   ───────────────────────────────────────────── */

.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.3s;
}
.theme-toggle:hover {
  background: rgba(128, 128, 128, 0.1);
  color: var(--text);
  border-color: var(--border-strong);
  transform: rotate(20deg);
}

/* Show sun in dark mode, moon in light mode */
.theme-toggle .t-sun  { display: block; }
.theme-toggle .t-moon { display: none; }
[data-theme="light"] .theme-toggle .t-sun  { display: none; }
[data-theme="light"] .theme-toggle .t-moon { display: block; }


/* ─────────────────────────────────────────────
   LIGHT MODE OVERRIDES
   (things that don't respond to variables alone)
   ───────────────────────────────────────────── */

/* Primary button: dark bg + light text in light mode */
[data-theme="light"] .btn-primary {
  background: #0d0c0a;
  color: #f4f1eb;
}
[data-theme="light"] .btn-primary:hover { opacity: 0.85; }

/* Ghost button */
[data-theme="light"] .btn-ghost {
  color: rgba(13, 12, 10, 0.6);
  border-color: rgba(0, 0, 0, 0.18);
}
[data-theme="light"] .btn-ghost:hover {
  color: #0d0c0a;
  border-color: rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.04);
}

/* Category pills */
[data-theme="light"] .cat-pill-btn {
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(13, 12, 10, 0.6);
}
[data-theme="light"] .cat-pill-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.26);
  color: #0d0c0a;
}

/* Mobile top bar hamburger bars */
[data-theme="light"] .mob-hamburger span { background: var(--text); }

/* CTA glow */
[data-theme="light"] #get::before {
  background: radial-gradient(ellipse, rgba(217, 107, 71, 0.06) 0%, transparent 70%);
}

/* Audience cards */
[data-theme="light"] .audience-card:hover { transform: translateY(-4px); }

/* Active nav indicator stays accent colour — already via var(--accent) ✓ */

/* ─────────────────────────────────────────────
   RESPONSIVE — ≤ 1100px
   Categories: 3-col (sidebar takes space on the left)
   ───────────────────────────────────────────── */

@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); } /* already 3-col, stays same */
}

/* ─────────────────────────────────────────────
   RESPONSIVE — ≤ 900px
   Sidebar becomes off-canvas drawer.
   Sticky mobile top bar appears.
   ───────────────────────────────────────────── */

@media (max-width: 900px) {

  /* ── Show mobile top bar ── */
  .mob-topbar {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 58px;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--border);
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    z-index: 200;
  }

  /* ── Sidebar: off-canvas drawer ── */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: min(280px, 85vw);
    z-index: 160;
  }
  body.nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
  }

  /* ── Overlay behind open drawer ── */
  .mob-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  body.nav-open .mob-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  /* ── Body layout ── */
  body { flex-direction: column; }

  /* ── Main: no sidebar offset, offset for top bar ── */
  main {
    margin-left: 0;
    padding-top: 58px;
  }

  /* ── Hero ── */
  #hero { min-height: calc(100vh - 58px); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 260px; order: -1; }
  .hero-content { padding: clamp(40px, 5vw, 64px) clamp(24px, 5vw, 48px); }

  /* ── Grids ── */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cards-grid      { grid-template-columns: repeat(2, 1fr); }
  .intro-grid      { grid-template-columns: 1fr; gap: 28px; }
  .how-inner       { grid-template-columns: 1fr; gap: 40px; }
  .audience-grid   { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — ≤ 600px
   Full single-column layout for phones
   ───────────────────────────────────────────── */

@media (max-width: 600px) {

  /* Slightly shorter top bar */
  .mob-topbar { height: 52px; padding: 0 18px; }
  main { padding-top: 52px; }

  /* Hero */
  #hero { min-height: calc(100svh - 52px); }
  .hero-visual { height: 200px; }
  .hero-content { padding: 36px 20px 40px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  /* Categories */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cat-pills { gap: 6px; }
  .cat-pill-btn { font-size: 12px; padding: 5px 11px; }

  /* Sample cards */
  .cards-grid { grid-template-columns: 1fr; }

  /* Audience */
  .audience-grid { grid-template-columns: 1fr; }

  /* Section headers */
  .section-header { margin-bottom: 32px; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — ≤ 420px
   Tightest phone layout
   ───────────────────────────────────────────── */

@media (max-width: 420px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .hero-actions .btn-ghost { display: none; } /* de-clutter tiny screens */
}
