/* ── Tokens ── */
[data-theme="dark"] {
  --bg: #08090C;
  --surface-1: #0f1116;
  --surface-2: #141720;
  --border-faint: rgba(255,255,255,0.05);
  --border-mid: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.15);
  --accent: #5BB8FF;
  --accent-dim: rgba(91,184,255,0.09);
  --accent-border: rgba(91,184,255,0.26);
  --text-primary: #F4F1EB;
  --text-secondary: rgba(244,241,235,0.55);
  --text-tertiary: rgba(244,241,235,0.3);
  --green: #00C896;
  --red: #FF5C5C;
  --amber: #F4BB72;
  --card-bg: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.1);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F1EDE6;
  --surface-1: #F3F6FA;
  --surface-2: #E7EDF5;
  --border-faint: rgba(26,35,56,0.10);
  --border-mid: rgba(26,35,56,0.20);
  --border-strong: rgba(26,35,56,0.30);
  --accent: #5BB8FF;
  --accent-dim: #E4F3FF;
  --accent-border: rgba(91,184,255,0.4);
  --text-primary: #121923;
  --text-secondary: rgba(18,25,35,0.62);
  --text-tertiary: rgba(18,25,35,0.42);
  --green: #00B894;
  --red: #FF5C5C;
  --amber: #F0A94A;
  --card-bg: #FFFFFF;
  --card-border: rgba(26,35,56,0.10);
  color-scheme: light;
}
:root {
  --radius: 16px;
  --nav-height: 52px;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.65;
  transition: background .3s, color .3s;
}
.page { position: relative; z-index: 1; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 48px; }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: var(--bg);
  border-bottom: .5px solid var(--border-faint);
  transition: background .3s, border-color .3s;
}
[data-theme="light"] nav { background: var(--bg); border-bottom-color: var(--border-faint); }
[data-theme="light"] .nav-link:hover { color: var(--text-primary); }
[data-theme="light"] .theme-toggle { background: rgba(26,35,56,0.06); border-color: var(--border-faint); }
[data-theme="light"] .stat-grid { background: var(--border-faint); }
[data-theme="light"] .stat-cell { background: #FFFFFF; }
[data-theme="light"] .stat-cell:hover { background: var(--surface-1); }
[data-theme="light"] .stat-footnote { border-color: var(--border-faint); }
[data-theme="light"] .standard-card { background: #FFFFFF; box-shadow: 0 1px 4px rgba(26,35,56,0.06); }
[data-theme="light"] .feature-list { background: var(--border-faint); }
[data-theme="light"] .feature-row { background: #FFFFFF; }
[data-theme="light"] .feature-row:hover { background: var(--surface-1); }
[data-theme="light"] .feature-num { color: var(--accent); opacity: .3; }
[data-theme="light"] .impact-section { background: var(--surface-1); }
[data-theme="light"] .score-card { background: #FFFFFF; box-shadow: 0 1px 4px rgba(26,35,56,0.06); }
[data-theme="light"] .grade-cell { background: var(--surface-1); }
[data-theme="light"] .comparison-table { border-color: var(--border-faint); }
[data-theme="light"] .comparison-row { border-color: var(--border-faint); }
[data-theme="light"] .comparison-row.header { background: var(--surface-1); }
[data-theme="light"] .comparison-row:not(.header):hover { background: var(--surface-1); }
[data-theme="light"] .mission-section { background: var(--surface-1); }
[data-theme="light"] .category-card { background: #FFFFFF; box-shadow: 0 1px 4px rgba(26,35,56,0.06); }
[data-theme="light"] .cta-box { background: #FFFFFF; border-color: var(--border-faint); box-shadow: 0 2px 20px rgba(26,35,56,0.06); }
[data-theme="light"] #mobile-menu { background: rgba(241,237,230,0.98); }

.logo {
  font-family: var(--font-display);
  font-weight: 900; font-size: 17px; letter-spacing: -0.5px;
  color: var(--text-primary); text-decoration: none;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2px; }
.nav-link {
  font-size: 13px; font-weight: 400; color: var(--text-tertiary);
  text-decoration: none; padding: 6px 14px; border-radius: 4px;
  transition: color .2s; white-space: nowrap;
}
.nav-link:hover { color: var(--text-primary); }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* ── Theme toggle ── */
.theme-toggle {
  width: 44px; height: 24px; border-radius: 100px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--card-border);
  cursor: pointer; position: relative; flex-shrink: 0; overflow: hidden;
  transition: background .2s, border-color .2s;
}
.theme-toggle:hover { background: rgba(255,255,255,0.1); border-color: var(--border-mid); }
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-primary);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
  z-index: 2; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
[data-theme="light"] .toggle-thumb { transform: translateX(20px); background: #0d1117; }
.toggle-icon {
  position: absolute; top: 50%; transform: translateY(-50%);
  pointer-events: none; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
}
#icon-dark { right: 3px; color: #FFD27A; }
#icon-light { left: 3px; color: var(--accent); }
[data-theme="light"] #icon-light { color: #5B8AC9; }
.toggle-icon svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }

.nav-cta {
  display: inline-flex; align-items: center; height: 34px; padding: 0 20px;
  background: var(--accent); border: none; border-radius: 4px;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  color: #08090C; cursor: pointer; white-space: nowrap;
  text-decoration: none; transition: opacity .2s;
}
.nav-cta:hover { opacity: .82; }

/* ── Hamburger ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; cursor: pointer; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text-tertiary); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile menu ── */
#mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 490;
  background: rgba(8,9,12,0.97);
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-family: var(--font-display); font-size: 32px; font-weight: 900;
  color: var(--text-primary); text-decoration: none; letter-spacing: -0.04em;
  transition: opacity .2s;
}
#mobile-menu a:hover { opacity: .5; }
#mobile-menu .mobile-download { font-size: 20px; opacity: .4; }

/* ── Hero ── */
.hero { padding: 130px 0 80px; text-align: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(42px,7.5vw,80px); line-height: .97; letter-spacing: -3px;
  color: var(--text-primary); margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: clamp(15px,2vw,17px); font-weight: 300; color: var(--text-secondary);
  max-width: 520px; margin: 0 auto 52px; line-height: 1.78;
}
.hero-sub b { color: var(--text-primary); font-weight: 500; }

/* ── Phone mockup ── */
.phone-wrap { width: 280px; margin: 0 auto 48px; position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 240px; aspect-ratio: 1344/2992;
  border-radius: 34px;
  background: linear-gradient(180deg,#1C1E26 0%,#0D0E14 100%);
  padding: 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07), 0 20px 48px -16px rgba(0,0,0,0.55);
  flex-shrink: 0;
}
[data-theme="light"] .phone {
  background: linear-gradient(180deg,#2A2E3A 0%,#14161C 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 16px 36px -12px rgba(26,35,56,0.28);
}
.phone::before {
  content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; background: #000; border-radius: 50%; z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 28px; overflow: hidden; background: #000;
}
.phone-screen img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: top center;
  opacity: 0; transition: opacity 1.4s ease-in-out;
}
.phone-screen img.active { opacity: 1; }

/* ── Store badges ── */
.badges {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; position: relative; z-index: 2; padding: 14px 0;
}
.badge {
  display: inline-flex; align-items: center;
  text-decoration: none; height: 56px; border-radius: 9px;
  transition: opacity .2s; flex-shrink: 0;
}
.badge:hover { opacity: .8; }
.badge-play { padding: 0; background: transparent; border: none; width: 189px; height: 56px; }
.badge-play img { display: block; width: 100%; height: 100%; }
.badge-indus { padding: 0; background: transparent; border: none; height: 56px; width: auto; }
.badge-indus img { display: block; height: 100%; width: auto; }

/* ── Stats bar ── */
.stat-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--border-faint);
  border-top: .5px solid var(--border-faint);
  border-bottom: .5px solid var(--border-faint);
}
.stat-cell {
  background: var(--bg); padding: 36px 28px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  transition: background .2s;
}
.stat-cell:hover { background: var(--surface-1); }
.stat-number {
  font-family: var(--font-display); font-weight: 900; font-size: 36px;
  color: var(--accent); letter-spacing: -1.5px; line-height: 1;
}
.stat-label { font-size: 12px; color: var(--text-tertiary); font-weight: 400; line-height: 1.5; max-width: 160px; }
.stat-footnote { grid-column: 1/-1; padding: 10px 28px 14px; border-top: .5px solid var(--border-faint); }
.stat-footnote p { font-size: 10px; color: var(--text-tertiary); letter-spacing: .03em; line-height: 1.6; }

/* ── Sections ── */
.section { padding: 96px 0; position: relative; z-index: 1; }
.section-inner { max-width: 1160px; margin: 0 auto; padding: 0 48px; }
.section-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px,3.5vw,44px); letter-spacing: -1.5px; line-height: 1.08;
  color: var(--text-primary); margin-bottom: 14px;
}
.section-sub {
  font-size: 15px; font-weight: 300; color: var(--text-secondary);
  line-height: 1.78; max-width: 560px;
}

