/* ============================================================
   Hey Capto Design System — V6 Rebuild
   ============================================================ */
:root {
  --font-sans: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px;
  --grade-a: #268a5e; --grade-b: #4e8f33; --grade-c: #9a7211; --grade-d: #c25f2d; --grade-f: #c8442e;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.12);
  --max-w: 1140px;
  --nav-h: 64px;
  --transition: 320ms ease;
}

/* ---- LIGHT (default) ---- */
:root[data-theme="light"], :root:not([data-theme]), :root[data-theme="auto"] {
  --bg: #f5efe2; --bg-elev: #faf6ec; --bg-soft: #efe7d4;
  --surface: #ffffff; --surface-2: #faf6ec;
  --line: #e3dac3; --line-strong: #d2c5a4;
  --fg: #0e1a30; --fg-2: #2c3a55; --fg-dim: #5e6b85; --fg-mute: #6f6b59;
  --accent: #2568a5; --accent-2: #1e5a90; --accent-soft: #e2eef9; --accent-fg: #ffffff;
}

/* ---- DARK ---- */
:root[data-theme="dark"] {
  --bg: #050b1a; --bg-elev: #0a1426; --bg-soft: #0f1c34;
  --surface: #0d1830; --surface-2: #122242;
  --line: rgba(255,255,255,0.08); --line-strong: rgba(255,255,255,0.16);
  --fg: #ecf1fb; --fg-2: #c7d2e8; --fg-dim: #93a3c2; --fg-mute: #7d8fae;
  --accent: #4ea3e8; --accent-2: #2f7fc4; --accent-soft: rgba(78,163,232,0.16); --accent-fg: #04122a;
  --grade-a: #2f9e6e; --grade-b: #6ab04c; --grade-c: #d4a02a; --grade-d: #d97847; --grade-f: #d6533c;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #050b1a; --bg-elev: #0a1426; --bg-soft: #0f1c34;
    --surface: #0d1830; --surface-2: #122242;
    --line: rgba(255,255,255,0.08); --line-strong: rgba(255,255,255,0.16);
    --fg: #ecf1fb; --fg-2: #c7d2e8; --fg-dim: #93a3c2; --fg-mute: #7d8fae;
    --accent: #4ea3e8; --accent-2: #2f7fc4; --accent-soft: rgba(78,163,232,0.16); --accent-fg: #04122a;
    --grade-a: #2f9e6e; --grade-b: #6ab04c; --grade-c: #d4a02a; --grade-d: #d97847; --grade-f: #d6533c;
  }
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--fg); line-height: 1.6; min-height: 100vh; min-height: 100dvh; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-2); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { color: var(--fg); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.85rem); letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--accent); }
p { color: var(--fg-2); }
.eyebrow { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-mute); margin-bottom: 0.75rem; }
.section-subtitle { font-size: 1.125rem; color: var(--fg-dim); max-width: 640px; line-height: 1.7; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.text-center { text-align: center; }

/* ============ NAV ============ */
.nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; width: 100%; display: flex; align-items: center; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 36px; display: block; }
.nav-links { display: flex; gap: 0.125rem; flex: 1; }
.nav-links a { font-size: 0.85rem; font-weight: 500; color: var(--fg-dim); padding: 0.4rem 0.55rem; border-radius: var(--r-sm); transition: color var(--transition), background var(--transition); white-space: nowrap; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--fg); background: var(--bg-soft); }
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; flex-shrink: 0; }

/* Theme Toggle */
.theme-toggle { display: inline-flex; background: var(--bg-soft); border-radius: var(--r-sm); padding: 2px; gap: 2px; border: 1px solid var(--line); }
.theme-toggle button { width: 30px; height: 26px; border: none; background: transparent; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--fg-mute); transition: all var(--transition); font-size: 0.8rem; }
.theme-toggle button:hover { color: var(--fg); }
.theme-toggle button.active { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; border-radius: 999px; padding: 0.55rem 1.1rem; transition: all var(--transition); border: none; white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-2); color: var(--accent-fg); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg-2); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--fg-dim); color: var(--fg); transform: translateY(-1px); }
.btn-lg { padding: 0.8rem 1.9rem; font-size: 1rem; border-radius: 999px; }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.75rem; }

/* ============ HAMBURGER / MOBILE ============ */
.hamburger { display: none; background: none; border: none; color: var(--fg); padding: 0.5rem; }
.hamburger svg { width: 24px; height: 24px; }
.mobile-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 99; padding: 1.5rem; flex-direction: column; gap: 0.25rem; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a { display: block; padding: 0.75rem 1rem; border-radius: var(--r-sm); font-size: 1rem; color: var(--fg-2); font-weight: 500; }
.mobile-menu a.active { color: var(--accent); background: var(--accent-soft); }
.mobile-menu .mobile-actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }

/* ============ HERO — Meet Capto ============ */
.hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 3.5rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.875rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.75rem; font-weight: 500; color: var(--fg-2); box-shadow: var(--shadow-sm); margin-bottom: 1.375rem; }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--grade-a); box-shadow: 0 0 12px var(--grade-a); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-trust { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; gap: 2.25rem; flex-wrap: wrap; }
.hero-trust-item .num { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.hero-trust-item .lbl { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.14em; color: var(--fg-mute); text-transform: uppercase; margin-top: 0.25rem; }
.hero-capto-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.hero-capto-stage::before { content: ''; position: absolute; inset: 10% 0; background: radial-gradient(circle at center, var(--accent-soft) 0%, transparent 65%); filter: blur(40px); }
.hero-capto-img { position: relative; width: 100%; max-width: 400px; height: auto; filter: drop-shadow(0 40px 80px color-mix(in oklch, var(--accent) 45%, transparent)); animation: float 5.6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.trust-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.trust-stat .val { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 700; color: var(--fg); letter-spacing: -0.02em; }
.trust-stat .label { font-size: 0.8rem; color: var(--fg-mute); }

/* ============ SOCIAL PROOF PAIN STATS ============ */
.pain-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.pain-stat { padding: 1.5rem 1rem; }
.pain-num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; color: var(--accent); font-family: var(--font-sans); }
.pain-desc { font-size: 0.875rem; color: var(--fg-dim); line-height: 1.6; margin-top: 0.5rem; }

/* ============ EXTENSION MOCKUP ============ */
.demo-grid { display: grid; grid-template-columns: 380px 1fr; gap: 3rem; align-items: flex-start; }
.demo-grid.wide { grid-template-columns: minmax(380px, 480px) 1fr; }
.demo-grid.demo-grid-flipped { grid-template-columns: 1fr 380px; }
.demo-ctas { display: flex; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }

/* Capto speech bubble */
.capto-bubble-wrap { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1.5rem; }
.capto-bubble-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.capto-bubble { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); border-top-left-radius: var(--r-sm); padding: 1rem 1.25rem; font-size: 0.9rem; color: var(--fg-2); line-height: 1.65; transition: opacity 300ms ease; }

/* Tab info icon */
.tab-info { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 0.6rem; color: var(--fg-mute); margin-left: 4px; vertical-align: middle; transition: all var(--transition); cursor: pointer; }
.tab-info:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ext { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; width: 100%; }
.ext-head { padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid var(--line); display: flex; gap: 1rem; align-items: flex-start; }
.ext-head-info { flex: 1; }
.ext-head-addr { font-weight: 700; font-size: 1rem; color: var(--fg); }
.ext-head-loc { font-size: 0.8rem; color: var(--fg-dim); margin-top: 0.15rem; }
.ext-head-meta { font-size: 0.7rem; color: var(--fg-mute); margin-top: 0.35rem; font-family: var(--font-mono); }
.ext-head-mascot { width: 42px; height: 42px; border-radius: var(--r-sm); object-fit: contain; }
.ext-tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 0.5rem; }
.ext-tabs button { flex: 1; padding: 0.65rem 0.5rem; background: none; border: none; font-size: 0.8rem; font-weight: 600; color: var(--fg-mute); border-bottom: 2px solid transparent; transition: all var(--transition); }
.ext-tabs button:hover { color: var(--fg-dim); }
.ext-tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.ext-body { padding: 1.25rem; min-height: 320px; position: relative; }
.ext-panel { display: none; animation: panelFadeIn .4s ease; }
.ext-panel.active { display: block; }
@keyframes panelFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.ext-foot { padding: 1rem 1.25rem; border-top: 1px solid var(--line); display: flex; gap: 0.75rem; }
.ext-foot .btn { flex: 1; font-size: 0.8rem; padding: 0.5rem 0.75rem; }

/* Property grid */
.prop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1rem; }
.prop-item { background: var(--bg-elev); border-radius: var(--r-sm); padding: 0.6rem 0.75rem; }
.prop-item .prop-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-mute); font-family: var(--font-mono); }
.prop-item .prop-val { font-size: 0.9rem; font-weight: 600; color: var(--fg); margin-top: 0.15rem; }

