/* ═══════════════════════════════════════════════════════════════════════════
   Spatrian Marketing Site — Styles
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0b10;
  --bg-alt: #0f1118;
  --surface: #161822;
  --surface-hover: #1c1f2e;
  --border: #252838;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #7d8da3;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* ═══ ACCESSIBILITY ═══ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 99999;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

img { max-width: 100%; }
a { color: var(--primary-light); text-decoration: none; }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 8px 24px var(--primary-glow); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* ═══ NAV ═══ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.nav-logo { font-size: 24px; }
.nav-logo-img { height: 44px; width: auto; object-fit: contain; }

.nav-links {
  display: flex;
  gap: 6px;
  flex: 1;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }

.nav-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--primary-glow), transparent),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(16, 185, 129, 0.06), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  background: var(--primary-glow);
  border: 1px solid rgba(99, 102, 241, 0.25);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 6px;
  font-weight: 500;
  line-height: 1.4;
}

/* ═══ SOCIAL PROOF ═══ */
.social-proof {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.social-proof-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.social-proof-logos {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.proof-badge {
  position: relative;
  cursor: help;
  transition: color 0.15s;
}
.proof-badge:hover,
.proof-badge:focus {
  color: var(--text);
}
.proof-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  width: 280px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 100;
}
.proof-badge:hover .proof-tooltip,
.proof-badge:focus .proof-tooltip {
  display: block;
}

/* ═══ SECTIONS ═══ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-header > p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ═══ PROBLEM / SOLUTION ═══ */
.problem-solution { padding: 100px 0; }

.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ps-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.ps-problem { background: rgba(239, 68, 68, 0.04); border-color: rgba(239, 68, 68, 0.15); }
.ps-solution { background: rgba(16, 185, 129, 0.04); border-color: rgba(16, 185, 129, 0.15); }

.ps-icon { font-size: 36px; margin-bottom: 16px; }
.ps-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }

.ps-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ps-card li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 24px;
  position: relative;
}

.ps-problem li::before { content: '✗'; position: absolute; left: 0; color: var(--danger); font-weight: 700; }
.ps-solution li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* ═══ FEATURES GRID ═══ */
.features { padding: 100px 0; background: var(--bg-alt); }

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

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s;
  position: relative;
}
.feature-card:hover { border-color: rgba(99, 102, 241, 0.3); transform: translateY(-2px); }

.feature-highlight { border-color: rgba(99, 102, 241, 0.25); background: linear-gradient(135deg, var(--surface), rgba(99, 102, 241, 0.05)); }

.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.feature-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--primary-glow);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

/* ═══ CURRICULUM AGE GROUPS ═══ */
.curriculum { padding: 100px 0; }

.age-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.age-card {
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  transition: all 0.2s;
}
.age-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.age-card.active { border-color: var(--primary); background: linear-gradient(135deg, var(--surface), rgba(99, 102, 241, 0.08)); }
.age-card.selected { border-color: var(--primary); background: linear-gradient(135deg, var(--surface), rgba(99, 102, 241, 0.08)); box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3); }

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary-light);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 12px;
  border: 2px solid rgba(99, 102, 241, 0.25);
}
.age-badge.age-badge-wide {
  width: auto;
  min-width: 48px;
  padding: 0 14px;
  border-radius: 24px;
  font-size: 14px;
  letter-spacing: -0.3px;
}

.age-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.age-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }

.age-hours {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.age-card { cursor: pointer; position: relative; }

.coming-soon-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 24px;
  font-style: italic;
}

/* ═══ SHARED DETAIL MODAL ═══ */
.detail-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.2s ease;
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.detail-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.25s ease;
}
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.detail-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.15s;
}
.detail-modal-close:hover { background: var(--bg); color: var(--text); }