/* ── Standards ── */
.standards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 48px; }
.standard-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 24px;
  position: relative; overflow: hidden; transition: border-color .2s;
}
.standard-card:hover { border-color: var(--border-strong); }
.flag-wrap { width: 44px; height: 30px; border-radius: 4px; overflow: hidden; margin-bottom: 14px; border: .5px solid var(--border-mid); }
.flag-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.standard-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-primary); margin-bottom: 5px; }
.standard-desc { font-size: 12px; color: var(--text-tertiary); line-height: 1.6; }
.standard-card.reference { opacity: .5; }
.standard-card.reference .standard-name::after {
  content: ' · Reference'; display: inline-block; margin-left: 6px;
  font-size: 9px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-tertiary); font-family: var(--font-body);
}

/* ── Feature list ── */
.feature-list {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--border-faint); border: .5px solid var(--border-faint);
  border-radius: var(--radius); overflow: hidden; margin-top: 48px;
}
.feature-row {
  display: grid; grid-template-columns: 80px 1fr;
  background: var(--surface-1); padding: 30px 36px; gap: 28px;
  align-items: start; transition: background .2s;
}
.feature-row:hover { background: var(--surface-2); }
.feature-num {
  font-family: var(--font-display); font-weight: 900; font-size: 32px;
  color: var(--accent); letter-spacing: -1px; line-height: 1; padding-top: 4px; opacity: .35;
}
.feature-title {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--text-primary); margin-bottom: 8px; letter-spacing: -.3px; line-height: 1.3;
}
.feature-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.72; font-weight: 300; }

