/* ═══════════════════════════════════════════════════════════════════════════
   MARKETUNLOCK — INDUSTRIAL PERFORMANCE MARKETING
   A war room aesthetic for battle-tested marketers
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fonts loaded in HTML head for better performance */

/* ─────────────────────────────────────────────────────────────────────────────
   DESIGN TOKENS
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  /* Typography scale */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;

  /* Spacing & Sizing */
  --max-content: 1240px;
  --max-prose: 720px;
  --gap: 1.5rem;
  --gap-lg: 2.5rem;

  /* Borders — sharp geometric */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 200ms;

  /* Accent — Brand lime green (consistent across themes) */
  --accent: #caff42;
  --accent-glow: rgba(202, 255, 66, 0.18);
  --accent-hover: #d4ff5c;
  --accent-dark: #b6e63a;

  /* Secondary accent — Electric blue for data/tech */
  --data: #0066ff;
  --data-glow: rgba(0, 102, 255, 0.12);

  /* Success/Warning/Danger */
  --success: #00c853;
  --warning: #ffb300;
  --danger: #ff3d3d;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LIGHT THEME (default)
   ───────────────────────────────────────────────────────────────────────────── */

:root,
[data-theme="light"] {
  --ink: #0a0a0a;
  --paper: #f6f7f1;
  --surface: #ffffff;
  --muted: #5a5a5a;
  --border: rgba(10, 10, 10, 0.1);
  --border-strong: rgba(10, 10, 10, 0.2);

  /* Accent text color - darker green for readability on light backgrounds */
  --accent-text: #4a7c00;

  /* Shadows — sharp, industrial */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 12px 36px rgba(202, 255, 66, 0.35);

  /* Theme-specific */
  --header-bg: #0a0a0a;
  --header-text: #fff;
  --code-bg: #0e0e0e;
  --code-text: #e8e6e3;
}

/* ─────────────────────────────────────────────────────────────────────────────
   DARK THEME
   ───────────────────────────────────────────────────────────────────────────── */

[data-theme="dark"] {
  --ink: #e8e6e3;
  --paper: #0e0e0e;
  --surface: #1a1a1a;
  --muted: #888888;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Accent text - original green is fine on dark backgrounds */
  --accent-text: #caff42;

  /* Shadows — subtle in dark mode */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 12px 36px rgba(202, 255, 66, 0.2);

  /* Theme-specific */
  --header-bg: #0a0a0a;
  --header-text: #fff;
  --code-bg: #000000;
  --code-text: #e8e6e3;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

/* Noise texture removed - flat background */

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

/* ─────────────────────────────────────────────────────────────────────────────
   LAYOUT CONTAINERS
   ───────────────────────────────────────────────────────────────────────────── */

.shell {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.img-fluid { max-width: 100%; height: auto; }
.figure-img { display: block; }

/* ─────────────────────────────────────────────────────────────────────────────
   ACCESSIBILITY
   ───────────────────────────────────────────────────────────────────────────── */

.skip {
  position: absolute;
  left: -9999px;
  top: 16px;
  padding: 12px 20px;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 9999;
}

.skip:focus {
  left: 16px;
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HEADER — Command center vibes
   ───────────────────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 3px solid var(--accent);
}

.site-header .shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--gap);
  min-height: 56px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--header-text);
  text-transform: uppercase;
}

/* Navigation toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 11px 9px;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease-out);
}

.nav-toggle:hover {
  border-color: var(--accent);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform var(--duration) var(--ease-out), opacity var(--duration);
}

.nav-close {
  display: none;
}

.nav-footer {
  display: none;
}

/* Navigation */
.site-nav {
  justify-self: center;
}

.nav-list {
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
  transition: all var(--duration) var(--ease-out);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(202, 255, 66, 0.12);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.header-cta {
  display: inline-flex;
}

/* Theme toggle button */
.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.theme-toggle:hover {
  background: rgba(202, 255, 66, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

/* Default: hide both, let theme selectors show correct one */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  opacity: 0;
}

/* Light mode: show moon icon */
[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
}

[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Dark mode: show sun icon */
[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.8);
}

/* Light mode: dark button with white moon */
[data-theme="light"] .theme-toggle {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #ffffff;
}

[data-theme="light"] .theme-toggle:hover {
  background: #1a1a1a;
  border-color: var(--accent);
  color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BUTTONS — Sharp, commanding
   ───────────────────────────────────────────────────────────────────────────── */

/* Base button reset — ensures all buttons match theme */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #0a0a0a;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(202, 255, 66, 0.45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(202, 255, 66, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-wide { width: 100%; }

/* Arrow indicator for buttons */
.btn-arrow::after {
  content: '→';
  font-size: 1.1em;
  transition: transform var(--duration) var(--ease-out);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

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

.site-main {
  padding: 0px 0 80px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PAGE HERO — Bold statements
   ───────────────────────────────────────────────────────────────────────────── */

.page-hero {
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--gap);
}

.kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  background: var(--code-bg);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.page-subtitle {
  max-width: 60ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BREADCRUMBS — Tactical Navigation System
   ───────────────────────────────────────────────────────────────────────────── */

.breadcrumbs {
  margin-bottom: 20px;
}

.breadcrumb-track {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--code-bg);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  position: relative;
  overflow: hidden;
}

/* Subtle scan-line effect */
.breadcrumb-track::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(202, 255, 66, 0.03) 2px,
    rgba(202, 255, 66, 0.03) 4px
  );
  pointer-events: none;
}

/* Corner accent marks */
.breadcrumb-track::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  opacity: 0.6;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-sep {
  display: flex;
  align-items: center;
  margin: 0 6px;
  color: var(--accent);
  opacity: 0.5;
}

.breadcrumb-sep svg {
  display: block;
}

.breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  color: var(--code-text);
  text-decoration: none;
  transition: all var(--duration) var(--ease-out);
  border: 1px solid transparent;
  opacity: 0.7;
}

.breadcrumb-link:hover {
  color: var(--accent);
  background: rgba(202, 255, 66, 0.1);
  border-color: rgba(202, 255, 66, 0.2);
  opacity: 1;
}

.breadcrumb-icon {
  display: flex;
  align-items: center;
  color: var(--accent);
  opacity: 0.8;
}

.breadcrumb-icon svg {
  display: block;
}

.breadcrumb-text {
  font-weight: 500;
}

/* Active/Current page indicator */
.breadcrumb-active {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(202, 255, 66, 0.15);
  border: 1px solid rgba(202, 255, 66, 0.3);
  color: var(--accent);
  font-weight: 600;
}

.breadcrumb-pulse {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: breadcrumb-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent);
}