/* Risk rows */
.risk-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.75rem; border-radius: var(--r-sm); background: var(--bg-elev); margin-bottom: 0.5rem; transition: transform var(--transition), box-shadow var(--transition); }
.risk-row:hover { transform: translateX(2px); }
.risk-grade { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: #fff; flex-shrink: 0; }
.risk-grade.a { background: var(--grade-a); } .risk-grade.b { background: var(--grade-b); } .risk-grade.c { background: var(--grade-c); } .risk-grade.d { background: var(--grade-d); } .risk-grade.f { background: var(--grade-f); }
.risk-info { flex: 1; min-width: 0; }
.risk-name { font-weight: 600; font-size: 0.85rem; color: var(--fg); }
.risk-detail { font-size: 0.75rem; color: var(--fg-dim); }
.risk-pill { font-size: 0.65rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.risk-pill.high { background: rgba(214,83,60,.12); color: var(--grade-f); }
.risk-pill.mod { background: rgba(212,160,42,.12); color: var(--grade-c); }
.risk-pill.low { background: rgba(47,158,110,.12); color: var(--grade-a); }

/* Token badge */
.token-badge { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600; padding: 0.15rem 0.45rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.token-badge.premium { background: rgba(212,160,42,.12); color: var(--grade-c); }

/* Risk selection cards (Risk tab) */
.risk-select-card { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.75rem; border-radius: var(--r-sm); background: var(--bg-elev); margin-bottom: 0.5rem; cursor: pointer; transition: all var(--transition); border: 1px solid transparent; user-select: none; }
.risk-select-card:hover { border-color: var(--line-strong); }
.risk-select-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.risk-select-card.bundle { border-style: dashed; }
.risk-select-card.bundle.selected { border-style: solid; }
.risk-select-card .rsc-check { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition); font-size: 0.7rem; color: transparent; }
.risk-select-card.selected .rsc-check { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.rsc-info { flex: 1; min-width: 0; }
.rsc-name { font-weight: 600; font-size: 0.8rem; color: var(--fg); }
.rsc-detail { font-size: 0.7rem; color: var(--fg-dim); }
.token-tally { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem; background: var(--surface-2); border-radius: var(--r-sm); margin-top: 0.75rem; font-size: 0.85rem; font-weight: 600; color: var(--fg-2); }
.token-tally .tt-count { font-family: var(--font-mono); color: var(--accent); }

/* Moratorium */
.mora-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.65rem 0.75rem; border-radius: var(--r-sm); background: rgba(47,158,110,.06); border: 1px solid rgba(47,158,110,.15); margin-top: 0.5rem; margin-bottom: 0.75rem; }
.mora-icon { color: var(--grade-a); font-size: 1.1rem; flex-shrink: 0; }
.mora-text { font-size: 0.8rem; color: var(--fg-dim); }

/* AI Summary */
.ai-summary { margin-top: 0.75rem; padding: 0.75rem; background: var(--accent-soft); border-radius: var(--r-sm); font-size: 0.8rem; color: var(--fg-2); line-height: 1.6; border-left: 3px solid var(--accent); }
.ai-summary-label { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.35rem; font-weight: 600; }

/* Report card */
.report-card { background: var(--bg-elev); border-radius: var(--r-md); padding: 1.5rem; text-align: center; }
.report-icon { font-size: 2.5rem; margin-bottom: 0.75rem; color: var(--fg-dim); }
.report-title { font-weight: 700; font-size: 1rem; color: var(--fg); }
.report-addr { font-size: 0.8rem; color: var(--fg-dim); margin-top: 0.25rem; }
.report-lines { margin: 1rem auto; width: 80%; }
.report-lines .shimmer { height: 8px; background: var(--line); border-radius: 4px; margin-bottom: 0.5rem; animation: shimmer 1.5s ease-in-out infinite alternate; }
.report-lines .shimmer:nth-child(2) { width: 70%; } .report-lines .shimmer:nth-child(3) { width: 85%; }
@keyframes shimmer { from { opacity: 0.4; } to { opacity: 1; } }
.report-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
.report-actions .btn { flex: 1; font-size: 0.8rem; }

/* Chat */
.chat-bubbles { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.chat-bubble { max-width: 85%; padding: 0.6rem 0.9rem; border-radius: var(--r-md); font-size: 0.8rem; line-height: 1.5; animation: bubbleIn .4s ease; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-bubble.user { align-self: flex-end; background: var(--accent); color: var(--accent-fg); border-bottom-right-radius: 4px; }
.chat-bubble.bot { align-self: flex-start; background: var(--bg-elev); color: var(--fg-2); border-bottom-left-radius: 4px; }
.chat-input { display: flex; gap: 0.5rem; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.5rem 0.75rem; background: var(--surface); }
.chat-input input { flex: 1; border: none; background: transparent; outline: none; font-size: 0.8rem; color: var(--fg); }
.chat-input button { background: var(--accent); color: var(--accent-fg); border: none; border-radius: 6px; padding: 0.3rem 0.75rem; font-size: 0.75rem; font-weight: 600; transition: background var(--transition); }
.chat-input button:hover { background: var(--accent-2); }

/* Demo explanation */
.demo-explain h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.demo-explain p { color: var(--fg-dim); line-height: 1.7; font-size: 0.95rem; margin-bottom: 1rem; }
.step-indicators { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.step-ind { display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--bg-soft); color: var(--fg-mute); border: 1px solid var(--line); cursor: pointer; transition: all var(--transition); }
.step-ind:hover { border-color: var(--accent); color: var(--fg-2); }
.step-ind.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.step-ind .num { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; background: var(--line); color: var(--fg-dim); transition: all var(--transition); }
.step-ind.active .num { background: var(--accent); color: var(--accent-fg); }

/* ============ REPORT SHOWCASE ============ */
.reports-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.bundle-highlight { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--r-lg); padding: 2rem; text-align: center; margin-top: 1.5rem; }
.bundle-highlight h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.bundle-highlight p { font-size: 0.9rem; color: var(--fg-dim); line-height: 1.6; margin-bottom: 1rem; }
.bundle-pricing { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.bundle-separate { font-size: 0.85rem; color: var(--fg-mute); text-decoration: line-through; }
.bundle-save { font-size: 0.95rem; font-weight: 700; color: var(--accent); }
.rpt-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition); }
.rpt-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rpt-card-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.75rem; }
.rpt-card h3 { font-size: 1rem; flex: 1; margin-right: 0.5rem; }
.rpt-card p { font-size: 0.85rem; color: var(--fg-dim); line-height: 1.6; flex: 1; }
.rpt-card .btn { margin-top: auto; padding-top: 1rem; }
.rpt-actions { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; gap: 1rem; }
.rpt-link { font-size: 0.85rem; font-weight: 500; color: var(--accent); transition: color 320ms ease; }
.rpt-link:hover { color: var(--accent-2); text-decoration: underline; }

/* Report Preview Modal */
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; }
.preview-report { padding: 2rem; background: var(--bg-elev); border-radius: var(--r-xl) 0 0 var(--r-xl); }
.preview-info { padding: 2rem; }
.preview-info h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.pv-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.pv-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.85rem; }
.pv-grade { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; color: #fff; }
.pv-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; }
.pv-addr { font-size: 0.8rem; color: var(--fg-dim); margin-bottom: 1.25rem; font-family: var(--font-mono); }
.pv-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.pv-table td { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.pv-label { color: var(--fg-dim); width: 40%; }
.pv-val { font-weight: 500; }
.pv-shimmer { height: 6px; background: linear-gradient(90deg, var(--line-strong), var(--line)); border-radius: 3px; margin-top: 1rem; }
.pv-shimmer.short { width: 65%; margin-top: 0.5rem; }
.pv-desc { font-size: 0.9rem; color: var(--fg-2); line-height: 1.7; margin-bottom: 1rem; }
.pv-note { font-size: 0.75rem; color: var(--fg-mute); font-style: italic; line-height: 1.5; padding-top: 0.75rem; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .preview-grid { grid-template-columns: 1fr; } .preview-report { border-radius: var(--r-xl) var(--r-xl) 0 0; } }

/* General Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .4s ease; padding: 2rem; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); max-width: 860px; width: 100%; max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-xl); display: grid; grid-template-columns: 1fr 1fr; transform: translateY(20px); transition: transform .4s ease; }
.modal-overlay.open .modal-content { transform: translateY(0); }
.modal-preview { padding: 2.5rem; background: var(--bg-elev); border-radius: var(--r-xl) 0 0 var(--r-xl); }
.modal-info { padding: 2.5rem; }
.modal-info h3 { margin-bottom: 1rem; }
.modal-info p { font-size: 0.9rem; color: var(--fg-dim); line-height: 1.7; margin-bottom: 1rem; }
.modal-info .mi-label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-mute); margin-bottom: 0.35rem; font-weight: 600; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--fg-dim); cursor: pointer; transition: all var(--transition); }
.modal-close:hover { background: var(--surface); color: var(--fg); }
.modal-grade { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.5rem; color: #fff; margin-bottom: 1rem; }
.modal-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1rem; }
.modal-metric { background: var(--bg-elev); border-radius: var(--r-sm); padding: 0.6rem 0.75rem; }
.modal-metric .mm-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-mute); font-family: var(--font-mono); }
.modal-metric .mm-val { font-size: 0.9rem; font-weight: 600; color: var(--fg); margin-top: 0.15rem; }
.modal-shimmer { height: 8px; background: var(--line); border-radius: 4px; margin-bottom: 0.5rem; }
.modal-shimmer:nth-child(2) { width: 75%; } .modal-shimmer:nth-child(3) { width: 88%; } .modal-shimmer:nth-child(4) { width: 60%; }

/* ============ THREE-STAGE FLOW ============ */
.stage-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stage-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; text-align: center; position: relative; transition: transform var(--transition), box-shadow var(--transition); }
.stage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stage-num { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.25rem; margin: 0 auto 1.25rem; }
.stage-card h3 { margin-bottom: 0.75rem; }
.stage-card p { font-size: 0.9rem; color: var(--fg-dim); line-height: 1.7; }
.stage-arrow { position: absolute; right: -1.25rem; top: 50%; transform: translateY(-50%); color: var(--fg-mute); font-size: 1.25rem; z-index: 1; }

/* ============ FEATURE CARDS ============ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; transition: transform var(--transition), box-shadow var(--transition); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card-icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1.25rem; }
.feature-card h3 { margin-bottom: 0.75rem; }
.feature-card p { font-size: 0.9rem; color: var(--fg-dim); line-height: 1.7; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: start; }
.about-text p { color: var(--fg-dim); line-height: 1.8; font-size: 0.95rem; margin-bottom: 1rem; }
.about-facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; }
.about-fact { padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; color: var(--fg-2); display: flex; align-items: center; gap: 0.75rem; }
.about-fact:last-child { border-bottom: none; }
.about-fact-icon { color: var(--accent); font-size: 1rem; flex-shrink: 0; }

/* ============ PRICING ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pricing-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition); }
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pricing-card.featured { border-color: var(--accent); background: linear-gradient(to bottom, var(--accent-soft), var(--surface)); position: relative; }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-fg); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0.9rem; border-radius: 999px; white-space: nowrap; }
.pricing-name { font-weight: 700; font-size: 1.1rem; color: var(--fg); margin-bottom: 0.5rem; }
.pricing-price { margin-bottom: 1.5rem; }
.pricing-price .amount { font-size: 2.5rem; font-weight: 800; color: var(--fg); letter-spacing: -0.03em; }
.pricing-price .period { font-size: 0.85rem; color: var(--fg-mute); }
.pricing-features { list-style: none; flex: 1; margin-bottom: 1.5rem; }
.pricing-features li { padding: 0.4rem 0; font-size: 0.85rem; color: var(--fg-dim); display: flex; align-items: flex-start; gap: 0.5rem; }
.pricing-features li::before { content: '\2713'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.pricing-card .btn { margin-top: auto; }

/* Simplified pricing strip */
.pricing-simple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pricing-simple-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; text-align: center; transition: transform var(--transition), box-shadow var(--transition); position: relative; }
.pricing-simple-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pricing-simple-card.featured { border: 2px solid var(--accent); }
.pricing-simple-name { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-mute); font-weight: 600; }
.pricing-simple-price { font-size: 2.5rem; font-weight: 800; margin: 0.5rem 0 0.25rem; letter-spacing: -0.03em; }
.pricing-simple-price span { font-size: 0.85rem; font-weight: 500; color: var(--fg-dim); }
.pricing-simple-note { font-size: 0.85rem; color: var(--fg-dim); }

