/* Editorial restaurants landing — RevioReputation
 * Self-hosted Fraunces + Instrument Sans (variable). 3 themes.
 * Ported from prototype with @font-face replacing Google Fonts CDN.
 */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces-VariableFont.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces-VariableFont-Italic.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/InstrumentSans-VariableFont.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* RevioReputation Editorial — cream + burgundy + amber palette
 * Default theme is editorial (cream bg + burgundy primary + amber accent).
 * Dark theme keeps burgundy on dark — no jarring red.
 * Removed previous "light = white + red" palette per Denis 2026-04-27.
 */

/* Logo icon swap (text on desktop, icon on mobile) */
.logo-icon { display: none; vertical-align: middle; border-radius: 6px; }
.logo-text { display: inline-block; }

/* ───────────────────────────────────────────────────────────────────
 * Mobile prioritization (≤768px):
 * Show only conversion-critical sections — hero, pain calc, AI demo,
 * value stack, guarantee, scarcity, FAQ, final CTA.
 * Hide decorative or wide-table sections that hurt mobile UX.
 * ─────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Compact hero typography */
  .hero-title { font-size: clamp(32px, 8.5vw, 52px) !important; line-height: 1.05; }
  .hero-desc { font-size: 16px; }
  .section-title { font-size: clamp(28px, 7vw, 38px) !important; }

  /* Single-column hero grid; hide decorative AI typewriter card */
  .hero-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
  .ai-card { display: none !important; }

  /* Hide wide/decorative sections that bloat scroll on mobile */
  .radar-section,            /* GEO Radar grid — needs width to read */
  .cmp-section,              /* Compare table — unreadable narrow */
  .ba-section { display: none !important; } /* Before/After demo stats */

  /* Compact founder — keep buttons, drop second bio paragraph */
  .founder-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .founder-bio p:nth-of-type(2) { display: none; }
  .founder-photo { width: 56px !important; height: 56px !important; }

  /* Trust rotator + sticky bar smaller on mobile */
  .trust-rotator { font-size: 12px; }
  .sticky-bar { padding: 10px 14px; }
  .sticky-bar p { font-size: 13px; }

  /* RGPD badge — smaller on mobile */
  .rgpd-badge { padding: 6px 10px; font-size: 11px; }

  /* Nav logo: icon only on mobile (text "REVIOREPUTATION" too wide) */
  .logo-text { display: none !important; }
  .logo-icon { display: inline-block !important; }
  .logo { padding: 0; }
}

/* AuthModal token bridge — map editorial tokens to the modal's expected names.
 * Without these, AuthModal.module.css refs (--bg-secondary, --border-subtle,
 * --text-primary, etc.) are unresolved on editorial pages and the modal card
 * renders transparent on the grey backdrop. */
:root {
  --bg-secondary: #faf6ef;
  --bg-card-hover: #f5e6d8;
  --border-subtle: #d6cdbd;
  --border-hover: #1c1917;
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  /* #57534e on all cream bgs → 6.2–7.1:1 ✓ (was #78716c → 3.9–4.5:1 fail on darker creams) */
  --text-muted: #57534e;
  --accent-light: #b45309;
  --accent-glow: rgba(180, 83, 9, 0.12);
  --error: #b91c1c;
  --warning: #b45309;
}

:root,
[data-theme="light"],
[data-theme="neutral"] {
  --bg: #f5f1ea;
  --bg-soft: #ede7dc;
  --bg-section: #efe9de;
  --bg-card: #faf6ef;
  --bg-elev: #ffffff;
  --bg-input: #ffffff;
  --fg: #1c1917;
  --fg-muted: #57534e;
  /* #57534e on cream bgs (#ede7dc, #efe9de, #faf6ef) → 6.2–7.1:1 ✓
     (was #78716c → 3.9–4.45:1 — failed on footer, demo-meta, ba-tag, radar-foot) */
  --fg-subtle: #57534e;
  --border: #d6cdbd;
  --border-strong: #1c1917;
  --primary: #7A2818;     /* deep burgundy / sienna */
  --primary-fg: #faf6ef;
  --primary-soft: #f5e6d8;
  --accent: #b45309;      /* amber */
  --accent-fg: #faf6ef;
  --success: #15803d;
  --danger: #b91c1c;
  --shadow-sm: 0 1px 2px rgba(60,30,10,0.06);
  --shadow-md: 0 6px 24px rgba(60,30,10,0.08), 0 0 0 1px rgba(60,30,10,0.06);
  --shadow-lg: 0 30px 60px -20px rgba(60,30,10,0.2);
  --grid-dot: rgba(60,30,10,0.06);
}