/* ═══ SIGN-UP MODAL ═══ */
.signup-modal {
  max-width: 460px;
}
.signup-content {
  text-align: center;
}
.signup-header {
  margin-bottom: 24px;
}
.signup-logo {
  font-size: 40px;
  margin-bottom: 8px;
}
.signup-header h2 {
  font-size: 22px;
  margin: 0 0 4px;
}
.signup-field {
  text-align: left;
  margin-bottom: 14px;
}
.signup-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.signup-field input,
.signup-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.signup-field input:focus,
.signup-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.signup-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  text-align: left;
}
.signup-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

.age-detail-pillars {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.age-pillar {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--primary-glow);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ═══ HOW IT WORKS ═══ */
.how-it-works { padding: 100px 0; background: var(--bg-alt); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.step-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  position: relative;
}

.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon { font-size: 32px; margin: 8px 0 12px; }
.step-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ═══ COMPLIANCE ═══ */
.compliance { padding: 100px 0; }

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

.compliance-text .section-tag { display: block; text-align: left; }
.compliance-text h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; text-align: left; }
.compliance-text > p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }

.compliance-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.compliance-features li { display: flex; flex-direction: column; gap: 2px; }
.compliance-features strong { font-size: 14px; color: var(--text); }
.compliance-features span { font-size: 13px; color: var(--text-muted); }

.compliance-states {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compliance-states span {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.compliance-states span:hover:not(.plus) {
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-1px);
}
.compliance-states span.active {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary-light);
}

.compliance-states .plus {
  background: var(--primary-glow);
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--primary-light);
  cursor: default;
}

/* State Detail (inside modal) */

.sdp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sdp-header h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.sdp-tier {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.sdp-tier.high { background: rgba(239, 68, 68, 0.1); color: #f87171; border-color: rgba(239, 68, 68, 0.3); }
.sdp-tier.moderate { background: rgba(234, 179, 8, 0.1); color: #facc15; border-color: rgba(234, 179, 8, 0.3); }
.sdp-tier.low { background: rgba(34, 197, 94, 0.1); color: #4ade80; border-color: rgba(34, 197, 94, 0.3); }
.sdp-tier.none, .sdp-tier.no_regulation { background: rgba(148, 163, 184, 0.1); color: #94a3b8; border-color: rgba(148, 163, 184, 0.3); }

.sdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.sdp-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}
.sdp-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}
.sdp-item span:last-child { font-size: 13px; color: var(--text); }

.sdp-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.sdp-section strong {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--text);
}
.sdp-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sdp-section li {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 3px 0 3px 14px;
  position: relative;
}
.sdp-section li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-light);
}
.sdp-none { font-size: 12px; color: var(--text-dim); font-style: italic; }

.sdp-note {
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 14px;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  line-height: 1.5;
}

/* Compliance visual card */
.compliance-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.compliance-card-header {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.compliance-card-header strong {
  color: var(--primary);
}

.compliance-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.compliance-row strong { color: var(--text); }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.green { background: var(--success); }

.compliance-status {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-badge { font-size: 14px; font-weight: 700; color: var(--success); }
.status-detail { font-size: 12px; color: var(--text-muted); }

/* ═══ GRADING ═══ */
.grading { padding: 100px 0; background: var(--bg-alt); }

.grading-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.grading-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.grading-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }

.grading-weight {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 10px;
}

.grading-card p { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

.grading-footer {
  text-align: center;
}

.grade-scale {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.grade {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface);
}

.grade.a { color: var(--success); border-color: rgba(16, 185, 129, 0.3); }
.grade.b { color: #22d3ee; border-color: rgba(34, 211, 238, 0.3); }
.grade.c { color: var(--warning); border-color: rgba(245, 158, 11, 0.3); }
.grade.d { color: #fb923c; border-color: rgba(251, 146, 60, 0.3); }
.grade.f { color: var(--danger); border-color: rgba(239, 68, 68, 0.3); }

.text-muted { color: var(--text-dim); font-size: 13px; }

/* ═══ TESTIMONIALS ═══ */
.testimonials { padding: 100px 0; }

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

.testimonial-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.testimonial-stars {
  color: var(--warning);
  font-size: 16px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-card > p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary-light);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 12px; color: var(--text-dim); }

/* ═══ PRICING ═══ */
.pricing { padding: 100px 0; background: var(--bg-alt); }

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s;
}
.toggle-label.active { color: var(--text); }

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--border);
  border-radius: 13px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.toggle-switch.active { background: var(--primary); }

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-switch.active .toggle-knob { transform: translateX(22px); }

.toggle-save {
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 10px;
  border-radius: 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-free {
  border-color: #10b981;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06), var(--surface) 40%);
}

.pricing-featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--surface), rgba(99, 102, 241, 0.06));
  box-shadow: 0 8px 32px var(--primary-glow);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  letter-spacing: 0.5px;
}

