/* ==========================================================================
   convincelab — X-ray theme layer + interactive elements
   Loaded after main.css, so it is the last word on type and colour.
   Figtree at Regular 400 for headlines, black and white, one signal red.
   ========================================================================== */
:root {
  --xr-ink: #0A0A0A;
  --xr-paper: #FFFFFF;
  --xr-soft: #F7F7F6;
  --xr-line: #E8E8E6;
  --xr-line-2: #D9D9D6;
  --xr-muted: #6B6B6B;
  --xr-signal: #FF4D2E;          /* fills, tags, dots */
  --xr-signal-text: #C2321A;     /* signal red that passes contrast as text */
  --xr-signal-soft: #FFF1EE;
  --xr-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --xr-max: 1200px;
  --xr-pad: clamp(1.1rem, 4vw, 2.5rem);
}
[data-theme="dark"] {
  --xr-ink: #F2F2F0;
  --xr-paper: #0A0A0A;
  --xr-soft: #141414;
  --xr-line: #262626;
  --xr-line-2: #333333;
  --xr-muted: #A3A3A0;
  --xr-signal: #FF6A4D;
  --xr-signal-text: #FF8A73;
  --xr-signal-soft: #2A1612;
}

/* ── Type: one family, light headlines, tight tracking ─────────────────── */
body { font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.04em; }
h4, h5, h6 { font-weight: 500; letter-spacing: -0.02em; }
::selection { background: var(--xr-signal); color: #0A0A0A; }
:focus-visible { outline: 2px solid var(--xr-signal); outline-offset: 3px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
/* No backdrop-filter on the header: it would become the containing block for the
   fixed mobile menu and push the hidden panel outside the page. */
.site-header .header-inner { height: 64px; gap: 1.25rem; }
.xr-logo { display: inline-flex; align-items: baseline; gap: 2px; text-decoration: none; font-family: 'Figtree', sans-serif !important; font-size: 19px !important; letter-spacing: -0.035em !important; line-height: 1; }
.xr-logo .logo-wordmark { font-size: 19px; font-weight: 600; letter-spacing: -0.035em; color: var(--hdr-logo-color); padding: 0; }
.xr-logo .logo-wordmark::before, .xr-logo .logo-wordmark::after { display: none; }
.xr-logo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--xr-signal); display: inline-block; }
/* Calm, compact nav: sentence case, normal tracking, pill hover */
.xr-nav { justify-content: center !important; gap: 2px !important; height: auto !important; align-items: center !important; }
.xr-nav .nav-item { flex-direction: row !important; align-items: center !important; height: 38px; padding: 0 14px !important; border-radius: 999px; overflow: visible !important; transition: background-color 200ms; }
.xr-nav .nav-item::before { display: none !important; }
.xr-nav .ni-label { font-family: 'Figtree', sans-serif !important; font-size: 14.5px !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--hdr-nav-text) !important; transition: color 200ms; }
.xr-nav .nav-item:hover { background: var(--xr-soft); }
.xr-nav .nav-item:hover .ni-label, .xr-nav .nav-item.active .ni-label { color: var(--xr-ink) !important; font-weight: 500 !important; }
.xr-nav .nav-item.active { background: var(--xr-soft); }
.nav-actions { gap: 6px !important; }
.nav-actions .icon-btn { width: 38px; height: 38px; border-radius: 50% !important; }
@media (max-width: 1320px) { .nav-actions .xr-switch:not(.xr-switch-lg) .xr-switch-label { font-size: 0; } .nav-actions .xr-switch:not(.xr-switch-lg) .xr-switch-label::after { content: 'X-ray'; font-size: 13px; } }
.xr-cta { background: var(--xr-ink) !important; color: var(--xr-paper) !important; border: 0 !important; border-radius: 999px !important; font-weight: 500 !important; font-size: 13.5px !important; letter-spacing: 0 !important; text-transform: none !important; padding: 9px 16px !important; box-shadow: none !important; }
.xr-cta:hover { background: var(--xr-signal) !important; color: #0A0A0A !important; }

/* The X-ray switch */
.xr-switch { display: inline-flex; align-items: center; gap: 9px; background: none; border: 1px solid var(--xr-line); border-radius: 999px; padding: 5px 6px 5px 12px; font-family: inherit; font-size: 13px; color: var(--xr-ink); cursor: pointer; min-height: 40px; transition: border-color 200ms, background-color 200ms; }
.xr-switch:hover { border-color: var(--xr-ink); }
.xr-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--xr-line-2); transition: background-color 250ms; flex: none; }
.xr-knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform 380ms cubic-bezier(.34,1.56,.64,1); }
.xray-on .xr-track { background: var(--xr-signal); }
.xray-on .xr-knob { transform: translateX(16px); }
.xray-on .xr-switch { border-color: var(--xr-signal); }
.xr-switch-lg { width: 100%; justify-content: space-between; margin-bottom: 12px; min-height: 48px; }
@media (max-width: 1100px) { .xr-nav { display: none !important; } .ham-btn { display: flex !important; } }
@media (max-width: 760px) { .nav-actions .xr-switch:not(.xr-switch-lg) .xr-switch-label { display: none; } .nav-actions .xr-switch:not(.xr-switch-lg) { padding: 5px; } .nav-actions .xr-cta { display: none; } }