[data-theme="dark"] {
  --bg: #0f0a08;
  --bg-soft: #1a1310;
  --bg-section: #130d0a;
  --bg-card: #1c1612;
  --bg-elev: #221a16;
  --bg-input: #1c1612;
  --fg: #f5f1ea;
  --fg-muted: #b8a99c;
  --fg-subtle: #8a7d72;
  --border: #2e2620;
  --border-strong: #f5f1ea;
  --primary: #c2410c;     /* lighter burgundy for dark contrast */
  --primary-fg: #faf6ef;
  --primary-soft: #2a0e0e;
  --accent: #d97706;      /* warm amber */
  --accent-fg: #faf6ef;
  --success: #10b981;
  --danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
  --shadow-lg: 0 30px 60px -20px rgba(194,65,12,0.4), 0 0 0 1px rgba(255,255,255,0.06);
  --grid-dot: rgba(255,255,255,0.05);
}

/* [data-theme="neutral"] merged into :root above — same palette as default. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Instrument Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Instrument Serif', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* ─── NAV ─── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 32px; padding: 14px 24px; max-width: 1280px; margin: 0 auto; }
.logo { font-family: 'Fraunces', serif; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; }
.logo b { color: var(--primary); }
.logo-mark {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #6C47FF 0%, #8B5CF6 50%, #EC4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  text-decoration: none;
}
.logo-mark.logo-footer { font-size: 18px; }
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-links a { color: var(--fg-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-select, .theme-toggle {
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--fg); padding: 7px 11px; border-radius: 8px; font-size: 13px;
  font-weight: 500; cursor: pointer; font-family: inherit;
}
.theme-toggle { width: 36px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 880px) { .nav-links { display: none; } }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 22px; border-radius: 10px;
  font-family: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: var(--primary-fg);
  box-shadow: 0 8px 24px -8px color-mix(in oklab, var(--primary) 60%, transparent),
              inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px color-mix(in oklab, var(--primary) 70%, transparent), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn-secondary {
  background: var(--bg-card); color: var(--fg); border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-soft); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--fg); border: 1.5px solid var(--border);
}
.btn-lg { padding: 18px 28px; font-size: 17px; border-radius: 12px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ─── SECTION CHROME ─── */
section { padding: 96px 0; position: relative; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary); padding: 6px 12px; border-radius: 999px;
  background: var(--primary-soft); border: 1px solid color-mix(in oklab, var(--primary) 18%, transparent);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.section-title { font-size: clamp(34px, 5vw, 56px); margin-bottom: 14px; }
.section-sub { font-size: 18px; color: var(--fg-muted); max-width: 640px; margin-bottom: 48px; }
.section-head { margin-bottom: 56px; }

/* ─── HERO ─── */
.hero {
  padding: 64px 0 80px;
  background:
    radial-gradient(ellipse 800px 400px at 80% -10%, color-mix(in oklab, var(--primary) 8%, transparent), transparent 60%),
    radial-gradient(ellipse 600px 300px at 10% 30%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); padding: 7px 14px; border-radius: 999px;
  font-size: 13px; color: var(--fg-muted); border: 1px solid var(--border);
  margin-bottom: 24px;
}
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in oklab, var(--success) 18%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--success) 18%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--success) 6%, transparent); } }