@keyframes breadcrumb-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .breadcrumbs {
    margin-bottom: 16px;
  }

  .breadcrumb-track {
    padding: 8px 10px;
    border-left-width: 2px;
  }

  /* Hide corner accent on mobile */
  .breadcrumb-track::after {
    display: none;
  }

  .breadcrumb-list {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    row-gap: 6px;
  }

  /* Hide home icon on mobile, just show text */
  .breadcrumb-icon {
    display: none;
  }

  .breadcrumb-link {
    padding: 3px 6px;
    gap: 4px;
  }

  .breadcrumb-sep {
    margin: 0 2px;
  }

  .breadcrumb-sep svg {
    width: 12px;
    height: 12px;
  }

  .breadcrumb-active {
    padding: 3px 8px;
    gap: 6px;
  }

  .breadcrumb-active .breadcrumb-text {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .breadcrumb-pulse {
    width: 5px;
    height: 5px;
    flex-shrink: 0;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .breadcrumb-track {
    padding: 6px 8px;
  }

  .breadcrumb-list {
    font-size: 0.55rem;
  }

  .breadcrumb-link {
    padding: 2px 4px;
  }

  .breadcrumb-sep {
    margin: 0 1px;
  }

  .breadcrumb-sep svg {
    width: 10px;
    height: 10px;
  }

  .breadcrumb-active {
    padding: 2px 6px;
    gap: 4px;
  }

  .breadcrumb-active .breadcrumb-text {
    max-width: 100px;
  }

  .breadcrumb-pulse {
    width: 4px;
    height: 4px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   HOME HERO — The command center
   ───────────────────────────────────────────────────────────────────────────── */

.home-hero {
  padding: 64px 0 48px;
  position: relative;
}

/* Diagonal accent line */
.home-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 30%, transparent 30%);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--gap-lg);
  align-items: start;
}

.home-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: uppercase;
}

/* Accent word styling */
.home-title strong,
.home-title em {
  color: var(--accent);
  font-style: normal;
}

/* Light mode: add black outline to neon green text for readability */
[data-theme="light"] .home-title strong,
[data-theme="light"] .home-title em,
[data-theme="light"] .stat-value {
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

[data-theme="light"] .link-plain:hover {
  color: var(--ink);
  font-weight: 600;
}

.home-sub {
  margin: 20px 0 0;
  max-width: 50ch;
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Stat bar */
.home-stats {
  display: flex;
  gap: var(--gap);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat {
  padding-right: var(--gap);
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Quick path panel */
.home-panel {
  background: var(--code-bg);
  padding: 24px;
  position: relative;
}

/* Corner accent */
.home-panel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  background: var(--accent);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.home-panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.panel-link {
  display: block;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
  transition: all var(--duration) var(--ease-out);
  color: #fff;
}

.panel-link:hover {
  background: rgba(202, 255, 66, 0.1);
  border-color: var(--accent);
  transform: translateX(4px);
}

.panel-k {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-v {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.home-panel-cta {
  margin-top: 16px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HOME SECTIONS
   ───────────────────────────────────────────────────────────────────────────── */

.home-section {
  margin-top: 64px;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  margin-bottom: var(--gap);
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-strong);
}

.home-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.link-plain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--duration);
}

.link-plain:hover {
  color: var(--accent);
}

.link-plain::after {
  content: '→';
  transition: transform var(--duration);
}

.link-plain:hover::after {
  transform: translateX(4px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   GRID SYSTEM
   ───────────────────────────────────────────────────────────────────────────── */

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

/* ─────────────────────────────────────────────────────────────────────────────
   POST CARDS — Sharp, data-forward
   ───────────────────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--duration) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.card:hover::before {
  transform: scaleY(1);
}

.post-card { }

.post-card-link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  color: inherit;
}

.post-card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--code-bg) 0%, var(--surface) 100%);
  overflow: hidden;
  position: relative;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}

.card:hover .post-card-media img {
  transform: scale(1.05);
}

.post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.post-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 12px;
}

.post-card-meta-details {
  display: flex;
  align-items: center;
  gap: 8px;
}

.muted { color: var(--muted); }
.meta-dot { opacity: 0.4; }

/* Category pills */
.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--paper);
}

.pill-dark {
  background: var(--code-bg);
  color: var(--code-text);
  border-color: var(--code-bg);
}

.pill-accent {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}

.post-card-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.post-card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ARTICLE LAYOUT — Focused reading
   ───────────────────────────────────────────────────────────────────────────── */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--gap-lg);
  align-items: start;
}

.prose {
  min-width: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Desktop Lead Magnet CTA - below post title */
.post-leadmagnet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: rgba(202, 255, 66, 0.06);
  border: 1px solid rgba(202, 255, 66, 0.15);
  border-radius: 8px;
}

.post-leadmagnet-content {
  flex: 1;
  min-width: 0;
}

.post-leadmagnet-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.post-leadmagnet-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.post-leadmagnet .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Hub page variant - add top margin when in hero section */
.hub-leadmagnet {
  margin-top: 24px;
  margin-bottom: 0;
}

/* Hide desktop version on mobile, show mobile version instead */
@media (max-width: 900px) {
  .post-leadmagnet {
    display: none;
  }
}

/* Mobile Lead Magnet CTA - below meta */
.mobile-leadmagnet {
  display: none;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}

.mobile-leadmagnet-text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.mobile-leadmagnet .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .mobile-leadmagnet {
    display: flex;
  }
}

@media (max-width: 500px) {
  .mobile-leadmagnet {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .mobile-leadmagnet .btn {
    width: 100%;
  }
}

/* Inline Lead Magnet CTA - replaces action-box in content */
.inline-leadmagnet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  margin: 32px 0;
  background: rgba(202, 255, 66, 0.06);
  border: 2px solid rgba(202, 255, 66, 0.2);
  border-radius: 8px;
}

.inline-leadmagnet-content {
  flex: 1;
  min-width: 0;
}

.inline-leadmagnet-content strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.inline-leadmagnet .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .inline-leadmagnet {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .inline-leadmagnet .btn {
    width: 100%;
  }
}

/* Content container */
.content-item {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 40px 48px;
  position: relative;
}

/* Top accent bar */
.content-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 20%, var(--ink) 20%);
}

/* Typography within content */
.content-item h1,
.content-item h2,
.content-item h3,
.content-item h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 40px;
}

.content-item h1 { font-size: 2.25rem; }

.content-item h2 {
  font-size: 1.5rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.content-item h3 {
  font-size: 1.25rem;
  color: var(--muted);
}

.content-item p {
  margin: 0 0 1.25rem;
}

.content-item a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: all var(--duration);
}

.content-item a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

/* Light mode: black text with neon green underline */
[data-theme="light"] .content-item a {
  color: var(--ink);
  text-decoration-color: var(--accent);
}

[data-theme="light"] .content-item a:hover {
  color: var(--ink);
  text-decoration-color: var(--accent);
  font-weight: 600;
}