/* ── Impact ── */
.impact-section {
  padding: 96px 0;
  border-top: .5px solid var(--border-faint);
  border-bottom: .5px solid var(--border-faint);
  text-align: center; position: relative; overflow: hidden;
}
.impact-headline {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(22px,4vw,48px); letter-spacing: -2px; line-height: 1.1;
  color: var(--text-primary); max-width: 820px; margin: 0 auto 20px;
}
.impact-headline span { color: var(--accent); }
.impact-sub {
  font-size: 15px; font-weight: 300; color: var(--text-secondary);
  max-width: 480px; margin: 0 auto; line-height: 1.75;
}

/* ── Scoring ── */
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; align-items: stretch; }
.score-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; }
.score-grid > .score-card { height: 100%; }
.score-cards-right { display: flex; flex-direction: column; gap: 16px; }
.score-cards-right > .score-card:last-child { flex: 1; }
.score-card-title {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  color: var(--text-tertiary); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px;
}
.score-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: .5px solid var(--border-faint);
  font-size: 13px; color: var(--text-secondary); gap: 12px;
}
.score-row:last-child { border-bottom: none; }
.score-row > span:first-child { flex: 1; min-width: 0; }
.score-value { font-family: var(--font-display); font-weight: 700; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.score-negative { color: var(--red); }
.score-positive { color: var(--green); }

/* ── Grade strip ── */
.grade-strip { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin-top: 16px; }
.grade-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 18px 12px;
  border-radius: var(--radius); border: .7px solid var(--border-mid);
  background: transparent; text-align: center;
}
.grade-letter { font-family: var(--font-display); font-weight: 900; font-size: 28px; line-height: 1; }
.grade-desc { font-size: 11px; color: var(--text-tertiary); line-height: 1.5; }
.grade-a .grade-letter { color: var(--green); }
.grade-b .grade-letter { color: var(--accent); }
.grade-c .grade-letter { color: var(--amber); }
.grade-d .grade-letter { color: #FF8080; }
.grade-f .grade-letter { color: var(--red); }

/* ── Mission ── */
.mission-section {
  padding: 96px 0; background: var(--surface-1);
  border-top: .5px solid var(--border-faint); border-bottom: .5px solid var(--border-faint);
}
.mission-inner { max-width: 680px; margin: 0 auto; padding: 0 48px; }
.mission-body { font-size: 15px; font-weight: 300; color: var(--text-secondary); line-height: 1.85; }
.mission-body p { margin-bottom: 18px; }
.mission-body p:last-child { margin-bottom: 0; }
.mission-body b { color: var(--text-primary); font-weight: 500; }

/* ── Comparison table ── */
.comparison-table { border: .5px solid var(--border-faint); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
.comparison-row {
  display: grid; grid-template-columns: 2.4fr 1fr 1fr 1fr;
  padding: 14px 28px; border-bottom: .5px solid var(--border-faint);
  align-items: center; font-size: 13px; transition: background .15s; gap: 12px;
}
.comparison-row:last-child { border-bottom: none; }
.comparison-row:not(.header):hover { background: var(--surface-1); }
.comparison-row.header {
  background: var(--surface-2); font-size: 10px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-tertiary);
}
.comparison-row > span:first-child { color: var(--text-primary); font-weight: 400; }
.status-ok { color: var(--green); font-size: 11px; font-weight: 600; text-align: center; }
.status-banned { color: var(--red); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: .3px; text-align: center; }
.status-caution { color: var(--amber); font-size: 10px; font-weight: 700; text-transform: uppercase; text-align: center; letter-spacing: .2px; }
.col-center { text-align: center; }

/* ── Category roadmap ── */
.category-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin-top: 48px; }
.category-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 26px 18px;
  text-align: center; position: relative; overflow: hidden; transition: border-color .2s;
}
.category-card:hover { border-color: var(--border-strong); }
.category-card.coming-soon { opacity: .54; }
.category-card.coming-soon .category-name::after { content: ' · Soon'; color: var(--accent); font-size: 10px; font-weight: 500; }
.category-icon {
  width: 40px; height: 40px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; color: var(--text-secondary);
}
.category-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.category-name { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--text-primary); letter-spacing: -.1px; }