/* ============ COMPARISON TABLE ============ */
.comparison-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 600px; }
.comparison-table th, .comparison-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.comparison-table thead th { background: var(--bg-soft); font-weight: 700; color: var(--fg); position: sticky; top: 0; }
.comparison-table thead th:first-child { border-radius: var(--r-sm) 0 0 0; }
.comparison-table thead th:last-child { border-radius: 0 var(--r-sm) 0 0; }
.comparison-table tbody td { color: var(--fg-dim); }
.comparison-table tbody td:first-child { font-weight: 600; color: var(--fg-2); }
.comparison-table .check { color: var(--accent); font-weight: 700; }
.comparison-table .dash { color: var(--fg-mute); }

/* ============ FAQ DROPDOWNS ============ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; cursor: pointer; background: none; border: none; width: 100%; text-align: left; font-size: 1rem; font-weight: 600; color: var(--fg); transition: color var(--transition); }
.faq-q:hover { color: var(--accent); }
.faq-q .faq-arrow { transition: transform .35s ease; font-size: 1.25rem; color: var(--fg-mute); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 0 1.25rem; font-size: 0.9rem; color: var(--fg-dim); line-height: 1.7; }

/* ============ TOKEN EXPLANATION ============ */
.token-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.token-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; text-align: center; transition: transform var(--transition); }
.token-card:hover { transform: translateY(-2px); }
.token-card .tc-amount { font-size: 2.5rem; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; }
.token-card .tc-label { font-size: 0.9rem; color: var(--fg-2); margin-top: 0.25rem; font-weight: 600; }
.token-card .tc-list { list-style: none; margin-top: 0.75rem; font-size: 0.8rem; color: var(--fg-dim); }
.token-card .tc-list li { padding: 0.2rem 0; }
.token-math { background: var(--accent-soft); border-radius: var(--r-lg); padding: 2rem; text-align: center; }
.token-math p { font-size: 1rem; color: var(--fg-2); line-height: 1.7; }
.token-math strong { color: var(--fg); }

/* Math comparison */
.math-compare { display: flex; align-items: stretch; gap: 1rem; justify-content: center; text-align: left; }
.math-col { flex: 1; max-width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem; }
.math-col-winner { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.math-col-label { font-weight: 700; font-size: 0.95rem; margin-bottom: 1rem; color: var(--fg); }
.math-col-winner .math-col-label { color: var(--accent); }
.math-line { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--fg-dim); padding: 0.3rem 0; }
.math-line.math-total { border-top: 1px solid var(--line); margin-top: 0.5rem; padding-top: 0.65rem; font-weight: 700; font-size: 0.95rem; color: var(--fg); }
.math-col-winner .math-total { color: var(--accent); }
.math-extras { font-size: 0.8rem; color: var(--fg-mute); margin-top: 0.75rem; line-height: 1.5; }
.math-col-winner .math-extras { color: var(--accent); font-weight: 500; }
.math-vs { display: flex; align-items: center; font-weight: 800; font-size: 0.9rem; color: var(--fg-mute); padding: 0 0.25rem; }
@media (max-width: 700px) {
  .math-compare { flex-direction: column; align-items: center; }
  .math-col { max-width: 100%; }
  .math-vs { padding: 0.25rem 0; }
}

/* Form validation */
.form-req { color: var(--accent); }
.form-error { display: block; font-size: 0.78rem; color: #d6533c; margin-top: 0.3rem; min-height: 1.1em; }
.input-error { border-color: #d6533c !important; }
.form-success { text-align: center; padding: 2rem 0; }

/* ============ CAPTO FAQ BOT ============ */
.faq-bot-wrap { max-width: 640px; margin: 0 auto; }
.faq-bot-mascot { display: flex; justify-content: center; margin-bottom: 2rem; }
.faq-bot-mascot img { width: 200px; height: auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,.1)); }
.faq-bot-input { display: flex; gap: 0.75rem; border: 2px solid var(--line); border-radius: var(--r-md); padding: 0.75rem 1rem; background: var(--surface); transition: border-color var(--transition); margin-bottom: 1.5rem; }
.faq-bot-input:focus-within { border-color: var(--accent); }
.faq-bot-input input { flex: 1; border: none; background: transparent; outline: none; font-size: 1rem; color: var(--fg); }
.faq-bot-input button { background: var(--accent); color: var(--accent-fg); border: none; border-radius: var(--r-sm); padding: 0.5rem 1rem; font-weight: 600; font-size: 0.85rem; transition: background var(--transition); }
.faq-bot-input button:hover { background: var(--accent-2); }
.faq-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; justify-content: center; }
.faq-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.8rem; color: var(--fg-dim); cursor: pointer; transition: all var(--transition); font-weight: 500; }
.faq-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.faq-bot-conversation { display: flex; flex-direction: column; gap: 1rem; }
.faq-bot-msg { display: flex; gap: 0.75rem; animation: botMsgIn .5s ease; }
@keyframes botMsgIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.faq-bot-msg.user-msg { flex-direction: row-reverse; }
.faq-bot-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: var(--accent-soft); }
.faq-bot-avatar img { width: 100%; height: 100%; object-fit: cover; }
.faq-bot-avatar.user-avatar { background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--accent-fg); font-weight: 700; font-size: 0.75rem; }
.faq-bot-bubble { background: var(--bg-elev); border-radius: var(--r-md); padding: 0.85rem 1rem; font-size: 0.9rem; color: var(--fg-2); line-height: 1.7; max-width: 80%; }
.faq-bot-msg.user-msg .faq-bot-bubble { background: var(--accent); color: var(--accent-fg); }
.faq-bot-typing { display: flex; gap: 4px; padding: 0.85rem 1rem; }
.faq-bot-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-mute); animation: typingDot 1.2s infinite; }
.faq-bot-typing span:nth-child(2) { animation-delay: .2s; }
.faq-bot-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.faq-bot-clear { text-align: center; margin-top: 1rem; }
.faq-bot-clear a { font-size: 0.8rem; color: var(--fg-mute); cursor: pointer; transition: color var(--transition); }
.faq-bot-clear a:hover { color: var(--accent); }

/* ============ BOOK A CALL ============ */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--fg-2); margin-bottom: 0.4rem; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--fg); font-size: 0.9rem; transition: border-color var(--transition); outline: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { min-height: 120px; resize: vertical; }

/* ============ METHODOLOGY DROPDOWNS ============ */
.method-list { max-width: 820px; margin: 0 auto; }
.method-item { border-bottom: 1px solid var(--line); }
.method-header { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 0; cursor: pointer; background: none; border: none; width: 100%; text-align: left; transition: color var(--transition); }
.method-header:hover { color: var(--accent); }
.method-header:hover .method-hname { color: var(--accent); }
.method-icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.method-hname { font-weight: 700; font-size: 1rem; color: var(--fg); flex: 1; transition: color var(--transition); }
.method-header .token-badge { margin-right: 0.5rem; }
.method-header .faq-arrow { transition: transform .35s ease, color .2s ease; font-size: 1.15rem; color: var(--fg-dim); flex-shrink: 0; }
.method-header:hover .faq-arrow { color: var(--accent); }
.method-item.open .method-header .faq-arrow { transform: rotate(180deg); color: var(--accent); }
.method-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.method-item.open .method-body { max-height: 500px; }
.method-body-inner { padding: 0 0 1.5rem 3.75rem; }
.method-body-inner p { font-size: 0.9rem; color: var(--fg-dim); line-height: 1.7; margin-bottom: 0.75rem; }
.method-body-inner .mb-label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-mute); margin-bottom: 0.25rem; font-weight: 600; }

/* Trust strip */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; padding: 2rem 0; }
.trust-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; font-weight: 600; color: var(--fg-2); }
.trust-icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }

/* ============ LOGIN ============ */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 50%, var(--accent-soft) 100%); }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 3rem 2.5rem; width: 100%; max-width: 420px; box-shadow: var(--shadow-xl); text-align: center; }
.login-logo { margin: 0 auto 1rem; }
.login-logo img { height: 40px; margin: 0 auto; }
.login-mascot { width: 80px; height: 80px; margin: 0 auto 1.5rem; }
.login-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; }
.login-card .form-group { text-align: left; }
.login-divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--fg-mute); font-size: 0.8rem; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.login-footer { margin-top: 2rem; font-size: 0.8rem; color: var(--fg-mute); }
.login-footer a { color: var(--accent); font-weight: 500; }
.login-bottom-links { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: center; gap: 1.5rem; font-size: 0.8rem; }
.login-bottom-links a { color: var(--fg-mute); }
.login-bottom-links a:hover { color: var(--accent); }

/* ============ FOOTER ============ */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.85rem; color: var(--fg-mute); margin-top: 0.75rem; line-height: 1.6; max-width: 260px; }
.footer-brand img { height: 32px; margin-bottom: 0.5rem; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-mute); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.85rem; color: var(--fg-dim); padding: 0.25rem 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.5rem; font-size: 0.8rem; color: var(--fg-mute); text-align: center; }

/* ============ SVG THEME TOGGLE ============ */
.theme-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; }
.theme-seg button { border: none; background: transparent; color: var(--fg-dim); width: 30px; height: 26px; border-radius: 999px; display: grid; place-items: center; transition: all var(--transition); }
.theme-seg button:hover { color: var(--fg); }
.theme-seg button.active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }
.theme-seg svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ============ PROVIDER STRIP ============ */
.providers { padding: 2.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.providers-inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.providers .prov-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.16em; color: var(--fg-mute); text-transform: uppercase; }
.providers .prov-names { display: flex; gap: 1.75rem; flex-wrap: wrap; align-items: center; font-weight: 600; font-size: 0.875rem; color: var(--fg-2); }
.providers .prov-names span { letter-spacing: -0.02em; }

