/* ═══════════════════════════════════════════════════════════════
   PEA SOUP DIGITAL — Design System
   Version: 2.0
   Built: March 2026
   ═══════════════════════════════════════════════════════════════ */

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

/* ─── Custom Properties ─── */
:root {
  /* Brand Colors */
  --pea: #2D5A27;
  --pea-rgb: 45,90,39;
  --mid: #4A7C3F;
  --mid-rgb: 74,124,63;
  --lt: #6B9F5B;
  --lt-rgb: 107,159,91;
  --pale: #E8F0E4;
  --gold: #C4A35A;
  --gold-rgb: 196,163,90;
  /* Accessible text variants (WCAG AA on white/cream) */
  --lt-text: #3D7A32;
  --gold-text: #8B6E2F;

  /* Neutrals */
  --cream: #FAFAF7;
  --cream-rgb: 250,250,247;
  --ink: #111111;
  --ink-rgb: 17,17,17;
  --grey-900: #1a1a1a;
  --grey-700: #404040;
  --grey-600: #525252;
  --grey-500: #6B7280;
  --grey-400: #9CA3AF;
  --grey-300: #D1D5DB;
  --grey-200: #E5E7EB;
  --grey-100: #F3F4F6;
  --white: #FFFFFF;

  /* Semantic */
  --text-primary: var(--ink);
  --text-secondary: var(--grey-500);
  --text-tertiary: var(--grey-400);
  --bg-primary: var(--cream);
  --bg-white: var(--white);
  --border: var(--grey-200);
  --border-light: rgba(0,0,0,0.08);

  /* Typography Scale (fluid) */
  --text-xs: clamp(0.6875rem, 0.65rem + 0.1vw, 0.75rem);       /* 11-12px */
  --text-sm: clamp(0.8125rem, 0.78rem + 0.1vw, 0.875rem);      /* 13-14px */
  --text-base: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);        /* 15-16px */
  --text-lg: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);        /* 17-19px */
  --text-xl: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);           /* 20-24px */
  --text-2xl: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);             /* 24-32px */
  --text-3xl: clamp(1.875rem, 1.4rem + 1.2vw, 2.625rem);       /* 30-42px */
  --text-4xl: clamp(2.25rem, 1.5rem + 2vw, 3.25rem);           /* 36-52px */
  --text-5xl: clamp(2.75rem, 1.7rem + 3vw, 4.75rem);           /* 44-76px */

  /* Spacing Scale */
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  --container-pad: var(--space-6);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 100px;

  /* Shadows (layered for depth) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.03), 0 1px 6px rgba(0,0,0,0.02);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 8px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 8px 16px rgba(0,0,0,0.08), 0 20px 60px rgba(0,0,0,0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;

  /* Z-index scale */
  --z-base: 1;
  --z-dropdown: 50;
  --z-sticky: 80;
  --z-nav: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

/* ─── Typography ─── */
.serif {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
}

.mono {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
  line-height: 1.75;
  color: var(--text-secondary);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

img, svg {
  max-width: 100%;
  display: block;
}

/* ─── Utility: Labels & Eyebrows ─── */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pea);
}

.eyebrow-light {
  color: var(--lt);
}

.eyebrow-gold {
  color: var(--gold);
}

/* ─── Layout ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Sections */
.section {
  padding: var(--space-24) 0;
}

.section-sm {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

.section-white {
  background: var(--bg-white);
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-dark p {
  color: rgba(255,255,255,0.55);
}

.section-green {
  background: linear-gradient(135deg, var(--pea) 0%, #1a3d16 100%);
  color: var(--white);
}

.section-green p {
  color: rgba(255,255,255,0.7);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

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

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

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }
.gap-16 { gap: var(--space-16); }
.flex-wrap { flex-wrap: wrap; }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Max width utilities */
.max-w-narrow { max-width: var(--container-narrow); }
.max-w-xs { max-width: 480px; }
.max-w-sm { max-width: 560px; }
.max-w-md { max-width: 720px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-overlay) + 5);
  transition: all 0.4s var(--ease-out);
  padding: 0 var(--container-pad);
}

.nav.scrolled {
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav-logo-text {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.nav-logo-name {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-logo-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--pea);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-primary);
  transition: color var(--duration-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--pea);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--pea);
  transition: width var(--duration-base) var(--ease-out);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--pea);
}

.nav-link.active::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  padding: 0;
}

.nav-dropdown-arrow {
  transition: transform var(--duration-fast);
  font-size: 10px;
  opacity: 0.5;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  box-shadow: var(--shadow-xl);
  min-width: 260px;
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transform-origin: top left;
  transition: all 0.2s var(--ease-out);
  pointer-events: none;
}