/* ── CTA ── */
.cta-outer { padding: 0 48px; }
.cta-box {
  margin: 88px auto; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 24px; padding: 72px 48px; text-align: center;
  position: relative; overflow: hidden; max-width: 1160px;
}
.cta-box h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px,4vw,48px); letter-spacing: -2px; line-height: 1.06;
  color: var(--text-primary); margin-bottom: 14px; position: relative; z-index: 1;
}
.cta-box h2 span { color: var(--accent); }
.cta-box p {
  font-size: 15px; font-weight: 300; color: var(--text-secondary);
  max-width: 520px; margin: 0 auto 40px; line-height: 1.75;
  position: relative; z-index: 1; text-wrap: balance;
}

/* ── Animations ── */
.fade-up { opacity: 0; transform: translateY(16px); animation: fadeup .65s ease forwards; }
@keyframes fadeup { to { opacity: 1; transform: none; } }
.delay-1 { animation-delay: .06s; }
.delay-2 { animation-delay: .14s; }
.delay-3 { animation-delay: .24s; }
.delay-4 { animation-delay: .36s; }
.delay-5 { animation-delay: .5s; }
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.visible { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
@media (prefers-reduced-motion: reduce) { .reveal, .fade-up { opacity: 1; transform: none; animation: none; } }

/* ── Subpage nav (used on all inner pages) ── */
.subnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 52px;
  border-bottom: .5px solid var(--border-faint);
  position: sticky; top: 0;
  background: var(--bg);
  z-index: 100;
}
[data-theme="light"] .subnav { background: rgba(241,237,230,0.95); }
.back-link {
  font-size: 13px; color: var(--text-tertiary); text-decoration: none;
  display: flex; align-items: center; gap: 6px; transition: color .2s;
}
.back-link:hover { color: var(--text-primary); }
.back-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.subnav-right { display: flex; align-items: center; gap: 14px; }