/* ============ BROWSER FRAME MOCKUP ============ */
.browser-frame { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.browser-frame::before { content: ''; position: absolute; inset: -8% -8% -8% -8%; background: radial-gradient(circle at center, var(--accent-soft) 0%, transparent 60%); filter: blur(40px); z-index: -1; }
.browser-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 0.875rem; border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 999px; background: var(--line-strong); display: block; }
.browser-dots i:nth-child(1) { background: #ee6a5f; }
.browser-dots i:nth-child(2) { background: #f5bd4f; }
.browser-dots i:nth-child(3) { background: #61c554; }
.browser-url { flex: 1; padding: 0.375rem 0.75rem; background: var(--surface); border-radius: 999px; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--fg-dim); border: 1px solid var(--line); display: flex; align-items: center; gap: 0.5rem; }
.browser-url svg { width: 11px; height: 11px; flex-shrink: 0; }
.browser-content { display: grid; grid-template-columns: 1fr 320px; height: 540px; }
.browser-page { padding: 1.125rem; background: var(--bg); display: flex; flex-direction: column; gap: 0.625rem; overflow: hidden; }
.browser-page .skeleton-h { height: 18px; border-radius: 4px; background: var(--line); }
.browser-page .skeleton-h.short { width: 60%; }
.browser-page .skeleton-h.med { width: 80%; height: 12px; }
.browser-page .skeleton-img { height: 180px; border-radius: 0.5rem; background: linear-gradient(135deg, var(--bg-elev), var(--surface-2)); margin: 0.5rem 0; border: 1px solid var(--line); display: grid; place-items: center; color: var(--fg-mute); font-size: 0.75rem; font-family: var(--font-mono); }
.browser-page .skeleton-row { display: flex; gap: 0.5rem; }
.browser-page .skeleton-row i { flex: 1; height: 50px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); display: block; }

/* Browser-frame sidebar extension */
.bf-ext { background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; height: 100%; }
.bf-ext-head { padding: 0.75rem 0.875rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 100%); display: flex; gap: 0.625rem; align-items: center; }
.bf-ext-head .mascot { width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r-sm); }
.bf-ext-head .meta { flex: 1; min-width: 0; }
.bf-ext-head .city { font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.16em; color: var(--fg-mute); text-transform: uppercase; }
.bf-ext-head .addr { font-size: 0.875rem; font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-ext-head .sub { font-size: 0.6875rem; color: var(--fg-dim); margin-top: 2px; }
.bf-ext-token { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.875rem; background: var(--surface-2); border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.04em; color: var(--fg-dim); }
.bf-ext-token b { color: var(--fg); font-weight: 600; }
.bf-ext-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.bf-ext-tab { padding: 0.625rem 0.25rem; border: none; background: transparent; color: var(--fg-mute); font-size: 0.75rem; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 160ms ease, border-color 160ms ease; }
.bf-ext-tab:hover { color: var(--fg-dim); }
.bf-ext-tab.active { color: var(--fg); font-weight: 600; border-bottom-color: var(--accent); }
.bf-ext-body { flex: 1; overflow: auto; padding: 0.875rem; }
.bf-ext-body::-webkit-scrollbar { width: 0; }
.bf-ext-panel { display: none; flex-direction: column; gap: 0.625rem; }
.bf-ext-panel.active { display: flex; animation: panelFadeIn .4s ease; }

/* Browser frame — facts grid */
.bf-facts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.625rem; padding: 0.75rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.bf-facts .k { font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.14em; color: var(--fg-mute); text-transform: uppercase; }
.bf-facts .v { font-size: 0.8125rem; font-weight: 600; margin-top: 2px; }

/* Browser frame — risk rows */
.bf-risk-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 0.625rem; align-items: center; padding: 0.625rem 0.75rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.bf-risk-row .name { font-size: 0.8125rem; font-weight: 600; }
.bf-risk-row .det { font-family: var(--font-mono); font-size: 0.625rem; color: var(--fg-mute); margin-top: 2px; }
.bf-grade { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: 0.75rem; }
.bf-grade-d { background: rgba(217,120,71,.18); color: var(--grade-d); border: 1.5px solid var(--grade-d); }
.bf-grade-b { background: rgba(106,176,76,.18); color: var(--grade-b); border: 1.5px solid var(--grade-b); }

/* Browser frame — pills */
.bf-pill { font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.1em; font-weight: 600; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; }
.bf-pill-high { background: rgba(214,83,60,.12); color: var(--grade-f); border: 1px solid rgba(214,83,60,.3); }

/* Browser frame — imagery placeholders */
.bf-imagery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.bf-imagery > div { aspect-ratio: 1.2; border-radius: var(--r-md); border: 1px solid var(--line); position: relative; overflow: hidden; }
.bf-img-street { background: linear-gradient(150deg, #6b8caa 0%, #b4cfe3 50%, #d3a06d 100%); }
.bf-img-street::after { content: 'STREET VIEW'; position: absolute; bottom: 6px; left: 8px; font-family: var(--font-mono); font-size: 0.5rem; color: white; letter-spacing: 0.1em; opacity: 0.85; }
.bf-img-aerial { background: linear-gradient(135deg, #4d6b3a 0%, #6c8c4f 35%, #b3a368 70%, #6e6552 100%); position: relative; }
.bf-img-aerial::before { content: ''; position: absolute; top: 30%; left: 35%; width: 30%; height: 35%; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.4); border-radius: 2px; }
.bf-img-aerial::after { content: 'SATELLITE'; position: absolute; bottom: 6px; left: 8px; font-family: var(--font-mono); font-size: 0.5rem; color: white; letter-spacing: 0.1em; opacity: 0.85; }

/* Browser frame — moratorium */
.bf-morat { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 0.75rem; border-radius: var(--r-md); background: rgba(47,158,110,.08); border: 1px solid rgba(47,158,110,.2); color: var(--grade-a); font-size: 0.6875rem; font-weight: 600; }

/* Browser frame — AI summary */
.bf-summary { padding: 0.75rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); font-size: 0.75rem; line-height: 1.5; color: var(--fg-2); }
.bf-summary .head { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; margin-bottom: 6px; font-weight: 600; }

/* ============ TWO-TIER CACHE ============ */
.cache-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; }
.cache-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.cache-split-label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; font-weight: 700; margin-bottom: 0.5rem; }
.cache-split p { font-size: 0.875rem; color: var(--fg-dim); margin: 0 0 1.125rem; line-height: 1.6; }
.cache-tiers { border-top: 1px solid var(--line); padding-top: 1.125rem; }
.cache-tier { display: grid; grid-template-columns: 100px 1fr; gap: 1.25rem; padding: 1.125rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cache-tier:last-child { border-bottom: 0; }
.cache-tier .age { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }
.cache-tier .desc h4 { margin: 0 0 0.25rem; font-size: 0.875rem; font-weight: 600; }
.cache-tier .desc p { margin: 0; font-size: 0.8125rem; color: var(--fg-dim); }

/* ============ THREE-LEVEL HIERARCHY ============ */
.hier { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.hier-card { padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); position: relative; transition: transform var(--transition), box-shadow var(--transition); }
.hier-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hier-card .lvl { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; font-weight: 700; }
.hier-card h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin: 0.375rem 0 0.75rem; }
.hier-card .scope { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--fg-dim); padding: 0.25rem 0 0.875rem; border-bottom: 1px dashed var(--line); margin-bottom: 0.875rem; }
.hier-card .scope b { color: var(--fg); }
.hier-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.hier-card li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.8125rem; color: var(--fg-2); line-height: 1.5; }
.hier-card li svg { flex-shrink: 0; margin-top: 3px; width: 12px; height: 12px; stroke: var(--accent); fill: none; stroke-width: 2; }