/* Lists */
.content-item ul,
.content-item ol {
  margin: 0 0 1.25rem;
  padding-left: 24px;
}

.content-item li {
  margin-bottom: 8px;
}

.content-item li::marker {
  color: var(--accent);
}

/* Code */
.content-item pre,
.content-item code {
  font-family: var(--font-mono);
}

.content-item code {
  padding: 2px 6px;
  background: rgba(12, 12, 12, 0.06);
  font-size: 0.9em;
}

.content-item pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 24px;
  margin: 24px 0;
  overflow-x: auto;
  position: relative;
}

.content-item pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.content-item pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

/* Blockquotes */
.content-item blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--code-bg);
  color: var(--code-text);
  border: none;
  position: relative;
}

.content-item blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.content-item blockquote p {
  margin: 0;
  font-style: italic;
  font-size: 1.1rem;
}

/* Tables - Mobile Optimized */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  /* Prevent parent scroll while scrolling table */
  overscroll-behavior-x: contain;
}

/* Scroll hint shadow on mobile */
@media (max-width: 768px) {
  .table-wrapper {
    position: relative;
    background:
      linear-gradient(to right, var(--surface) 30%, transparent),
      linear-gradient(to left, var(--surface) 30%, transparent),
      linear-gradient(to right, rgba(0,0,0,0.15), transparent 20px),
      linear-gradient(to left, rgba(0,0,0,0.15), transparent 20px);
    background-position: left center, right center, left center, right center;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 20px 100%, 20px 100%;
    background-attachment: local, local, scroll, scroll;
  }
}

.content-item table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0;
}

.content-item th,
.content-item td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

/* Allow text wrap in cells on larger screens */
@media (min-width: 769px) {
  .content-item th,
  .content-item td {
    white-space: normal;
  }
}

.content-item th {
  background: var(--code-bg);
  color: var(--code-text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  position: sticky;
  top: 0;
}

.content-item tr:hover td {
  background: var(--accent-glow);
}

/* Images */
.content-item img {
  margin: 24px 0;
  box-shadow: var(--shadow-md);
}

.content-item figure {
  margin: 32px 0;
}

.content-item figcaption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CALLOUT BOXES — Tactical highlights
   ───────────────────────────────────────────────────────────────────────────── */

/* Pro Tip */
.callout-tip,
.ninja-tip,
.pro-tip {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--code-bg);
  color: var(--code-text);
  position: relative;
  border-left: 4px solid var(--accent);
}

.callout-tip::before,
.ninja-tip::before,
.pro-tip::before {
  content: '⚡ PRO TIP';
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Warning */
.callout-warning,
.warning {
  margin: 24px 0;
  padding: 20px 24px;
  background: rgba(255, 184, 0, 0.1);
  border-left: 4px solid var(--warning);
  position: relative;
}

.callout-warning::before,
.warning::before {
  content: '⚠ WARNING';
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #b38600;
  margin-bottom: 8px;
}

/* Takeaway */
.callout-takeaway,
.takeaway,
.key-point {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--accent);
  color: #0a0a0a;
}

.callout-takeaway::before,
.takeaway::before,
.key-point::before {
  content: '→ KEY TAKEAWAY';
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  color: #0a0a0a;
}

/* 2026 Update Block */
.update-block,
.updated-2026 {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--data-glow);
  border: 2px solid var(--data);
  position: relative;
}

.update-block::before,
.updated-2026::before {
  content: '🔄 2026 UPDATE';
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--data);
  margin-bottom: 8px;
}

/* Action Box — Tactical CTA mission card */
.action-box {
  --action-glow: rgba(202, 255, 66, 0.15);
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 40px 0;
  background: var(--code-bg);
  overflow: hidden;
  isolation: isolate;
}

/* Scanline texture overlay */
.action-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(202, 255, 66, 0.03) 2px,
    rgba(202, 255, 66, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Accent edge indicator */
.action-box::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent), 0 0 40px var(--action-glow);
}

.action-box-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 20px 24px 20px 28px;
  position: relative;
  z-index: 2;
}

/* Label styling for the bold text */
.action-box-content strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

/* Link as primary CTA */
.action-box-content a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

.action-box-content a:hover {
  color: var(--accent);
}

/* Ensure action-box links stay white in light mode */
[data-theme="light"] .action-box-content a {
  color: #ffffff;
  text-decoration: none;
}

[data-theme="light"] .action-box-content a:hover {
  color: var(--accent);
}

/* Arrow button zone */
.action-box-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  background: var(--accent);
  color: #0a0a0a;
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
  transition: all var(--duration) var(--ease-out);
  cursor: pointer;
}

.action-box-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}

.action-box:hover .action-box-arrow {
  width: 80px;
  box-shadow: -10px 0 30px var(--action-glow);
}

.action-box:hover .action-box-arrow::before {
  opacity: 1;
}

/* Pulsing corner indicator */
@keyframes action-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 var(--action-glow);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 8px transparent;
  }
}

.action-box-arrow::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: #0a0a0a;
  animation: action-pulse 2s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SIDEBAR RAIL — Sticky utility
   ───────────────────────────────────────────────────────────────────────────── */

.rail {
  position: sticky;
  top: 96px;
}

.rail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: var(--gap);
}

.rail-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.rail-copy {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Table of Contents */
.toc ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

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

.toc a {
  font-size: 0.875rem;
  color: var(--muted);
  display: block;
  padding: 6px 0 6px 16px;
  border-left: 2px solid var(--border);
  transition: all var(--duration);
}

.toc a:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.toc ul ul {
  margin-top: 4px;
}

.toc ul ul a {
  padding-left: 32px;
  font-size: 0.8rem;
}

/* Pill row for tags */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   POST NAVIGATION
   ───────────────────────────────────────────────────────────────────────────── */

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: 32px;
}

.post-nav-link {
  display: block;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease-out);
}

.post-nav-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.post-nav-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.post-nav-t {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER — Solid foundation
   ───────────────────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 48px 0 32px;
  margin-top: 80px;
  position: relative;
}

/* Remove top margin on homepage where footer follows dark lp-explore section */
body:has(.lp-explore) .site-footer {
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Top border accent */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 25%, transparent 25%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--gap-lg);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-link,
.footer-link-inline {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 0;
  font-size: 0.95rem;
  transition: all var(--duration);
}