/* Subpage theme toggle (smaller variant) */
.theme-toggle-sm {
  width: 42px; height: 24px; border-radius: 100px;
  background: rgba(255,255,255,0.07); border: 1px solid var(--card-border);
  cursor: pointer; position: relative; flex-shrink: 0; overflow: hidden;
}
[data-theme="light"] .theme-toggle-sm { background: rgba(26,35,56,0.06); border-color: var(--border-faint); }
.theme-toggle-sm .toggle-thumb {
  position: absolute; top: 4px; left: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--text-primary);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1); z-index: 2;
}
[data-theme="light"] .theme-toggle-sm .toggle-thumb { transform: translateX(18px); }
.theme-toggle-sm .toggle-icon {
  position: absolute; top: 50%; transform: translateY(-50%);
  pointer-events: none; right: 5px; z-index: 1;
  display: flex; align-items: center; color: var(--text-tertiary);
}
[data-theme="light"] .theme-toggle-sm .toggle-icon { right: auto; left: 5px; }
.theme-toggle-sm .toggle-icon svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ── Doc pages (privacy, terms, support) ── */
.doc-wrap { max-width: 700px; margin: 0 auto; padding: 72px 52px 120px; }
.doc-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.doc-title {
  font-family: var(--font-display);
  font-size: clamp(30px,4vw,46px); font-weight: 900;
  letter-spacing: -1.5px; line-height: 1.04;
  color: var(--text-primary); margin-bottom: 10px;
}
.doc-meta {
  font-size: 11px; color: var(--text-tertiary); letter-spacing: .04em;
  margin-bottom: 52px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
}
.doc-meta span { display: flex; align-items: center; gap: 5px; }
.doc-meta svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.6; flex-shrink: 0; }
.doc-section h2 {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  color: var(--accent); margin: 44px 0 12px; letter-spacing: .1em; text-transform: uppercase;
}
.doc-section p { font-size: 14px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 10px; }
.doc-section p:last-child { margin-bottom: 0; }
.doc-section ul, .doc-section ol { margin: 10px 0 12px 20px; display: flex; flex-direction: column; gap: 6px; }
.doc-section li { font-size: 14px; color: var(--text-secondary); line-height: 1.78; }
.doc-section a { color: var(--accent); text-decoration: none; }
.doc-section a:hover { text-decoration: underline; }
.doc-section strong { color: var(--text-primary); font-weight: 500; }
.doc-divider { height: .5px; background: var(--border-faint); margin: 48px 0; }

/* Privacy data table */
.data-table { width: 100%; border: .5px solid var(--border-faint); border-radius: 12px; overflow: hidden; margin: 14px 0; }
.data-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: .5px solid var(--border-faint); font-size: 13px; }
.data-row:last-child { border-bottom: none; }
.data-row.header { background: var(--surface-1); }
.data-cell { padding: 11px 16px; color: var(--text-secondary); line-height: 1.5; }
.data-cell.col-label { color: var(--text-tertiary); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.data-cell.col-key { color: var(--text-primary); font-weight: 500; font-size: 13px; }

/* Privacy summary note (plain, no card) */
.doc-summary {
  font-size: 14px; color: var(--text-secondary); line-height: 1.82;
  margin-bottom: 56px; padding-bottom: 28px;
  border-bottom: .5px solid var(--border-faint);
}
.doc-summary strong { color: var(--text-primary); font-weight: 500; }

/* ── Changelog ── */
.page-wrap { max-width: 680px; margin: 0 auto; padding: 64px 52px 100px; }
.page-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.page-title { font-family: var(--font-display); font-size: clamp(28px,4vw,40px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.05; color: var(--text-primary); margin-bottom: 8px; }
.page-desc { font-size: 13px; color: var(--text-tertiary); margin-bottom: 56px; letter-spacing: .01em; }
.changelog-list { display: flex; flex-direction: column; }
.changelog-entry { padding: 40px 0; border-bottom: .5px solid var(--border-faint); }
.changelog-entry:first-child { padding-top: 0; }
.changelog-entry:last-child { border-bottom: none; padding-bottom: 0; }
.changelog-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.changelog-version { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.changelog-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-tertiary); opacity: .5; flex-shrink: 0; }
.changelog-date { font-size: 11px; color: var(--text-tertiary); letter-spacing: .04em; }
.changelog-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--text-primary); letter-spacing: -.4px; line-height: 1.3; margin-bottom: 20px; }
.changelog-groups { display: flex; flex-direction: column; gap: 18px; }
.changelog-group-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.changelog-group-label.added { color: var(--green); }
.changelog-group-label.improved { color: var(--accent); }
.changelog-group-label.fixed { color: var(--amber); }
.changelog-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.changelog-item { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; padding-left: 14px; position: relative; }
.changelog-item::before { content: ''; position: absolute; left: 0; top: 9px; width: 3px; height: 3px; border-radius: 50%; background: var(--text-tertiary); }