/* ============ PORTAL PREVIEW ============ */
.portal-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.portal-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 0.875rem; border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.portal-bar .url { flex: 1; padding: 0.3125rem 0.75rem; background: var(--surface); border-radius: 999px; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--fg-dim); border: 1px solid var(--line); }
.portal-body { display: grid; grid-template-columns: 220px 1fr; min-height: 580px; }
.portal-side { background: var(--bg-elev); border-right: 1px solid var(--line); padding: 1.25rem 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }
.portal-side .org { padding: 0.625rem 0.75rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); margin-bottom: 0.875rem; }
.portal-side .org .nm { font-size: 0.8125rem; font-weight: 600; }
.portal-side .org .role { font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; margin-top: 3px; }
.portal-side .nav-grp { font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.14em; color: var(--fg-mute); text-transform: uppercase; padding: 0.875rem 0.75rem 0.375rem; }
.portal-side a { padding: 0.5rem 0.75rem; border-radius: var(--r-md); font-size: 0.8125rem; color: var(--fg-2); display: flex; align-items: center; gap: 0.625rem; cursor: default; }
.portal-side a svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; opacity: 0.7; }
.portal-side a:hover { background: var(--surface); color: var(--fg); }
.portal-side a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.portal-side a.active svg { opacity: 1; }
.portal-main { padding: 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; overflow: hidden; }
.portal-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.portal-h h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.portal-h .sub { font-size: 0.8125rem; color: var(--fg-dim); margin-top: 0.25rem; }
.portal-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.portal-stat { padding: 0.875rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.portal-stat .lbl { font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.14em; color: var(--fg-mute); text-transform: uppercase; }
.portal-stat .val { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 0.25rem; }
.portal-stat .delta { font-family: var(--font-mono); font-size: 0.625rem; margin-top: 2px; }
.portal-stat .delta.up { color: var(--grade-a); }
.portal-stat .delta.dn { color: var(--grade-d); }
.portal-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; }
.portal-panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.portal-panel .ph { padding: 0.75rem 0.875rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.portal-panel .ph h3 { margin: 0; font-size: 0.8125rem; font-weight: 600; }
.portal-panel .ph .opt { font-family: var(--font-mono); font-size: 0.625rem; color: var(--fg-mute); letter-spacing: 0.04em; }
.portal-chart { padding: 1rem 0.875rem 0.875rem; display: flex; align-items: flex-end; gap: 6px; height: 160px; }
.portal-chart .bar { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; opacity: 0.85; transition: opacity 160ms; }
.portal-chart .bar.dim { background: var(--accent-2); opacity: 0.3; }
.portal-chart .bar:hover { opacity: 1; }
.portal-chart-x { display: flex; padding: 0 0.875rem 0.75rem; gap: 6px; font-family: var(--font-mono); font-size: 0.5625rem; color: var(--fg-mute); letter-spacing: 0.06em; }
.portal-chart-x span { flex: 1; text-align: center; }
.portal-recent .row { padding: 0.625rem 0.875rem; display: grid; grid-template-columns: 1fr auto auto; gap: 0.625rem; align-items: center; border-bottom: 1px solid var(--line); font-size: 0.78rem; }
.portal-recent .row:last-child { border-bottom: 0; }
.portal-recent .addr { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-recent .when { font-family: var(--font-mono); font-size: 0.625rem; color: var(--fg-mute); }
.portal-team-row { padding: 0.625rem 0.875rem; display: grid; grid-template-columns: 1fr auto; gap: 0.625rem; align-items: center; border-bottom: 1px solid var(--line); font-size: 0.78rem; }
.portal-team-row:last-child { border-bottom: 0; }
.portal-team-row .nm { font-weight: 500; }
.portal-team-row .meta { font-family: var(--font-mono); font-size: 0.625rem; color: var(--fg-mute); margin-top: 2px; }
.portal-team-row .meter { width: 90px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.portal-team-row .meter i { display: block; height: 100%; background: var(--accent); }
.portal-team-row .pct { font-family: var(--font-mono); font-size: 0.625rem; color: var(--fg-2); text-align: right; }
.portal-grade-pill { font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.1em; font-weight: 600; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; }

/* ============ CTA SECTION ============ */
.cta-section { padding: 6rem 0; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: white; text-align: center; }
.cta-section h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; margin: 0; line-height: 1.05; color: white; }
.cta-section h2 em { font-style: italic; font-weight: 500; opacity: 0.85; color: white; }
.cta-section p { font-size: 1.0625rem; opacity: 0.9; max-width: 540px; margin: 1.125rem auto 2rem; line-height: 1.6; color: white; }
.cta-section .btn-primary { background: white; color: var(--accent); }
.cta-section .btn-primary:hover { background: rgba(255,255,255,0.9); }
.cta-section .btn-ghost { color: white; border-color: rgba(255,255,255,0.4); }
.cta-section .btn-ghost:hover { background: rgba(255,255,255,0.1); color: white; }

/* ============ SECTION HEADING (centered) ============ */
.section-head { max-width: 740px; margin: 0 auto 3.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; margin: 0.75rem 0 0; }
.section-head p { font-size: 1.0625rem; color: var(--fg-dim); margin: 1rem auto 0; line-height: 1.55; max-width: 600px; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ DARK LOGO ============ */
:root[data-theme="dark"] .nav-logo img,
:root[data-theme="dark"] .footer-brand img,
:root[data-theme="dark"] .login-logo img { filter: brightness(0) invert(1) brightness(1.05); }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .nav-logo img,
  :root[data-theme="auto"] .footer-brand img,
  :root[data-theme="auto"] .login-logo img { filter: brightness(0) invert(1) brightness(1.05); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .browser-content { grid-template-columns: 1fr; height: auto; }
  .bf-ext { border-left: 0; border-top: 1px solid var(--line); }
  .browser-page { display: none; }
  .portal-body { grid-template-columns: 1fr; }
  .portal-side { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; overflow-x: auto; padding: 0.75rem; gap: 0.375rem; }
  .portal-side .org, .portal-side .nav-grp { display: none; }
  .portal-side a { white-space: nowrap; padding: 0.375rem 0.75rem; }
}
@media (max-width: 1000px) {
  .demo-grid, .demo-grid.wide, .demo-grid.demo-grid-flipped { grid-template-columns: 1fr; }
  .demo-grid.demo-grid-flipped .browser-frame, .demo-grid.demo-grid-flipped > .ext { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-simple { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .reports-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .book-grid { grid-template-columns: 1fr; }
  .stage-flow { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .stage-arrow { display: none; }
  .token-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto 2rem; }
  .modal-content { grid-template-columns: 1fr; }
  .modal-preview { border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero-capto-stage { min-height: auto; }
  .hero-capto-img { max-width: 280px; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hier { grid-template-columns: 1fr; }
  .cache-split { grid-template-columns: 1fr; }
  .portal-stats { grid-template-columns: 1fr 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .reports-grid { grid-template-columns: 1fr; }
  .pain-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .trust-stats { flex-direction: column; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .step-indicators { flex-wrap: wrap; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 3rem 0; }
  .hero { padding: 3rem 0 2rem; }
  .trust-strip { flex-direction: column; align-items: center; }
  .comparison-table { font-size: 0.75rem; }
  .comparison-table th, .comparison-table td { padding: 0.5rem 0.6rem; }
  .faq-chips { gap: 0.4rem; }
  .faq-chip { font-size: 0.75rem; padding: 0.35rem 0.75rem; }
  .portal-stats { grid-template-columns: 1fr; }
  .cta-section { padding: 4rem 0; }
  .cache-tier { grid-template-columns: 80px 1fr; }
}

/* ============ BEFORE → AFTER (scroll-animated) ============ */
.ba-container { max-width: 960px; margin: 0 auto; }
.ba-phase-label { text-align: center; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-mute); margin-bottom: 1.25rem; transition: color 0.6s ease; }
.ba-container.animated .ba-phase-label { color: var(--accent); }
.ba-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.ba-stat { text-align: center; padding: 2rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); position: relative; overflow: hidden; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: border-color 0.5s ease calc(var(--i,0) * 0.15s), box-shadow 0.5s ease calc(var(--i,0) * 0.15s); }
.ba-before-content, .ba-after-content { display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.5s ease calc(var(--i,0) * 0.15s), transform 0.5s ease calc(var(--i,0) * 0.15s); }
.ba-after-content { position: absolute; inset: 0; padding: 2rem 1.25rem; opacity: 0; transform: translateY(14px); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ba-container.animated .ba-before-content { opacity: 0; transform: translateY(-14px); }
.ba-container.animated .ba-after-content { opacity: 1; transform: translateY(0); }
.ba-num { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; color: var(--fg-dim); transition: color 0.5s ease calc(var(--i,0) * 0.15s); }
.ba-container.animated .ba-after-content .ba-num { color: var(--accent); }
.ba-container.animated .ba-stat { border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent); }
.ba-desc { font-size: 0.85rem; color: var(--fg-dim); line-height: 1.5; margin-top: 0.5rem; max-width: 200px; }
@media (max-width: 800px) {
  .ba-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .ba-stats { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
}

/* ============ BROWSER DEMO — FULL FRAME ============ */
.demo-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.demo-top h2 { margin: 0; }
.demo-top-ctas { display: flex; gap: 0.75rem; flex-shrink: 0; align-items: center; }

.browser-demo { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-xl); overflow: hidden; position: relative; }
.browser-demo::before { content: ''; position: absolute; inset: -10%; background: radial-gradient(ellipse at 70% 40%, var(--accent-soft) 0%, transparent 55%); filter: blur(60px); z-index: 0; pointer-events: none; }
.browser-demo > * { position: relative; z-index: 1; }
.browser-demo .browser-bar { position: relative; z-index: 1; }

.browser-demo-body { display: grid; grid-template-columns: 1fr 420px; height: 820px; position: relative; z-index: 1; }
.browser-demo-ext { background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; position: relative; z-index: 2; min-height: 0; }
.browser-demo-ext .ext-body { flex: 1; overflow-y: auto; min-height: 0; }
.browser-demo-ext .ext-head { background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 100%); }
.browser-demo-ext .ext-body::-webkit-scrollbar { width: 4px; }
.browser-demo-ext .ext-body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.ext-token-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.45rem 1.25rem; background: var(--surface-2); border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.04em; color: var(--fg-dim); }
.ext-token-bar b { color: var(--fg); font-weight: 600; }
.ext-token-bar .ext-token-pill { font-size: 0.6rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

/* Blurred fake page behind extension */
.browser-demo-page { padding: 1.5rem; background: var(--bg); overflow: hidden; position: relative; user-select: none; pointer-events: none; }
.browser-demo-page > * { filter: blur(4px); opacity: 0.6; }
.fake-topnav { height: 44px; background: var(--surface); border-bottom: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 1.25rem; display: flex; align-items: center; padding: 0 1rem; gap: 1.25rem; }
.fake-topnav-logo { width: 90px; height: 14px; background: var(--line-strong); border-radius: 4px; }
.fake-topnav-links { display: flex; gap: 0.75rem; margin-left: auto; }
.fake-topnav-link { width: 52px; height: 10px; background: var(--line); border-radius: 3px; }
.fake-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.fake-page-title { width: 220px; height: 18px; background: var(--line-strong); border-radius: 4px; }
.fake-page-btn { width: 110px; height: 32px; background: var(--accent-soft); border-radius: var(--r-sm); }
.fake-page-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.fake-page-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; }
.fake-card-img { height: 90px; background: linear-gradient(135deg, var(--bg-elev), var(--surface-2)); border-radius: var(--r-sm); margin-bottom: 0.75rem; }
.fake-card-line { height: 8px; background: var(--line); border-radius: 3px; margin-bottom: 0.4rem; }
.fake-card-line.short { width: 55%; }
.fake-card-line.med { width: 78%; }
.fake-page-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.fake-table-row { display: flex; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); gap: 0.75rem; }
.fake-table-row:last-child { border-bottom: none; }
.fake-table-cell { height: 9px; background: var(--line); border-radius: 3px; flex: 1; }
.fake-table-cell.narrow { flex: 0.4; }
.fake-table-cell.wide { flex: 1.6; }

/* Extension sidebar in browser demo — see .browser-demo-body block above for main definition */

/* Imagery row — aerial + street view */
.imagery-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.25rem; }
.imagery-card { border-radius: var(--r-md); overflow: hidden; }
.imagery-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; height: 100px; border-radius: var(--r-md); border: 1px solid var(--line); cursor: default; }
.imagery-placeholder svg { width: 28px; height: 28px; opacity: 0.35; }
.imagery-placeholder span { font-size: 0.7rem; font-weight: 600; color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.imagery-placeholder.aerial { background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), color-mix(in srgb, var(--accent) 4%, var(--bg))); }
.imagery-placeholder.street { background: linear-gradient(145deg, color-mix(in srgb, var(--fg) 6%, var(--surface)), color-mix(in srgb, var(--fg) 3%, var(--bg))); }
.imagery-full { width: 100%; height: 110px; margin-bottom: 0.75rem; }

/* Zip code in header */
.ext-head-zip { color: var(--fg-mute); font-size: 0.85em; }

/* 3×3 property grid */
.prop-grid-3x3 { grid-template-columns: repeat(3, 1fr); }
.prop-grid-3x3 .prop-val { font-size: 0.85rem; }

/* Report list */
.report-list { display: flex; flex-direction: column; gap: 0.5rem; }
.report-list-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); }
.report-list-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.report-list-icon.done { background: rgba(47,158,110,.12); color: var(--grade-a); }
.report-list-icon.processing { background: var(--accent-soft); color: var(--accent); }
.report-list-info { flex: 1; min-width: 0; }
.report-list-name { font-size: 0.85rem; font-weight: 600; color: var(--fg); }
.report-list-meta { font-size: 0.72rem; color: var(--fg-mute); margin-top: 0.15rem; }
.report-list-actions { display: flex; gap: 0.35rem; flex-shrink: 0; }
.report-action-btn { width: 30px; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.report-action-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.report-action-btn svg { width: 15px; height: 15px; }

/* Combined report card */
.report-combined { padding: 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); }
.report-combined-title { font-size: 0.9rem; font-weight: 700; color: var(--fg); }
.report-combined-list { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.5rem; }
.report-combined-item { display: flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; color: var(--fg-2); }
.report-combined-check { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 4px; background: var(--grade-b); color: #fff; font-size: 0.6rem; font-weight: 700; flex-shrink: 0; }
.report-combined-meta { font-size: 0.75rem; color: var(--fg-mute); margin-top: 0.5rem; }
.report-combined-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.btn-sm { font-size: 0.78rem; padding: 0.4rem 0.85rem; }

/* Report preview thumbnail */
.report-preview { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; margin-bottom: 1rem; }
.report-preview-header { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.85rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--line); }
.report-preview-logo { width: 28px; height: 28px; border-radius: 6px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.report-preview-logo svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.report-preview-title-block { flex: 1; }
.report-preview-title { font-size: 0.88rem; font-weight: 700; color: var(--fg); }
.report-preview-addr { font-size: 0.72rem; color: var(--fg-mute); margin-top: 0.1rem; }
.report-preview-body { display: flex; flex-direction: column; gap: 0.5rem; }
.report-preview-row { display: flex; gap: 0.5rem; align-items: center; }
.report-preview-grade { width: 22px; height: 22px; border-radius: 5px; font-size: 0.6rem; font-weight: 800; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.report-preview-grade.high { background: var(--grade-d); }
.report-preview-grade.low { background: var(--grade-b); }
.report-preview-grade.mid { background: var(--grade-c); }
.report-preview-line { height: 7px; background: var(--line); border-radius: 3px; flex: 1; }
.report-preview-line.short { max-width: 50%; }
.report-preview-line.med { max-width: 70%; }
.report-preview-footer { margin-top: 0.75rem; padding-top: 0.6rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.report-preview-date { font-size: 0.68rem; color: var(--fg-mute); }
.report-preview-badge { font-size: 0.65rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 0.2rem 0.5rem; border-radius: 5px; }

/* Ask tab — AI greeting + chips */
.ask-greeting { display: flex; gap: 0.65rem; margin-bottom: 0.75rem; }
.ask-greeting-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; object-fit: contain; }
.ask-greeting-bubble { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); border-top-left-radius: var(--r-sm); padding: 0.75rem 0.85rem; font-size: 0.82rem; color: var(--fg-2); line-height: 1.6; }
.ask-greeting-label { font-size: 0.68rem; font-weight: 700; color: var(--accent); margin-bottom: 0.3rem; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.ask-chip { font-size: 0.72rem; padding: 0.35rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg-dim); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease; white-space: nowrap; }
.ask-chip:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* Risk section labels */
.risk-section-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-mute); margin-bottom: 0.5rem; font-family: var(--font-mono); }