.footer-link:hover,
.footer-link-inline:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-note {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-small {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

/* Footer Newsletter CTA */
.footer-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  margin-bottom: 40px;
  background: rgba(202, 255, 66, 0.08);
  border: 1px solid rgba(202, 255, 66, 0.2);
  border-radius: 12px;
}

.footer-newsletter-content {
  flex: 1;
}

.footer-newsletter-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.footer-newsletter-desc {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-newsletter .btn {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .footer-newsletter {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .footer-newsletter .btn {
    width: 100%;
  }
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-sep {
  opacity: 0.3;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TAXONOMY / TERMS GRID
   ───────────────────────────────────────────────────────────────────────────── */

.term-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.term {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  transition: all var(--duration) var(--ease-out);
  position: relative;
}

.term::after {
  content: '→';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  font-size: 1.25rem;
  color: var(--accent);
  opacity: 0;
  transition: all var(--duration) var(--ease-out);
}

.term:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.term:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.term-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.term-count {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FORMS — Clean, utilitarian
   ───────────────────────────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: var(--gap);
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--border);
  background: var(--surface);
  transition: border-color var(--duration);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
  }
}

@media (max-width: 900px) {
  .site-header .shell {
    grid-template-columns: 1fr auto auto;
  }

  .header-cta {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-panel {
    max-width: 480px;
  }

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

  .rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
  }

  .content-item {
    padding: 28px 24px;
  }
}

@media (max-width: 760px) {
  :root {
    --gap: 1rem;
    --gap-lg: 2rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  /* Side drawer navigation */
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 80vw);
    background: var(--surface);
    border-left: 3px solid var(--accent);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 300ms var(--ease-out);
    z-index: 101;
    display: flex;
    flex-direction: column;
  }

  .nav-close {
    display: flex;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--ink);
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
    z-index: 10;
  }

  .nav-close:hover,
  .nav-close:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
  }

  .nav-close:focus {
    outline: none;
  }

  .site-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
  }

  .site-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }

  .site-nav .nav-link.is-active {
    color: var(--accent);
    background: rgba(202, 255, 66, 0.12);
    border-color: var(--accent);
  }

  /* Backdrop overlay */
  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
    animation: fadeIn 300ms var(--ease-out);
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-list {
    flex-direction: column;
    gap: 8px;
    margin-top: 48px;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
  }

  /* Hide header theme toggle on mobile */
  .header-actions .theme-toggle {
    display: none;
  }

  /* Nav drawer footer with theme toggle */
  .nav-footer {
    display: block;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }

  .nav-theme-toggle {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: #fff;
  }

  .nav-theme-toggle .icon-sun,
  .nav-theme-toggle .icon-moon {
    position: static;
    flex-shrink: 0;
  }

  .nav-theme-toggle .theme-label-dark,
  .nav-theme-toggle .theme-label-light {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
  }

  /* Show correct label based on theme */
  [data-theme="dark"] .theme-label-dark {
    display: inline;
  }
  [data-theme="dark"] .theme-label-light {
    display: none;
  }
  [data-theme="light"] .theme-label-dark {
    display: none;
  }
  [data-theme="light"] .theme-label-light {
    display: inline;
  }

  .nav-theme-toggle:hover {
    background: rgba(202, 255, 66, 0.1);
    border-color: var(--accent);
  }

  .nav-theme-toggle:hover .theme-label-dark,
  .nav-theme-toggle:hover .theme-label-light {
    color: var(--accent);
  }

  /* Light mode drawer adjustments */
  [data-theme="light"] .site-nav {
    background: #0a0a0a;
  }

  [data-theme="light"] .site-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
  }

  [data-theme="light"] .site-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }

  [data-theme="light"] .site-nav .nav-link.is-active {
    color: var(--accent);
    background: rgba(202, 255, 66, 0.12);
  }

  [data-theme="light"] .nav-footer {
    border-color: rgba(255, 255, 255, 0.1);
  }

  [data-theme="light"] .nav-close {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
  }

  [data-theme="light"] .nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
  }

  .home-title {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

  .home-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat {
    border-right: none;
    padding-right: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }

  .stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

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

  .page-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   ANIMATIONS & MICRO-INTERACTIONS
   ───────────────────────────────────────────────────────────────────────────── */

/* Fade-in on load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero > .shell > * {
  animation: fadeInUp 600ms var(--ease-out) both;
}

.home-hero > .shell > *:nth-child(1) { animation-delay: 0ms; }
.home-hero > .shell > *:nth-child(2) { animation-delay: 100ms; }

.home-section {
  animation: fadeInUp 500ms var(--ease-out) both;
}

/* Stagger cards */
.grid .card {
  animation: fadeInUp 400ms var(--ease-out) both;
}

.grid .card:nth-child(1) { animation-delay: 50ms; }
.grid .card:nth-child(2) { animation-delay: 100ms; }
.grid .card:nth-child(3) { animation-delay: 150ms; }
.grid .card:nth-child(4) { animation-delay: 200ms; }
.grid .card:nth-child(5) { animation-delay: 250ms; }
.grid .card:nth-child(6) { animation-delay: 300ms; }
.grid .card:nth-child(7) { animation-delay: 350ms; }
.grid .card:nth-child(8) { animation-delay: 400ms; }
.grid .card:nth-child(9) { animation-delay: 450ms; }

/* Focus states - subtle, no glow */
*:focus-visible {
  outline: none;
}

a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible {
  outline: none;
  border-color: var(--accent);
}

/* Selection */
::selection {
  background: var(--accent);
  color: #0a0a0a;
}

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

/* Code block with copy button */
.code-block-wrapper {
  position: relative;
}

.code-copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration);
}

.code-copy-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}

.code-copy-btn.is-copied {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

/* Scrolled header state */
.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

/* Visible state for scroll animations */
.content-item > h2,
.content-item > h3 {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}

.content-item > h2.is-visible,
.content-item > h3.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .rail,
  .nav-toggle,
  .btn {
    display: none !important;
  }

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

  .content-item {
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONSULTING PAGE — High-conversion sales page
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero Section */
.consulting-hero {
  background: var(--header-bg);
  color: #fff;
  padding: 80px 0;
}

.consulting-hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

.consulting-hero .kicker {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.consulting-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.consulting-title em {
  color: var(--accent);
  font-style: normal;
}

.consulting-sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 540px;
}

.consulting-proof {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.proof-item {
  display: flex;
  flex-direction: column;
}

.proof-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.proof-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.consulting-cta-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.cta-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Hero Card */
.consulting-hero-card {
  background: var(--surface);
  color: var(--ink);
  padding: 32px;
  position: relative;
  border-left: 4px solid var(--accent);
}

.hero-card-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.consulting-hero-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero-card-desc {
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.hero-card-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.hero-card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 600;
}

.hero-card-list li:last-child {
  border-bottom: none;
}

/* Consulting Sections */
.consulting-section {
  padding: 80px 0;
}

.consulting-section:nth-child(even) {
  background: var(--surface);
}

.shell-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--gap);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 48px;
}

/* Problem Section */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.problem-card {
  background: var(--paper);
  padding: 24px;
  border-left: 3px solid var(--border-strong);
  transition: border-color var(--duration);
}

.problem-card:hover {
  border-color: var(--accent);
}

.problem-icon {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.problem-card p {
  margin: 0;
  font-style: italic;
  color: var(--muted);
}

.problem-solution {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--paper);
  padding: 32px;
  border-top: 4px solid var(--accent);
  transition: transform var(--duration), box-shadow var(--duration);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Process Steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

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

.step-number {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--accent);
  color: #000;
  padding: 2px 8px;
  text-transform: uppercase;
}

.step-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Fit Section */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.fit-card {
  padding: 32px;
}

.fit-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.fit-yes {
  background: rgba(0, 200, 83, 0.08);
  border-left: 4px solid var(--success);
}

.fit-no {
  background: rgba(255, 61, 61, 0.08);
  border-left: 4px solid var(--danger);
}

.fit-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fit-card li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.fit-yes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 600;
}