/* Bridge the gap between trigger and menu so hover doesn't break */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown.open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  transition: background var(--duration-fast), color var(--duration-fast);
}

.nav-dropdown-item:hover {
  background: var(--pale);
  color: var(--pea);
}

.nav-dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.nav-dropdown-label {
  font-weight: 500;
  font-size: 14px;
}

.nav-dropdown-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 1px;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-3);
  flex-direction: column;
  gap: 5px;
  z-index: calc(var(--z-overlay) + 10);
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: all var(--duration-base) var(--ease-out);
  border-radius: 1px;
}

.nav-toggle span:nth-child(3) {
  width: 14px;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

.nav-toggle.active span:nth-child(3) {
  width: 22px;
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: 'Fraunces', serif;
  font-size: var(--text-2xl);
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s var(--ease-out);
}

.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.open a:nth-child(7) { transition-delay: 0.4s; }
.mobile-menu.open a:nth-child(8) { transition-delay: 0.45s; }
.mobile-menu.open a:nth-child(9) { transition-delay: 0.5s; }

.mobile-menu a:hover {
  color: var(--pea);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  border: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--pea);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--mid);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 4px 12px rgba(var(--pea-rgb), 0.12), 0 12px 36px rgba(var(--pea-rgb), 0.28);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 2px 8px rgba(var(--pea-rgb), 0.18);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--pea);
  color: var(--pea);
  background: rgba(var(--pea-rgb), 0.04);
}

.btn-white {
  background: var(--white);
  color: var(--pea);
}

.btn-white:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 12px 36px rgba(0,0,0,0.18);
}

.btn-white:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--pea);
  padding: 0;
  font-weight: 500;
}

.btn-ghost:hover {
  gap: var(--space-3);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 13px;
}

.btn-lg {
  padding: 18px 40px;
  font-size: var(--text-base);
}

.btn-icon {
  transition: transform var(--duration-base) var(--ease-out);
}

.btn:hover .btn-icon {
  transform: translateX(5px) scale(1.1);
}

/* ─── Cards ─── */
.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  border: 1px solid var(--border);
  transition: all var(--duration-base) var(--ease-out);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--pea);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  transition: height 0.4s var(--ease-out);
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06), 0 16px 48px rgba(0,0,0,0.12);
  border-color: transparent;
}

.card:hover::before {
  height: 100%;
}

.card-flat {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  border: 1px solid var(--border);
}

.card-dark {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--duration-base) var(--ease-out);
}

.card-dark:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

/* ─── Tags ─── */
.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.tag-green {
  background: var(--pale);
  color: var(--pea);
}

.tag-gold {
  background: #FBF7EE;
  color: var(--gold);
}

.tag-pw {
  background: #F5F0EB;
  color: #5C4033;
}

.tag-dark {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
}

/* ─── Stats ─── */
.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--pea);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

/* ─── Dividers ─── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.divider-dark {
  background: rgba(255,255,255,0.08);
}

/* ─── Marquee ─── */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  animation: marquee 45s linear infinite;
  width: max-content;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  white-space: nowrap;
  padding: 0 var(--space-6);
}

.marquee-dot {
  color: var(--lt);
  margin: 0 var(--space-1);
}

/* ─── Quote Bar ─── */
.quote-bar {
  border-left: 4px solid var(--mid);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-6) 0;
  background: linear-gradient(135deg, rgba(var(--mid-rgb), 0.08) 0%, rgba(var(--mid-rgb), 0.03) 100%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote-bar p {
  font-family: 'Fraunces', serif;
  font-size: var(--text-base);
  font-style: italic;
  color: var(--grey-600);
  line-height: 1.6;
}

/* ─── Feature Rows ─── */
.feature-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
}

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

.feature-check {
  color: var(--pea);
  font-weight: 600;
  font-size: 16px;
}

/* ─── Process Steps ─── */
.process-step {
  position: relative;
}

.process-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: var(--pea);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.process-title {
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.process-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ─── Forms ─── */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-family: inherit;
  background: var(--white);
  outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  color: var(--text-primary);
}

