/* ============================================
   AuditSample — Dark Premium Design System
   Default: DARK | Accent: Gold/Amber
   ============================================ */

:root {
  --bg: #0c0a14;
  --bg-alt: #13101f;
  --surface: #1a1625;
  --surface-hover: #211c30;
  --surface-raised: #251f38;
  --border: #2e2845;
  --border-light: #221c35;

  --text: #f0eeff;
  --text-secondary: #9a95b5;
  --text-muted: #5c5775;

  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-dim: rgba(245,158,11,0.12);
  --accent-border: rgba(245,158,11,0.25);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.6);
  --shadow-xl: 0 24px 80px rgba(0,0,0,0.7);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --nav-height: 60px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Override */
[data-theme="light"] {
  --bg: #f5f3ff;
  --bg-alt: #ede9fe;
  --surface: #ffffff;
  --surface-hover: #fafafa;
  --surface-raised: #ffffff;
  --border: #ddd6fe;
  --border-light: #ede9fe;

  --text: #1e1b4b;
  --text-secondary: #4c4891;
  --text-muted: #8b85b8;

  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-dim: rgba(124,58,237,0.08);
  --accent-border: rgba(124,58,237,0.2);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

/* ─── Reset ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
::selection { background: var(--accent); color: #000; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }

/* ─── Typography ────────────────────── */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.05rem; font-weight: 700; }
p { color: var(--text-secondary); line-height: 1.7; }
code { font-family: var(--font-mono); background: var(--bg-alt); padding: 2px 7px; border-radius: 4px; font-size: 0.875em; border: 1px solid var(--border); }

/* ─── Layout ────────────────────────── */
.section { padding: 6rem 0; }
.section-dark { background: var(--bg-alt); }
.section-inner { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.875rem;
}
.section-sub { font-size: 1.05rem; }

/* ─── Navbar ────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; }
.logo-text { font-size: 1.05rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 0.15rem; margin-left: auto; }
.nav-links a {
  padding: 0.45rem 0.875rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
.beta-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  margin-left: 0.5rem;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.06em;
  vertical-align: middle;
  transform: translateY(-1px);
}
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ─── Buttons ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-lg { padding: 0.875rem 1.75rem; font-size: 0.975rem; border-radius: var(--radius); }
.btn-full { width: 100%; }

.btn-accent {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
}
.btn-accent:hover {
  background: var(--accent-hover);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(245,158,11,0.4);
}

.btn-ghost-gold {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent-border);
}
.btn-ghost-gold:hover { background: var(--accent-dim); color: var(--accent-hover); border-color: var(--accent); }

.btn-outline-gold {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent-border);
  flex: 1;
}
.btn-outline-gold:hover { background: var(--accent-dim); border-color: var(--accent); }

.btn-ghost-sm {
  background: var(--surface-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  padding: 0.5rem 0.875rem;
}
.btn-ghost-sm:hover { color: var(--text); border-color: var(--text-muted); }

/* ─── Hero ──────────────────────────── */
.hero {
  position: relative;
  padding: 7rem 0 5rem;
  overflow: hidden;
  background: var(--bg);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero h1 { margin-bottom: 1.25rem; }
.h1-accent { color: var(--accent); }
.hero-sub { font-size: 1.1rem; color: var(--text-secondary); max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-features { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Privacy Bar ───────────────────── */
.privacy-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
}
.privacy-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.privacy-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ─── Calculator ────────────────────── */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } }
.calc-controls, .calc-results { position: sticky; top: calc(var(--nav-height) + 1.5rem); }

.panel-dark {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.panel-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* ─── Form Fields ──────────────────── */
.field-group { margin-bottom: 1.125rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
}
.field-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.6rem;
  color: var(--text-muted);
  cursor: help;
  font-weight: 700;
  flex-shrink: 0;
}
.field-input {
  width: 100%;
  padding: 0.65rem 0.875rem;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.field-input::placeholder { color: var(--text-muted); }
.field-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.field-input.error { border-color: #ef4444; }
.field-error { display: none; font-size: 0.78rem; color: #ef4444; margin-top: 0.3rem; }
.field-error.visible { display: block; }

.select-wrap { position: relative; }
.select-wrap select { padding-right: 2.25rem; cursor: pointer; }
.select-arrow { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

/* Standard Toggle */
.std-toggle {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
}
.std-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font);
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.std-btn:hover { color: var(--text-secondary); }
.std-btn.active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }
.std-btn-sub { font-size: 0.68rem; font-weight: 500; opacity: 0.7; }

/* Confidence */
.conf-row { display: flex; gap: 0.5rem; }
.conf-btn {
  flex: 1;
  padding: 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
}
.conf-btn:hover { border-color: var(--accent); color: var(--accent); }
.conf-btn.active { background: var(--accent); border-color: var(--accent); color: #000; }

/* Conditional */
.field-conditional { display: none; }
.field-conditional.visible { display: block; }

.calc-disclaimer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.875rem;
  justify-content: center;
}

/* Results */
.results-panel { min-height: 480px; }
.results-empty { text-align: center; padding: 3rem 1.5rem; }
.results-empty-art { margin: 0 auto 1.5rem; width: 80px; height: 80px; }
.results-empty-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.results-empty-sub { font-size: 0.85rem; color: var(--text-muted); }

.results-header { text-align: center; padding-bottom: 1.5rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.results-std-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.875rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}
.results-big-num {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  font-family: var(--font-mono);
  letter-spacing: -0.04em;
}
.results-big-label { font-size: 1rem; color: var(--text-muted); font-weight: 500; margin-top: 0.25rem; }

.results-divider { height: 1px; background: var(--border); margin: 1.25rem 0; }

.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; margin-bottom: 1.25rem; }
.result-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
}
.result-item-label { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.2rem; font-weight: 600; }
.result-item-val { font-size: 0.875rem; font-weight: 700; color: var(--text); font-family: var(--font-mono); }