.fit-no li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: 600;
}

.fit-card li:last-child {
  border-bottom: none;
}

/* Why Section */
.why-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.why-lead {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.why-content p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* CTA Box */
.consulting-cta {
  background: var(--header-bg);
  color: #fff;
}

.cta-box {
  text-align: center;
  padding: 48px;
  background: rgba(202, 255, 66, 0.05);
  border: 2px solid var(--accent);
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: #fff;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-subtext {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
}

/* Light mode: Force white text on dark CTA background */
[data-theme="light"] .consulting-cta {
  background: #0a0a0a;
  color: #fff;
}

[data-theme="light"] .cta-box h2,
[data-theme="light"] .cta-box p {
  color: #fff;
}

/* Alt Links Section */
.consulting-alt {
  text-align: center;
  padding: 60px 0;
}

.consulting-alt h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.alt-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0;
}

.alt-link {
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--duration);
}

.alt-link:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.alt-contact {
  color: var(--muted);
  margin-top: 24px;
}

.alt-contact a {
  color: var(--accent-dark);
}

/* Button Large */
.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 960px) {
  .consulting-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .consulting-hero-card {
    max-width: 400px;
  }

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

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

@media (max-width: 760px) {
  .consulting-hero {
    padding: 60px 0;
  }

  .consulting-proof {
    flex-wrap: wrap;
    gap: 24px;
  }

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

  .process-step {
    flex-direction: column;
    gap: 16px;
  }

  .alt-links {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING PAGE — Homepage as high-converting email capture
   ═══════════════════════════════════════════════════════════════════════════ */

/* Minimal header for landing page */
.lp-header {
  padding: 16px 0;
  background: #0a0a0a;
  border-bottom: 3px solid var(--accent);
}

.lp-header .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lp-header .brand-text {
  font-size: 1.25rem;
  color: #fff;
}

.lp-header .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

.lp-header .theme-toggle:hover {
  background: rgba(202, 255, 66, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* Container */
.lp-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.lp-hero {
  padding: 80px 0 60px;
  text-align: center;
}

.lp-kicker {
  display: inline-block;
  margin: 0 0 24px;
  padding: 8px 16px;
  background: var(--code-bg);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.lp-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.lp-headline em {
  color: var(--accent);
  font-style: normal;
}

/* Light mode outline for headline */
[data-theme="light"] .lp-headline em {
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

.lp-subhead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero CTA Buttons */
.lp-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.lp-cta-buttons .btn {
  min-width: 180px;
}

/* Email Form (hidden for now) */
.lp-form-wrapper {
  margin-bottom: 48px;
  display: none;
}

.lp-form-row {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  transition: border-color var(--duration);
}

.lp-form-row:focus-within {
  border-color: var(--accent);
}

.lp-input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
}

.lp-input::placeholder {
  color: var(--muted);
}

.lp-submit {
  padding: 16px 28px;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--duration);
  white-space: nowrap;
}

.lp-submit:hover {
  background: var(--accent-hover);
}

.lp-form-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Social Proof */
.lp-proof {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.lp-proof-item {
  text-align: center;
}

.lp-proof-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* Light mode outline for proof values */
[data-theme="light"] .lp-proof-value {
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

.lp-proof-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* Details Section */
.lp-details {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.lp-section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  margin: 0 0 48px;
}

.lp-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.lp-stack-item {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--border);
  position: relative;
}

.lp-stack-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
}

.lp-stack-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.lp-stack-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.lp-stack-item p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Bottom CTA */
.lp-bottom-cta {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.lp-bottom-text {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 24px;
}

/* Homepage Lead Magnet CTA Section */
.lp-leadmagnet {
  padding: 80px 0;
  background: var(--surface);
}

.lp-leadmagnet-box {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.lp-leadmagnet-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.lp-leadmagnet-content {
  flex: 1;
}

.lp-leadmagnet-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.lp-leadmagnet-title {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.lp-leadmagnet-desc {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.lp-leadmagnet-benefits {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.lp-leadmagnet-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

.lp-leadmagnet-benefits li::before {
  content: '✓';
  color: var(--accent-text);
  font-weight: 700;
}

.lp-leadmagnet-action {
  flex-shrink: 0;
  text-align: center;
}

.lp-leadmagnet-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .lp-leadmagnet {
    padding: 48px 0;
  }

  .lp-leadmagnet-box {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }

  .lp-leadmagnet-box::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
  }

  .lp-leadmagnet-benefits {
    justify-content: center;
  }

  .lp-leadmagnet-action .btn {
    width: 100%;
  }
}

/* Section/List Page Lead Magnet CTA */
.section-leadmagnet {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.section-leadmagnet-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.section-leadmagnet-content {
  flex: 1;
}

.section-leadmagnet-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-leadmagnet-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

.section-leadmagnet-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .section-leadmagnet-box {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    gap: 20px;
  }

  .section-leadmagnet-box .btn {
    width: 100%;
  }
}

/* Explore / Pillar Links Section */
.lp-explore {
  padding: 80px 0;
  background: var(--code-bg);
  position: relative;
}

.lp-explore::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 20%, transparent 20%);
}

.lp-explore-header {
  text-align: center;
  margin-bottom: 48px;
}

.lp-explore-header h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 0 0 8px;
}

.lp-explore-header p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.lp-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.lp-pillar {
  display: block;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transition: all var(--duration) var(--ease-out);
  position: relative;
}

.lp-pillar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--duration);
}

.lp-pillar:hover {
  background: rgba(202, 255, 66, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.lp-pillar:hover::before {
  opacity: 1;
}

.lp-pillar-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.lp-pillar-desc {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

/* Landing Page Footer */
.lp-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.lp-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SILO NAVIGATION — Internal linking for SEO
   ═══════════════════════════════════════════════════════════════════════════ */

/* Context link at top of articles */
.silo-nav {
  margin-bottom: 20px;
}

.silo-context {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.silo-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.silo-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--duration);
}

.silo-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.silo-sep {
  color: var(--muted);
}

/* Related articles section */
.silo-related {
  margin: 48px 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.silo-related-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 24px;
  color: var(--ink);
}

.silo-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.silo-related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--duration) var(--ease-out);
}

.silo-related-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.silo-related-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.silo-related-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.silo-related-all {
  text-align: center;
}

.silo-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--duration);
}

.silo-view-all:hover {
  color: var(--accent-hover);
}

@media (max-width: 600px) {
  .silo-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PILLAR PAGES — SEO silo structure
   ═══════════════════════════════════════════════════════════════════════════ */

.pillar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--gap-lg);
  align-items: start;
}