.hero-title {
  font-size: clamp(44px, 6.2vw, 84px);
  margin-bottom: 24px;
}
.hero-title .amount {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
  white-space: nowrap;
}
.hero-title .sub { display: block; color: var(--fg-muted); font-size: 0.55em; font-style: italic; font-weight: 400; margin-top: 8px; }
.hero-desc { font-size: 19px; color: var(--fg-muted); margin-bottom: 28px; max-width: 540px; }

.audit-input-wrap {
  display: flex; gap: 8px; padding: 8px;
  background: var(--bg-card); border: 1.5px solid var(--border-strong);
  border-radius: 14px; box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}
.audit-input-wrap input {
  flex: 1; border: none; background: transparent;
  padding: 12px 14px; font-size: 15px; color: var(--fg); font-family: inherit;
  outline: none;
}
.audit-input-wrap input::placeholder { color: var(--fg-subtle); }

.hero-helper { font-size: 13px; color: var(--fg-subtle); margin-bottom: 28px; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-trust { font-size: 13px; color: var(--fg-subtle); display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 5px; }

/* AI typewriter card */
.ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.ai-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 18px; padding: 1.5px;
  background: linear-gradient(135deg, var(--primary), var(--accent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: 0.6;
}
.ai-card-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; font-size: 13px; }
.live-dot { width: 8px; height: 8px; background: var(--danger); border-radius: 50%; animation: pulse-dot 1.4s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.review-block {
  background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
  border-left: 3px solid #fbbf24;
}
.review-stars { color: #fbbf24; margin-bottom: 6px; font-size: 13px; }
.review-author { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--fg); }
.review-text { font-size: 14px; color: var(--fg-muted); }

.response-block {
  padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 5%, var(--bg-soft)), var(--bg-soft));
  border-left: 3px solid var(--primary);
  font-size: 14.5px; min-height: 100px;
}
.response-meta { font-size: 11px; color: var(--success); margin-bottom: 8px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.cursor { display: inline-block; width: 2px; height: 1em; background: var(--primary); margin-left: 1px; vertical-align: text-bottom; animation: blink 1s infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ─── PAIN CALCULATOR ─── */
.pain-section { background: var(--bg-section); }
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.pain-controls {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 32px;
}
.slider-row { margin-bottom: 28px; }
.slider-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 14px; color: var(--fg-muted); }
.slider-label b { font-size: 22px; font-family: 'Fraunces', serif; color: var(--fg); }
input[type="range"] {
  -webkit-appearance: none; width: 100%; height: 6px;
  background: var(--bg-soft); border-radius: 999px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px;
  background: var(--primary); border-radius: 50%; cursor: pointer;
  box-shadow: 0 4px 12px color-mix(in oklab, var(--primary) 50%, transparent), inset 0 0 0 3px var(--bg-card);
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; background: var(--primary); border-radius: 50%; cursor: pointer;
  border: 3px solid var(--bg-card);
  box-shadow: 0 4px 12px color-mix(in oklab, var(--primary) 50%, transparent);
}

.pain-result {
  background: linear-gradient(160deg, var(--primary), color-mix(in oklab, var(--primary) 70%, #000));
  color: #fff; border-radius: 18px; padding: 36px 32px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.pain-result::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(251,191,36,0.25), transparent 70%);
}
.pain-result-label { font-size: 14px; opacity: 0.85; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.pain-amount { font-family: 'Fraunces', serif; font-size: clamp(56px, 9vw, 96px); line-height: 1; font-weight: 700; font-style: italic; margin-bottom: 12px; }
.pain-amount-year { font-size: 17px; opacity: 0.9; margin-bottom: 28px; }
.pain-breakdown { padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.18); }
.pain-breakdown-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.75; margin-bottom: 12px; }
.pain-breakdown-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; opacity: 0.9; }

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

/* ─── LIVE DEMO ─── */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.demo-input-card, .demo-output-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 28px;
}
.demo-output-card { background: var(--bg-soft); border-style: dashed; }
.field-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); margin-bottom: 10px; display: block; }
.demo-textarea {
  width: 100%; min-height: 130px; padding: 14px;
  border: 1.5px solid var(--border); border-radius: 12px;
  font-family: inherit; font-size: 15px; background: var(--bg-input); color: var(--fg);
  resize: vertical; outline: none;
  transition: border-color 0.15s ease;
}
.demo-textarea:focus { border-color: var(--primary); }
.demo-controls { display: flex; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.chip-group { display: inline-flex; background: var(--bg-soft); border-radius: 10px; padding: 4px; gap: 2px; border: 1px solid var(--border); }
.chip {
  padding: 7px 12px; border-radius: 7px; font-size: 13px; cursor: pointer;
  border: none; background: transparent; color: var(--fg-muted); font-family: inherit; font-weight: 500;
}
.chip.active { background: var(--bg-card); color: var(--fg); box-shadow: var(--shadow-sm); }

.demo-output { min-height: 180px; font-size: 15px; line-height: 1.65; padding: 20px; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); }
.demo-output.empty { color: var(--fg-subtle); display: flex; align-items: center; justify-content: center; text-align: center; font-style: italic; }
.demo-thinking { display: inline-flex; gap: 6px; align-items: center; color: var(--fg-muted); font-size: 13px; }
.demo-thinking::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulse-dot 1s infinite; }