/* X-ray tags on any [data-xray] element */
.xr-tag { position: absolute; left: -4px; top: -24px; z-index: 30; white-space: nowrap; pointer-events: none; background: var(--xr-signal); color: #0A0A0A; font: 500 11.5px/1.3 'Figtree', sans-serif; letter-spacing: 0; text-transform: none; padding: 3px 9px; border-radius: 999px; opacity: 0; transform: translateY(5px) scale(.96); transition: opacity 300ms var(--xr-ease), transform 380ms var(--xr-ease); }
.xr-target { transition: box-shadow 300ms var(--xr-ease); }
.xray-on .xr-target { box-shadow: 0 0 0 1.5px var(--xr-signal); border-radius: 6px; }
.xray-on .xr-tag { opacity: 1; transform: none; }
.xray-on .xr-target:nth-of-type(2n) .xr-tag { transition-delay: 60ms; }
.xr-legend { position: fixed; left: 16px; bottom: 16px; z-index: 900; width: 250px; max-height: 50vh; overflow: auto; background: var(--xr-paper); color: var(--xr-ink); border: 1px solid var(--xr-line); border-radius: 16px; padding: 14px 16px; box-shadow: 0 18px 50px rgba(0,0,0,.12); font-size: 13.5px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 300ms var(--xr-ease), transform 400ms var(--xr-ease), visibility 0s linear 300ms; }
.xray-on .xr-legend { opacity: 1; visibility: visible; transform: none; transition: opacity 300ms var(--xr-ease), transform 400ms var(--xr-ease), visibility 0s; }
.xr-legend-title { margin: 0 0 8px; font-weight: 500; }
.xr-legend ol { margin: 0 0 10px; padding-left: 18px; color: var(--xr-muted); line-height: 1.7; }
.xr-legend-link { color: var(--xr-signal-text); font-weight: 500; text-decoration: none; }
@media (max-width: 760px) { .xr-legend { left: 10px; right: 10px; width: auto; bottom: 10px; max-height: 34vh; } }

/* ── Shared pieces ──────────────────────────────────────────────────────── */
.xr-wrap { max-width: var(--xr-max); margin: 0 auto; padding: 0 var(--xr-pad); }
.xr-sec { padding: clamp(56px, 8vw, 112px) 0 0; }
.xr-kicker { font-size: 13px; color: var(--xr-muted); margin: 0 0 12px; }
.xr-kicker b { color: var(--xr-signal-text); font-weight: 500; }
.xr-h1 { font-size: clamp(42px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.05em; font-weight: 400; margin: 0; color: var(--xr-ink); }
.xr-h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 400; margin: 0; color: var(--xr-ink); }
.xr-h1 em, .xr-h2 em { font-style: normal; color: var(--xr-signal-text); }
.xr-lead { font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.6; color: var(--xr-muted); max-width: 580px; margin: 18px 0 0; }
.xr-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.xr-link { color: var(--xr-ink); font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--xr-signal); padding-bottom: 2px; transition: color 200ms; white-space: nowrap; }
.xr-link:hover { color: var(--xr-signal-text); }
.xr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 500 15px 'Figtree', sans-serif; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: background-color 200ms, color 200ms, border-color 200ms, transform 200ms var(--xr-ease); }
.xr-btn:hover { transform: translateY(-1px); }
.xr-btn-ink { background: var(--xr-ink); color: var(--xr-paper); }
.xr-btn-ink:hover { background: var(--xr-signal); color: #0A0A0A; }
.xr-btn-ghost { background: transparent; color: var(--xr-ink); border-color: var(--xr-line-2); }
.xr-btn-ghost:hover { border-color: var(--xr-ink); }
.xr-pill { font: 400 14px 'Figtree', sans-serif; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--xr-line-2); background: var(--xr-paper); color: var(--xr-ink); cursor: pointer; min-height: 40px; transition: background-color 200ms, color 200ms, border-color 200ms, transform 200ms var(--xr-ease); }
.xr-pill:hover { border-color: var(--xr-ink); transform: translateY(-1px); }
.xr-pill.on { background: var(--xr-ink); color: var(--xr-paper); border-color: var(--xr-ink); }
.xr-card-box { background: var(--xr-paper); border: 1px solid var(--xr-line); border-radius: 22px; padding: clamp(20px, 3vw, 32px); }
.xr-soft { background: var(--xr-soft); }
.xr-fine { font-size: 13px; color: var(--xr-muted); margin: 12px 0 0; }
.xr-err { color: var(--xr-signal-text); font-size: 13.5px; min-height: 18px; margin: 6px 0 0; }
.xr-fade { animation: xr-fade 520ms var(--xr-ease) both; }
.xr-swap { animation: xr-swap 520ms var(--xr-ease) both; }
@keyframes xr-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes xr-swap { from { opacity: 0; filter: blur(4px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
.xr-field { width: 100%; font: 400 16px 'Figtree', sans-serif; color: var(--xr-ink); background: var(--xr-paper); border: 1px solid var(--xr-line-2); border-radius: 14px; padding: 13px 16px; min-height: 48px; transition: border-color 200ms, box-shadow 200ms; box-sizing: border-box; }
.xr-field:focus { outline: none; border-color: var(--xr-ink); box-shadow: 0 0 0 4px var(--xr-signal-soft); }
textarea.xr-field { min-height: 96px; resize: vertical; }
.xr-label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 8px; color: var(--xr-ink); }

/* ── 5. Ask-first hero ──────────────────────────────────────────────────── */
/* The whole first section (headline, buttons and the question) fits in the
   first screen on desktop: sizes follow both viewport width and height. */
.xr-hero { padding: clamp(28px, 6vh, 72px) 0 clamp(24px, 4vh, 48px); }
.xr-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 1025px) { .xr-hero-grid { min-height: calc(100vh - 64px - clamp(52px, 10vh, 120px)); } }
.xr-hero .xr-h1 { font-size: clamp(38px, min(5vw, 8.4vh), 76px); line-height: 1.02; animation: xr-fade 900ms var(--xr-ease) both; max-width: 15ch; }
.xr-hero .xr-lead { margin-top: clamp(12px, 2.2vh, 20px); font-size: clamp(16px, min(1.3vw, 2.3vh), 18.5px); }
.xr-hero .xr-hero-row { margin-top: clamp(18px, 3.2vh, 28px); }
.xr-ask { animation: xr-fade 900ms var(--xr-ease) 160ms both; }
.xr-ask.xr-card-box { box-shadow: 0 24px 60px rgba(0,0,0,.06); }
.xr-ask .xr-ask-q { font-size: 15px; color: var(--xr-ink); margin-bottom: 14px; }
.xr-ask .xr-ask-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.xr-ask .xr-ask-card { flex-direction: row; justify-content: space-between; align-items: center; padding: 12px 16px; }
.xr-ask .xr-ask-head { font-size: clamp(20px, 2vw, 24px); }
.xr-ask-hint { font-size: 13.5px; color: var(--xr-muted); margin: 0; }
@media (max-width: 1024px) { .xr-hero-grid { grid-template-columns: minmax(0, 1fr); } }
.xr-ask-q { font-size: 15px; color: var(--xr-muted); margin: 0 0 12px; }
.xr-ask-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.xr-ask-out { margin-top: 22px; min-height: 40px; }
.xr-ask-head { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.04em; margin: 0 0 14px; color: var(--xr-ink); }
.xr-ask-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.xr-ask-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--xr-line); border-radius: 16px; color: var(--xr-ink); text-decoration: none; background: var(--xr-paper); animation: xr-fade 520ms var(--xr-ease) both; transition: border-color 200ms, transform 300ms var(--xr-ease); }
.xr-ask-card:hover { border-color: var(--xr-ink); transform: translateY(-3px); }
.xr-ask-kicker { font-size: 12px; color: var(--xr-muted); }
.xr-ask-title { font-size: 17px; letter-spacing: -0.02em; }
.xr-ask-note { font-size: 13.5px; color: var(--xr-muted); margin: 14px 0 0; }
.xr-ask-note a { color: var(--xr-signal-text); }
@media (max-width: 640px) { .xr-ask-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── 6. Headline rewriter ───────────────────────────────────────────────── */
.xr-rw-stage { margin-top: 18px; border: 1px solid var(--xr-line); border-radius: 20px; padding: clamp(20px, 3vw, 30px); background: var(--xr-soft); }
.xr-rw-label { font-size: 12.5px; color: var(--xr-muted); margin: 0; }
.xr-rw-h { font-size: clamp(24px, 3.4vw, 38px); letter-spacing: -0.04em; line-height: 1.1; margin: 8px 0 0; color: var(--xr-ink); }
.xr-rw-n { font-size: 14.5px; color: var(--xr-muted); margin: 12px 0 0; line-height: 1.55; }
.xr-rw-opts { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── 7. Decoy toggle ────────────────────────────────────────────────────── */
.xr-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.xr-plan { border: 1px solid var(--xr-line); border-radius: 18px; padding: 18px; background: var(--xr-paper); transition: transform 450ms cubic-bezier(.34,1.56,.64,1), box-shadow 300ms, border-color 300ms, opacity 300ms; }
.xr-plan-name { font-size: 14px; color: var(--xr-muted); margin: 0; display: flex; align-items: center; gap: 6px; }
.xr-plan-price { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.04em; margin: 6px 0 0; color: var(--xr-ink); }
.xr-plan-feat { font-size: 13px; color: var(--xr-muted); margin: 4px 0 0; }
.xr-plan.decoy { opacity: .35; border-style: dashed; }
.xr-plan-badge { display: none; font-size: 11px; background: var(--xr-signal); color: #0A0A0A; border-radius: 999px; padding: 1px 8px; }
.xr-decoy-on .xr-plan.decoy { opacity: 1; border-style: solid; }
.xr-decoy-on .xr-plan.target { border-color: var(--xr-ink); box-shadow: 0 0 0 3px var(--xr-signal); transform: translateY(-6px); }
.xr-decoy-on .xr-plan.target .xr-plan-badge { display: inline-block; }
.xr-check-row { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; min-height: 44px; }
.xr-check-row input { width: 18px; height: 18px; accent-color: var(--xr-signal); }

/* ── 8. Before / after slider ───────────────────────────────────────────── */
.xr-ba-stage { position: relative; height: clamp(220px, 28vw, 300px); border-radius: 20px; overflow: hidden; border: 1px solid var(--xr-line); background: var(--xr-paper); cursor: ew-resize; touch-action: pan-y; user-select: none; }
.xr-ba-side { position: absolute; inset: 0; padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; gap: 10px; }
.xr-ba-after { background: var(--xr-signal-soft); clip-path: inset(0 50% 0 0); }
.xr-ba-tag { font-size: 12px; color: var(--xr-muted); }
.xr-ba-after .xr-ba-tag { color: var(--xr-signal-text); font-weight: 500; }
.xr-ba-h { font-size: clamp(20px, 2.6vw, 28px); letter-spacing: -0.03em; color: var(--xr-ink); margin: 0; }
.xr-ba-p { font-size: 14.5px; color: var(--xr-muted); margin: 0; }
.xr-ba-btn { align-self: flex-start; border-radius: 999px; padding: 9px 16px; font-size: 13.5px; border: 1px solid var(--xr-line-2); color: var(--xr-ink); }
.xr-ba-after .xr-ba-btn { background: var(--xr-ink); color: var(--xr-paper); border-color: var(--xr-ink); }
.xr-ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--xr-ink); pointer-events: none; }
.xr-ba-handle::after { content: '⇆'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: var(--xr-ink); color: var(--xr-paper); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.xr-ba-range { width: 100%; margin-top: 12px; accent-color: var(--xr-signal); }

/* ── 9. Attention map ───────────────────────────────────────────────────── */
.xr-attn-stage { position: relative; height: 260px; border-radius: 20px; overflow: hidden; border: 1px solid var(--xr-line); background: var(--xr-paper); }
.xr-attn-bar { position: absolute; border-radius: 6px; background: var(--xr-soft); }
.xr-attn-cta { position: absolute; left: 64%; top: 210px; padding: 9px 14px; border-radius: 999px; background: var(--xr-ink); color: var(--xr-paper); font-size: 12.5px; transition: left 700ms var(--xr-ease), top 700ms var(--xr-ease); }
.xr-blob { position: absolute; border-radius: 50%; filter: blur(16px); animation: xr-pulse 2.8s ease-in-out infinite; transition: left 700ms var(--xr-ease), top 700ms var(--xr-ease), background-color 500ms; }
.xr-blob.a { left: 4%; top: 6px; width: 46%; height: 64px; background: rgba(255,77,46,.55); }
.xr-blob.b { left: 6%; top: 70px; width: 32%; height: 48px; background: rgba(255,170,60,.5); animation-delay: .7s; }
.xr-blob.c { left: 60%; top: 196px; width: 26%; height: 50px; background: rgba(80,150,255,.35); animation-delay: 1.3s; }
.xr-attn-after .xr-attn-cta { left: 5%; top: 132px; }
.xr-attn-after .xr-blob.c { left: 3%; top: 120px; background: rgba(255,77,46,.5); }
@keyframes xr-pulse { 50% { transform: scale(1.12); } }

/* ── 10. Bias deck ──────────────────────────────────────────────────────── */
.xr-deck { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.xr-deck-stack { position: relative; height: 300px; perspective: 1200px; }
.xr-card { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateY(calc(var(--k) * 10px)) scale(calc(1 - var(--k) * 0.04)); z-index: calc(10 - var(--k)); transition: transform 650ms var(--xr-ease), opacity 400ms; cursor: default; }
.xr-card.top { cursor: pointer; }
.xr-card.flipped { transform: rotateY(180deg); }
.xr-card.gone { transform: translateX(110%) rotate(14deg); opacity: 0; }
.xr-card-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 24px; border: 1px solid var(--xr-line-2); background: var(--xr-paper); padding: 26px; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; }
.xr-card.top .xr-card-front { background: var(--xr-ink); color: var(--xr-paper); border-color: var(--xr-ink); }
.xr-card-back { transform: rotateY(180deg); background: var(--xr-signal); color: #0A0A0A; border-color: var(--xr-signal); }
.xr-card-kicker { font-size: 12.5px; opacity: .7; }
.xr-card-name { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.045em; line-height: 1; margin-top: auto; }
.xr-card-def { font-size: 15px; line-height: 1.5; opacity: .85; }
.xr-card-hint { font-size: 12.5px; opacity: .6; }
.xr-card-ex { font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -0.02em; line-height: 1.3; margin-top: auto; }
.xr-card-link { color: #0A0A0A; font-weight: 500; font-size: 14px; }
.xr-meter { height: 6px; border-radius: 999px; background: var(--xr-line); overflow: hidden; margin: 10px 0 18px; max-width: 360px; }
.xr-meter > span { display: block; height: 100%; width: 0; background: var(--xr-signal); border-radius: 999px; transition: width 700ms var(--xr-ease); }

/* ── 11. Principle finder ───────────────────────────────────────────────── */
.xr-finder { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.xr-stage-list { display: flex; flex-direction: column; border-left: 1px solid var(--xr-line); }
.xr-stage-btn { text-align: left; background: none; border: 0; border-left: 2px solid transparent; margin-left: -1px; padding: 12px 16px; font: 400 18px 'Figtree', sans-serif; letter-spacing: -0.02em; color: var(--xr-muted); cursor: pointer; transition: color 200ms, border-color 200ms; min-height: 44px; }
.xr-stage-btn.on { color: var(--xr-ink); border-left-color: var(--xr-signal); }
.xr-funnel { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 18px; }
.xr-funnel span { height: 10px; border-radius: 999px; background: var(--xr-line); transition: background-color 400ms; }
.xr-funnel span:nth-child(1) { width: 100%; } .xr-funnel span:nth-child(2) { width: 78%; } .xr-funnel span:nth-child(3) { width: 56%; } .xr-funnel span:nth-child(4) { width: 34%; }
.xr-funnel span.on { background: var(--xr-signal); }
.xr-find-out { display: grid; gap: 10px; }
.xr-find-item { display: block; padding: 16px 18px; border: 1px solid var(--xr-line); border-radius: 16px; color: var(--xr-ink); text-decoration: none; animation: xr-fade 520ms var(--xr-ease) both; transition: border-color 200ms, transform 300ms var(--xr-ease); }
.xr-find-item:hover { border-color: var(--xr-ink); transform: translateX(4px); }
.xr-find-name { display: block; font-size: 18px; letter-spacing: -0.02em; }
.xr-find-def { display: block; font-size: 14px; color: var(--xr-muted); margin-top: 4px; line-height: 1.5; }

/* ── 12/17/18. Checkers and scores ──────────────────────────────────────── */
.xr-score { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 10px; flex-wrap: wrap; }
.xr-score-num { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.05em; line-height: 1; color: var(--xr-ink); }
.xr-score-lbl { font-size: 14px; color: var(--xr-muted); }
.xr-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.xr-checks li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--xr-line); font-size: 14.5px; line-height: 1.5; animation: xr-fade 480ms var(--xr-ease) both; }
.xr-checks li b { font-weight: 500; }
.xr-checks li a { color: var(--xr-signal-text); }
.xr-check-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.xr-checks li.ok .xr-check-ico { background: var(--xr-ink); color: var(--xr-paper); }
.xr-checks li.bad .xr-check-ico { background: var(--xr-signal); color: #0A0A0A; }
.xr-checks li.soft .xr-check-ico { background: var(--xr-line); color: var(--xr-muted); }
.xr-checks li.bad { border-color: color-mix(in srgb, var(--xr-signal) 45%, var(--xr-line)); }
.xr-inbox { border: 1px solid var(--xr-line); border-radius: 18px; padding: 14px 16px; background: var(--xr-soft); }
.xr-inbox-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; }
.xr-inbox-av { width: 34px; height: 34px; border-radius: 50%; background: var(--xr-ink); color: var(--xr-paper); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.xr-inbox-from { font-size: 13px; color: var(--xr-muted); }
.xr-inbox-subject { font-size: 15px; color: var(--xr-ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xr-inbox-preview { font-size: 13.5px; color: var(--xr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 19. Decoy calculator ───────────────────────────────────────────────── */
.xr-dc-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 14px; }
.xr-dc-tier { border: 1px solid var(--xr-line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 4px; animation: xr-fade 520ms var(--xr-ease) both; }
.xr-dc-tier.decoy { border-style: dashed; }
.xr-dc-tier.target { border-color: var(--xr-ink); box-shadow: 0 0 0 3px var(--xr-signal); }
.xr-dc-name { font-size: 13px; color: var(--xr-muted); }
.xr-dc-price { font-size: 28px; letter-spacing: -0.04em; color: var(--xr-ink); }
.xr-dc-badge { align-self: flex-start; font-size: 11px; background: var(--xr-signal); color: #0A0A0A; border-radius: 999px; padding: 1px 8px; }
.xr-dc-notes { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 15px; line-height: 1.55; color: var(--xr-ink); }

/* ── 20. Page audit ─────────────────────────────────────────────────────── */
.xr-audit-qs { display: grid; gap: 8px; }
.xr-audit-q { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--xr-line); border-radius: 14px; cursor: pointer; font-size: 15px; line-height: 1.45; transition: border-color 200ms, background-color 200ms; }
.xr-audit-q:hover { border-color: var(--xr-line-2); }
.xr-audit-q input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--xr-signal); flex: none; }
.xr-audit-q:has(input:checked) { background: var(--xr-soft); }
.xr-audit-head { font-size: 20px; letter-spacing: -0.03em; margin: 22px 0 10px; }
.xr-audit-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; }
.xr-audit-list li { animation: xr-fade 480ms var(--xr-ease) both; }
.xr-audit-list b { font-weight: 500; }
.xr-audit-list a { color: var(--xr-signal-text); }
.xr-audit-done { font-size: 18px; margin: 22px 0 0; }

/* ── 13. Checklist ──────────────────────────────────────────────────────── */
.xr-checklist ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.xr-checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--xr-line); font-size: 14.5px; line-height: 1.45; }
.xr-checklist input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--xr-signal); flex: none; }
.xr-checklist li:has(input:checked) label { color: var(--xr-muted); text-decoration: line-through; text-decoration-color: var(--xr-signal); }

/* ── 14. Quiz ───────────────────────────────────────────────────────────── */
.xr-quiz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.xr-quiz-opt { text-align: left; background: var(--xr-paper); border: 1.5px solid var(--xr-line); border-radius: 16px; padding: 16px 18px; font: 400 17px 'Figtree', sans-serif; letter-spacing: -0.02em; color: var(--xr-ink); cursor: pointer; transition: border-color 200ms, background-color 200ms, transform 200ms var(--xr-ease); min-height: 64px; }
.xr-quiz-opt:hover { transform: translateY(-2px); border-color: var(--xr-line-2); }
.xr-quiz-opt small { display: block; font-size: 12px; color: var(--xr-muted); margin-bottom: 4px; }
.xr-quiz-opt.win { border-color: var(--xr-signal); background: var(--xr-signal-soft); }
.xr-quiz-opt.lose { opacity: .6; }
.xr-quiz-res { font-size: 14.5px; line-height: 1.55; color: var(--xr-muted); margin: 12px 0 0; min-height: 22px; }
.xr-quiz-res b { color: var(--xr-ink); font-weight: 500; }
.xr-quiz-res a { color: var(--xr-signal-text); }

/* ── 15. Swipe cards ────────────────────────────────────────────────────── */
.xr-swipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.xr-swipe-card { border: 1px solid var(--xr-line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; background: var(--xr-paper); animation: xr-fade 520ms var(--xr-ease) both; transition: border-color 200ms; }
.xr-swipe-card:hover { border-color: var(--xr-ink); }
.xr-swipe-line { font-size: 17px; letter-spacing: -0.02em; line-height: 1.35; margin: 0; color: var(--xr-ink); }
.xr-swipe-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 8px; }
.xr-swipe-tag { font-size: 12.5px; color: var(--xr-signal-text); text-decoration: none; }
.xr-swipe-copy { border: 1px solid var(--xr-line-2); background: none; border-radius: 999px; padding: 6px 14px; font: 500 13px 'Figtree', sans-serif; color: var(--xr-ink); cursor: pointer; min-height: 36px; transition: background-color 200ms, color 200ms; }
.xr-swipe-copy.done { background: var(--xr-ink); color: var(--xr-paper); }

/* ── 16. Hotspots ───────────────────────────────────────────────────────── */
.xr-hot { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(20px, 3vw, 36px); align-items: center; }
.xr-hot-stage { position: relative; border: 1px solid var(--xr-line); border-radius: 20px; background: var(--xr-paper); padding: clamp(22px, 3vw, 34px); }
.xr-hot-dot { position: absolute; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--xr-ink); color: var(--xr-paper); font: 500 13px 'Figtree', sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 0 rgba(255,77,46,.5); animation: xr-ring 2.4s infinite; transition: background-color 200ms, transform 200ms; }
.xr-hot-dot.on { background: var(--xr-signal); color: #0A0A0A; transform: scale(1.12); }
@keyframes xr-ring { 70% { box-shadow: 0 0 0 10px rgba(255,77,46,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,46,0); } }
.xr-hot-note { display: flex; flex-direction: column; gap: 8px; }
.xr-hot-note b { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.035em; font-weight: 400; color: var(--xr-ink); }
.xr-hot-note span { font-size: 15.5px; color: var(--xr-muted); line-height: 1.6; }

/* ── 22. Ethics toggle ──────────────────────────────────────────────────── */
.xr-eth-box .dark { display: none; }
.xr-eth-dark .xr-eth-box .dark { display: block; }
.xr-eth-dark .xr-eth-box .fair { display: none; }
.xr-eth-label { font-size: 12.5px; font-weight: 500; }
.xr-eth-box .dark .xr-eth-label, .xr-eth-box .dark .xr-eth-verdict { color: var(--xr-signal-text); }
.xr-eth-box .fair .xr-eth-label, .xr-eth-box .fair .xr-eth-verdict { color: #1E7A4F; }
[data-theme="dark"] .xr-eth-box .fair .xr-eth-label, [data-theme="dark"] .xr-eth-box .fair .xr-eth-verdict { color: #6FD3A0; }
.xr-eth-verdict { font-size: 13.5px; margin: 12px 0 0; }

/* ── 2. Principle pop-ups ───────────────────────────────────────────────── */
.xr-term { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: help; text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--xr-signal); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.xr-pop { position: absolute; z-index: 1200; width: 300px; background: var(--xr-ink); color: var(--xr-paper); border-radius: 16px; padding: 16px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.2); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity 220ms var(--xr-ease), transform 300ms var(--xr-ease); }
.xr-pop.xr-pop-in { opacity: 1; transform: none; pointer-events: auto; }
.xr-pop p { margin: 0; }
.xr-pop-name { font-size: 18px; letter-spacing: -0.03em; }
.xr-pop-def { font-size: 14px; line-height: 1.5; opacity: .85; margin-top: 6px !important; }
.xr-pop-ex { font-size: 13px; line-height: 1.5; opacity: .65; margin-top: 8px !important; }
.xr-pop-link { display: inline-block; margin-top: 10px; color: var(--xr-signal); font-size: 13.5px; font-weight: 500; text-decoration: none; }

/* ── 3. Commitment progress bar ─────────────────────────────────────────── */
.xr-commit { position: fixed; left: 50%; bottom: 16px; z-index: 800; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--xr-ink); color: var(--xr-paper); font-size: 13.5px; box-shadow: 0 14px 40px rgba(0,0,0,.18); transform: translate(-50%, 140%); transition: transform 500ms var(--xr-ease); max-width: calc(100vw - 24px); }
.xr-commit.xr-commit-show { transform: translate(-50%, 0); }
.xr-commit-track { width: 90px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden; flex: none; }
[data-theme="dark"] .xr-commit-track { background: rgba(0,0,0,.2); }
.xr-commit-fill { display: block; height: 100%; width: 0; background: var(--xr-signal); transition: width 200ms linear; }
.xr-commit-msg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xr-commit-x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: inherit; cursor: pointer; font-size: 16px; }