.pricing-tier {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 8px;
}
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--text-muted); }

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

.pricing-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-card li {
  font-size: 14px;
  color: var(--text);
}

.pricing-card li.muted { color: var(--text-dim); }

.pricing-card .btn { margin-top: auto; }

.btn-success {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}
.btn-success:hover {
  background: #059669;
  border-color: #059669;
}

/* ═══ FINAL CTA ═══ */
.final-cta {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg), var(--bg-alt));
  position: relative;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, var(--primary-glow), transparent);
  pointer-events: none;
}

.final-cta .container { position: relative; }

.final-cta h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.final-cta p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ═══ FOOTER ═══ */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand > p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-dim);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 48px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .grading-grid { grid-template-columns: repeat(2, 1fr); }
  .compliance-inner { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .nav-links, .nav-actions { display: none; }
  .nav-links.open, .nav-actions.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  .nav-links.open a {
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open .mobile-action-link {
    margin-top: 4px;
    padding: 14px 16px;
    border-radius: 8px;
    border-bottom: none;
    text-align: center;
    font-weight: 600;
  }
  .nav-links.open .mobile-action-link.btn-primary {
    background: var(--primary);
    color: #fff;
  }
  .nav-links.open .mobile-action-link.btn-ghost {
    background: var(--surface);
    color: var(--text);
  }
  .nav-mobile-toggle { display: flex; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 15px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat-num { font-size: 32px; }

  .ps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .age-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .grading-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .section-header h2 { font-size: 28px; }
  .compliance-text h2 { font-size: 28px; }
  .final-cta h2 { font-size: 28px; }

  .sdp-grid { grid-template-columns: 1fr; }
  .sdp-sections { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 24px 20px; }
  .detail-modal { padding: 20px 16px; margin: 0; max-width: calc(100vw - 32px); box-sizing: border-box; }
  .detail-modal-overlay { padding: 16px; }
}

@media (max-width: 480px) {
  .age-grid { grid-template-columns: 1fr; }
  .age-card { padding: 20px 16px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 14px; }
  .hero-stats { gap: 16px; }
  .hero-stat-num { font-size: 26px; }
  .feature-card { padding: 20px 16px; }
  .feature-card h3 { font-size: 15px; }
}

/* ═══ LEGAL / CONTACT PAGES ═══ */
.legal-page { padding: 120px 0 60px; min-height: 70vh; }
.legal-page h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.legal-page h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.legal-page p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 12px; }
.legal-page ul { margin: 0 0 16px 24px; color: var(--text-secondary); }
.legal-page ul li { margin-bottom: 8px; font-size: 15px; line-height: 1.6; }
.legal-page a { color: var(--accent); text-decoration: underline; }
.legal-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 32px; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 32px 0; }
.contact-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.contact-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.contact-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 6px; }
.contact-card strong { color: var(--accent); }
.contact-note { font-size: 12px !important; color: var(--text-muted) !important; font-style: italic; }
.contact-faq { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.contact-faq h2 { font-size: 20px; margin-bottom: 8px; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .legal-page { padding: 100px 0 40px; }
  .legal-page h1 { font-size: 28px; }
}