.pillar-main {
  min-width: 0;
}

.pillar-content {
  margin-bottom: 48px;
}

.pillar-content .content-item {
  max-width: 100%;
}

.pillar-children {
  margin-bottom: 48px;
}

.pillar-section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-strong);
}

.pillar-sections {
  margin-bottom: 48px;
}

/* Pillar sidebar */
.pillar-rail {
  position: sticky;
  top: 96px;
}

.rail-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rail-nav li {
  margin-bottom: 8px;
}

.rail-nav a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
  transition: all var(--duration);
}

.rail-nav a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.rail-nav-more {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  padding-left: 12px;
  margin-left: -12px;
}

.pillar-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pillar-section-card {
  display: block;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: all var(--duration) var(--ease-out);
  position: relative;
}

.pillar-section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease-out);
}

.pillar-section-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pillar-section-card:hover::before {
  transform: scaleX(1);
}

.pillar-section-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.pillar-section-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.5;
}

.pillar-section-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Pillar Page Responsive */
@media (max-width: 960px) {
  .pillar-layout {
    grid-template-columns: 1fr;
  }

  .pillar-rail {
    display: none;
  }

  .pillar-content .content-item {
    padding: 32px 24px;
  }
}

/* Landing Page Responsive */
@media (max-width: 760px) {
  .lp-hero {
    padding: 60px 0 48px;
  }

  .lp-headline {
    font-size: 1.75rem;
  }

  .lp-form-row {
    flex-direction: column;
    border: none;
    gap: 12px;
  }

  .lp-input {
    border: 2px solid var(--border-strong);
    background: var(--surface);
  }

  .lp-input:focus {
    border-color: var(--accent);
  }

  .lp-submit {
    width: 100%;
    padding: 18px;
  }

  .lp-proof {
    flex-direction: column;
    gap: 24px;
  }

  .lp-proof-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .lp-proof-value {
    font-size: 1.5rem;
    min-width: 60px;
  }

  .lp-proof-label {
    margin-top: 0;
  }

  .lp-stack-grid {
    grid-template-columns: 1fr;
  }

  .lp-details {
    padding: 60px 0;
  }

  .lp-explore {
    padding: 60px 0;
  }

  .lp-pillars {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lp-pillar {
    padding: 16px 20px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   AUTHOR PAGE
   ───────────────────────────────────────────────────────────────────────────── */

.author-page {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: var(--gap-lg) 0;
}

/* Author Header */
.author-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--gap);
  margin-bottom: var(--gap-lg);
  padding-bottom: var(--gap-lg);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .author-header {
    flex-direction: row;
    text-align: left;
    gap: var(--gap-lg);
  }
}

.author-photo {
  flex-shrink: 0;
}

.author-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.author-intro {
  flex: 1;
}

.author-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 0.25em;
  color: var(--ink);
}

.author-title {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.author-social {
  display: flex;
  gap: 12px;
  justify-content: center;
}

@media (min-width: 640px) {
  .author-social {
    justify-content: flex-start;
  }
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  transition: all var(--duration) var(--ease-out);
}

.social-link:hover {
  background: var(--accent);
  color: var(--ink-inverse);
  transform: translateY(-2px);
}

/* Author Stats */
.author-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: var(--gap-lg);
  padding: var(--gap);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

[data-theme="light"] .stat-value {
  color: var(--ink);
  text-shadow: none;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Author Content */
.author-content {
  margin-bottom: var(--gap-lg);
}

.author-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.author-content h2:first-child {
  margin-top: 0;
}

/* Expertise Section */
.author-expertise {
  margin-bottom: var(--gap-lg);
}

.author-expertise h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--gap);
}

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

@media (min-width: 640px) {
  .expertise-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.expertise-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
}

.expertise-icon {
  font-size: 1.25rem;
}

.expertise-name {
  color: var(--ink);
}

/* Featured Articles */
.author-articles {
  margin-bottom: var(--gap-lg);
}

.author-articles h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--gap);
}

.articles-grid {
  display: grid;
  gap: 12px;
}

.article-card {
  display: block;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--duration) var(--ease-out);
}

.article-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.article-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.article-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Author CTA */
.author-cta {
  text-align: center;
  padding: var(--gap-lg);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.author-cta h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}

.author-cta p {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   MODAL - Lead Magnet Email Capture (Mobile Best Practices)
   ───────────────────────────────────────────────────────────────────────────── */

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  touch-action: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--ease-out), visibility 300ms;
  overscroll-behavior: contain;
  -webkit-tap-highlight-color: transparent;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  transition: transform 300ms var(--ease-out);
  box-sizing: border-box;
  /* Hardware acceleration for smooth animations */
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.modal-content,
.modal-body,
.modal-form,
.modal-form .form-group,
.modal-form .form-input,
.modal-form .btn {
  box-sizing: border-box;
}

/* Prevent content from being scrollable during drag */
.modal-container:active {
  overflow: hidden;
}

.modal[aria-hidden="false"] .modal-container {
  transform: translateY(0) scale(1);
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

/* Accent top bar for visual pop */
.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}

/* Mobile drag handle indicator */
.modal-drag-handle {
  display: none;
  width: 36px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  margin: 0 auto;
  padding: 12px 0;
  background-clip: content-box;
  cursor: grab;
  touch-action: none;
}

.modal-drag-handle:active {
  cursor: grabbing;
}

/* Touch feedback for mobile */
@media (hover: none) {
  .modal-form .form-input:focus {
    border-color: var(--accent);
  }

  .modal-form .btn:active {
    transform: scale(0.98);
  }
}

.modal-body {
  padding: 48px 40px;
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

/* Eyebrow label above title */
.modal-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: rgba(202, 255, 66, 0.1);
  padding: 6px 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(202, 255, 66, 0.3);
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  line-height: 1.05;
  color: var(--ink);
}

/* Highlight key words in title */
.modal-title strong,
.modal-title em {
  color: var(--accent);
  font-style: normal;
}