.results-interpretation {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.125rem;
}
.interp-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.results-interpretation p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.75; }

.results-actions { display: flex; gap: 0.625rem; }
.results-actions .btn { flex: 1; }

/* Method guide */
.method-guide {
  margin-top: 1rem;
  padding: 1.25rem;
}
.method-guide-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.method-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.method-guide-item:last-child { margin-bottom: 0; }
.mg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.35rem;
  flex-shrink: 0;
}
.method-guide-item strong { color: var(--text); }

/* ─── Methodology ──────────────────── */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
@media (max-width: 768px) { .method-grid { grid-template-columns: 1fr; } }

.method-card-dark {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.method-card-dark:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.method-card-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}
.method-card-dark h3 { margin-bottom: 0.75rem; font-size: 1rem; }
.method-card-dark > p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 1.25rem; }
.method-formula-dark {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.formula-tag { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; margin-bottom: 0.3rem; }
.method-formula-dark code { font-size: 0.85rem; }
.method-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.method-tag {
  padding: 0.2rem 0.6rem;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* RF Table */
.rf-table-section { max-width: 760px; margin: 0 auto; text-align: center; }
.rf-table-section h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.rf-table-section > p { margin-bottom: 1.75rem; font-size: 0.9rem; }
.rf-table-wrap { overflow-x: auto; }
.rf-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.875rem;
  text-align: left;
}
.rf-table th {
  background: var(--surface-raised);
  padding: 0.875rem 1.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.rf-table td {
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.rf-table tr:last-child td { border-bottom: none; }
.rf-table tr.rf-active td { background: var(--accent-dim); color: var(--text); font-weight: 600; }
.rf-level { font-weight: 700; color: var(--text); }

/* ─── Standards ────────────────────── */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 640px) { .standards-grid { grid-template-columns: 1fr; } }

.standard-card-dark {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.standard-card-dark:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.standard-card-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.standard-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.standard-card-dark h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.standard-card-sub { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.standard-card-dark > p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 1.25rem; }
.std-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}
.std-link:hover { color: var(--accent-hover); }

/* ─── FAQ ───────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item-dark { border-bottom: 1px solid var(--border); }
.faq-item-dark:first-child { border-top: 1px solid var(--border); }

.faq-question-dark {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text);
  transition: color var(--transition);
}
.faq-question-dark:hover { color: var(--accent); }
.faq-caret { flex-shrink: 0; color: var(--text-muted); transition: transform var(--transition); }
.faq-item-dark.open .faq-caret { transform: rotate(180deg); }

.faq-answer-dark {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
}
.faq-item-dark.open .faq-answer-dark { max-height: 400px; padding-bottom: 1.25rem; }
.faq-answer-dark p { font-size: 0.875rem; line-height: 1.8; color: var(--text-secondary); }

/* ─── CTA ───────────────────────────── */
.cta-dark {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  overflow: hidden;
}
.cta-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  opacity: 0.3;
}
.cta-ring-2 { width: 600px; height: 600px; opacity: 0.15; }
.cta-content { position: relative; z-index: 2; }
.cta-dark h2 { margin-bottom: 0.875rem; }
.cta-dark p { margin-bottom: 2rem; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ─── Footer ────────────────────────── */
.footer-dark {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand .logo { margin-bottom: 0.875rem; font-size: 1.05rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.65; max-width: 280px; margin-bottom: 1.25rem; }
.footer-trust { display: flex; gap: 0.875rem; flex-wrap: wrap; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 3rem; }
@media (max-width: 480px) { .footer-links { flex-direction: column; gap: 1.5rem; } }
.footer-col h4 { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1rem; font-weight: 700; }
.footer-col a { display: block; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0.6rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-legal p { font-size: 0.78rem; color: var(--text-muted); }
.footer-disclaimer { margin-top: 0.2rem; font-style: italic; }
.footer-privacy-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── Cookie Banner ───────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.3);
  padding: 1rem 1.5rem;
  display: none;
}
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cookie-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.cookie-banner-content {
  flex: 1;
  min-width: 200px;
}
.cookie-banner-content strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.cookie-banner-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.625rem;
  flex-shrink: 0;
}
.btn-cookie-decline {
  padding: 0.6rem 1.125rem;
  border-radius: var(--radius);
  font-size: 0.825rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
}
.btn-cookie-decline:hover { border-color: var(--text-muted); color: var(--text); }
.btn-cookie-accept {
  padding: 0.6rem 1.125rem;
  border-radius: var(--radius);
  font-size: 0.825rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: var(--accent);
  color: #000;
  transition: all var(--transition);
}
.btn-cookie-accept:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ─── Animations ────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }
.results-content { animation: fadeInUp 400ms ease forwards; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.results-big-num.pulse { animation: pulse 1s ease infinite; }

/* ─── Responsive ────────────────────── */
@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .nav-links, .nav-badge { display: none; }
  .hero { padding: 5rem 0 3.5rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero-sub { font-size: 1rem; }
  .hero-features { flex-direction: column; gap: 0.75rem; align-items: center; }
  .calc-controls, .calc-results { position: static; }
  .results-grid { grid-template-columns: 1fr; }
  .results-big-num { font-size: 3.5rem; }
  .field-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