.demo-actions-row { display: flex; gap: 10px; margin-top: 14px; align-items: center; flex-wrap: wrap; }
.demo-meta { font-size: 12px; color: var(--fg-subtle); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.demo-not-robot { display: inline-block; margin-top: 12px; padding: 6px 12px; background: var(--accent); color: var(--accent-fg); font-size: 12px; font-weight: 600; border-radius: 999px; }

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

/* ─── MECHANISM ─── */
.mech-section { background: var(--bg); }
.mech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mech-card {
  position: relative; padding: 36px 28px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mech-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mech-num {
  font-family: 'Fraunces', serif; font-size: 70px; font-weight: 700;
  /* 70px bold = WCAG large text (>18pt bold) → requires 3:1.
     color-mix 65% primary on cream bg → ~3.8:1 ✓ (was 25% → 1.57:1 fail) */
  color: color-mix(in oklab, var(--primary) 65%, transparent);
  line-height: 1; margin-bottom: 16px; font-style: italic;
}
.mech-card h3 { font-size: 24px; margin-bottom: 12px; }
.mech-card p { color: var(--fg-muted); }
@media (max-width: 880px) { .mech-grid { grid-template-columns: 1fr; } }

/* ─── GEO RADAR ─── */
.radar-section { background: var(--bg-soft); }
.radar-controls { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; align-items: center; }
.radar-controls .chip-group { font-size: 14px; }
.radar-grid-wrap {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 22px;
  padding: 36px; box-shadow: var(--shadow-md); position: relative;
}
.radar-map {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  aspect-ratio: 1; max-width: 600px; margin: 0 auto;
}
.radar-cell {
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 22px;
  position: relative; transition: all 0.4s ease; min-height: 90px;
  cursor: pointer; background: var(--bg-soft); color: var(--fg-muted);
  border: 1px solid var(--border);
}
.radar-cell.top { background: color-mix(in oklab, var(--success) 18%, var(--bg-card)); color: var(--success); border-color: color-mix(in oklab, var(--success) 30%, transparent); }
.radar-cell.mid { background: color-mix(in oklab, var(--accent) 22%, var(--bg-card)); color: #92400e; border-color: color-mix(in oklab, var(--accent) 40%, transparent); }
.radar-cell.low { background: color-mix(in oklab, var(--danger) 18%, var(--bg-card)); color: var(--danger); border-color: color-mix(in oklab, var(--danger) 28%, transparent); }
.radar-cell.you {
  background: var(--primary); color: #fff; border: none;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 0 0 3px var(--bg-card), 0 0 0 5px var(--primary), 0 12px 30px -8px color-mix(in oklab, var(--primary) 60%, transparent);
  z-index: 2;
  animation: radar-pulse 2.4s infinite;
}
.radar-cell.you::after {
  content: ""; position: absolute; inset: -8px;
  border-radius: 14px; border: 2px solid var(--primary);
  animation: radar-ring 2.4s infinite;
}
@keyframes radar-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes radar-ring {
  0% { opacity: 0.8; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(1.4); }
}
.radar-legend { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 28px; font-size: 13px; color: var(--fg-muted); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 12px; height: 12px; border-radius: 4px; }
.radar-foot { text-align: center; margin-top: 18px; font-size: 12px; color: var(--fg-subtle); }

/* ─── VALUE STACK ─── */
.stack-section { background: var(--bg); }
.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stack-col {
  padding: 36px 32px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border);
}
.stack-col.lose { background: color-mix(in oklab, var(--danger) 5%, var(--bg-card)); border-color: color-mix(in oklab, var(--danger) 20%, transparent); }
.stack-col.gain { background: color-mix(in oklab, var(--success) 6%, var(--bg-card)); border-color: color-mix(in oklab, var(--success) 22%, transparent); }
.stack-col h3 { font-size: 22px; margin-bottom: 22px; }
.stack-col.lose h3 { color: var(--danger); }
/* gain h3 on green-tinted bg (#edefe4): #14532d → 7.8:1 ✓
   (var(--success) = #15803d → 4.31:1 fail on tinted card bg) */
.stack-col.gain h3 { color: #14532d; }
.stack-row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 15px; gap: 16px; }
.stack-row:last-of-type { border-bottom: none; }
.stack-row .v { font-weight: 700; font-family: 'Fraunces', serif; font-size: 17px; white-space: nowrap; }
.stack-total { margin-top: 14px; padding-top: 14px; border-top: 2px solid currentColor; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; }

.stack-cta-block {
  margin-top: 32px; padding: 36px; background: var(--fg); color: var(--bg);
  border-radius: 22px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.stack-pay-amount { font-family: 'Fraunces', serif; font-size: clamp(58px, 9vw, 96px); font-weight: 700; line-height: 1; font-style: italic; color: var(--accent); }
.stack-pay-unit { font-size: 22px; opacity: 0.65; font-family: 'Fraunces', serif; font-style: italic; }
.stack-pay-label { font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px; }
.stack-pay-note { font-size: 13px; opacity: 0.65; margin-top: 6px; }
.stack-roi { text-align: right; }
.stack-roi-label { font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 4px; }
.stack-roi-value { font-family: 'Fraunces', serif; font-size: 64px; font-weight: 700; color: var(--accent); font-style: italic; line-height: 1; }

@media (max-width: 880px) {
  .stack-grid { grid-template-columns: 1fr; }
  .stack-cta-block { grid-template-columns: 1fr; text-align: left; }
  .stack-roi { text-align: left; }
}

/* ─── BEFORE/AFTER ─── */
.ba-section { background: var(--bg-soft); }
.ba-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 22px;
  padding: 40px; box-shadow: var(--shadow-md);
}
.ba-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.ba-head h3 { font-size: 28px; }
.ba-tag { font-size: 12px; color: var(--fg-subtle); padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 18px; }
.ba-stat { text-align: center; padding: 22px 14px; background: var(--bg-soft); border-radius: 14px; border: 1px solid var(--border); }
.ba-stat-label { font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; font-weight: 600; }
.ba-row { display: flex; align-items: baseline; justify-content: space-around; gap: 10px; }
.ba-num { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 700; }
.ba-num.before { color: var(--danger); text-decoration: line-through; opacity: 0.7; }
.ba-num.after { color: var(--success); }
.ba-arrow { color: var(--fg-subtle); font-size: 18px; }
@media (max-width: 720px) { .ba-grid { grid-template-columns: 1fr 1fr; } }

/* ─── COMPARE TABLE ─── */
.cmp-section { background: var(--bg); }
.cmp-table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--border); background: var(--bg-card); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.cmp-table th, .cmp-table td { padding: 16px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border); }
.cmp-table th { font-weight: 600; font-size: 13px; background: var(--bg-soft); color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.cmp-table th:last-child, .cmp-table td:last-child { background: color-mix(in oklab, var(--primary) 5%, var(--bg-card)); border-left: 1px solid color-mix(in oklab, var(--primary) 20%, transparent); border-right: 1px solid color-mix(in oklab, var(--primary) 20%, transparent); font-weight: 600; }
.cmp-table th:last-child { background: var(--primary); color: #fff; }
.cmp-table tr:last-child td { border-bottom: none; }

.diy-callout {
  margin-top: 32px; padding: 32px; border-radius: 18px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-soft));
  border: 1.5px solid var(--accent); position: relative;
}
.diy-callout::before {
  content: "⚠"; position: absolute; top: -18px; left: 28px; width: 36px; height: 36px;
  background: var(--accent); color: var(--accent-fg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
}
.diy-callout h4 { font-size: 22px; margin-bottom: 10px; font-style: italic; }

/* ─── FOUNDER ─── */
.founder-section { background: var(--bg-section); }
.founder-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.founder-photo {
  width: 220px; height: 280px; border-radius: 18px;
  background: linear-gradient(160deg, color-mix(in oklab, var(--primary) 30%, var(--bg-soft)), color-mix(in oklab, var(--accent) 25%, var(--bg-soft)));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 80px; color: var(--bg-card); font-style: italic;
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.founder-photo::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(255,255,255,0.04) 8px 9px);
}
.founder-photo span { position: relative; z-index: 1; }
.founder-quote { font-family: 'Fraunces', serif; font-size: clamp(22px, 2.6vw, 32px); font-style: italic; line-height: 1.3; margin-bottom: 24px; }
.founder-byline { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.founder-name { font-weight: 700; }
.founder-role { color: var(--fg-muted); font-size: 14px; }
.founder-bio p { color: var(--fg-muted); margin-bottom: 14px; }
.founder-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.whatsapp-btn {
  background: #25d366; color: #fff; padding: 12px 18px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.whatsapp-btn:hover { background: #1ebe57; }
.founder-meta { font-size: 12px; color: var(--fg-subtle); margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
@media (max-width: 720px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo { width: 120px; height: 150px; font-size: 48px; }
}

/* ─── GUARANTEE ─── */
.guarantee-section { background: var(--bg); }
.guarantee-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 22px;
  padding: 48px; display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center;
  box-shadow: var(--shadow-md);
}
.seal {
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 700;
  border: 4px dashed color-mix(in oklab, var(--accent-fg) 30%, transparent);
  text-align: center; padding: 12px;
}
.seal b { font-size: 30px; line-height: 1; }
.seal span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }
.guarantee-content h3 { font-size: 28px; margin-bottom: 16px; }
.guarantee-list { list-style: none; }
.guarantee-list li { padding: 6px 0 6px 24px; position: relative; color: var(--fg-muted); font-size: 15px; }
.guarantee-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
@media (max-width: 880px) { .guarantee-card { grid-template-columns: 1fr; text-align: left; } .seal { margin: 0 auto; } }

/* ─── SCARCITY ─── */
.scarcity-section { background: var(--fg); color: var(--bg); padding: 80px 0; }
[data-theme="dark"] .scarcity-section { background: var(--accent); color: var(--accent-fg); }
/* Scarcity section kicker on dark bg (~#33302e): need WCAG 4.5:1.
   #f59e0b → 6.1:1 ✓ (var(--accent) = #b45309 → 2.6:1 fail on dark) */
.scarcity-section .kicker { background: rgba(255,255,255,0.1); color: #f59e0b; border-color: transparent; }
[data-theme="dark"] .scarcity-section .kicker { color: var(--accent-fg); background: rgba(0,0,0,0.1); }
.scarcity-section .section-title { color: inherit; }
.scarcity-section .section-sub { color: inherit; opacity: 0.85; }
.neighborhoods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 32px 0; }
.nbh {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; background: rgba(255,255,255,0.07); border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
}
[data-theme="dark"] .nbh { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.12); }
.nbh-name { font-size: 14px; font-weight: 500; }
.nbh-left {
  font-family: 'Fraunces', serif; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-fg); font-size: 13px;
}
.nbh.urgent .nbh-left { background: var(--primary); color: var(--primary-fg); animation: pulse-dot 1.4s infinite; }