/* Bundle badge */
.token-badge.bundle-badge { background: rgba(47,158,110,.12); color: var(--grade-a); }

/* Floating tooltip for extension hover */
.ext-tooltip-zone { position: relative; cursor: default; }
.ext-tooltip-zone::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-sm); border: 2px solid transparent; transition: border-color 0.25s ease, background 0.25s ease; pointer-events: none; }
.ext-tooltip-zone:hover::after { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.ext-hover-tip { position: fixed; width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0.875rem 1rem; box-shadow: var(--shadow-lg); z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; transform: translateX(8px); }
.ext-hover-tip.visible { opacity: 1; transform: translateX(0); pointer-events: auto; }
.ext-hover-tip .tip-arrow { position: absolute; right: -7px; width: 12px; height: 12px; background: var(--surface); border-right: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.ext-hover-tip .tip-line { position: absolute; right: -16px; height: 1px; width: 16px; border-top: 1.5px dashed var(--accent); }
.ext-hover-tip-title { font-size: 0.75rem; font-weight: 700; color: var(--fg); margin-bottom: 0.35rem; }
.ext-hover-tip-text { font-size: 0.78rem; color: var(--fg-dim); line-height: 1.55; }

.browser-demo + .step-indicators { margin-top: 1.5rem; justify-content: center; }

@media (max-width: 1000px) {
  .browser-demo-body { grid-template-columns: 1fr; }
  .browser-demo-page { display: none; }
  .browser-demo-ext { border-left: none; }
  .ext-hover-tip { display: none; }
  .demo-top { flex-direction: column; }
}
@media (max-width: 600px) {
  .demo-top-ctas { flex-direction: column; width: 100%; }
  .demo-top-ctas .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   POLISH & ACCESSIBILITY
   ============================================================ */
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
h1, h2, h3 { text-wrap: balance; }
[id] { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--accent); color: var(--accent-fg); padding: 0.6rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: 0.85rem; box-shadow: var(--shadow-md); transition: top 200ms ease; }
.skip-link:focus { top: 0.75rem; color: var(--accent-fg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:focus-visible { outline-offset: 3px; }
.cta-section :focus-visible { outline-color: #fff; }

.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn-ghost:active { transform: translateY(0); }

.rpt-card:hover, .pricing-card:hover, .pricing-simple-card:hover,
.feature-card:hover, .stage-card:hover, .hier-card:hover, .token-card:hover { border-color: var(--line-strong); }
.pricing-card.featured:hover, .pricing-simple-card.featured:hover { border-color: var(--accent); }

.comparison-table tbody tr { transition: background 160ms ease; }
.comparison-table tbody tr:hover { background: var(--bg-soft); }

.mobile-menu.open { animation: mobileMenuIn 240ms ease; }
@keyframes mobileMenuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--fg-mute); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-capto-img { animation: none; }
}

/* ============================================================
   SHARED COMPONENTS (chips, mascot CTA, top-ups, nav state)
   ============================================================ */
.nav { transition: box-shadow var(--transition); }
.nav.scrolled { box-shadow: var(--shadow-md); }

.capto-chip { position: absolute; display: flex; align-items: center; gap: 0.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.95rem 0.45rem 0.5rem; font-size: 0.78rem; font-weight: 600; color: var(--fg-2); box-shadow: var(--shadow-md); animation: chipFloat 6s ease-in-out infinite; z-index: 2; white-space: nowrap; }
.capto-chip .risk-grade { width: 24px; height: 24px; font-size: 0.7rem; }
.capto-chip.plain { padding: 0.45rem 0.95rem; }
.capto-chip-1 { top: 7%; left: -3%; animation-delay: 0s; }
.capto-chip-2 { top: 18%; right: -5%; animation-delay: 1.4s; }
.capto-chip-3 { bottom: 19%; left: -7%; animation-delay: 2.6s; }
.capto-chip-4 { bottom: 6%; right: -1%; animation-delay: 3.4s; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1000px) { .capto-chip { display: none; } }
.chip-check { width: 18px; height: 18px; border-radius: 50%; background: rgba(47,158,110,.15); color: var(--grade-a); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 800; flex-shrink: 0; }
.chip-val { font-family: var(--font-mono); color: var(--accent); }

.cta-mascot { width: 96px; height: auto; margin: 0 auto 1.25rem; filter: drop-shadow(0 12px 24px rgba(0,0,0,.25)); animation: float 5.6s ease-in-out infinite; }

.tb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tb-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem 1.25rem; text-align: center; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.tb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.tb-card.best { border-color: var(--accent); }
.tb-price { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.tb-tokens { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); margin-top: 0.25rem; }
.tb-rate { font-size: 0.72rem; color: var(--fg-mute); margin-top: 0.35rem; }
@media (max-width: 800px) { .tb-grid { grid-template-columns: repeat(2, 1fr); } }

.faq-q { font-family: inherit; }

/* ============================================================
   V8 LAUNCH REDESIGN
   ============================================================ */

/* Hero */
.hero-v8 { padding: 5rem 0 4.5rem; min-height: 78vh; min-height: 78dvh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-v8::before { content: ''; position: absolute; top: -25%; right: -12%; width: 60%; height: 90%; background: radial-gradient(circle, var(--accent-soft) 0%, transparent 62%); filter: blur(70px); pointer-events: none; }
.hero-v8 .container { position: relative; }

/* Lookup bar — the product action, front and center */
.lookup-bar { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.75rem; max-width: 560px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.45rem 0.45rem 0.45rem 1.1rem; box-shadow: var(--shadow-lg); transition: border-color var(--transition), box-shadow var(--transition); }
.lookup-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-lg); }
.lookup-ico { width: 18px; height: 18px; color: var(--fg-mute); flex-shrink: 0; }
.lookup-input { flex: 1; border: none; background: transparent; outline: none; font-size: 0.95rem; color: var(--fg); font-family: inherit; min-width: 0; }
.lookup-input::placeholder { color: var(--fg-mute); }
.lookup-btn { flex-shrink: 0; }
.lookup-hint { font-size: 0.8rem; color: var(--fg-mute); margin-top: 0.65rem; }
@media (max-width: 600px) {
  .lookup-bar { flex-direction: column; align-items: stretch; border-radius: var(--r-lg); padding: 0.6rem; }
  .lookup-ico { display: none; }
  .lookup-btn { justify-content: center; }
}

/* Feature rows with embedded UI mocks */
.feature-rows { display: flex; flex-direction: column; gap: 4.5rem; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.feature-row.reverse .feature-row-copy { order: 2; }
.feature-row.reverse .feature-row-mock { order: 1; }
.feature-row-copy h3 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 0.35rem 0 0.85rem; }
.feature-row-copy p { color: var(--fg-dim); line-height: 1.75; font-size: 0.975rem; }
.feature-row-mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.5rem; box-shadow: var(--shadow-lg); position: relative; }
.feature-row-mock::before { content: ''; position: absolute; inset: -10%; background: radial-gradient(circle at 30% 20%, var(--accent-soft) 0%, transparent 60%); filter: blur(50px); z-index: -1; }
@media (max-width: 1000px) {
  .feature-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-row.reverse .feature-row-copy { order: 1; }
  .feature-row.reverse .feature-row-mock { order: 2; }
  .feature-rows { gap: 3rem; }
}

/* Static selection-card mock (no JS binding) */
.rsel { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.75rem; border-radius: var(--r-sm); background: var(--bg-elev); margin-bottom: 0.5rem; border: 1px solid transparent; }
.rsel.selected { border-color: var(--accent); background: var(--accent-soft); }
.rsel .rsc-check { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.7rem; color: transparent; }
.rsel.selected .rsc-check { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

/* Checklist grid */
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.check-item { display: flex; align-items: center; gap: 0.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.8rem 1rem; font-size: 0.875rem; font-weight: 500; color: var(--fg-2); }
.check-item .ck { color: var(--grade-a); font-weight: 800; }
@media (max-width: 800px) { .check-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .check-grid { grid-template-columns: 1fr; } }

/* Slim step strip */
.step-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
.step-s { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; }
.step-s .n { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.step-s h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.step-s p { font-size: 0.8rem; color: var(--fg-dim); line-height: 1.55; }
@media (max-width: 800px) { .step-strip { grid-template-columns: 1fr; } }

/* Security / compliance band */
.sec-band { background: linear-gradient(135deg, #0a1426 0%, #0f1c34 100%); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-xl); padding: 3rem; }
.sec-band .eyebrow { color: #93a3c2; }
.sec-band h2 { color: #fff; }
.sec-sub { color: #93a3c2; margin-top: 0.75rem; font-size: 1.05rem; }
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.sec-tile { border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); padding: 1.25rem; background: rgba(255,255,255,.03); }
.sec-tile h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.4rem; }
.sec-tile p { color: #93a3c2; font-size: 0.8rem; line-height: 1.6; }
.sec-note { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); color: #c7d2e8; font-size: 0.9rem; line-height: 1.7; }
@media (max-width: 1000px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sec-grid { grid-template-columns: 1fr; } .sec-band { padding: 2rem 1.5rem; } }

/* Founder note */
.founder-card { max-width: 820px; margin: 48px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 3.5rem 3rem 2.5rem; box-shadow: var(--shadow-md); position: relative; }
.founder-mascot { width: 76px; height: auto; position: absolute; top: -38px; left: 50%; transform: translateX(-50%); filter: drop-shadow(0 10px 20px rgba(0,0,0,.18)); }
.founder-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0.5rem 0 1.5rem; }
.founder-card p { color: var(--fg-dim); line-height: 1.85; margin-bottom: 1rem; font-size: 0.975rem; }
.founder-sign { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-weight: 600; color: var(--fg-2); font-size: 0.9rem; text-align: center; }
@media (max-width: 600px) { .founder-card { padding: 3rem 1.5rem 2rem; } }

/* Numbered FAQ */
.faq-list.numbered { counter-reset: faq; }
.faq-list.numbered .faq-q::before { counter-increment: faq; content: counter(faq, decimal-leading-zero); font-family: var(--font-mono); color: var(--accent); font-size: 0.8rem; font-weight: 600; margin-right: 1rem; flex-shrink: 0; }
.faq-q-text { flex: 1; text-align: left; }

/* Demo framing note */
.demo-note { font-size: 0.9rem; color: var(--fg-mute); margin-top: 0.5rem; }

/* Lookup-bar → demo flash */
#demo.flash .browser-demo { animation: demoPulse 1.1s ease 2; }
@keyframes demoPulse { 0%, 100% { box-shadow: var(--shadow-xl); } 50% { box-shadow: 0 0 0 6px var(--accent-soft), var(--shadow-xl); } }

/* Footer disclaimer */
.foot-disclaimer { font-size: 0.78rem; color: var(--fg-mute); margin-bottom: 0.5rem; }

/* Hero tagline under headline */
.hero-tag { display: block; font-size: 0.62em; font-weight: 600; letter-spacing: -0.01em; margin-top: 0.35rem; }

/* ============ REPORT TAB — score summary ============ */
.rep-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem; background: var(--bg-elev); border-radius: var(--r-md); margin-bottom: 0.5rem; }
.rep-title { font-weight: 700; font-size: 0.9rem; color: var(--fg); }
.rep-sub { font-size: 0.72rem; color: var(--fg-mute); margin-top: 2px; }
.rep-block { padding: 0.7rem 0.75rem; background: var(--bg-elev); border-radius: var(--r-md); margin-bottom: 0.5rem; }
.rep-block-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.rep-block-head .risk-grade { width: 26px; height: 26px; font-size: 0.75rem; }
.rep-name { font-weight: 600; font-size: 0.82rem; color: var(--fg); }
.rep-val { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.rep-grades { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.rep-peril { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; color: var(--fg-dim); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.55rem; }
.rep-peril b { font-weight: 800; font-size: 0.7rem; }
.g-a { color: var(--grade-a); } .g-b { color: var(--grade-b); } .g-c { color: var(--grade-c); } .g-d { color: var(--grade-d); } .g-f { color: var(--grade-f); }
.rep-meta { font-size: 0.72rem; color: var(--fg-dim); margin-top: 0.35rem; line-height: 1.5; }
.rep-note { font-size: 0.7rem; color: var(--fg-mute); line-height: 1.5; margin-top: 0.65rem; padding: 0.55rem 0.65rem; background: var(--surface-2); border-radius: var(--r-sm); border-left: 2px solid var(--accent); }

/* ============ PORTAL MOCKUP — interactive views ============ */
.portal-side button { padding: 0.5rem 0.75rem; border-radius: var(--r-md); font-size: 0.8125rem; color: var(--fg-2); display: flex; align-items: center; gap: 0.625rem; background: none; border: none; width: 100%; text-align: left; font-family: inherit; cursor: pointer; transition: background var(--transition), color var(--transition); }
.portal-side button svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; opacity: 0.7; flex-shrink: 0; }
.portal-side button:hover { background: var(--surface); color: var(--fg); }
.portal-side button.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.portal-side button.active svg { opacity: 1; }
@media (max-width: 1100px) { .portal-side button { white-space: nowrap; padding: 0.375rem 0.75rem; width: auto; } }

.portal-view { display: none; }
.portal-view.active { display: flex; flex-direction: column; gap: 1.25rem; animation: panelFadeIn .35s ease; }

.portal-note { font-size: 0.78rem; color: var(--fg-mute); line-height: 1.6; margin: 0; }

/* Library filter chips */
.plib-filter { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pchip { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; padding: 0.3rem 0.75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg-dim); cursor: pointer; transition: all var(--transition); }
.pchip:hover { border-color: var(--accent); color: var(--accent); }
.pchip.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* Library rows */
.plib-row { grid-template-columns: 1.2fr auto auto auto !important; }
.plib-badges { display: flex; gap: 0.3rem; flex-wrap: wrap; justify-content: flex-end; }

/* Lookup + member rows */
.plk-row { grid-template-columns: 1.2fr auto auto auto !important; }
.portal-recent .who { font-size: 0.72rem; color: var(--fg-dim); white-space: nowrap; }
.pstat { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.pstat.fresh { background: var(--accent-soft); color: var(--accent); }
.pstat.cached { background: rgba(47,158,110,.12); color: var(--grade-a); }
.pstat.active-m { background: rgba(47,158,110,.12); color: var(--grade-a); }
.pstat.invited { background: rgba(212,160,42,.12); color: var(--grade-c); }
.pm-row { grid-template-columns: 1.4fr auto auto !important; }
.pm-id { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }
.pm-av { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.65rem; flex-shrink: 0; }

/* Analytics pool */
.pool-wrap { padding: 1rem 0.875rem 1.125rem; }
.pool-nums { font-size: 0.85rem; color: var(--fg-2); }
.pool-nums b { font-size: 1.25rem; color: var(--fg); font-family: var(--font-mono); }
.pool-meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 0.6rem; }
.pool-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--grade-c)); }
.pool-sub { font-size: 0.72rem; color: var(--fg-mute); margin-top: 0.5rem; }

/* Settings */
.pset-list { display: flex; flex-direction: column; }
.pset-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0.875rem; border-bottom: 1px solid var(--line); }
.pset-row:last-child { border-bottom: 0; }
.pset-row .nm { font-size: 0.8125rem; font-weight: 600; color: var(--fg); }
.pset-row .meta { font-size: 0.7rem; color: var(--fg-mute); margin-top: 2px; }
.pset-ctl { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.pset-val { font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-2); }
.tgl { width: 34px; height: 20px; border-radius: 999px; background: var(--line-strong); display: inline-block; position: relative; transition: background var(--transition); cursor: pointer; }
.tgl i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left var(--transition); box-shadow: var(--shadow-sm); }
.tgl.on { background: var(--accent); }
.tgl.on i { left: 16px; }
@media (max-width: 700px) {
  .plib-row, .plk-row { grid-template-columns: 1fr auto !important; }
  .plib-badges, .plk-row .who { display: none; }
}

/* ============ PORTAL — bulk, watch, cache, exposure ============ */
.blk-drop { border: 2px dashed var(--line-strong); border-radius: var(--r-lg); padding: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; color: var(--fg-dim); font-size: 0.85rem; background: var(--surface-2); transition: border-color var(--transition); }
.blk-drop:hover { border-color: var(--accent); }
.blk-drop svg { width: 26px; height: 26px; color: var(--fg-mute); }
.blk-drop b { color: var(--fg); }
.blk-drop-sub { font-size: 0.72rem; color: var(--fg-mute); }

.blk-stats { display: flex; gap: 0.5rem; padding: 0.75rem 0.875rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.blk-stat { font-size: 0.75rem; color: var(--fg-dim); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.7rem; }
.blk-stat b { color: var(--fg); font-family: var(--font-mono); }
.blk-stat.flag { border-color: rgba(217,120,71,.4); }
.blk-stat.flag b { color: var(--grade-d); }

.blk-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 0.625rem; align-items: center; padding: 0.6rem 0.875rem; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 0.78rem; transition: background var(--transition); user-select: none; }
.blk-row:hover { background: var(--bg-soft); }
.blk-row .addr { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk-row .rsc-check { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.7rem; color: transparent; transition: all var(--transition); }
.blk-row.selected .rsc-check { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.blk-more { padding: 0.6rem 0.875rem; font-size: 0.72rem; color: var(--fg-mute); }

.gpill { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.gpill.a { background: rgba(47,158,110,.12); color: var(--grade-a); border: 1px solid rgba(47,158,110,.3); }
.gpill.b { background: rgba(106,176,76,.12); color: var(--grade-b); border: 1px solid rgba(106,176,76,.3); }
.gpill.c { background: rgba(212,160,42,.12); color: var(--grade-c); border: 1px solid rgba(212,160,42,.3); }
.gpill.d { background: rgba(217,120,71,.12); color: var(--grade-d); border: 1px solid rgba(217,120,71,.3); }

.blk-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0.875rem; flex-wrap: wrap; }
.blk-tally { font-size: 0.8rem; color: var(--fg-2); }
.blk-tally b { font-family: var(--font-mono); color: var(--accent); }
.blk-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.mw-row { grid-template-columns: 1.2fr auto auto !important; }
.pstat.stop { background: rgba(214,83,60,.12); color: var(--grade-f); }
.pstat.aging { background: rgba(212,160,42,.12); color: var(--grade-c); }
.pstat.stale { background: rgba(214,83,60,.12); color: var(--grade-f); }

.psearch { display: flex; align-items: center; gap: 0.6rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 1rem; background: var(--surface); transition: border-color var(--transition); }
.psearch:focus-within { border-color: var(--accent); }
.psearch svg { width: 16px; height: 16px; color: var(--fg-mute); flex-shrink: 0; }
.psearch input { flex: 1; border: none; background: transparent; outline: none; font-size: 0.85rem; color: var(--fg); font-family: inherit; min-width: 0; }
.pc-row { grid-template-columns: 1.2fr auto auto auto !important; }
@media (max-width: 700px) {
  .pc-row, .mw-row { grid-template-columns: 1fr auto !important; }
  .pc-row .who, .mw-row .who { display: none; }
  .blk-row { grid-template-columns: auto 1fr auto auto; }
}

/* Bulk view — report picker */
.blk-reps-wrap { padding: 0.875rem 0.875rem 0; border-top: 1px solid var(--line); }
.blk-reps { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.blk-reps .risk-select-card { margin-bottom: 0; }
@media (max-width: 800px) { .blk-reps { grid-template-columns: 1fr; } }

/* ============================================================
   POLISH PASS — accessibility, touch, consistency
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a, button { touch-action: manipulation; }
.cta-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.linklike { background: none; border: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.linklike:hover { color: var(--accent-2); text-decoration: underline; }
.input-wrap { position: relative; }
.input-wrap .form-input { padding-right: 2.9rem; }
.pw-toggle { position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--fg-mute); width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm); transition: color var(--transition), background var(--transition); }
.pw-toggle:hover { color: var(--fg); background: var(--bg-soft); }
.pw-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
button.tgl { padding: 0; border: none; }
.portal-h .ph-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--fg); line-height: 1.2; }
.risk-select-card:focus-visible, .blk-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (pointer: coarse) {
  .theme-seg button { width: 38px; height: 34px; }
  .ext-tabs button { padding: 0.85rem 0.5rem; }
  .report-action-btn { width: 38px; height: 38px; }
}

/* ============================================================
   PORTAL — REPORT VIEW (interactive PDF + floating Capto)
   ============================================================ */
.rv-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.rv-bar-eyebrow { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 0.45rem; }
.rv-switch { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.rv-prop { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.76rem; font-weight: 600; padding: 0.35rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg-dim); cursor: pointer; transition: border-color var(--transition), color var(--transition), background var(--transition); white-space: nowrap; }
.rv-prop:hover { border-color: var(--accent); color: var(--accent); }
.rv-prop.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.rv-prop .gpill, .rv-prop .rv-prop-ad { pointer-events: none; }
.rv-bar-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* Stage: report full-width by default; FAB floats; chat hidden */
.rv-stage { position: relative; }
.rv-doc { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.6rem 1.75rem; max-height: 660px; overflow-y: auto; box-shadow: var(--shadow-sm); }
.rv-doc:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rv-doc::-webkit-scrollbar { width: 9px; }
.rv-doc::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
/* Chat = floating bubble that grows out of the Capto button */
.rv-ask {
  position: absolute; right: 1rem; bottom: 4.75rem; z-index: 6;
  width: min(370px, calc(100% - 2rem));
  max-height: min(540px, calc(100% - 6.5rem));
  display: flex; flex-direction: column; gap: 0.75rem;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  padding: 1rem; box-shadow: var(--shadow-xl);
  transform-origin: bottom right; transform: scale(0.5) translateY(14px); opacity: 0;
  visibility: hidden; pointer-events: none;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), opacity .18s ease, visibility .28s;
}
.rv-ask::after {
  content: ''; position: absolute; right: 24px; bottom: -7px; width: 14px; height: 14px;
  background: var(--surface); border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
.rv-stage.chat-open .rv-ask { transform: scale(1) translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.rv-fab[aria-expanded="true"] { box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-lg); }

/* Floating Capto button */
.rv-fab { position: absolute; right: 1rem; bottom: 1rem; z-index: 5; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.95rem 0.5rem 0.5rem; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-weight: 600; font-size: 0.85rem; box-shadow: var(--shadow-lg); cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); }
.rv-fab img { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-fg); padding: 2px; }
.rv-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.rv-fab:active { transform: translateY(0); }

/* Chat panel internals */
.rv-ask-head { display: flex; align-items: center; gap: 0.6rem; }
.rv-ask-head img { width: 34px; height: 34px; flex-shrink: 0; }
.rv-ask-head-t { flex: 1; min-width: 0; }
.rv-ask-title { font-weight: 700; font-size: 0.92rem; color: var(--fg); }
.rv-ask-sub { font-size: 0.72rem; color: var(--fg-dim); }
.rv-ask-close { width: 30px; height: 30px; flex-shrink: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 50%; color: var(--fg-dim); font-size: 1.15rem; line-height: 1; cursor: pointer; transition: color var(--transition), border-color var(--transition); }
.rv-ask-close:hover { color: var(--fg); border-color: var(--fg-dim); }
.rv-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rv-convo { flex: 1; min-height: 140px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.6rem; padding-right: 2px; }
.rv-convo::-webkit-scrollbar { width: 6px; }
.rv-convo::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }
.rv-convo .chat-bubble { max-width: 100%; }
.rv-aisum { display: block; font-family: var(--font-mono); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.35rem; }
.rv-typing-bubble { padding: 0.5rem 0.7rem !important; }
.rv-typing-bubble .faq-bot-typing { padding: 0; }
.rv-input { margin-top: auto; }

/* ---- Report document (PDF-faithful) ---- */
.rvd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 2px solid var(--line); }
.rvd-kicker { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute); }
.rvd-title { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); margin-top: 0.25rem; }
.rvd-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--fg-dim); margin-top: 0.3rem; }
.rvd-head-r { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; flex-shrink: 0; }
.rvd-brandmark { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; font-size: 0.85rem; color: var(--fg-2); }
.rvd-brandmark svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; }