.form-input:focus {
  border-color: var(--pea);
  box-shadow: 0 0 0 3px rgba(var(--pea-rgb), 0.08);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

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

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%236B7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-error {
  font-size: var(--text-xs);
  color: #ef4444;
  margin-top: var(--space-1);
  min-height: 1.4em;
  visibility: hidden;
}

.form-group.error .form-error {
  visibility: visible;
}

.form-group.error .form-input {
  border-color: #ef4444;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* form-group.error .form-error visibility handled above */

.form-success {
  padding: var(--space-6);
  background: var(--pale);
  border-radius: var(--radius-md);
  text-align: center;
  display: none;
}

.form-success.visible {
  display: block;
}

.form-success h3 {
  color: var(--pea);
  margin-bottom: var(--space-2);
}

/* ─── Footer ─── */
.footer {
  background: var(--ink);
  color: var(--white);
  padding: var(--space-20) 0 var(--space-10);
}

.footer a {
  color: rgba(255,255,255,0.65);
  font-size: var(--text-sm);
  transition: color var(--duration-fast);
}

.footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer-desc {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 280px;
  margin-top: var(--space-4);
}

.footer-heading {
  font-size: var(--text-xs);
  font-weight: 500;
  margin-bottom: var(--space-5);
  letter-spacing: 0.5px;
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.25);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.25);
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.6);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

/* ─── Hero ─── */
.hero {
  padding-top: 160px;
  padding-bottom: var(--space-20);
  position: relative;
  overflow: hidden;
}

.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-title {
  font-family: 'Fraunces', serif;
  font-size: var(--text-5xl);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
}

.hero-title em {
  color: var(--pea);
  font-style: italic;
}

.hero-subtitle {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-10);
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-16);
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid var(--border);
}

/* ─── CTA Section ─── */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section .hero-bg-blob {
  position: absolute;
}

/* ─── Page Header (for inner pages) ─── */
.page-header {
  padding-top: 160px;
  padding-bottom: var(--space-12);
}

.page-header-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-5);
}

.page-header h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-5);
}

.page-header h1 em {
  color: var(--pea);
  font-style: italic;
}

.page-header p {
  font-size: var(--text-lg);
  max-width: 600px;
}

/* ─── Cookie Consent ─── */
.cookie-banner {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  right: var(--space-6);
  max-width: 480px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  z-index: var(--z-toast);
  transform: translateY(120%);
  transition: transform 0.5s var(--ease-out);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

.cookie-banner p a {
  color: var(--pea);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-3);
}

/* ─── Skip to main content ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--pea);
  color: var(--white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: top 0.2s;
}

.skip-link:focus {
  top: var(--space-4);
}

/* ─── Scroll Reveal Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.reveal-fade {
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}

.reveal-fade.visible {
  opacity: 1;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ─── Misc ─── */
.no-item {
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.no-item-x {
  color: #ef4444;
  font-weight: 600;
  flex-shrink: 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--mid); border-radius: 3px; }

/* Selection */
::selection {
  background: rgba(var(--pea-rgb), 0.25);
  color: var(--pea);
}

/* Button focus + disabled */
.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(var(--pea-rgb), 0.25);
  outline: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--pea);
  outline-offset: 2px;
}

/* ─── Scroll Progress Bar ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--pea), var(--lt));
  z-index: calc(var(--z-nav) + 1);
  transition: none;
}

/* ─── Grain Texture Overlay ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ─── Varied Reveal Animations ─── */
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Utility Classes (replace inline styles) ─── */
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-2 { margin-top: var(--space-2); }
.mt-5 { margin-top: var(--space-5); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.pos-relative { position: relative; }

/* Section heading pattern */
.section-intro {
  margin-bottom: var(--space-12);
}

.section-intro h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  line-height: 1.15;
}

.section-intro h2 em {
  color: var(--pea);
  font-style: italic;
}

/* Icon box */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: var(--space-5);
}

.icon-box-lg {
  width: 56px;
  height: 56px;
}

/* Stat card (compact) */
.card-compact {
  padding: 28px;
}

/* Colored dot */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.dot-lg {
  width: 10px;
  height: 10px;
  margin-bottom: 20px;
}

.dot-pea { background: var(--pea); }
.dot-mid { background: var(--mid); }
.dot-lt { background: var(--lt); }
.dot-gold { background: var(--gold); }
.dot-brown { background: #5C4033; }
.dot-pale { background: var(--pale); }

/* Stat value in feature rows */
.feature-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 500;
  color: var(--pea);
}

/* Info box */
.info-box {
  background: var(--pale);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.info-box-title {
  font-weight: 500;
  color: var(--pea);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
}

/* Contact email */
.contact-email {
  color: var(--pea);
  font-weight: 400;
  font-size: var(--text-base);
}

/* CTA section content */
.cta-content {
  position: relative;
}

.cta-heading {
  font-family: 'Fraunces', serif;
  font-size: var(--text-4xl);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}

.cta-heading em {
  font-style: italic;
}

.cta-sub {
  font-size: var(--text-lg);
  max-width: 480px;
  margin: 0 auto var(--space-10);
}

.cta-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  opacity: 0.35;
  margin-top: var(--space-8);
}