.modal-desc {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Value bullets for what they get */
.modal-benefits {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  text-align: left;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.modal-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.modal-benefits li::before {
  content: '✓';
  color: var(--accent-text);
  font-weight: 700;
  flex-shrink: 0;
}

.modal-form .form-group {
  margin-bottom: 20px;
}

.modal-form .form-input {
  background: var(--paper);
}

.modal-form .btn {
  margin-top: 8px;
  position: relative;
}

/* CTA button for modal - no glow */
.modal-form .btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  font-size: 0.95rem;
  padding: 16px 24px;
  box-shadow: none;
  transition: all var(--duration) var(--ease-out);
}

.modal-form .btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: none;
}

.modal-form .btn-text,
.modal-form .btn-loading {
  transition: opacity var(--duration);
}

.modal-form .btn-loading {
  position: absolute;
  opacity: 0;
}

.modal-form .btn.is-loading .btn-text {
  opacity: 0;
}

.modal-form .btn.is-loading .btn-loading {
  opacity: 1;
}

.modal-form .spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* GDPR checkbox for modal forms */
.modal-form .form-group-checkbox {
  margin-bottom: 16px;
  margin-top: 4px;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
}

.form-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-checkbox-label a {
  color: var(--accent-text);
  text-decoration: none;
}

.form-checkbox-label a:hover {
  text-decoration: underline;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 12px 0 0;
}

.form-note a {
  color: var(--muted);
  text-decoration: underline;
}

.form-note a:hover {
  color: var(--ink);
}

/* Decline link - polite, non-manipulative */
.modal-decline {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color var(--duration);
}

.modal-decline:hover {
  color: var(--ink);
  background: transparent;
  transform: none;
  box-shadow: none;
}

/* Success State */
.modal-success,
.modal-error {
  text-align: center;
}

.success-icon {
  color: var(--success);
  margin-bottom: 24px;
}

.success-icon svg {
  width: 64px;
  height: 64px;
}

.modal-success .modal-title {
  color: var(--success);
}

.modal-success .modal-desc {
  margin-bottom: 24px;
}

/* Error State */
.error-icon {
  color: var(--danger);
  margin-bottom: 24px;
}

.error-icon svg {
  width: 64px;
  height: 64px;
}

.modal-error .modal-title {
  color: var(--danger);
}

.modal-error .modal-desc {
  margin-bottom: 24px;
}

/* Lead Magnet Rail Card */
.rail-leadmagnet {
  border-left: 3px solid var(--accent);
}

.rail-leadmagnet .rail-head {
  color: var(--accent);
}

/* Mobile-Optimized Modal */
@media (max-width: 640px) {
  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal-container {
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    transform: translateY(100%);
    border-radius: 16px 16px 0 0;
    overflow: visible;
    box-sizing: border-box;
  }

  .modal[aria-hidden="false"] .modal-container {
    transform: translateY(0);
  }

  .modal-content {
    width: 100%;
    border: none;
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 16px);
    box-sizing: border-box;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .modal-drag-handle {
    display: block;
    /* Larger touch target */
    padding: 16px 0;
    margin: 0 auto;
  }

  .modal-body {
    padding: 20px 20px 24px;
  }

  .modal-content {
    width: 100%;
    border: none;
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 16px);
    box-sizing: border-box;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .modal-content::before {
    height: 3px;
  }

  .modal-header {
    margin-bottom: 16px;
  }

  .modal-eyebrow {
    font-size: 0.65rem;
    padding: 4px 10px;
    margin-bottom: 12px;
  }

  .modal-title {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }

  .modal-desc {
    font-size: 0.9rem;
  }

  .modal-benefits {
    margin: 14px auto 0;
  }

  .modal-benefits li {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  /* Compact form inputs */
  .modal-form .form-group {
    margin-bottom: 12px;
  }

  .modal-form .form-label {
    font-size: 0.7rem;
    margin-bottom: 4px;
  }

  .modal-form .form-input {
    padding: 12px 14px;
    font-size: 16px; /* Prevents iOS zoom on focus */
    min-height: 46px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
  }

  .modal-form .btn {
    min-height: 48px;
    font-size: 0.85rem;
    margin-top: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .form-note {
    font-size: 0.7rem;
    margin-top: 10px;
  }

  /* Success/Error states mobile */
  .success-icon svg,
  .error-icon svg {
    width: 48px;
    height: 48px;
  }

  .success-icon,
  .error-icon {
    margin-bottom: 16px;
  }

  .modal-success .modal-desc,
  .modal-error .modal-desc {
    margin-bottom: 16px;
  }
}

/* Extra small screens */
@media (max-width: 380px) {
  .modal-body {
    padding: 16px 16px 20px;
  }

  .modal-title {
    font-size: 1.15rem;
  }

  .modal-form .form-input {
    padding: 10px 12px;
    min-height: 44px;
  }

  .modal-form .btn {
    min-height: 44px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   TASKS PAGE — AI Level badges and task cards
   ───────────────────────────────────────────────────────────────────────────── */

/* AI Level Pills */
.ai-pill {
  font-weight: 600;
}

.ai-pill-ai-automated {
  background: var(--success);
  color: #0a0a0a;
  border-color: var(--success);
}

.ai-pill-ai-assisted {
  background: var(--warning);
  color: #0a0a0a;
  border-color: var(--warning);
}

.ai-pill-human-only {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

/* Tasks Stats Row */
.tasks-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-bottom: var(--gap-lg);
}

.tasks-stats-compact {
  margin-bottom: var(--gap);
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--border);
}

.stat-total::before { background: var(--accent); }
.stat-automated::before { background: var(--success); }
.stat-assisted::before { background: var(--warning); }
.stat-human::before { background: var(--danger); }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Tasks Filters */
.tasks-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--gap-lg);
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 80px;
}

.filter-btn {
  padding: 6px 14px;
  font-size: 0.7rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: none;
}

.filter-btn:hover {
  background: var(--paper);
  border-color: var(--border-strong);
  transform: none;
  box-shadow: none;
}

.filter-btn.is-active {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}

.filter-automated.is-active {
  background: var(--success);
  border-color: var(--success);
}

.filter-assisted.is-active {
  background: var(--warning);
  border-color: var(--warning);
}

.filter-human.is-active {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

/* Tasks Grid */
.tasks-grid {
  margin-bottom: var(--gap-lg);
}

/* Task Card */
.task-card {
  display: flex;
  flex-direction: column;
}

.task-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  color: inherit;
}

.task-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.task-card-body {
  flex: 1;
}

.task-card-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
}

.task-card-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.task-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.task-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.task-meta svg {
  opacity: 0.6;
}

/* Task Detail Page */
.task-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.task-hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}

.task-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.task-detail svg {
  opacity: 0.6;
}

.task-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.task-rail {
  position: sticky;
  top: 80px;
}