.rvd-section { position: relative; padding: 1.1rem 0.7rem; margin: 0 -0.7rem; border-top: 1px dashed var(--line); border-radius: var(--r-sm); cursor: pointer; transition: background var(--transition); }
.rvd-section:first-of-type { border-top: none; }
.rvd-section:hover { background: var(--bg-elev); }
.rvd-section.asked { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.rvd-section:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rvd-sec-head { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.85rem; }
.rvd-sec-icon { width: 26px; height: 26px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rvd-sec-icon svg { width: 15px; height: 15px; stroke: currentColor; fill: none; }
.rvd-sec-title { font-weight: 700; font-size: 1rem; color: var(--fg); flex: 1; }
.rvd-ask-hint { font-size: 0.68rem; font-weight: 600; color: var(--accent); opacity: 0; transition: opacity var(--transition); white-space: nowrap; }
.rvd-section:hover .rvd-ask-hint, .rvd-section:focus-visible .rvd-ask-hint, .rvd-section.asked .rvd-ask-hint { opacity: 1; }
.rvd-blurb { font-size: 0.8rem; color: var(--fg-dim); line-height: 1.6; margin: -0.2rem 0 0.85rem; }

/* facts grid */
.rvd-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.rvd-fact { display: flex; align-items: center; gap: 0.6rem; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.65rem 0.75rem; }
.rvd-fact-ic { width: 30px; height: 30px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); }
.rvd-fact-ic svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.rvd-fact .v { font-size: 0.95rem; font-weight: 700; color: var(--fg); letter-spacing: -0.01em; }
.rvd-fact .k { font-family: var(--font-mono); font-size: 0.54rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-mute); margin-top: 1px; }
@media (max-width: 1100px) { .rvd-facts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .rvd-facts { grid-template-columns: repeat(2, 1fr); } }