/* CTA blobs */
.cta-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196,163,90,.15) 0%, transparent 60%);
}

/* Hero blobs */
.hero-blob-green {
  position: absolute;
  top: 80px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74,124,63,.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}

.hero-blob-gold {
  position: absolute;
  bottom: -60px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(196,163,90,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}

/* Full width */
.btn-full { width: 100%; }

/* Grid gap variants */
.grid-2-tight { gap: 16px; }
.grid-2-wide { gap: 64px; }
.grid-2-xl { gap: 80px; }

/* Card link */
.card-link {
  cursor: pointer;
  text-decoration: none;
  display: block;
}

/* Card title pattern */
.card-title {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.card-title-lg {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-top: 8px;
  margin-bottom: 12px;
}

/* Card body text */
.card-body {
  font-size: 14px;
  line-height: 1.7;
}

/* Card footer divider */
.card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Mobile menu CTA spacing */
.mobile-menu .btn {
  margin-top: 8px;
}

/* Footer brand area */
.footer-brand {
  margin-bottom: var(--space-4);
}

.footer-brand-name {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  color: #fff;
}

.footer-brand-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--lt);
  letter-spacing: 3px;
}

.footer-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

/* GDPR consent checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

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

.form-checkbox label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

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

/* Footer email signup */
.footer-signup {
  margin-top: var(--space-6);
}

.footer-signup-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-3);
}

.footer-signup-form {
  display: flex;
  gap: var(--space-2);
}

.footer-signup-input {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: var(--text-xs);
  font-family: inherit;
  outline: none;
  transition: border-color var(--duration-fast);
}

.footer-signup-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.footer-signup-input:focus {
  border-color: var(--lt);
}

.footer-signup-btn {
  padding: var(--space-2) var(--space-4);
  border: none;
  border-radius: var(--radius-sm);
  background: var(--pea);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--duration-fast);
  white-space: nowrap;
}

.footer-signup-btn:hover {
  background: var(--mid);
}

/* Service card subtitle */
.service-card-sub {
  font-size: 14px;
  margin-bottom: var(--space-4);
}

/* Stat number variants */
.stat-number-sm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  color: var(--pea);
}

.stat-number-brown {
  color: #5C4033;
}

.stat-number-mid {
  color: var(--mid);
}

.stat-number-gold {
  color: var(--gold);
}

/* Stat card meta */
.stat-card-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.stat-card-title {
  font-size: 14px;
  font-weight: 500;
}

.stat-card-desc {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* App card label */
.app-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 0;
}

/* Card footer status */
.card-footer-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

/* Card dark heading */
.card-dark h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--white);
}

.card-dark p {
  font-size: 14px;
  line-height: 1.7;
}

/* Contact section spacing */
.contact-section {
  padding-top: 160px;
}

.contact-card {
  padding: var(--space-10);
}

.contact-email-label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.info-box-list {
  font-size: var(--text-sm);
  line-height: 1.75;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Contact card */
.contact-card-title {
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-8);
  letter-spacing: -0.02em;
}

/* Success message */
.form-success h3 {
  font-size: var(--text-xl);
  font-weight: 500;
}

/* Nav dropdown icon background */
.nav-dropdown-icon {
  background: var(--pale);
}

/* ─── Inline Style Replacement Classes ─── */

/* Typography */
.serif-light {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 300;
}

.serif-light em {
  color: var(--pea);
  font-style: italic;
}