.rail-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.rail-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.rail-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.task-tools {
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-tools li {
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.task-tools li:last-child {
  border-bottom: none;
}

.task-info {
  margin: 0;
}

.task-info dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.task-info dd {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.task-info dd:last-child {
  margin-bottom: 0;
}

.task-source {
  margin-top: var(--gap-lg);
  padding: var(--gap);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
}

.task-source h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.task-source p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Section Nav */
.section-nav {
  margin-top: var(--gap);
}

/* Tasks Empty State */
.tasks-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* Tasks Responsive */
@media (max-width: 960px) {
  .tasks-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .task-layout {
    grid-template-columns: 1fr;
  }

  .task-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
    padding: var(--gap);
    background: var(--surface);
    border: 1px solid var(--border);
    margin-top: var(--gap-lg);
  }

  .rail-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .rail-section:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .tasks-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-label {
    margin-bottom: 4px;
  }

  .task-rail {
    grid-template-columns: 1fr;
  }

  .rail-section:last-child {
    grid-column: span 1;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLUEPRINT PAGE — AI Business Blueprint Landing Page
   ═══════════════════════════════════════════════════════════════════════════ */

/* Blueprint Hero */
.blueprint-hero {
  background: var(--header-bg);
  color: #fff;
  padding: 80px 0;
}

.blueprint-hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

.blueprint-hero .kicker {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.blueprint-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.blueprint-title em {
  color: var(--accent);
  font-style: normal;
}

.blueprint-sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 540px;
}

.blueprint-proof {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.blueprint-cta-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

/* Blueprint Sections */
.blueprint-section {
  padding: 80px 0;
}

.blueprint-section:nth-child(even) {
  background: var(--surface);
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: -32px auto 48px;
}

/* Problem Narrative */
.problem-narrative {
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
}

.problem-narrative p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--muted);
}

.problem-narrative p:last-child {
  margin-bottom: 0;
}

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

/* Deliverables Grid */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.deliverable-card {
  background: var(--paper);
  padding: 32px;
  border-left: 4px solid var(--accent);
  display: flex;
  gap: 24px;
}

.deliverable-card:last-child {
  grid-column: span 2;
  max-width: calc(50% - 16px);
  margin: 0 auto;
}

.deliverable-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}

.deliverable-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.deliverable-tagline {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 16px;
}

.deliverable-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.deliverable-content li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  color: var(--muted);
  font-size: 0.9375rem;
}

.deliverable-content li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
}

/* Timeline Table */
.timeline-table {
  border: 1px solid var(--border);
  overflow: hidden;
}

.timeline-row {
  display: grid;
  grid-template-columns: 1fr 0.75fr 1.5fr 1.5fr;
  border-bottom: 1px solid var(--border);
}

.timeline-row:last-child {
  border-bottom: none;
}

.timeline-header {
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-cell {
  padding: 16px 20px;
  border-right: 1px solid var(--border);
}

.timeline-cell:last-child {
  border-right: none;
}

.timeline-header .timeline-cell {
  border-color: rgba(0, 0, 0, 0.2);
}

.timeline-cell.accent {
  color: var(--accent-dark);
  font-weight: 500;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--paper);
  padding: 32px;
  border-top: 4px solid var(--border-strong);
  position: relative;
  transition: transform var(--duration), box-shadow var(--duration);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-featured {
  border-top-color: var(--accent);
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.pricing-featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.pricing-desc {
  color: var(--muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.pricing-features li {
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 600;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li strong {
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent-dark);
}

.btn-outline:hover {
  background: var(--accent);
  color: #000;
}

/* Guarantee Box */
.guarantee-box {
  background: var(--paper);
  padding: 48px;
  border: 2px solid var(--accent);
  text-align: center;
}

.guarantee-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.guarantee-box h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.guarantee-content {
  max-width: 540px;
  margin: 0 auto;
  text-align: left;
}

.guarantee-content p {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.guarantee-content p:last-child {
  margin-bottom: 0;
}

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

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--paper);
  padding: 32px;
  border-left: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
}

.testimonial-content {
  flex: 1;
  margin-bottom: 24px;
}

.testimonial-content p {
  margin: 0;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-info strong {
  font-size: 0.9375rem;
}

.author-info span {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Why Section Extended */
.why-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
  text-align: left;
}

.why-point {
  padding: 20px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  color: var(--muted);
  line-height: 1.6;
}

.why-point strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

/* PS Section */
.ps-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
  background: var(--surface);
  border-left: 4px solid var(--accent);
}

.ps-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.ps-content strong {
  color: var(--accent-dark);
}

/* Blueprint CTA */
.blueprint-cta {
  background: var(--header-bg);
  color: #fff;
}

[data-theme="light"] .blueprint-cta {
  background: #0a0a0a;
  color: #fff;
}

[data-theme="light"] .blueprint-cta .cta-box h2,
[data-theme="light"] .blueprint-cta .cta-box p {
  color: #fff;
}

/* Blueprint Responsive */
@media (max-width: 1024px) {
  .deliverables-grid {
    grid-template-columns: 1fr;
  }

  .deliverable-card:last-child {
    grid-column: span 1;
    max-width: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-featured {
    transform: none;
  }

  .pricing-featured:hover {
    transform: translateY(-4px);
  }

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

@media (max-width: 960px) {
  .blueprint-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blueprint-hero-card {
    max-width: 400px;
  }

  .timeline-row {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-header .timeline-cell:nth-child(3),
  .timeline-header .timeline-cell:nth-child(4) {
    display: none;
  }

  .timeline-row:not(.timeline-header) .timeline-cell:nth-child(1),
  .timeline-row:not(.timeline-header) .timeline-cell:nth-child(2) {
    border-bottom: none;
  }

  .timeline-row:not(.timeline-header) .timeline-cell:nth-child(3),
  .timeline-row:not(.timeline-header) .timeline-cell:nth-child(4) {
    background: var(--surface);
  }
}

@media (max-width: 760px) {
  .blueprint-hero {
    padding: 60px 0;
  }

  .blueprint-proof {
    flex-wrap: wrap;
    gap: 24px;
  }

  .deliverable-card {
    flex-direction: column;
    gap: 16px;
  }

  .timeline-row {
    grid-template-columns: 1fr;
  }

  .timeline-header {
    display: none;
  }

  .timeline-cell {
    border-right: none;
    padding: 12px 20px;
  }

  .timeline-cell:first-child {
    background: var(--accent);
    color: #000;
    font-weight: 600;
  }

  .guarantee-box {
    padding: 32px 24px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTENT-ONLY LAYOUT — Full-width, no sidebar, no CTAs
   ═══════════════════════════════════════════════════════════════════════════ */

.layout-full {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gap);
}

.prose-full {
  width: 100%;
}

.prose-full .content-item {
  max-width: 100%;
}