/* ── Support FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 1px; background: var(--border-faint); border: .5px solid var(--border-faint); border-radius: 16px; overflow: hidden; }
.faq-item { background: var(--bg); transition: background .2s; }
.faq-item:hover { background: var(--surface-1); }
.faq-question {
  width: 100%; text-align: left; font-size: 14px; font-weight: 500;
  color: var(--text-primary); padding: 18px 24px; background: none; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; font-family: var(--font-body);
}
.faq-question svg { flex-shrink: 0; width: 14px; height: 14px; stroke: var(--text-tertiary); fill: none; stroke-width: 2; transition: transform .25s; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { font-size: 13.5px; color: var(--text-secondary); line-height: 1.8; padding: 0 24px 18px; display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-answer a { color: var(--accent); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }

/* Support contact (plain text, no cards) */
.contact-list { display: flex; flex-direction: column; gap: 0; margin-top: 0; }
.contact-row {
  display: grid; grid-template-columns: 120px 1fr;
  padding: 14px 0; border-bottom: .5px solid var(--border-faint);
  font-size: 14px; align-items: baseline;
}
.contact-row:last-child { border-bottom: none; }
.contact-label { color: var(--text-tertiary); font-size: 12px; }
.contact-value a { color: var(--text-primary); text-decoration: none; border-bottom: 1px solid var(--border-mid); transition: border-color .2s; }
.contact-value a:hover { border-color: var(--text-primary); }