.text-pea { color: var(--pea); }
.text-mid { color: var(--mid); }
.text-lt { color: var(--lt); }
.text-gold { color: var(--gold); }
.text-brown { color: #5C4033; }
.text-white { color: var(--white); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-primary { color: var(--text-primary); }
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.lh-115 { line-height: 1.15; }
.lh-16 { line-height: 1.6; }
.lh-17 { line-height: 1.7; }
.lh-175 { line-height: 1.75; }
.lh-18 { line-height: 1.8; }
.ls-tight { letter-spacing: -0.02em; }
.ls-tighter { letter-spacing: -0.03em; }
.text-lg { font-size: var(--text-lg); }
.text-sm { font-size: var(--text-sm); }

/* Margin-top utilities */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

/* Margin-bottom extras */
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: var(--space-16); }

/* Padding-top utilities */
.pt-12 { padding-top: var(--space-12); }

/* Display */
.d-inline-block { display: inline-block; }

/* Service card — link behavior on cards */
.card-link {
  cursor: pointer;
  text-decoration: none;
  display: block;
}

a.card {
  cursor: pointer;
  text-decoration: none;
}

/* Service card icon box — used in homepage services grid */
.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

/* Service card text sizing */
.service-card h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.service-card .btn-ghost {
  font-size: 14px;
}

/* App preview card components */
.app-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.app-card-title {
  font-size: 20px;
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Case study visual card */
.case-study-visual {
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-10);
  position: relative;
  overflow: hidden;
}

.case-study-visual-bc { background: var(--pale); }
.case-study-visual-pw { background: #F5F0EB; }

.case-study-blob {
  position: absolute;
  border-radius: 50%;
}

.case-study-blob-tl {
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
}

.case-study-blob-br {
  bottom: -60px;
  left: -30px;
  width: 160px;
  height: 160px;
}

.case-study-blob-tl-pw {
  top: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
}

.case-study-blob-br-pw {
  bottom: -60px;
  right: -30px;
  width: 160px;
  height: 160px;
}

.case-study-blob-pea { background: rgba(45,90,39,0.06); }
.case-study-blob-pea-sm { background: rgba(45,90,39,0.04); }
.case-study-blob-brown { background: rgba(92,64,51,0.06); }
.case-study-blob-brown-sm { background: rgba(92,64,51,0.04); }

.case-study-watermark {
  font-family: 'Fraunces', serif;
  font-size: 72px;
  font-weight: 300;
  opacity: 0.15;
  line-height: 1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.04em;
}

/* Case study feature checklist item */
.case-study-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 16px;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
}

.case-study-feature span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Case study inline stat row */
.case-study-stats {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.case-study-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 500;
}

.case-study-stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Operator difference dark cards */
.operator-card {
  text-align: left;
}

.operator-card h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: var(--space-3);
  color: var(--white);
}

.operator-card p {
  font-size: 14px;
  line-height: 1.7;
}

/* App feature checklist item */
.app-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-feature-check-pea { background: var(--pale); }
.app-feature-check-gold { background: #FBF7EE; }

.app-feature-label {
  font-size: var(--text-sm);
  font-weight: 400;
}

/* App showcase visual box */
.app-showcase-box {
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 420px;
}

.app-showcase-box-pea { background: var(--pale); }
.app-showcase-box-gold { background: #FBF7EE; }

.app-showcase-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-8);
}

.app-showcase-icon-pea { background: rgba(45,90,39,0.1); }
.app-showcase-icon-gold { background: rgba(196,163,90,0.12); }

.app-showcase-name {
  font-family: 'Fraunces', serif;
  font-size: var(--text-2xl);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.app-showcase-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  letter-spacing: 1.5px;
}

/* App status badge */
.app-status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.app-status-badge span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
}

.app-status-badge-pea { background: var(--pale); }
.app-status-badge-gold { background: #FBF7EE; }

/* App subtitle text */
.app-subtitle {
  font-size: var(--text-sm);
}

/* Smart Cart showcase name color */
.text-gold-dark { color: #8B7335; }

/* Klaviyo results card stat */
.klaviyo-stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--pea);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-3);
}

.klaviyo-stat-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

/* About page feature row value */
.feature-row-label {
  color: var(--text-secondary);
  font-weight: 300;
}

.feature-row-no-border {
  border-bottom: none;
}

/* Honesty check icon */
.honesty-check {
  color: var(--pea);
  font-weight: 600;
  flex-shrink: 0;
}

/* Blog topic card */
.blog-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.blog-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.blog-card {
  cursor: default;
}

/* Blog coming soon box */
.blog-coming-soon {
  max-width: 600px;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-8);
}

.blog-signup-form {
  display: flex;
  gap: var(--space-3);
  max-width: 440px;
  margin: 0 auto;
}

.blog-signup-form .form-input {
  flex: 1;
}

/* 404 page */
.error-404-wrapper {
  padding-top: 200px;
  padding-bottom: 120px;
}

.error-404-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(80px, 12vw, 140px);
  font-weight: 500;
  color: var(--pale);
  line-height: 1;
  margin-bottom: var(--space-6);
}

.error-404-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Legal page content */
.legal-content {
  line-height: 1.8;
}

.legal-content h2 {
  margin-bottom: var(--space-4);
}

.legal-content h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  font-weight: 500;
}

.legal-content p {
  margin-bottom: var(--space-4);
}

.legal-content ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal-content li {
  margin-bottom: var(--space-2);
}

.legal-content a {
  color: var(--pea);
}