/* ── 4. Exit nudge modal ────────────────────────────────────────────────── */
.xr-modal { position: fixed; inset: 0; z-index: 1300; background: rgba(10,10,10,.45); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity 300ms; }
.xr-modal.xr-modal-in { opacity: 1; }
.xr-modal-card { width: min(460px, 100%); background: var(--xr-paper); color: var(--xr-ink); border-radius: 24px; padding: 28px; transform: translateY(16px) scale(.97); transition: transform 420ms cubic-bezier(.34,1.56,.64,1); }
.xr-modal-in .xr-modal-card { transform: none; }
.xr-modal-title { font-size: 26px; letter-spacing: -0.04em; line-height: 1.1; margin: 0; }
.xr-modal-text { font-size: 15.5px; color: var(--xr-muted); margin: 10px 0 0; line-height: 1.55; }
.xr-modal-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.xr-modal-reveal { font-size: 13px; color: var(--xr-muted); border-top: 1px solid var(--xr-line); padding-top: 12px; margin: 18px 0 0; line-height: 1.5; }

/* ── Homepage sections ──────────────────────────────────────────────────── */
.xr-demo { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.xr-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.xr-post { display: flex; flex-direction: column; gap: 10px; color: var(--xr-ink); text-decoration: none; border-top: 1px solid var(--xr-ink); padding-top: 16px; transition: color 200ms; }
.xr-post:hover { color: var(--xr-signal-text); }
.xr-post-cat { font-size: 13px; color: var(--xr-muted); }
.xr-post-title { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.035em; line-height: 1.15; margin: 0; }
.xr-post-meta { font-size: 13px; color: var(--xr-muted); margin-top: auto; }
.xr-tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.xr-tool-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; border: 1px solid var(--xr-line); color: var(--xr-ink); text-decoration: none; background: var(--xr-paper); min-height: 180px; transition: border-color 200ms, transform 400ms var(--xr-ease), box-shadow 400ms var(--xr-ease); }
.xr-tool-card:hover { border-color: var(--xr-ink); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.07); }
.xr-tool-card .n { font-size: 13px; color: var(--xr-signal-text); }
.xr-tool-card b { font-size: 21px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; }
.xr-tool-card span { font-size: 14px; color: var(--xr-muted); line-height: 1.5; margin-top: auto; }
.xr-news { background: var(--xr-ink); color: var(--xr-paper); border-radius: 28px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin: clamp(56px, 8vw, 112px) 0 clamp(40px, 6vw, 80px); }
.xr-news h2 { color: var(--xr-paper); font-size: clamp(30px, 4.4vw, 54px); line-height: 1; letter-spacing: -0.05em; margin: 0; }
.xr-news p { color: color-mix(in srgb, var(--xr-paper) 70%, transparent); margin: 12px 0 0; font-size: 16px; line-height: 1.6; }
/* One pill: input and button sit inside a single capsule (beats main.css .newsletter-form column/radius rules) */
.xr-news .newsletter-form { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 6px; background: var(--xr-paper); border-radius: 999px; padding: 6px; max-width: none; margin: 0; transition: box-shadow 200ms; }
.xr-news .newsletter-form:focus-within { box-shadow: 0 0 0 3px var(--xr-signal); }
.xr-news .newsletter-form input[type="email"] { flex: 1 1 auto; min-width: 0; border: 0; border-radius: 999px; background: transparent; padding: 0 8px 0 18px; font: 400 16px 'Figtree', sans-serif; color: var(--xr-ink); min-height: 48px; outline: none; box-shadow: none; }
.xr-news .newsletter-form input[type="email"]::placeholder { color: color-mix(in srgb, var(--xr-ink) 50%, transparent); }
.xr-news .newsletter-form button { flex: 0 0 auto; white-space: nowrap; border: 0; border-radius: 999px; background: var(--xr-signal); color: #0A0A0A; font: 500 15px 'Figtree', sans-serif; padding: 0 22px; min-height: 48px; cursor: pointer; transition: opacity 200ms; }
.xr-news .newsletter-form button:hover { opacity: 0.88; }
.xr-news .xr-fine { color: color-mix(in srgb, var(--xr-paper) 60%, transparent); }
.xr-news .xr-tag { color: #0A0A0A; }
.xr-faq details { border-bottom: 1px solid var(--xr-line); padding: 18px 0; }
.xr-faq details:first-of-type { border-top: 1px solid var(--xr-line); }
.xr-faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding-right: 8px; font-size: 19px; letter-spacing: -0.02em; color: var(--xr-ink); }
.xr-faq summary::-webkit-details-marker { display: none; }
.xr-faq summary::after { content: '+'; color: var(--xr-signal-text); font-size: 22px; line-height: 1; transition: transform 400ms var(--xr-ease); }
.xr-faq details[open] summary::after { transform: rotate(45deg); }
.xr-faq details p { margin: 12px 0 0; font-size: 16px; line-height: 1.65; color: var(--xr-muted); animation: xr-fade 420ms var(--xr-ease) both; }
.xr-two { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.xr-page-head { padding: clamp(48px, 8vw, 104px) 0 clamp(28px, 4vw, 48px); }

/* ── Article add-ons (playbook pages) ───────────────────────────────────── */
.xr-article-tools { display: grid; gap: 18px; margin: 40px 0; }
.xr-article-tools .xr-card-box h3 { font-size: 24px; margin: 0 0 6px; letter-spacing: -0.035em; }
.xr-article-tools .xr-card-box p.xr-sub { font-size: 14.5px; color: var(--xr-muted); margin: 0; }
.xr-check-meter { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--xr-muted); margin-top: 10px; }
.xr-check-meter .xr-meter { flex: 1; margin: 0; }

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
.xr-motion .xr-reveal { opacity: 0; transform: translateY(16px); transition: opacity 760ms var(--xr-ease), transform 760ms var(--xr-ease); transition-delay: var(--xr-d, 0ms); }
.xr-motion .xr-reveal.xr-in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .xr-demo, .xr-deck, .xr-finder, .xr-hot, .xr-two, .xr-news { grid-template-columns: minmax(0, 1fr); }
  .xr-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xr-posts, .xr-swipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .xr-posts, .xr-swipe-grid, .xr-tools-grid, .xr-quiz-opts { grid-template-columns: minmax(0, 1fr); }
  .xr-plans, .xr-dc-tiers { gap: 6px; }
  .xr-plan { padding: 12px; }
  .xr-deck-stack { height: 280px; }
  .xr-commit-msg { max-width: 52vw; }
  .xr-tag { font-size: 11px; }
  /* Too narrow for one capsule: input and button become two full-width pills */
  .xr-news .newsletter-form { flex-direction: column; align-items: stretch; background: transparent; border-radius: 0; padding: 0; gap: 10px; }
  .xr-news .newsletter-form:focus-within { box-shadow: none; }
  .xr-news .newsletter-form input[type="email"] { background: var(--xr-paper); min-height: 52px; padding: 0 20px; }
  .xr-news .newsletter-form input[type="email"]:focus { box-shadow: 0 0 0 3px var(--xr-signal); }
  .xr-news .newsletter-form button { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .xr-motion .xr-reveal { opacity: 1; transform: none; }
}