/* ── 404 ── */
.error-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; }
.error-code {
  font-family: var(--font-display); font-size: clamp(80px,16vw,160px);
  font-weight: 900; letter-spacing: -6px; line-height: 1;
  background: linear-gradient(135deg, var(--text-tertiary) 0%, transparent 70%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  user-select: none; margin-bottom: 0;
}
.error-title { font-family: var(--font-display); font-size: clamp(22px,3vw,32px); font-weight: 900; letter-spacing: -1px; color: var(--text-primary); margin-bottom: 12px; }
.error-sub { font-size: 15px; color: var(--text-secondary); max-width: 380px; line-height: 1.72; margin-bottom: 40px; }
.btn-home {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 24px;
  background: var(--accent); border: none; border-radius: 100px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: #08090C; cursor: pointer; text-decoration: none; transition: opacity .2s;
}
.btn-home:hover { opacity: .86; }
.error-links { display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.error-links a { font-size: 13px; color: var(--text-tertiary); text-decoration: none; transition: color .2s; }
.error-links a:hover { color: var(--accent); }

/* ── Subpage footer (compact) ── */
.subpage-footer { border-top: .5px solid var(--border-faint); padding: 40px 52px 32px; }
.subpage-footer-top { display: grid; grid-template-columns: 1.4fr 2.6fr; gap: 64px; align-items: start; margin-bottom: 32px; }
.subpage-footer-brand { display: flex; flex-direction: column; gap: 10px; }
.subpage-footer-logo { font-family: var(--font-display); font-weight: 900; font-size: 16px; letter-spacing: -.3px; color: var(--text-primary); text-decoration: none; line-height: 1; }
.subpage-footer-logo span { color: var(--accent); }
.subpage-footer-tagline { font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; font-weight: 400; }
.subpage-footer-tagline-sub { font-size: 11.5px; color: var(--text-tertiary); line-height: 1.5; letter-spacing: .02em; }
.subpage-footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.subpage-footer-col { display: flex; flex-direction: column; gap: 9px; }
.subpage-footer-col-title { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 14px; display: block; }
.subpage-footer-col a { font-size: 12px; color: var(--text-tertiary); text-decoration: none; transition: color .2s; line-height: 1.3; }
.subpage-footer-col a:hover { color: var(--accent); }
.subpage-footer-bottom { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 24px; border-top: .5px solid var(--border-faint); }
.subpage-footer-legal { font-size: 11px; color: var(--text-tertiary); line-height: 1.65; max-width: 620px; }
.subpage-footer-copy { font-size: 11px; color: var(--text-tertiary); white-space: nowrap; font-weight: 500; }

/* ── Minimal 404 footer ── */
.minimal-footer { border-top: .5px solid var(--border-faint); padding: 22px 52px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.minimal-footer-copy { font-size: 11px; color: var(--text-tertiary); }
.minimal-footer-links { display: flex; gap: 16px; }
.minimal-footer-links a { font-size: 12px; color: var(--text-tertiary); text-decoration: none; transition: color .2s; }
.minimal-footer-links a:hover { color: var(--accent); }

/* ── Subpage responsive ── */
@media (max-width: 700px) {
  .subnav { padding: 14px 20px; }
  .doc-wrap { padding: 44px 20px 80px; }
  .page-wrap { padding: 44px 20px 80px; }
  .subpage-footer { padding: 28px 20px; }
  .subpage-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .subpage-footer-cols { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .subpage-footer-bottom { flex-direction: column; align-items: flex-start; }
  .minimal-footer { padding: 18px 20px; flex-direction: column; align-items: flex-start; }
  .data-row { grid-template-columns: 1fr; }
  .data-cell.col-label { border-bottom: none; padding-bottom: 4px; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 600px) {
  .contact-list { gap: 0; }
}

/* ── Footer ── */
.site-footer { border-top: .5px solid var(--border-faint); padding: 56px 52px 36px; }
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr 2.6fr; gap: 64px; align-items: start; margin-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { font-family: var(--font-display); font-weight: 900; font-size: 18px; letter-spacing: -.4px; color: var(--text-primary); text-decoration: none; line-height: 1; }
.footer-logo span { color: var(--accent); }
.footer-tagline { font-size: 12.5px; color: var(--text-secondary); line-height: 1.65; font-weight: 400; }
.footer-tagline-sub { font-size: 11.5px; color: var(--text-tertiary); line-height: 1.55; letter-spacing: .02em; }
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.footer-col-title { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 16px; display: block; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: color .2s; line-height: 1.3; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; padding-top: 28px; border-top: .5px solid var(--border-faint);
}
.footer-legal { font-size: 11px; color: var(--text-tertiary); line-height: 1.65; max-width: 680px; }
.footer-copy { font-size: 11px; color: var(--text-tertiary); white-space: nowrap; font-weight: 500; }

/* ── Responsive ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .standards-grid { grid-template-columns: repeat(2,1fr); }
  .category-grid { grid-template-columns: repeat(3,1fr); }
  .feature-row { grid-template-columns: 50px 1fr; gap: 20px; padding: 22px 24px; }
  .score-grid { grid-template-columns: 1fr; }
  .grade-strip { grid-template-columns: repeat(3,1fr); }
  .section { padding: 64px 0; }
  .section-inner, .mission-inner, .container-narrow { padding: 0 20px; }
  .cta-outer { padding: 0 20px; }
  .cta-box { margin: 40px auto; padding: 40px 24px; }
  .site-footer { padding: 28px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { grid-template-columns: repeat(2,1fr); gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero { padding: 96px 0 52px; }
}
@media (max-width: 620px) {
  .standards-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .comparison-row { grid-template-columns: 2fr 1fr 1fr; }
  .hide-mobile { display: none; }
  .feature-row { padding: 18px 16px; grid-template-columns: 36px 1fr; gap: 12px; }
  .feature-num { font-size: 22px; }
  .phone-wrap { width: 260px; }
  .phone { width: 220px; }
  .badges { flex-direction: column; align-items: center; }
}

/* ── Document layout (privacy, terms, changelog) ── */
/* Adapted from CaffeineLabs doc layout, themed for dark/light */

.doc-layout {
  display: grid; grid-template-columns: repeat(12,1fr); gap: 24px;
  padding: 72px 0 96px; max-width: 1160px; margin: 0 auto; padding-left: 48px; padding-right: 48px;
}
.doc-head {
  grid-column: 1 / span 12;
  border-top: .5px solid var(--border-faint);
  padding-top: 18px;
  display: grid; grid-template-columns: repeat(12,1fr); gap: 24px;
  margin-bottom: 72px;
}
.doc-head h1 {
  grid-column: 1 / span 8;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(40px,5.2vw,76px);
  line-height: 0.98; letter-spacing: -0.035em;
  color: var(--text-primary);
}
.doc-head-meta {
  grid-column: 10 / span 3;
  font-family: var(--font-body); font-size: 13px; line-height: 1.7;
  color: var(--text-tertiary);
  display: flex; flex-direction: column; gap: 4px;
}
.doc-head-meta b { color: var(--text-primary); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

.doc-toc {
  grid-column: 1 / span 3;
  position: sticky; top: 24px; align-self: start;
}
.doc-toc h4 {
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.doc-toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; border-top: .5px solid var(--border-faint); }
.doc-toc li { border-bottom: .5px solid var(--border-faint); }
.doc-toc a {
  display: flex; gap: 10px; padding: 8px 0;
  font-size: 12.5px; color: var(--text-tertiary); text-decoration: none;
  transition: color 200ms; line-height: 1.4;
}
.doc-toc a:hover { color: var(--text-primary); }
.doc-toc a .toc-num { font-family: var(--font-display); color: var(--text-tertiary); font-weight: 500; min-width: 18px; opacity: .6; }

.doc-body { grid-column: 5 / span 8; max-width: 64ch; }
.doc-body .doc-lede {
  font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.5;
  color: var(--text-primary); margin-bottom: 48px; letter-spacing: -0.015em;
}
.doc-body section { margin-bottom: 42px; }
.doc-body section:last-of-type { margin-bottom: 0; }
.doc-body h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: -0.02em; color: var(--text-primary); line-height: 1.18;
  display: flex; gap: 14px; align-items: baseline; margin-bottom: 14px;
}
.doc-body h2 .sec-num {
  font-family: var(--font-body); font-weight: 500; font-size: 13px;
  color: var(--text-tertiary); letter-spacing: 0.06em; min-width: 24px;
}
.doc-body p { font-size: 14.5px; line-height: 1.78; color: var(--text-secondary); margin-bottom: 12px; font-weight: 400; }
.doc-body p:last-child { margin-bottom: 0; }
.doc-body strong { color: var(--text-primary); font-weight: 500; }
.doc-body a { color: var(--accent); text-decoration: none; }
.doc-body a:hover { text-decoration: underline; }
.doc-body ul { list-style: none; margin: 14px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.doc-body ul li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.65; color: var(--text-secondary); }
.doc-body ul li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 1px; background: var(--text-tertiary); }
.doc-note { font-size: 12px; color: var(--text-tertiary); line-height: 1.65; border-top: .5px solid var(--border-faint); padding-top: 14px; margin-top: 24px; }
.doc-divider { height: .5px; background: var(--border-faint); margin: 48px 0; }

/* Privacy data table — doc layout version */
.doc-data-table { width: 100%; border-top: .5px solid var(--border-faint); margin: 18px 0 8px; }
.doc-data-row { display: grid; grid-template-columns: 38% 1fr; gap: 24px; padding: 14px 0; border-bottom: .5px solid var(--border-faint); }
.doc-data-row:last-child { border-bottom: none; }
.doc-data-key { font-family: var(--font-display); font-weight: 600; color: var(--text-primary); font-size: 13.5px; letter-spacing: -0.005em; }
.doc-data-val { color: var(--text-secondary); line-height: 1.6; font-size: 13.5px; }

/* Changelog doc layout */
.changelog-entry-doc { margin-bottom: 52px; padding-bottom: 52px; border-bottom: .5px solid var(--border-faint); }
.changelog-entry-doc:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.changelog-entry-doc .entry-meta { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.changelog-entry-doc .entry-version { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--text-primary); }
.changelog-entry-doc .entry-date { font-size: 13px; color: var(--text-tertiary); }
.changelog-entry-doc .entry-title { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-secondary); letter-spacing: -0.01em; margin-bottom: 24px; }
.changelog-group { margin-bottom: 20px; }
.changelog-group:last-child { margin-bottom: 0; }
.changelog-group-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.changelog-group-label.added { color: var(--green); }
.changelog-group-label.improved { color: var(--accent); }
.changelog-group-label.fixed { color: var(--amber); }
.changelog-items-doc { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.changelog-item-doc { font-size: 14px; color: var(--text-secondary); line-height: 1.65; padding-left: 18px; position: relative; }
.changelog-item-doc::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 1px; background: var(--text-tertiary); }

/* Doc layout responsive */
@media (max-width: 980px) {
  .doc-layout { grid-template-columns: 1fr; gap: 8px; padding: 48px 20px 64px; }
  .doc-head { grid-column: 1; grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .doc-head h1 { grid-column: 1; }
  .doc-head-meta { grid-column: 1; flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .doc-toc { grid-column: 1; position: static; margin-bottom: 32px; }
  .doc-body { grid-column: 1; }
  .doc-body .doc-lede { font-size: 16px; }
  .doc-body h2 { font-size: 18px; }
  .doc-data-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
}
@media (max-width: 540px) {
  .doc-layout { padding: 32px 20px 48px; }
}