.legal-section-gap {
  margin-bottom: var(--space-10);
}

.legal-section-gap-lg {
  margin-bottom: var(--space-16);
}

/* Web design page specific stats */
.stat-card-centered {
  text-align: center;
  padding: var(--space-10) var(--space-6);
}

.stat-number-4xl {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-4xl);
  font-weight: 500;
  color: var(--pea);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-card-note {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* SEO results stat label variant */
.stat-label-sm {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* Page header with overflow */
.page-header-overflow {
  position: relative;
  overflow: hidden;
}

/* Web design page blobs */
.page-header-blob-green {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  top: 80px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74,124,63,.07) 0%, transparent 70%);
}

.page-header-blob-gold {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  bottom: -60px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(196,163,90,.05) 0%, transparent 70%);
}

/* Border top utility */
.border-top { border-top: 1px solid var(--border); }

/* App roadmap text */
.roadmap-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  letter-spacing: 2px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

/* Our work page header */
.our-work-header-text {
  font-size: var(--text-lg);
  max-width: 600px;
  margin: var(--space-6) auto 0;
}

/* Case study tag */
.case-study-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: 1px;
  margin-bottom: var(--space-6);
}

/* Order utility for mobile reorder */
.order-1 { order: 1; }
.order-2 { order: 2; }

/* Contact form full-width button */
.btn-full { width: 100%; }

/* Contact success link */
.form-success a {
  color: var(--pea);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    gap: var(--space-10);
  }

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

/* Mobile */
@media (max-width: 768px) {
  :root {
    --container-pad: var(--space-5);
  }

  .nav-links {
    display: none !important;
  }

  .nav-toggle {
    display: flex !important;
  }

  /* Bigger logo on mobile */
  .nav-logo svg {
    width: 40px;
    height: 40px;
  }

  .nav-logo-name {
    font-size: 24px;
  }

  .nav-logo-tag {
    font-size: 11px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    gap: var(--space-8);
  }

  .section {
    padding: var(--space-16) 0;
  }

  .section-lg {
    padding: var(--space-20) 0;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: var(--space-12);
  }

  .page-header {
    padding-top: 120px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-8);
  }

  .hero-stats > div {
    min-width: 120px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    text-align: center;
    justify-content: center;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .cookie-banner {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
  }

  .grid-2-wide,
  .grid-2-xl {
    gap: var(--space-8);
  }

  .contact-section {
    padding-top: 120px;
  }

  .footer-signup-form {
    flex-direction: column;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .section {
    padding: var(--space-12) 0;
  }

  .hero-stats {
    gap: var(--space-6);
  }

  .stat-number {
    font-size: var(--text-2xl);
  }
}

/* ─── CTA Section Button Sizing ─── */
.cta-section .btn-white {
  padding: 20px 48px;
  font-size: var(--text-base);
  font-weight: 600;
}

/* ─── Dark Section Text Contrast ─── */
.section-dark p,
.section-green p {
  color: rgba(255,255,255,0.75);
}

/* ─── Mid-page CTA Box ─── */
.mid-cta {
  text-align: center;
  padding: var(--space-10);
  background: var(--pale);
  border-radius: var(--radius-lg);
  margin: var(--space-12) 0;
}

.mid-cta p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

/* ─── Trust Box ─── */
.trust-box {
  background: var(--pale);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-8);
}

.trust-box p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   BLOG — Listing & Post Styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── Blog Search ─── */
.blog-search {
  max-width: 480px;
  margin: 0 auto var(--space-12);
  position: relative;
}

.blog-search-input {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  padding-left: 48px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-family: inherit;
  background: var(--white);
  outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  color: var(--text-primary);
}

.blog-search-input:focus {
  border-color: var(--pea);
  box-shadow: 0 0 0 3px rgba(var(--pea-rgb), 0.08);
}

.blog-search-input::placeholder {
  color: var(--text-tertiary);
}

.blog-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

/* ─── Blog Filter ─── */
.blog-filter {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.blog-filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.blog-filter-btn:hover {
  border-color: var(--pea);
  color: var(--pea);
  background: rgba(var(--pea-rgb), 0.04);
}

.blog-filter-btn.active {
  background: var(--pea);
  color: var(--white);
  border-color: var(--pea);
}

/* ─── Blog Grid ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

/* ─── Blog Card (with image) ─── */
.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--duration-base) var(--ease-out);
}

.blog-card-link:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06), 0 16px 48px rgba(0,0,0,0.12);
  border-color: transparent;
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--grey-100);
}