/* risk rows */
.rvd-row { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px dotted var(--line); }
.rvd-row:last-child { border-bottom: none; }
.rvd-row-t { min-width: 0; }
.rvd-row-t .nm { font-size: 0.88rem; font-weight: 600; color: var(--fg); }
.rvd-row-t .nt { font-size: 0.76rem; color: var(--fg-dim); line-height: 1.5; margin-top: 1px; }
.rvd-score { display: inline-flex; align-items: center; gap: 0.45rem; flex-shrink: 0; }
.rvd-band { font-size: 0.7rem; font-weight: 600; padding: 0.18rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.rvd-band.a { color: var(--grade-a); background: color-mix(in srgb, var(--grade-a) 13%, transparent); }
.rvd-band.b { color: var(--grade-b); background: color-mix(in srgb, var(--grade-b) 14%, transparent); }
.rvd-band.c { color: var(--grade-c); background: color-mix(in srgb, var(--grade-c) 15%, transparent); }
.rvd-band.d { color: var(--grade-d); background: color-mix(in srgb, var(--grade-d) 15%, transparent); }
.rvd-band.f { color: var(--grade-f); background: color-mix(in srgb, var(--grade-f) 15%, transparent); }
.rvd-score .risk-grade { width: 26px; height: 26px; font-size: 0.74rem; }

/* advanced wildfire */
.rvd-adv { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1rem; align-items: stretch; }
.rvd-map { border-radius: var(--r-md); border: 1px solid var(--line); min-height: 150px; position: relative; overflow: hidden; background: linear-gradient(135deg, #4d6b3a 0%, #6c8c4f 35%, #b3a368 70%, #6e6552 100%); }
.rvd-map::before { content: ''; position: absolute; top: 32%; left: 38%; width: 24%; height: 30%; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45); border-radius: 2px; }
.rvd-map span { position: absolute; bottom: 8px; left: 10px; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; color: #fff; opacity: 0.9; text-transform: uppercase; }
.rvd-adv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.rvd-adv-stat { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.6rem 0.7rem; }
.rvd-adv-stat .k { font-family: var(--font-mono); font-size: 0.54rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-mute); }
.rvd-adv-stat .v { font-size: 1rem; font-weight: 700; color: var(--fg); margin-top: 0.2rem; display: flex; align-items: center; gap: 0.35rem; }
.rvd-adv-stat .v small { font-weight: 500; color: var(--fg-mute); }
.rvd-adv-stat .risk-grade { width: 22px; height: 22px; font-size: 0.66rem; }
@media (max-width: 700px) { .rvd-adv { grid-template-columns: 1fr; } }

/* FEMA flags */
.rvd-fema { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 0.5rem; }
.rvd-fema-flag { font-size: 0.8rem; color: var(--fg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.6rem 0.75rem; background: var(--bg-elev); }
.rvd-fema-flag b { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; }
.rvd-fema-flag.ok { border-color: color-mix(in srgb, var(--grade-a) 40%, transparent); }
.rvd-fema-flag.ok b { color: var(--grade-a); }
.rvd-fema-flag.bad { border-color: color-mix(in srgb, var(--grade-d) 45%, transparent); background: color-mix(in srgb, var(--grade-d) 7%, var(--bg-elev)); }
.rvd-fema-flag.bad b { color: var(--grade-d); }
@media (max-width: 560px) { .rvd-fema { grid-template-columns: 1fr; } }

.rvd-foot { margin-top: 1.3rem; padding-top: 0.9rem; border-top: 2px solid var(--line); font-size: 0.68rem; color: var(--fg-mute); line-height: 1.6; }

/* mobile: chat becomes a stacked drawer, report stays full */
@media (max-width: 900px) {
  .rv-ask { left: 0.75rem; right: 0.75rem; width: auto; bottom: 4.75rem; max-height: 72vh; }
  .rv-convo { max-height: 300px; }
}