/* ─── FAQ ─── */
.faq-section { background: var(--bg); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--primary); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px; cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; font-family: 'Fraunces', serif; font-size: 28px; color: var(--primary); font-weight: 400; transition: transform 0.2s ease; }
.faq-item[open] .faq-q::after { content: "−"; }
.faq-a { padding: 0 28px 24px; color: var(--fg-muted); font-size: 15px; line-height: 1.65; }

/* ─── FINAL CTA ─── */
.final-section {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.final-title { font-size: clamp(38px, 5.5vw, 64px); margin-bottom: 14px; max-width: 800px; margin-left: auto; margin-right: auto; }
.final-sub { font-size: 18px; color: var(--fg-muted); margin-bottom: 32px; max-width: 580px; margin-left: auto; margin-right: auto; }
.final-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── RGPD BADGE (sticky) ─── */
.rgpd-badge {
  position: fixed; left: 16px; bottom: 16px; z-index: 50;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; font-size: 12px; color: var(--fg-muted); display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-md);
}
.rgpd-badge svg { width: 16px; height: 16px; color: var(--success); }

/* ─── STICKY BOTTOM ─── */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
  background: var(--fg); color: var(--bg);
  padding: 14px 20px; transform: translateY(100%); transition: transform 0.3s ease;
  display: flex; justify-content: center; align-items: center; gap: 18px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
}
.sticky-bar.visible { transform: translateY(0); }
/* Suppress sticky CTA while CookieBanner is on screen — otherwise both
   full-width bars stack at the bottom and the page looks broken. */