.blog-card-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--pale) 0%, var(--grey-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-image-placeholder svg {
  opacity: 0.2;
}

.blog-card-content {
  padding: var(--space-6) var(--space-8) var(--space-8);
}

.blog-card-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--pea);
  margin-bottom: var(--space-3);
}

.blog-card-title {
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.blog-card-excerpt {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.blog-card-meta-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--grey-300);
  flex-shrink: 0;
}

/* ─── Blog Featured Card ─── */
.blog-card-featured {
  grid-column: 1 / -1;
}

.blog-card-featured .blog-card-link {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.blog-card-featured .blog-card-image,
.blog-card-featured .blog-card-image-placeholder {
  aspect-ratio: auto;
  height: 100%;
  min-height: 340px;
}

.blog-card-featured .blog-card-content {
  padding: var(--space-10) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card-featured .blog-card-title {
  font-size: var(--text-2xl);
  font-family: 'Fraunces', serif;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.blog-card-featured .blog-card-excerpt {
  -webkit-line-clamp: 3;
  font-size: var(--text-base);
  line-height: 1.8;
}

/* ─── Blog Newsletter Section ─── */
.blog-newsletter {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.blog-newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 440px;
  margin: 0 auto;
}

.blog-newsletter-form .form-input {
  flex: 1;
}

/* ─── Blog Pagination ─── */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-16);
}

.blog-pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  text-decoration: none;
}

.blog-pagination-btn:hover {
  border-color: var(--pea);
  color: var(--pea);
  background: rgba(var(--pea-rgb), 0.04);
}

.blog-pagination-btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.blog-pagination-info {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════════════
   BLOG POST — Article Typography & Components
   ═══════════════════════════════════════════════════════════════ */

/* ─── Article Layout ─── */
.article {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ─── Article Header ─── */
.article-header {
  padding-top: 140px;
  padding-bottom: var(--space-8);
  text-align: center;
}

.article-header .eyebrow {
  margin-bottom: var(--space-5);
}

.article-header h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: var(--text-4xl);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.article-header h1 em {
  color: var(--pea);
  font-style: italic;
}

.article-header-subtitle {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

/* ─── Article Meta ─── */
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.article-meta-author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.article-meta-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--pea);
}

.article-meta-name {
  font-weight: 500;
  color: var(--text-primary);
}

.article-meta-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--grey-300);
  flex-shrink: 0;
}

/* ─── Article Hero Image ─── */
.article-hero {
  margin-bottom: var(--space-12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-hero img {
  width: 100%;
  display: block;
}

.article-hero-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--pale) 0%, var(--grey-100) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Article Body Typography ─── */
.article-body {
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  line-height: 1.9;
  color: var(--text-primary);
}

.article-body > * + * {
  margin-top: var(--space-6);
}

.article-body p {
  color: var(--grey-600);
  font-size: inherit;
  line-height: 1.9;
  font-weight: 400;
}

.article-body h2 {
  font-family: 'Fraunces', serif;
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-top: var(--space-16);
  margin-bottom: var(--space-4);
  scroll-margin-top: 100px;
}

.article-body h3 {
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-primary);
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
  scroll-margin-top: 100px;
}

.article-body h4 {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.article-body a {
  color: var(--pea);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-fast);
}

.article-body a:hover {
  border-bottom-color: var(--pea);
}

/* Pull Quotes */
.article-body blockquote {
  border-left: 3px solid var(--pea);
  padding: var(--space-6) var(--space-8);
  margin: var(--space-10) 0;
  background: linear-gradient(135deg, rgba(var(--pea-rgb), 0.04) 0%, transparent 100%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-body blockquote p {
  font-family: 'Fraunces', serif;
  font-size: var(--text-xl);
  font-style: italic;
  line-height: 1.6;
  color: var(--grey-700);
}

.article-body blockquote cite {
  display: block;
  margin-top: var(--space-3);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--text-tertiary);
}

/* Code Blocks */
.article-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875em;
  background: var(--grey-100);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--grey-700);
}

.article-body pre {
  background: var(--ink);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  overflow-x: auto;
  margin: var(--space-8) 0;
  -webkit-overflow-scrolling: touch;
}

.article-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: rgba(255,255,255,0.85);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Images */
.article-body figure {
  margin: var(--space-10) 0;
}

.article-body figure img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.article-body figcaption {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-3);
  font-style: italic;
}

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-8) 0;
  font-size: var(--text-sm);
}

.article-body thead th {
  text-align: left;
  font-weight: 500;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid var(--border);
}

.article-body tbody td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--grey-100);
  color: var(--grey-600);
  vertical-align: top;
}