body.cookie-banner-visible .sticky-bar { transform: translateY(100%) !important; }
.sticky-bar p { font-size: 14px; font-weight: 500; }
.sticky-bar .btn-primary { padding: 10px 20px; font-size: 14px; }

/* ─── EXIT INTENT ─── */
.exit-modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.exit-modal.show { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.exit-modal-card {
  background: var(--bg-card); border-radius: 22px; padding: 40px;
  max-width: 480px; width: 100%; position: relative; box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.exit-modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  background: var(--bg-soft); border: none; border-radius: 50%; cursor: pointer;
  font-size: 18px; color: var(--fg-muted);
}
.exit-modal h3 { font-size: 26px; margin-bottom: 12px; }
.exit-modal p { color: var(--fg-muted); margin-bottom: 22px; }
.exit-modal input[type="email"] {
  width: 100%; padding: 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: var(--bg-input); color: var(--fg);
  margin-bottom: 12px; outline: none;
}
.exit-modal input:focus { border-color: var(--primary); }
.exit-skip { display: block; text-align: center; margin-top: 14px; background: none; border: none; color: var(--fg-muted); cursor: pointer; font-family: inherit; font-size: 13px; text-decoration: underline; }

/* ─── FOOTER ─── */
.footer { background: var(--bg-section); padding: 64px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-tagline { color: var(--fg-muted); font-size: 14px; max-width: 280px; margin-top: 14px; }
.footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-subtle); margin-bottom: 14px; font-family: 'Instrument Sans', sans-serif; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { padding: 5px 0; }
.footer-col a { color: var(--fg-muted); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--fg-subtle); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Safety net: if reveal-observer hasn't fired in 2.5s, show everything anyway. */
.reveal { animation: reveal-failsafe 0.01s 2.5s forwards; }
@keyframes reveal-failsafe { to { opacity: 1; transform: translateY(0); } }
.reveal.in { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1 !important; transform: none !important; transition: none; animation: none; }
}

/* small utilities */
.txt-center { text-align: center; }
.mt-32 { margin-top: 32px; }