.article-body tbody tr:nth-child(even) {
  background: var(--grey-100);
}

/* Lists */
.article-body ul,
.article-body ol {
  padding-left: var(--space-6);
  margin: var(--space-6) 0;
}

.article-body li {
  margin-bottom: var(--space-3);
  color: var(--grey-600);
  line-height: 1.8;
}

.article-body ul li::marker {
  color: var(--pea);
}

.article-body ol li::marker {
  color: var(--pea);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
}

/* Horizontal Rule */
.article-body hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: var(--space-12) 0;
}

/* ─── Table of Contents ─── */
.article-toc-wrapper {
  position: relative;
}

.article-toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-10);
}

.article-toc-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pea);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.article-toc-title svg {
  transition: transform var(--duration-fast);
}

.article-toc.collapsed .article-toc-title svg {
  transform: rotate(-90deg);
}

.article-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-toc.collapsed .article-toc-list {
  display: none;
}

.article-toc-list li {
  margin-bottom: 0;
}

.article-toc-list a {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast);
  border-bottom: none;
}

.article-toc-list a:hover {
  color: var(--pea);
}

.article-toc-list .toc-h3 {
  padding-left: var(--space-4);
  font-size: var(--text-xs);
}

/* Sticky TOC on wide screens */
@media (min-width: 1200px) {
  .article-toc-wrapper {
    position: relative;
  }

  .article-toc-sticky {
    position: fixed;
    top: 120px;
    left: calc(50% - 600px - 240px);
    width: 200px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
  }

  .article-toc-sticky .article-toc-title {
    cursor: default;
  }

  .article-toc-sticky .article-toc-list a {
    font-size: var(--text-xs);
    padding: 4px 0;
  }
}

/* ─── Article Share ─── */
.article-share {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: var(--space-12) 0;
}

.article-share-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.article-share-buttons {
  display: flex;
  gap: var(--space-2);
}

.article-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast);
  color: var(--text-secondary);
}

.article-share-btn:hover {
  border-color: var(--pea);
  color: var(--pea);
  background: rgba(var(--pea-rgb), 0.04);
}

/* ─── Author Bio ─── */
.article-author {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-16);
}

.article-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--pea);
}

.article-author-name {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.article-author-role {
  font-size: var(--text-sm);
  color: var(--pea);
  margin-bottom: var(--space-3);
}

.article-author-bio {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ─── Related Articles ─── */
.article-related {
  padding: var(--space-16) 0;
}

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

/* ─── Article FAQ (Accordion) ─── */
.article-faq {
  margin: var(--space-12) 0;
}

.article-faq-item {
  border-bottom: 1px solid var(--border);
}

.article-faq-item:first-child {
  border-top: 1px solid var(--border);
}

.article-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  gap: var(--space-4);
}

.article-faq-question:hover {
  color: var(--pea);
}

.article-faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--duration-fast);
  color: var(--text-tertiary);
}

.article-faq-item.open .article-faq-icon {
  transform: rotate(45deg);
}

.article-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-base) var(--ease-in-out);
}

.article-faq-item.open .article-faq-answer {
  max-height: 500px;
}

.article-faq-answer-inner {
  padding-bottom: var(--space-6);
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  padding-top: 100px;
  margin-bottom: var(--space-6);
}

.breadcrumb a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.breadcrumb a:hover {
  color: var(--pea);
}

.breadcrumb-sep {
  opacity: 0.4;
}

/* ═══════════════════════════════════════════════════════════════
   BLOG — Responsive
   ═══════════════════════════════════════════════════════════════ */

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

  .blog-card-featured .blog-card-link {
    grid-template-columns: 1fr;
  }

  .blog-card-featured .blog-card-image,
  .blog-card-featured .blog-card-image-placeholder {
    min-height: 240px;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

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

  .article-header {
    padding-top: 110px;
  }

  .article-header h1 {
    font-size: var(--text-3xl);
  }

  .article-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .article-share {
    flex-direction: column;
    text-align: center;
  }

  .blog-newsletter-form {
    flex-direction: column;
  }

  .breadcrumb {
    padding-top: 90px;
  }

  .blog-card-featured .blog-card-content {
    padding: var(--space-6) var(--space-6) var(--space-8);
  }

  .blog-card-featured .blog-card-title {
    font-size: var(--text-xl);
  }

  .blog-card-content {
    padding: var(--space-5) var(--space-6) var(--space-6);
  }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  .blog-card-link:hover {
    transform: none;
  }

  .article-faq-answer {
    transition: none;
  }

  .article-toc-title svg {
    transition: none;
  }
}
