@property --pct { syntax: '<number>'; initial-value: 0; inherits: false; }
/* ===========================================================================
   LensByNEAR — Stripe-style light theme + dark debate room
   Soft white #f6f9fc · navy ink #0a2540 · blue #0066ff · aurora motion hero.
   Every component uses tokens; body.theme-dark flips the room to dark glass.
   =========================================================================== */

:root {
  color-scheme: light;
  --bg: #f6f9fc;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-soft: #f6f9fc;
  --input-bg: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-2: rgba(255, 255, 255, 0.92);
  --scrim-bg: rgba(10, 37, 64, 0.35);

  --ink: #0a2540;
  --soft: #33445c;
  --muted: #5b6b83;
  --faint: #8a97ab;

  --line: rgba(10, 37, 64, 0.14);
  --line-soft: rgba(10, 37, 64, 0.08);
  --line-strong: rgba(10, 37, 64, 0.26);

  --blue: #0066ff;
  --blue-hi: #2a7dff;
  --blue-soft: rgba(0, 102, 255, 0.08);
  --blue-border: rgba(0, 102, 255, 0.35);

  --green: #1ea16b;
  --red: #df1b41;
  --amber: #b98900;

  --navy: #0a2540;
  --shadow: 0 6px 24px rgba(10, 37, 64, 0.08), 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-lg: 0 18px 50px rgba(10, 37, 64, 0.12);

  --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-family: var(--font);
}

/* Dark theme — the debate room (app.html adds class="theme-dark") */
body.theme-dark {
  color-scheme: dark;
  --bg: #000;
  --bg-soft: #060606;
  --card: rgba(255, 255, 255, 0.045);
  --card-soft: rgba(255, 255, 255, 0.03);
  --input-bg: rgba(0, 0, 0, 0.35);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.07);
  --scrim-bg: rgba(0, 0, 0, 0.6);
  --ink: #f4f7fb;
  --soft: #b9c0cb;
  --muted: #8d95a3;
  --faint: #626a77;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.24);
  --blue-soft: rgba(0, 102, 255, 0.14);
  --blue-border: rgba(0, 102, 255, 0.45);
  --green: #3dbb77;
  --red: #e5484d;
  --amber: #d9a520;
  --navy: #060a12;
  --shadow: none;
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
/* `hidden` must always win over component display rules (flex/grid). */
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hi); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Logo ────────────────────────────────────────────────────────────── */
.brand-logo { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.auth-card .brand-logo { width: 60px; height: 60px; margin: 0 auto 18px; }
.site-header .brand-logo { width: 38px; height: 38px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  box-shadow: var(--shadow); transition: all 160ms ease;
}
.btn:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 20px rgba(0, 102, 255, 0.25); }
.btn-primary:hover { background: var(--blue-hi); border-color: var(--blue-hi); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-google { width: 100%; font-weight: 500; }
.btn-google svg { width: 18px; height: 18px; }
.danger-btn { color: var(--red); border-color: rgba(223, 27, 65, 0.35); }

/* ── Header / footer ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 28px; background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.site-header .wordmark { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--soft); font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.btn-primary { color: #fff; }
.wordmark-link { display: inline-flex; align-items: center; gap: 11px; }
.site-footer { border-top: 1px solid var(--line-soft); padding: 36px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer .foot-brand { color: var(--muted); font-size: 13px; }
.site-footer .foot-brand b { color: var(--ink); }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); font-size: 13px; }
.site-footer nav a:hover { color: var(--ink); }

/* ===========================================================================
   LANDING — aurora hero, stats band, FAQ
   =========================================================================== */
.landing { width: 100%; }
.hero { position: relative; min-height: calc(100svh - 57px); display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 44px; padding: 48px 40px 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: -20%; z-index: 0; pointer-events: none; filter: blur(70px) saturate(130%); opacity: 0.55; }
.hero-bg i { position: absolute; border-radius: 50%; }
.hero-bg i:nth-child(1) { width: 46vw; height: 46vw; background: #7dd3fc; top: -6%; left: -4%; animation: drift1 26s ease-in-out infinite alternate; }
.hero-bg i:nth-child(2) { width: 40vw; height: 40vw; background: #93b4ff; bottom: -10%; right: 4%; animation: drift2 32s ease-in-out infinite alternate; }
.hero-bg i:nth-child(3) { width: 30vw; height: 30vw; background: #c4b5fd; top: 24%; right: 30%; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(9vw, 7vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-8vw, -6vh) scale(0.94); } }
@keyframes drift3 { to { transform: translate(6vw, 8vh) rotate(30deg); } }
@media (prefers-reduced-motion: reduce) { .hero-bg i { animation: none; } .reveal { transition: none; } }
.hero-copy, .demo-stage { position: relative; z-index: 1; }
.hero-copy { max-width: 620px; }
.hero-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass-2); font-size: 12.5px; color: var(--soft); margin-bottom: 26px; box-shadow: var(--shadow); }
.hero-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.0; letter-spacing: -0.03em; font-weight: 700; color: var(--ink); text-transform: uppercase; }
.hero p.lede { margin-top: 24px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 480px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-sub { margin-top: 16px; font-size: 12.5px; color: var(--faint); }

/* Demo console — deliberately dark, like a product screenshot on Stripe */
.demo-glow { display: none; }
.demo-panel { background: #0b0f17; border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.demo-topbar { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 12px; color: #6f7b8d; }
.demo-topbar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #9aa6b8; }
.demo-topbar .live .dot { width: 6px; height: 6px; border-radius: 50%; background: #3dbb77; animation: pulse 1.8s infinite; }
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.demo-body { padding: 20px 18px; min-height: 348px; display: flex; flex-direction: column; gap: 12px; }
.demo-bubble { max-width: 88%; padding: 12px 15px; border: 1px solid rgba(255,255,255,0.07); border-radius: var(--r-md); font-size: 14px; line-height: 1.5; color: #b9c0cb; opacity: 0; transform: translateY(8px); transition: opacity 320ms ease, transform 320ms ease; }
.demo-bubble.show { opacity: 1; transform: none; }
.demo-bubble .who { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; color: #626a77; }
.demo-bubble.opp { align-self: flex-start; background: rgba(255,255,255,0.03); }
.demo-bubble.me { align-self: flex-end; background: rgba(0,102,255,0.14); border-color: rgba(0,102,255,0.4); }
.demo-bubble.me .who { color: #2a7dff; }
.demo-answer { border: 1px solid rgba(0,102,255,0.4); border-radius: var(--r-md); background: rgba(0,102,255,0.14); padding: 15px 17px; opacity: 0; transform: translateY(8px); transition: opacity 320ms ease, transform 320ms ease; }
.demo-answer.show { opacity: 1; transform: none; }
.demo-answer .tag { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #2a7dff; }
.demo-answer .say { margin-top: 7px; font-size: 15px; line-height: 1.5; color: #fff; }
.demo-answer .say .caret { display: inline-block; width: 2px; height: 1.05em; background: #2a7dff; margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.demo-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.demo-chip { font-size: 11.5px; color: #8d95a3; border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; padding: 5px 11px; background: rgba(0,0,0,0.3); opacity: 0; transform: translateY(4px); transition: opacity 220ms ease, transform 220ms ease; }
.demo-chip.show { opacity: 1; transform: none; }
.demo-chip b { color: #e9ecf1; font-weight: 600; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Sections */
.section { padding: 90px 40px; }
.section-title { font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.02em; color: var(--ink); font-weight: 700; line-height: 1.08; }
.section-lede { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 560px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.feature-card { padding: 26px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); transition: transform 200ms ease, box-shadow 200ms ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-card .ficon { width: 36px; height: 36px; border: 1px solid var(--blue-border); border-radius: var(--r-sm); display: grid; place-items: center; margin-bottom: 16px; color: var(--blue); font-weight: 700; font-size: 15px; background: var(--blue-soft); }
.feature-card h3 { font-size: 15px; color: var(--ink); margin-bottom: 7px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Stats band — dark navy, animated counters */
.stats-band { background: var(--navy); color: #fff; padding: 84px 40px; }
.stats-band .section-title { color: #fff; }
.stats-band .section-lede { color: #9db0c8; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; max-width: 1100px; }
.stat-item { border-left: 2px solid var(--blue); padding-left: 18px; }
.stat-item .num { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.stat-item .num small { font-size: 0.55em; font-weight: 600; color: #7dd3fc; }
.stat-item .lbl { margin-top: 6px; font-size: 13px; color: #9db0c8; line-height: 1.5; }

/* FAQ */
.faq-wrap { max-width: 760px; margin: 40px auto 0; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; font-size: 16px; font-weight: 600; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--blue); transition: transform 200ms ease; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 4px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 640px; }

.cta-band { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; padding: 70px 40px; }
.cta-band h2 { font-size: clamp(32px, 5.4vw, 64px); letter-spacing: -0.03em; color: var(--ink); text-transform: uppercase; line-height: 0.98; }
.cta-band p { margin: 18px 0 0; color: var(--muted); max-width: 460px; font-size: 16px; }
.cta-band .hero-cta { justify-content: flex-start; }

/* Pricing */
.pricing-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 28px 70px; }
.pricing-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.pricing-head h1 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -0.02em; color: var(--ink); }
.pricing-head p { color: var(--muted); margin-top: 14px; font-size: 16px; }
.billing-toggle { display: inline-flex; margin-top: 22px; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; background: var(--card); }
.billing-toggle button { border: 0; background: transparent; color: var(--muted); padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.billing-toggle button.active { background: var(--blue-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--blue-border); }
.billing-toggle .save { color: var(--green); font-size: 11px; margin-left: 4px; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.tier-card { padding: 28px 26px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; position: relative; }
.tier-card.featured { border-color: var(--blue-border); box-shadow: var(--shadow-lg); }
.tier-badge { position: absolute; top: -11px; left: 26px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--blue); padding: 4px 12px; border-radius: 999px; }
.tier-name { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.tier-model { font-size: 12px; color: var(--blue); letter-spacing: 0.04em; }
.tier-price { margin-top: 14px; font-size: 40px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.tier-price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.tier-tagline { color: var(--muted); font-size: 14px; margin-top: 6px; min-height: 40px; }
.tier-card .btn { margin-top: 16px; }
.tier-feats { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 11px; }
.tier-feats li { font-size: 13.5px; color: var(--soft); line-height: 1.4; padding-left: 24px; position: relative; }
.tier-feats li::before { content: "→"; position: absolute; left: 0; color: var(--blue); }
.tier-feats li.off { color: var(--faint); }
.tier-feats li.off::before { content: "·"; color: var(--faint); }
.pricing-note { text-align: center; color: var(--faint); font-size: 13px; margin-top: 32px; }
.home-pricing { padding: 96px 40px; }
.home-pricing .section-head { text-align: center; margin: 0 auto 20px; }
.home-pricing .billing-toggle { display: flex; margin: 0 auto 40px; width: fit-content; }
.home-pricing .tier-grid { max-width: 1100px; margin: 0 auto; }
.home-pricing .tier-card:nth-child(1) { transition-delay: 40ms; }
.home-pricing .tier-card:nth-child(2) { transition-delay: 140ms; }
.home-pricing .tier-card:nth-child(3) { transition-delay: 240ms; }
.tier-card.crazy .tier-name { color: var(--blue); }

/* ── Auth ────────────────────────────────────────────────────────────── */
.auth-wrap { min-height: 100svh; display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 400px; padding: 36px 30px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.auth-card h1 { text-align: center; font-size: 22px; letter-spacing: -0.01em; color: var(--ink); }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin-top: 9px; }
.auth-form { margin-top: 26px; display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; color: var(--soft); font-weight: 500; }
.field .with-prefix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--input-bg); }
.field .with-prefix span { padding: 0 4px 0 12px; color: var(--faint); }
.field .with-prefix input { border: 0; background: transparent; padding-left: 2px; }
.input { width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--input-bg); color: var(--ink); transition: border-color 150ms ease, box-shadow 150ms ease; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.code-input { text-align: center; font-size: 26px; letter-spacing: 0.4em; font-family: var(--mono); padding: 15px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; margin: 4px 0; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line-soft); }
.auth-alt { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.form-msg { font-size: 13px; padding: 10px 12px; border-radius: var(--r-sm); display: none; }
.form-msg.show { display: block; }
.form-msg.error { color: var(--red); background: rgba(223, 27, 65, 0.07); border: 1px solid rgba(223, 27, 65, 0.3); }
.form-msg.ok { color: var(--green); background: rgba(30, 161, 107, 0.07); border: 1px solid rgba(30, 161, 107, 0.3); }
.field-hint { font-size: 12px; color: var(--faint); }
.field-hint.ok { color: var(--green); }
.field-hint.bad { color: var(--red); }
.link-btn { background: none; border: 0; font-size: 13.5px; padding: 0; color: var(--blue); }

/* ── Dashboard (personalized home) ───────────────────────────────────── */
.dash { max-width: 1100px; margin: 0 auto; padding: 24px 28px 60px; }
.dash-hero { padding: 30px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; position: relative; overflow: hidden; }
.dash-hero::before { content: ""; position: absolute; top: -60%; right: -10%; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,102,255,0.10), transparent 70%); pointer-events: none; }
.dash-hero h1 { font-size: 26px; letter-spacing: -0.01em; color: var(--ink); }
.dash-hero p { color: var(--muted); margin-top: 7px; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.dash-grid.two { grid-template-columns: 2fr 1fr; }
.dash-card { padding: 24px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.dash-card h3 { font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.dash-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.dash-card .spacer { flex: 1; min-height: 8px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.avatar-fallback { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; background: var(--blue); }
.pill-tag { display: inline-flex; padding: 4px 12px; border-radius: 999px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--blue-border); color: var(--blue); background: var(--blue-soft); align-self: flex-start; }
.dash-section-title { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin: 30px 0 12px; }
.mini-stat-row { display: flex; gap: 12px; flex-wrap: wrap; }
.mini-stat { flex: 1; min-width: 110px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--card-soft); }
.mini-stat .num { font-size: 24px; font-weight: 700; color: var(--ink); }
.mini-stat .lbl { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.tip-line { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--soft); line-height: 1.5; }
.tip-line:last-child { border-bottom: 0; }
.tip-line::before { content: "→"; color: var(--blue); flex: none; }
.concept-term { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.concept-tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.quote-block { font-size: 16px; line-height: 1.6; color: var(--soft); font-style: italic; border-left: 3px solid var(--blue); padding-left: 16px; }
.quote-who { margin-top: 10px; font-size: 13px; color: var(--faint); font-style: normal; }
.scroll-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.scroll-row::-webkit-scrollbar { display: none; }
.persona-card { padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.persona-card h4 { font-size: 15px; color: var(--ink); }
.persona-card .role { font-size: 11.5px; color: var(--blue); margin-top: 2px; }
.persona-card p { font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 10px; }
.persona-card .meter { height: 5px; border-radius: 3px; background: var(--line-soft); margin-top: 12px; overflow: hidden; }
.persona-card .meter i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.wv-card { padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.wv-card h4 { font-size: 15px; color: var(--ink); }
.wv-card .who { font-size: 11.5px; color: var(--blue); margin-top: 2px; }
.wv-card p { font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 8px; }
.wv-card .weak { margin-top: 8px; font-size: 12.5px; color: var(--amber); }

/* ── Settings / Train / Growth ───────────────────────────────────────── */
.settings-wrap { max-width: 720px; margin: 0 auto; padding: 24px 28px 60px; }
.settings-card { border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); padding: 26px; margin-top: 16px; }
.settings-card h2 { font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.settings-card .desc { color: var(--muted); font-size: 13.5px; margin-top: 6px; line-height: 1.6; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.settings-row:last-child { border-bottom: 0; padding-bottom: 0; }
.settings-row .lbl { font-size: 14px; color: var(--ink); }
.settings-row .lbl small { display: block; color: var(--faint); font-size: 12px; margin-top: 3px; }
.badge-ok { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); border: 1px solid rgba(30,161,107,0.35); border-radius: 999px; padding: 4px 11px; }
.badge-soon { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.train-wrap { max-width: 720px; margin: 0 auto; padding: 24px 28px 60px; }
.train-head h1 { font-size: 28px; letter-spacing: -0.01em; color: var(--ink); }
.train-head p { color: var(--muted); margin-top: 10px; font-size: 15px; line-height: 1.6; }
.train-wrap .settings-card { margin-top: 20px; }
.rec-panel { text-align: center; margin: 22px 0; }
.rec-btn { display: inline-flex; align-items: center; gap: 12px; padding: 18px 34px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 16px; font-weight: 600; box-shadow: var(--shadow); transition: all 150ms ease; }
.rec-btn .rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.rec-btn.live { background: var(--red); border-color: var(--red); color: #fff; }
.rec-btn.live .rec-dot { background: #fff; animation: pulse 1.1s infinite; }
.wv-label { font-size: 13px; color: var(--ink); background: var(--blue-soft); border: 1px solid var(--blue-border); border-radius: 999px; padding: 7px 14px; }
.dex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dex-card { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 14px; background: var(--card-soft); }
.dex-card.unlocked { border-color: var(--blue-border); background: var(--blue-soft); }
.dex-card.locked { opacity: 0.5; }
.dex-name { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.dex-count { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); margin-top: 4px; }
.dex-card.locked .dex-count { color: var(--faint); }
.dex-ex { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.4; font-style: italic; }

/* ── Admin / prose ───────────────────────────────────────────────────── */
.prose-wrap { max-width: 760px; margin: 0 auto; padding: 24px 28px 60px; }
.prose { padding: 40px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.prose h1 { font-size: 30px; letter-spacing: -0.01em; color: var(--ink); }
.prose .updated { color: var(--faint); font-size: 13px; margin-top: 7px; }
.prose h2 { font-size: 18px; color: var(--ink); margin-top: 30px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--soft); font-size: 15px; line-height: 1.7; margin-top: 12px; }
.prose ul { margin: 0; padding-left: 20px; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 13.5px; }
.admin-table th { text-align: left; color: var(--faint); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); color: var(--soft); }
.admin-table td b { color: var(--ink); font-weight: 600; }
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.stat-box { flex: 1; min-width: 140px; padding: 18px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--card-soft); }
.stat-box .num { font-size: 28px; font-weight: 700; color: var(--ink); }
.stat-box .lbl { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }

/* ===========================================================================
   DEBATE ROOM (theme-dark)
   =========================================================================== */
/* Debate room fills the viewport — only the panels scroll, never the page. */
.app-shell { height: 100svh; overflow: hidden; transition: opacity 200ms ease; display: flex; flex-direction: column; }

/* Setup — the debate must be committed before the room opens */
.setup-bar { padding: 26px 24px; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 14px; max-width: 900px; margin: 0 auto; width: 100%; }
.setup-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.setup-field { display: flex; flex-direction: column; gap: 7px; min-width: 160px; }
.setup-field.grow { flex: 1; min-width: 260px; }
.setup-field > span { font-size: 12.5px; color: var(--soft); font-weight: 500; }
.setup-field > span i { font-style: normal; color: var(--faint); font-weight: 400; }
.setup-field input, .setup-field select { padding: 13px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--input-bg); color: var(--ink); font-size: 15px; }
.setup-field input:focus, .setup-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.setup-bar .btn { padding: 13px 26px; white-space: nowrap; }
.setup-error { font-size: 13px; color: #ff9ea0; }

/* Committed topic — visible anchor so nobody wonders what's being argued */
.topic-bar { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line-soft); }
.topic-chip { display: inline-flex; align-items: center; gap: 10px; min-width: 0; flex: 1; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); }
.topic-side { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; padding: 3px 9px; border-radius: 999px; flex: none; color: #fff; background: var(--blue); }
.topic-side.against { background: var(--red); }
.topic-text { font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Prep is collapsed by default — the room stays uncluttered */
.prep-drawer { padding: 0; }
.prep-drawer > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-size: 13px; font-weight: 600; color: var(--soft); display: flex; align-items: center; justify-content: space-between; }
.prep-drawer > summary::-webkit-details-marker { display: none; }
.prep-drawer > summary::after { content: "+"; font-size: 17px; color: var(--blue-hi); }
.prep-drawer[open] > summary::after { content: "–"; }
.prep-drawer .prep-panel { padding: 0 18px 18px; }
.inline-meta { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.session-bar, .topbar, .mobile-tabs, .opponent-button, .listen-button, .segment, .mobile-tab, .btn, .quiet-button, .icon-button, .speaker-switch { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.opponent-button { touch-action: none; }
.topbar { position: relative; z-index: 30; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; background: color-mix(in srgb, var(--bg) 75%, transparent); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { min-width: 0; }
.brand strong { display: block; font-size: 14.5px; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }
.brand small { display: block; font-size: 11px; color: var(--blue-hi); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.status-strip { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; justify-content: flex-end; min-width: 0; }
.status-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.status-item.listening .status-dot { background: var(--green); }
.build-label { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.autosave-note { font-size: 11px; color: var(--faint); }
.icon-button { width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--glass); color: var(--soft); font-size: 17px; display: grid; place-items: center; flex: none; }
.history-button { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--soft); font-size: 13px; font-weight: 500; }
.history-button:hover { color: var(--ink); border-color: var(--line-strong); }
.drawer-scrim { position: fixed; inset: 0; z-index: 70; background: var(--scrim-bg); opacity: 0; pointer-events: none; transition: opacity 240ms ease; }
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.history-drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 71; width: 340px; max-width: 86vw; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); background: rgba(10, 12, 16, 0.85); border-right: 1px solid var(--line); backdrop-filter: blur(28px) saturate(140%); -webkit-backdrop-filter: blur(28px) saturate(140%); transform: translateX(-102%); transition: transform 300ms cubic-bezier(0.22, 0.8, 0.24, 1); display: flex; flex-direction: column; gap: 14px; }
.history-drawer.open { transform: none; }
.history-head { display: flex; align-items: center; gap: 11px; }
.history-head strong { flex: 1; font-size: 15px; color: #fff; }
.history-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; margin-top: 4px; }
.history-empty { color: #626a77; font-size: 13px; padding: 20px 4px; text-align: center; }
.history-item { display: flex; align-items: center; gap: 4px; border-radius: var(--r-md); border: 1px solid transparent; transition: background 140ms ease; }
.history-item:hover { background: rgba(255,255,255,0.05); }
.history-item.active { background: rgba(0,102,255,0.14); border-color: rgba(0,102,255,0.4); }
.history-open { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 11px 12px; display: flex; flex-direction: column; gap: 3px; }
.hi-name { font-size: 14px; color: #e9ecf1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-meta { font-size: 11px; color: #626a77; }
.history-rename, .history-del { background: none; border: 0; color: #626a77; font-size: 14px; padding: 6px 8px; opacity: 0; transition: opacity 140ms ease; }
.history-item:hover .history-rename, .history-item:hover .history-del { opacity: 1; }
.history-rename:hover { color: #fff; }
.history-del:hover { color: #e5484d; }
.gsel { position: relative; min-width: 120px; }
.gsel-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.gsel-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--glass); color: var(--ink); font-size: 13.5px; transition: border-color 140ms ease; }
.gsel.open .gsel-btn { border-color: var(--blue); }
.gsel-arrow { color: var(--muted); transition: transform 200ms ease; flex: none; }
.gsel.open .gsel-arrow { transform: rotate(180deg); }
.gsel-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; padding: 6px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--glass-2); backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%); display: none; flex-direction: column; gap: 2px; opacity: 0; transform: translateY(-6px); transition: opacity 160ms ease, transform 160ms ease; box-shadow: var(--shadow-lg); }
body.theme-dark .gsel-menu { background: rgba(14,16,22,0.92); }
.gsel.open .gsel-menu { display: flex; opacity: 1; transform: none; }
.gsel-opt { text-align: left; background: none; border: 0; border-radius: var(--r-sm); padding: 9px 11px; color: var(--soft); font-size: 13.5px; }
.gsel-opt:hover { background: var(--glass-2); color: var(--ink); }
.gsel-opt.sel { background: var(--blue-soft); color: var(--ink); }
.session-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }
.listen-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 22px; border-radius: 999px; color: #fff; border: 1px solid var(--blue); background: var(--blue); font-size: 14px; font-weight: 600; }
.listen-button:hover { background: var(--blue-hi); }
.listen-button.active { background: var(--red); border-color: var(--red); }
.record-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.listen-button.active .record-dot { animation: pulse 1.2s infinite; }
.opponent-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--soft); font-size: 14px; font-weight: 500; }
.opponent-button kbd { font-family: var(--mono); font-size: 11px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.opponent-button.holding { border-color: var(--blue); color: var(--ink); background: var(--blue-soft); }
.hold-ring { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-hi); }
.speaker-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); }
.segment { padding: 8px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; }
.segment.active { background: var(--blue-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--blue-border); }
.segment.opponent-segment.active { background: rgba(229,72,77,0.14); box-shadow: inset 0 0 0 1px rgba(229,72,77,0.45); }
.compact-control { display: inline-flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--faint); }
.research-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); }
.research-toggle input { display: none; }
.toggle-track { width: 40px; height: 22px; border-radius: 999px; background: var(--line-soft); border: 1px solid var(--line); position: relative; transition: background 150ms ease; flex: none; }
.toggle-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 150ms ease; }
.research-toggle input:checked + .toggle-track { background: var(--blue); border-color: var(--blue); }
.research-toggle input:checked + .toggle-track::after { transform: translateX(18px); }
.meter-wrap { margin-left: auto; }
.audio-meter { display: inline-flex; gap: 3px; align-items: flex-end; height: 22px; }
.audio-meter i { width: 3px; height: 5px; border-radius: 2px; background: var(--line-strong); transition: height 90ms ease; }
.quiet-button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--soft); font-size: 13px; font-weight: 500; }
.quiet-button:hover { border-color: var(--line-strong); color: var(--ink); }
.mobile-tabs { display: none; }
.workspace { display: grid; grid-template-columns: 380px 1fr; gap: 16px; padding: 16px 20px; max-width: 1400px; margin: 0 auto; width: 100%; flex: 1; min-height: 0; }
.context-column { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.transcript-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.transcript-panel .transcript { flex: 1; min-height: 0; max-height: none; }
.assist-panel { overflow-y: auto; }
.glass-panel { background: var(--glass); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 20px; backdrop-filter: blur(20px) saturate(130%); -webkit-backdrop-filter: blur(20px) saturate(130%); min-width: 0; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-kicker { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-hi); }
.panel-heading h2 { font-size: 17px; color: var(--ink); letter-spacing: -0.01em; margin-top: 3px; }
.panel-meta { font-size: 12px; color: var(--faint); }
.heading-actions { display: inline-flex; align-items: center; gap: 12px; }
.text-button { background: none; border: 0; color: var(--blue-hi); font-size: 13px; }
.speaker-badge { padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); }
.speaker-badge.me { color: var(--blue-hi); border-color: var(--blue-border); background: var(--blue-soft); }
.speaker-badge.opponent { color: #ff9ea0; border-color: rgba(229,72,77,0.45); background: rgba(229,72,77,0.1); }
.prep-panel label, .field-pair label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--soft); margin-bottom: 12px; }
.prep-panel input, .prep-panel textarea, .prep-panel select { padding: 11px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--input-bg); color: var(--ink); resize: vertical; }
.prep-panel input:focus, .prep-panel textarea:focus, .prep-panel select:focus { outline: none; border-color: var(--blue); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type="range"] { accent-color: var(--blue); padding: 8px 0; }
.prep-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 2px; }
.prep-note { font-size: 11.5px; color: var(--faint); line-height: 1.5; }
.intel-box { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 14px; padding: 14px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--card-soft); }
.intel-head { display: flex; align-items: center; justify-content: space-between; }
.tier-lock { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-hi); border: 1px solid var(--blue-border); border-radius: 999px; padding: 2px 9px; }
.intel-status { font-size: 11.5px; color: var(--soft); line-height: 1.5; }
.fast-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); margin-bottom: 12px; }
.fast-toggle-row .lbl { font-size: 12.5px; color: var(--soft); }
.fast-toggle-row .hint { display: block; font-size: 11px; color: var(--faint); margin-top: 2px; }
.live-caption { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px dashed var(--line); border-radius: var(--r-sm); color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }
.caption-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.live-caption.hearing { border-style: solid; border-color: var(--blue-border); color: var(--ink); }
.live-caption.hearing .caption-pulse { background: var(--green); }
.transcript { display: flex; flex-direction: column; gap: 8px; max-height: 44vh; overflow-y: auto; padding-right: 4px; }
.empty-state { color: var(--faint); font-size: 13px; text-align: center; padding: 20px 10px; }
.turn { padding: 10px 13px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--card-soft); cursor: pointer; transition: border-color 130ms ease; text-align: left; width: 100%; }
.turn:hover { border-color: var(--line); }
.turn strong { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.turn.me { border-left: 2px solid var(--blue); }
.turn.opponent { border-left: 2px solid var(--red); }
.turn.me strong { color: var(--blue-hi); }
.turn.opponent strong { color: #ff9ea0; }
.turn span { display: block; margin-top: 4px; font-size: 14px; color: var(--soft); line-height: 1.45; }
.composer { display: flex; gap: 8px; margin-top: 12px; }
.composer input { flex: 1; min-width: 0; padding: 12px 13px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--input-bg); color: var(--ink); }
.composer input:focus { outline: none; border-color: var(--blue); }
.composer button { width: 44px; flex: none; border-radius: var(--r-sm); border: 1px solid var(--blue); background: var(--blue); color: #fff; font-size: 16px; }
.assist-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: opacity 180ms ease; }
.assist-panel.switching { opacity: 0.3; }
.assist-panel > * { order: 5; }
.primary-answer { order: 1; border: 1px solid var(--blue-border); border-radius: var(--r-md); background: var(--blue-soft); padding: 16px 18px; }
#jabBlock { order: 2; }
.insight-grid { order: 3; }
#termBlock { order: 4; }
.research-block { order: 6; }
.chat-composer, .chat-log { order: 9; }
body[data-assist-mode="factcheck"] .research-block { order: 0; border-color: var(--blue-border); }
body[data-assist-mode="factcheck"] #jabBlock { display: none; }
body[data-assist-mode="factcheck"] .insight-grid { order: 4; }
body[data-assist-mode="coach"] .insight-grid { order: 1; }
body[data-assist-mode="coach"] .primary-answer { order: 2; }
body[data-assist-mode="coach"] #jabBlock { display: none; }
.answer-toolbar { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-hi); }
.answer-toolbar button { background: var(--card-soft); border: 1px solid var(--line); border-radius: 999px; color: var(--soft); padding: 5px 12px; font-size: 11px; letter-spacing: 0; text-transform: none; }
#sayNext { margin-top: 9px; font-size: 17.5px; line-height: 1.5; color: var(--ink); }
.new-answer-pill {
  display: block; width: 100%; margin-top: 12px; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--blue-border); background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 600; animation: pillIn 220ms ease;
}
.new-answer-pill:hover { background: var(--blue-hi); }
@keyframes pillIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.jab-block { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 13px 15px; background: var(--card-soft); }
.jab-block span { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.jab-block p { margin-top: 6px; color: var(--soft); font-size: 14px; }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.insight-block { display: flex; gap: 12px; border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 14px; background: var(--card-soft); min-width: 0; }
.insight-icon { width: 30px; height: 30px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--blue-hi); border: 1px solid var(--line); background: transparent; }
.insight-block h3 { font-size: 13px; color: var(--ink); }
.insight-block p { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.45; overflow-wrap: break-word; }
.insight-block > div { min-width: 0; }
.trap-icon { color: var(--amber); }
.fallacy-icon { color: #ff9ea0; }
.term-block { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 15px; background: var(--card-soft); }
.term-heading { display: flex; align-items: baseline; gap: 10px; }
.term-heading span { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-hi); }
.term-heading strong { color: var(--ink); font-size: 15px; }
.term-block p { margin-top: 8px; color: var(--soft); font-size: 14px; line-height: 1.5; }
.term-simple { color: var(--muted) !important; }
.research-block { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 15px; background: var(--card-soft); }
.research-heading { display: flex; align-items: center; justify-content: space-between; }
.research-heading > div { display: inline-flex; align-items: center; gap: 9px; }
.research-heading h3 { font-size: 13.5px; color: var(--ink); }
.research-mark { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-hi); }
.research-block.loading .research-mark { animation: pulse 1s infinite; }
#researchState { font-size: 12px; color: var(--faint); }
.fact-line { display: flex; gap: 11px; margin-top: 12px; align-items: flex-start; }
.verdict { flex: none; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: capitalize; border: 1px solid var(--line); color: var(--muted); }
.verdict.supported { color: var(--green); border-color: rgba(30,161,107,0.4); }
.verdict.misleading, .verdict.disputed { color: var(--amber); border-color: rgba(185,137,0,0.4); }
.verdict.opinion { color: var(--blue-hi); border-color: var(--blue-border); }
.fact-line p { font-size: 13px; color: var(--soft); line-height: 1.5; }
.source-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.source-list a { font-size: 13px; color: var(--soft); border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 9px 11px; display: block; }
.source-list a:hover { border-color: var(--line); }
.chat-composer { margin-top: 2px; }
.chat-log { display: flex; flex-direction: column; gap: 8px; }
.chat-message { padding: 10px 14px; border-radius: var(--r-md); font-size: 14px; line-height: 1.45; border: 1px solid var(--line-soft); max-width: 92%; }
.chat-message.user { align-self: flex-end; background: var(--blue-soft); border-color: var(--blue-border); color: var(--ink); }
.chat-message:not(.user) { align-self: flex-start; background: var(--card-soft); color: var(--soft); }
#aiStatus.thinking { color: var(--blue-hi); }
.primary-answer.refreshing { animation: answerpop 300ms ease; }
@keyframes answerpop { from { opacity: 0.5; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Modals + vcards */
.modal-scrim { position: fixed; inset: 0; z-index: 80; background: var(--scrim-bg); display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-scrim.open { display: flex; }
.modal { width: 100%; max-width: 560px; max-height: 84svh; overflow-y: auto; padding: 28px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
body.theme-dark .modal { background: #0b0c0f; }
.modal h2 { font-size: 20px; color: var(--ink); letter-spacing: -0.01em; }
.modal .score { display: inline-flex; margin-top: 10px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--blue-border); background: var(--blue-soft); color: var(--ink); font-weight: 700; font-size: 14px; }
.modal h3 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-hi); margin-top: 22px; }
.modal p, .modal li { color: var(--soft); font-size: 14px; line-height: 1.6; margin-top: 8px; }
.modal ul { margin: 6px 0 0; padding-left: 18px; }
.modal .modal-actions { display: flex; gap: 10px; margin-top: 26px; }
.modal-wide { max-width: 760px; }
.vcard { border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--card-soft); padding: 16px 18px; margin-top: 14px; }
.vcard.accent { border-color: var(--blue-border); background: var(--blue-soft); }
.vcard h3 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-hi); margin: 0 0 4px; }
.vcard .v-sub { font-size: 12px; color: var(--faint); margin-bottom: 8px; }
.vcard p { color: var(--soft); font-size: 14px; line-height: 1.6; margin-top: 6px; }
.v-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.v-list li { color: var(--soft); font-size: 14px; line-height: 1.5; padding-left: 18px; position: relative; }
.v-list li::before { content: "▸"; position: absolute; left: 0; color: var(--blue-hi); }
.v-pair { border-left: 2px solid var(--blue-border); padding: 4px 0 4px 12px; margin-top: 10px; }
.v-pair .atk { color: var(--muted); font-size: 13px; }
.v-pair .reb { color: var(--ink); font-size: 14px; margin-top: 3px; }
.v-quote { border-left: 2px solid var(--line); padding: 2px 0 2px 12px; margin-top: 8px; color: var(--soft); font-style: italic; font-size: 13.5px; }
.v-chiprow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.v-chip { font-size: 12px; color: var(--soft); border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 11px; }
.v-loading { color: var(--muted); font-size: 14px; padding: 24px 4px; text-align: center; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================================
   RESPONSIVE — phone gets a simpler, app-like site
   =========================================================================== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding: 40px 24px 56px; }
  .feature-grid, .dash-grid, .dash-grid.two, .tier-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .pricing-wrap, .home-pricing { padding-left: 20px; padding-right: 20px; }
  .section, .cta-band, .stats-band { padding-left: 24px; padding-right: 24px; }
  .workspace { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header { padding: 12px 18px; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.btn) { display: none; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .stats-band { padding-top: 56px; padding-bottom: 56px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  /* Phone keeps the live demo — it IS the pitch. Just lighter: smaller type,
     tighter rows, and the aurora drift is dropped further down for battery. */
  .demo-stage { margin-top: 26px; }
  .demo-topbar { padding: 10px 13px; font-size: 11px; }
  .demo-body { padding: 14px 13px; gap: 10px; min-height: 300px; }
  .demo-bubble { max-width: 94%; padding: 10px 12px; font-size: 13px; }
  .demo-answer { padding: 12px 13px; }
  .demo-answer .say { font-size: 14px; }
  .demo-chip { font-size: 11px; padding: 4px 9px; }
  .hero { min-height: 0; padding-bottom: 40px; }
  .scroll-row { grid-auto-columns: 78vw; }

  .topbar { padding: 8px 12px; gap: 8px; }
  .brand small { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .brand strong { max-width: 40vw; font-size: 14px; }
  .build-label, #aiStatus, #micStatus, .autosave-note { display: none; }
  .status-strip { gap: 8px; }
  .topbar .quiet-button { padding: 8px 13px; font-size: 12.5px; }
  .history-button span { display: none; }
  .history-button { padding: 9px 11px; }
  .session-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 14px; }
  .listen-button, .opponent-button, .speaker-switch { grid-column: 1 / -1; }
  .listen-button, .opponent-button { padding: 15px; font-size: 15px; }
  .speaker-switch { width: 100%; }
  .segment { flex: 1; padding: 11px 0; text-align: center; font-size: 13.5px; }
  .compact-control { width: 100%; }
  .gsel { width: 100%; min-width: 0; }
  .gsel-btn { padding: 13px; font-size: 15px; }
  .research-toggle { grid-column: 1 / -1; width: 100%; justify-content: space-between; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--glass); font-size: 15px; }
  .meter-wrap { display: none; }
  #analyzeButton { grid-column: 1 / -1; width: 100%; padding: 13px; font-size: 14px; }
  .mobile-tabs { display: flex; gap: 6px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); border-top: 1px solid var(--line-soft); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .mobile-tab { flex: 1; padding: 12px 4px; border-radius: var(--r-md); border: 0; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; }
  .mobile-tab.active { background: var(--blue-soft); color: var(--ink); }
  .workspace { padding: 12px 12px calc(84px + env(safe-area-inset-bottom)); gap: 12px; }
  .workspace-panel[data-mobile-panel] { display: none; }
  .workspace-panel.active-mobile-panel { display: flex; flex-direction: column; }
  .context-column { display: contents; }
  .glass-panel { padding: 16px; border-radius: var(--r-md); }
  .insight-grid { grid-template-columns: 1fr; }
  .field-pair { grid-template-columns: 1fr; }
  .transcript { max-height: none; }
  #sayNext { font-size: 16.5px; }
  .composer input, .prep-panel input, .prep-panel textarea, .prep-panel select { font-size: 16px; }
  .cta-band { min-height: 36vh; }
  .site-footer { padding: 28px 18px calc(28px + env(safe-area-inset-bottom)); }
  .modal { padding: 22px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   LIQUID GLASS — blue-wash hero, serif display, frosted panels.
   Layered on top of the Stripe-style base so the clean sections below the
   fold keep their light, structured feel. Two rules carry the whole look:
   a radial blue wash behind white type, and glass = translucent fill +
   1px white-ish border + backdrop blur + an inset top highlight.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --lg-blue: #4a8fdd;
  --lg-blue-deep: #2f6fc4;
  --glass-fill: rgba(255, 255, 255, 0.16);
  --glass-edge: rgba(255, 255, 255, 0.28);
  --glass-dark: linear-gradient(rgba(24, 23, 28, 0.75) 0%, rgba(24, 23, 28, 0.82) 100%);
}

/* ── Hero: the blue wash ─────────────────────────────────────────────── */
.hero {
  background: radial-gradient(187% 87% at 50% 13%, var(--lg-blue) 23%, rgba(74, 143, 221, 0) 100%);
  min-height: calc(100svh - 57px);
}
/* The old aurora blobs fight the wash — drop them to near-nothing. */
.hero .hero-bg { opacity: 0.18; filter: blur(90px) saturate(120%); }

.hero h1 {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  text-transform: none;      /* serif display reads wrong shouted */
  color: #fff;
}
.hero h1 .grad { color: #fff; background: none; -webkit-text-fill-color: #fff; }

.hero p.lede { color: rgba(255, 255, 255, 0.88); font-size: 18px; max-width: 500px; }
.hero-sub { color: rgba(255, 255, 255, 0.66); }

/* Status pill — frosted, not bordered-flat. */
.hero-pill {
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 24px rgba(20, 60, 120, 0.18);
}
.hero-pill .dot { background: #eaf3ff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.9); }

/* Inline glass highlight — wrap a word: <em class="lg-mark">listens</em> */
.lg-mark {
  font-style: normal;
  display: inline-block;
  padding: 0.06em 0.34em;
  margin: 0 0.04em;
  border-radius: 999px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* ── Liquid-glass buttons ────────────────────────────────────────────── */
.hero .btn-primary, .cta-band .btn-primary {
  background:
    radial-gradient(102% 102% at 66% 82%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, #4f95e6 0%, #2f6fc4 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow:
    0 18px 34px rgba(35, 80, 160, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 6px rgba(20, 50, 110, 0.25);
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease;
}
.hero .btn-primary:hover, .cta-band .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(35, 80, 160, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.hero .btn-ghost {
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  color: #fff;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.24); }

/* ── The floating app panel ──────────────────────────────────────────── */
.demo-panel {
  background: var(--glass-dark);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow:
    0 40px 80px rgba(18, 45, 95, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* ── Section headings pick up the serif so the page feels of a piece ─── */
.section-title, .pricing-head h1, .cta-band h2 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.04;
}

/* ── Feature cards: soft glass on white ──────────────────────────────── */
.feature-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(247,250,255,0.75));
  border: 1px solid rgba(74, 143, 221, 0.16);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(40, 90, 165, 0.07);
}
.feature-card:hover { box-shadow: 0 20px 44px rgba(40, 90, 165, 0.14); }

/* ── Stats band: deep blue glass instead of flat navy ────────────────── */
.stats-band {
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(74,143,221,0.55) 0%, rgba(74,143,221,0) 60%),
    linear-gradient(180deg, #0d2748 0%, #0a1d38 100%);
}

/* ── Pricing cards ───────────────────────────────────────────────────── */
.tier-card { border-radius: 22px; }
.tier-card.featured {
  background: linear-gradient(180deg, rgba(74,143,221,0.07), rgba(255,255,255,0.9));
  border-color: rgba(74, 143, 221, 0.34);
  box-shadow: 0 24px 60px rgba(40, 90, 165, 0.16);
}

/* ── Motion: a soft float-up that suits the glass ────────────────────── */
.reveal { transform: translateY(22px) scale(0.985); filter: blur(2px); }
.reveal.in {
  transform: none;
  filter: none;
  transition: opacity 760ms cubic-bezier(.2,.8,.2,1), transform 760ms cubic-bezier(.2,.8,.2,1), filter 600ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { transition: none; transform: none; filter: none; }
  .hero .btn-primary:hover { transform: none; }
}

/* ── Phone ───────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .hero { background: radial-gradient(150% 62% at 50% 6%, var(--lg-blue) 22%, rgba(74,143,221,0) 100%); }
  .hero h1 { font-size: clamp(40px, 12vw, 62px); }
  .hero p.lede { font-size: 16px; }
  .demo-panel { border-radius: 16px; }
}

/* Header floats over the blue wash on the landing page only. */
body:has(.hero) .site-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body:has(.hero) .site-header .wordmark,
body:has(.hero) .site-nav a:not(.btn) { color: rgba(255, 255, 255, 0.92); }
body:has(.hero) .site-nav a:not(.btn):hover { color: #fff; }
body:has(.hero) .site-nav .btn-primary {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
body:has(.hero) .site-nav .btn-primary:hover { background: rgba(255, 255, 255, 0.28); }

/* The sticky header is transparent on the landing page, so the blue wash has
   to start at y=0 — otherwise white page background shows behind white type.
   Pull the hero up under the header and pad the content back down. */
body:has(.hero) .site-header { position: sticky; top: 0; z-index: 20; }
.hero { margin-top: calc(-1 * var(--header-h, 57px)); padding-top: calc(48px + var(--header-h, 57px)); }
@media (max-width: 760px) {
  .hero { padding-top: calc(28px + var(--header-h, 57px)); }
}

/* ═══════════════════════════════════════════════════════════════════════
   v24 — deeper NEAR blue, solider glass, sitewide (auth + app + room).
   The first glass pass was too close to Cluely's washed-out sky blue and
   read as translucent-to-the-point-of-illegible. This pulls the palette
   back to the NEAR brand blue and raises every fill so text sits on
   something, not on nothing.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --lg-blue: #0f52c9;        /* was #4a8fdd — now NEAR-family blue */
  --lg-blue-deep: #072f86;
  --lg-blue-lift: #2f74ec;
  --glass-fill: rgba(255, 255, 255, 0.24);   /* was .16 — too see-through */
  --glass-edge: rgba(255, 255, 255, 0.42);   /* was .28 */
}

/* ── Hero wash: deeper, with a dark floor so white type always has weight ─ */
.hero {
  background:
    radial-gradient(150% 88% at 50% 6%, var(--lg-blue-lift) 0%, var(--lg-blue) 34%, rgba(15, 82, 201, 0) 100%),
    linear-gradient(180deg, var(--lg-blue-deep) 0%, rgba(7, 47, 134, 0) 55%);
}
.hero .hero-bg { opacity: 0.12; }

/* Optical centring: EB Garamond sits high in its box, so equal padding
   looks bottom-heavy. Nudge the box, not the glyph. */
.lg-mark {
  padding: 0.14em 0.36em 0.04em;
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ── Buttons: opaque enough to read as buttons ───────────────────────── */
.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  font-weight: 600;
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.38); }

/* "Start free" in the nav — a real blue button, not a ghost */
body:has(.hero) .site-nav .btn-primary {
  background: linear-gradient(180deg, var(--lg-blue-lift) 0%, var(--lg-blue) 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 22px rgba(7, 47, 134, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
body:has(.hero) .site-nav .btn-primary:hover {
  background: linear-gradient(180deg, #3f82f5 0%, var(--lg-blue-lift) 100%);
}
.hero .btn-primary, .cta-band .btn-primary {
  background:
    radial-gradient(102% 102% at 66% 82%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, var(--lg-blue-lift) 0%, var(--lg-blue-deep) 100%);
  border-color: rgba(255, 255, 255, 0.42);
}

.hero-pill { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.45); }
.hero-sub { color: rgba(255, 255, 255, 0.82); }
.stats-band {
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(47, 116, 236, 0.5) 0%, rgba(47, 116, 236, 0) 60%),
    linear-gradient(180deg, #071f47 0%, #04122c 100%);
}

/* ── FAQ: real open/close motion (JS drives the height) ──────────────── */
.faq-item { border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.faq-item summary { transition: color 180ms ease; }
.faq-item summary:hover { color: var(--blue); }
.faq-item summary::after { transition: transform 320ms cubic-bezier(.2,.8,.2,1); }
.faq-item .faq-a {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 300ms ease 60ms, transform 340ms cubic-bezier(.2,.8,.2,1) 40ms;
}
.faq-item[open] .faq-a { opacity: 1; transform: none; }
.faq-item.animating { transition: height 380ms cubic-bezier(.2,.8,.2,1); }

/* ── Auth pages get the same world ───────────────────────────────────── */
.auth-wrap {
  background:
    radial-gradient(140% 70% at 50% 0%, var(--lg-blue-lift) 0%, var(--lg-blue) 32%, rgba(15,82,201,0) 100%),
    linear-gradient(180deg, var(--lg-blue-deep) 0%, #f6f9fc 62%);
}
.auth-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 40px 90px rgba(7, 47, 134, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: rgba(255, 255, 255, 0.96);
}
.auth-card h1 { font-family: "EB Garamond", Georgia, serif; font-weight: 500; font-size: 34px; letter-spacing: -0.01em; }

/* ═══ DEBATE ROOM ════════════════════════════════════════════════════════
   Was flat black with stray blue gradients. Now a deep navy glass room
   that belongs to the same product as the landing page.
   ═══════════════════════════════════════════════════════════════════════ */
body.theme-dark {
  --bg: #050b18;
  --card: rgba(255, 255, 255, 0.045);
  --card-soft: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(47, 116, 236, 0.22) 0%, rgba(47, 116, 236, 0) 60%),
    linear-gradient(180deg, #071a3a 0%, #050b18 100%);
  background-color: #050b18;
}
body.theme-dark .glass-panel,
body.theme-dark .workspace-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body.theme-dark .topbar {
  background: rgba(5, 11, 24, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

/* ── SCROLLING. The room was height:100svh + overflow:hidden, so on a
   short window (or a big one with lots of content) the bottom was simply
   unreachable. Keep the fixed-panel feel only where it actually fits. ── */
/* Tall desktop: keep the fixed-panel feel, but let the shell scroll if the
   panels genuinely overflow — never trap content off-screen. */
.app-shell { height: 100svh; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.workspace { align-items: start; }
/* Short or narrow window: drop the fixed height entirely and scroll the page
   like a normal document, or the bottom of the room is unreachable. */
@media (max-width: 1100px), (max-height: 780px) {
  .app-shell { height: auto; min-height: 100svh; overflow: visible; }
  .workspace { min-height: 0; }
  .transcript { max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item, .faq-item .faq-a { transition: none; }
}

/* Profile card: real numbers where dead space used to be. */
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 10px; }
.mini-stats > div {
  background: var(--card-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}
.mini-stats span { display: block; font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.mini-stats small { display: block; margin-top: 3px; font-size: 11px; color: var(--faint); }
.mini-note { font-size: 12.5px; color: var(--faint); margin-bottom: 14px; }

/* ── Topbar: stop the session name colliding with the status strip ─────
   It was three flex children with nothing allowed to shrink, so on a
   narrow-but-not-mobile window the centre title ran under the right-hand
   status items. Give the middle the flexible space and let the least
   important status text drop out first. */
.topbar { gap: 10px; }
.topbar .brand { flex: 1 1 auto; justify-content: center; min-width: 0; }
.topbar .history-button, .topbar .status-strip { flex: 0 0 auto; }
.brand strong { max-width: min(38vw, 320px); }
.status-strip { gap: 10px; overflow: hidden; }
@media (max-width: 1180px) {
  .build-label { display: none; }
}
@media (max-width: 1020px) {
  #autosaveNote { display: none; }
}
@media (max-width: 900px) {
  .status-strip #micStatus span, .status-strip #aiStatus { font-size: 11px; }
  .brand small { display: none; }
}

/* The mark is NEAR blue, which disappears against the blue hero wash.
   Flip it to white in the landing header only — on the white auth card and
   in the near-black debate room the blue already has plenty of contrast. */
body:has(.hero) .site-header .brand-logo img { filter: brightness(0) invert(1); }

/* ═══════════════════════════════════════════════════════════════════════
   v25 — flat, solid, consistent. No button is a gradient; nothing glows.
   Each surface gets ONE blue, chosen for contrast against what's behind it.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --btn-blue: #0f52c9;          /* primary on light backgrounds */
  --btn-blue-hover: #0b429f;
  --btn-on-blue: #ffffff;       /* primary sitting ON the blue wash */
  --btn-on-blue-ink: #0f52c9;
}

/* Kill every gradient + glow on buttons — solid fills only. */
.btn-primary,
.hero .btn-primary,
.cta-band .btn-primary,
body:has(.hero) .site-nav .btn-primary {
  background: var(--btn-blue) !important;
  background-image: none !important;
  border: 1px solid var(--btn-blue) !important;
  color: #fff !important;
  box-shadow: none !important;
  transition: background-color 160ms ease, transform 160ms ease;
}
.btn-primary:hover,
.hero .btn-primary:hover,
.cta-band .btn-primary:hover,
body:has(.hero) .site-nav .btn-primary:hover {
  background: var(--btn-blue-hover) !important;
  transform: translateY(-1px);
}

/* On the blue hero the primary inverts to solid white — maximum contrast,
   still one flat colour. The secondary is an outline of the same white. */
.hero .btn-primary {
  background: var(--btn-on-blue) !important;
  border-color: var(--btn-on-blue) !important;
  color: var(--btn-on-blue-ink) !important;
}
.hero .btn-primary:hover { background: #eef4ff !important; }
.hero .btn-ghost {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.14) !important; }

/* Nav button on the blue: solid white, same family as the hero primary. */
body:has(.hero) .site-nav .btn-primary {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--btn-on-blue-ink) !important;
}
body:has(.hero) .site-nav .btn-primary:hover { background: #eef4ff !important; }

/* No glow anywhere: drop the aurora blobs and the panel's coloured halo. */
.hero-bg { display: none !important; }
.demo-panel {
  box-shadow: 0 24px 60px rgba(4, 18, 44, 0.34) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #101a2e !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}
.hero-pill { box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.lg-mark { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; }

/* Hero was starting under the sticky header and clipping the headline. */
.hero { margin-top: 0; padding-top: 40px; overflow: visible; }
body:has(.hero) .site-header { background: var(--lg-blue); border-bottom: 1px solid rgba(255,255,255,0.12); }

/* Tier names: all one ink. Vector was blue while the others were navy —
   inconsistent, and it read as an accident rather than emphasis. */
.tier-card.crazy .tier-name { color: var(--ink); }
.tier-model { color: var(--muted); }

/* Logo + header ink cross-fade as you leave the blue hero. Driven by a
   .scrolled class on <body> (landing.js) rather than a scroll-linked
   animation, so it's one cheap class toggle and it degrades gracefully. */
body:has(.hero) .site-header {
  transition: background-color 320ms ease, border-color 320ms ease;
}
body:has(.hero) .site-header .brand-logo img,
body:has(.hero) .site-header .wordmark,
body:has(.hero) .site-nav a:not(.btn) {
  transition: filter 320ms ease, color 320ms ease;
}
body:has(.hero).scrolled .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body:has(.hero).scrolled .site-header .brand-logo img { filter: none; }
body:has(.hero).scrolled .site-header .wordmark { color: var(--ink); }
body:has(.hero).scrolled .site-nav a:not(.btn) { color: var(--muted); }
body:has(.hero).scrolled .site-nav a:not(.btn):hover { color: var(--ink); }
body:has(.hero).scrolled .site-nav .btn-primary {
  background: var(--btn-blue) !important;
  border-color: var(--btn-blue) !important;
  color: #fff !important;
}
body:has(.hero).scrolled .site-nav .btn-primary:hover { background: var(--btn-blue-hover) !important; }

/* ── About section ───────────────────────────────────────────────────── */
.about-band { padding: 96px 40px; background: var(--bg-soft); border-top: 1px solid var(--line-soft); }
.about-inner { max-width: 1100px; margin: 0 auto; }
.about-lead {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 780px;
}
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.about-grid h4 { font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.about-grid p { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.about-meta { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--line-soft); }
.about-meta div span { display: block; font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.about-meta div small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--faint); }
@media (max-width: 860px) {
  .about-band { padding: 64px 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-meta { gap: 26px; }
}

/* ── Theme editor panel (⌥⇧T or ?theme) ──────────────────────────────── */
#lens-theme-panel {
  position: fixed; top: 0; right: 0; z-index: 9999;
  width: 340px; max-width: 92vw; height: 100svh;
  display: none; flex-direction: column;
  background: #fff; color: #0a2540;
  border-left: 1px solid rgba(10,37,64,.14);
  box-shadow: -20px 0 60px rgba(10,37,64,.18);
  font: 13px/1.45 "Inter", system-ui, sans-serif;
}
#lens-theme-panel.open { display: flex; }
#lens-theme-panel .lt-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid rgba(10,37,64,.1);
}
#lens-theme-panel .lt-head strong { font-size: 14px; }
#lens-theme-panel .lt-head-actions { display: flex; gap: 6px; }
#lens-theme-panel button {
  font: inherit; cursor: pointer; border-radius: 8px;
  border: 1px solid rgba(10,37,64,.16); background: #fff; color: #0a2540;
  padding: 6px 10px;
}
#lens-theme-panel button:hover { background: #f2f6fb; }
#lens-theme-panel button.on { background: #0f52c9; border-color: #0f52c9; color: #fff; }
#lens-theme-panel .lt-body { flex: 1; overflow-y: auto; padding: 6px 16px 16px; }
#lens-theme-panel section { margin-top: 16px; }
#lens-theme-panel h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: #8a97ab; margin: 0 0 8px;
}
#lens-theme-panel .lt-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 8px; margin: 0 -8px; border-radius: 8px;
}
#lens-theme-panel .lt-row.hit { background: rgba(15,82,201,.1); outline: 1px solid rgba(15,82,201,.35); }
#lens-theme-panel .lt-label { display: flex; flex-direction: column; min-width: 0; }
#lens-theme-panel .lt-label i { font-style: normal; font-size: 10.5px; color: #8a97ab; font-family: ui-monospace, monospace; }
#lens-theme-panel .lt-inputs { display: flex; align-items: center; gap: 6px; flex: none; }
#lens-theme-panel input[type="color"] {
  width: 30px; height: 26px; padding: 0; border: 1px solid rgba(10,37,64,.18);
  border-radius: 6px; background: none; cursor: pointer;
}
#lens-theme-panel .lt-hex {
  width: 108px; font: 11.5px ui-monospace, monospace; padding: 5px 7px;
  border: 1px solid rgba(10,37,64,.16); border-radius: 6px; color: #0a2540; background: #fff;
}
#lens-theme-panel .lt-foot { display: flex; gap: 8px; padding: 12px 16px 4px; border-top: 1px solid rgba(10,37,64,.1); }
#lens-theme-panel .lt-note { padding: 6px 16px 14px; margin: 0; font-size: 11.5px; color: #8a97ab; }
body.lt-inspecting, body.lt-inspecting * { cursor: crosshair !important; }
body.lt-inspecting *:hover { outline: 1px solid rgba(15,82,201,.6) !important; }

/* ═══════════════════════════════════════════════════════════════════════
   v26 — legibility + motion polish
   ═══════════════════════════════════════════════════════════════════════ */

/* The pill was riding high: EB Garamond's cap-height sits well below the
   em box top, so a symmetric box looks lifted. Push the ink down optically
   and let the pill hug the glyphs instead of the metrics. */
.lg-mark {
  padding: 0.06em 0.34em 0.12em;
  line-height: 1;
  vertical-align: baseline;
  transform: translateY(0.06em);
}

/* Full-screen bug: the hero wash fades to near-white at the bottom while the
   lede + subline stayed white — invisible on wide screens where the fade
   lands higher. Hold the wash darker through the copy, and give the text a
   floor colour that survives the lightest part of the gradient. */
.hero {
  background:
    radial-gradient(140% 96% at 50% 4%, var(--lg-blue-lift) 0%, var(--lg-blue) 42%, rgba(15, 82, 201, 0.92) 72%, rgba(15, 82, 201, 0.55) 100%),
    linear-gradient(180deg, var(--lg-blue-deep) 0%, rgba(7, 47, 134, 0) 46%);
}
.hero p.lede { color: #fff; }
.hero-sub { color: rgba(255, 255, 255, 0.9); }

/* Mobile scroll jitter: a sticky header over a backdrop-filtered surface
   forces a repaint every frame on iOS, and 100svh re-resolves as the URL
   bar hides. Promote the header to its own layer and stop the hero from
   re-measuring mid-scroll. */
body:has(.hero) .site-header {
  will-change: background-color;
  transform: translateZ(0);
  backface-visibility: hidden;
}
@media (max-width: 760px) {
  body:has(.hero) .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero { min-height: 0; }
}

/* Price cross-fade when switching monthly/yearly. */
.tier-price { transition: opacity 200ms ease, transform 200ms ease; }
.tier-price.swapping { opacity: 0; transform: translateY(-6px); }

/* Training: the record button was crowded against the hint below it. */
.drill-actions, .train-record-wrap { margin-top: 28px; margin-bottom: 8px; }
.train-hint, .drill-hint { margin-top: 14px; }

/* Current plan is a statement, not a button. */
.tier-card .btn.is-current {
  background: transparent; border-color: var(--line); color: var(--muted);
  cursor: default; pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   v27 — DEBATE ROOM in the product's own palette.
   The room used to be a dark island; now it's the same white-and-blue as
   the rest of the site, with weight carried by hierarchy and one accent
   rather than by darkness.
   ═══════════════════════════════════════════════════════════════════════ */

body.theme-room {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(15, 82, 201, 0.06) 0%, rgba(15, 82, 201, 0) 60%),
    var(--bg);
  color: var(--ink);
}
body.theme-room .app-shell { background: transparent; }

/* Top bar — quiet, aligned, one line. */
body.theme-room .topbar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
body.theme-room .brand strong { color: var(--ink); }
body.theme-room .brand small { color: var(--blue); }

/* Panels: white cards, hairline borders, one soft shadow. */
body.theme-room .workspace-panel,
body.theme-room .glass-panel {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 8px 28px rgba(10, 37, 64, 0.06);
}
body.theme-room .panel-kicker { color: var(--blue); }
body.theme-room .panel-heading h2 { color: var(--ink); }
body.theme-room .panel-meta { color: var(--faint); }

/* ── Control bar: everything on one baseline, evenly spaced ──────────── */
.session-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.session-bar > * { margin: 0; }
.session-bar .meter-wrap { margin-left: auto; }
body.theme-room .session-bar { border-bottom: 1px solid var(--line-soft); }
/* every control shares one height so nothing sits high or low */
.session-bar .listen-button,
.session-bar .opponent-button,
.session-bar .speaker-switch,
.session-bar .quiet-button { min-height: 44px; display: inline-flex; align-items: center; }
.session-bar .speaker-switch { padding: 3px; }
.session-bar .speaker-switch .segment { min-height: 38px; display: inline-flex; align-items: center; }

body.theme-room .listen-button { background: var(--blue); color: #fff; border: 1px solid var(--blue); box-shadow: none; }
body.theme-room .listen-button:hover { background: #0b429f; }
body.theme-room .opponent-button,
body.theme-room .quiet-button,
body.theme-room .speaker-switch { background: var(--card); border: 1px solid var(--line); color: var(--soft); }
body.theme-room .speaker-switch .segment.active { background: var(--blue-soft); color: var(--blue); border-radius: 999px; }

/* ── The answer card — the one place with real colour ────────────────── */
body.theme-room .primary-answer {
  background: linear-gradient(180deg, rgba(15,82,201,0.05), rgba(15,82,201,0.02));
  border: 1px solid var(--blue-border);
  border-radius: 16px;
}
body.theme-room #sayNext { color: var(--ink); font-size: 17px; line-height: 1.5; }
.answer-toolbar { display: flex; justify-content: flex-end; gap: 8px; }
body.theme-room .answer-toolbar button {
  background: var(--card); border: 1px solid var(--line); color: var(--soft);
  border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer;
}
body.theme-room .answer-toolbar button:hover { border-color: var(--blue-border); color: var(--blue); }

/* ── Insight grid + fact check ───────────────────────────────────────── */
body.theme-room .insight-block { background: var(--card-soft); border-color: var(--line-soft); }
body.theme-room .insight-icon { background: var(--blue-soft); color: var(--blue); border: 1px solid var(--blue-border); }

/* Fact check has far more content than its siblings, so it gets the full
   width and a stacked layout instead of text wrapping around a chip. */
.fact-block { grid-column: 1 / -1; display: block; }
.fact-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fact-head h3 { margin: 0; }
.fact-head .inline-meta { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.fact-head .verdict { margin-left: auto; }
.fact-block > p { margin-top: 10px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.fact-block .source-list { margin-top: 12px; }
body.theme-room .source-list a { background: var(--card); color: var(--soft); }
body.theme-room .source-list a:hover { border-color: var(--blue-border); color: var(--blue); }

/* ── Transcript + composer ───────────────────────────────────────────── */
body.theme-room .transcript { color: var(--soft); }
body.theme-room .composer input,
body.theme-room .prep-panel textarea,
body.theme-room .setup-field input,
body.theme-room .setup-field select {
  background: var(--input-bg); border: 1px solid var(--line); color: var(--ink);
}
body.theme-room .composer button { background: var(--blue); color: #fff; border: none; }
body.theme-room .live-caption { background: var(--card-soft); border: 1px solid var(--line-soft); color: var(--muted); }
body.theme-room .empty-state { color: var(--faint); }
body.theme-room .setup-bar { border-bottom: 1px solid var(--line-soft); }
body.theme-room .setup-field span { color: var(--soft); }
body.theme-room .setup-field i { color: var(--faint); }
body.theme-room .topic-bar { border-bottom: 1px solid var(--line-soft); }
body.theme-room .topic-chip { background: var(--card); border: 1px solid var(--line); }
body.theme-room .topic-text { color: var(--ink); }
body.theme-room .mobile-tabs { background: rgba(255,255,255,.94); border-top: 1px solid var(--line-soft); }
body.theme-room .mobile-tab { color: var(--muted); }
body.theme-room .mobile-tab.active { color: var(--blue); }
body.theme-room .history-drawer { background: var(--card); border-right: 1px solid var(--line-soft); }
body.theme-room .chat-log { color: var(--soft); }

/* ── Soft paywall ────────────────────────────────────────────────────── */
.paywall-scrim {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center; padding: 24px;
  background: rgba(10, 37, 64, 0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 240ms ease;
}
.paywall-scrim.open { opacity: 1; }
.paywall-card {
  position: relative; width: min(520px, 100%);
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line-soft); border-radius: 22px;
  padding: 28px; box-shadow: 0 40px 90px rgba(10, 37, 64, 0.3);
  transform: translateY(14px) scale(.98); transition: transform 280ms cubic-bezier(.2,.8,.2,1);
}
.paywall-scrim.open .paywall-card { transform: none; }
.paywall-x { position: absolute; top: 14px; right: 14px; }
.paywall-card h2 { font-family: "EB Garamond", Georgia, serif; font-weight: 500; font-size: 30px; margin: 10px 0 6px; }
.paywall-card > p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.paywall-preview {
  border: 1px solid var(--line-soft); border-radius: 14px;
  background: var(--card-soft); padding: 6px 14px; margin-bottom: 20px;
  max-height: 260px; overflow: hidden;
}
.pw-row {
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(8px);
  transition: opacity 420ms ease, transform 420ms cubic-bezier(.2,.8,.2,1);
}
.pw-row:last-child { border-bottom: 0; }
.pw-row.in { opacity: 1; transform: none; }
.pw-row h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--blue); margin-bottom: 4px; }
.pw-row p { font-size: 13.5px; line-height: 1.55; color: var(--soft); }
.paywall-actions { display: flex; flex-direction: column; gap: 8px; }

/* ── Setup-step prep + persistent dossier ────────────────────────────── */
.setup-prep { border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 10px; }
.setup-prep > summary {
  cursor: pointer; list-style: none; padding: 10px 0;
  font-size: 13.5px; font-weight: 600; color: var(--soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.setup-prep > summary::-webkit-details-marker { display: none; }
.setup-prep > summary::after { content: "+"; font-size: 18px; color: var(--blue); transition: transform 260ms ease; }
.setup-prep[open] > summary::after { transform: rotate(45deg); }
.setup-prep summary i { font-style: normal; font-weight: 400; color: var(--faint); margin-left: 8px; }
.setup-prep .prep-panel { display: grid; gap: 14px; padding-bottom: 16px; }
.setup-prep label { display: grid; gap: 6px; font-size: 12.5px; color: var(--soft); }
.setup-prep label i { font-style: normal; color: var(--faint); font-weight: 400; }
.mic-row { align-items: center; }
.intel-blurb { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 6px 0 10px; }
.dossier-out { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.dossier-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dossier-head strong { font-size: 13px; }
.dossier-body { display: grid; gap: 10px; max-height: 340px; overflow-y: auto; }
.paste-transcript { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; }
.paste-transcript > summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--blue); list-style: none; }
.paste-transcript > summary::-webkit-details-marker { display: none; }
.paste-transcript textarea { width: 100%; margin-top: 8px; font-size: 12.5px; line-height: 1.5; }

/* ── Sessions on the dashboard ───────────────────────────────────────── */
.dash-section-link { float: right; font-size: 13px; font-weight: 500; color: var(--blue); }
.session-list { display: grid; gap: 8px; margin-bottom: 34px; }
.session-empty { font-size: 13.5px; color: var(--faint); padding: 18px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; }
.session-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 12px 14px; transition: border-color 160ms ease, box-shadow 160ms ease;
}
.session-row:hover { border-color: var(--blue-border); box-shadow: 0 6px 18px rgba(10,37,64,.06); }
.s-open { flex: 1; min-width: 0; text-align: left; background: none; border: 0; cursor: pointer; padding: 0; }
.s-name { display: block; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-meta { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }
.s-score { flex: none; font-size: 12px; font-weight: 700; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 3px 9px; }
.s-act { flex: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: 12px; color: var(--muted); cursor: pointer; }
.s-act:hover { border-color: var(--blue-border); color: var(--blue); }
.s-act.danger:hover { border-color: rgba(223,27,65,.4); color: var(--red); }
@media (max-width: 620px) {
  .s-act { padding: 5px 8px; font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Results — training + end of debate. The score counts up and the bars
   sweep, so a grade reads as something that happened, not a static label.
   ═══════════════════════════════════════════════════════════════════════ */
.results { opacity: 0; transform: translateY(14px); transition: opacity 520ms ease, transform 620ms cubic-bezier(.2,.8,.2,1); }
.results.in { opacity: 1; transform: none; }

.results-hero { display: flex; align-items: center; gap: 22px; padding: 22px 0 6px; }
.score-ring {
  --pct: 0;
  position: relative; flex: none;
  width: 116px; height: 116px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    conic-gradient(var(--blue) calc(var(--pct) * 1%), var(--line-soft) 0);
  transition: --pct 1s ease;
}
.score-ring::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--card);
}
.score-num, .score-of { position: relative; z-index: 1; }
.score-num { font-size: 36px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.score-of { font-size: 12px; color: var(--faint); margin-top: -4px; }
.results-verdict { font-family: "EB Garamond", Georgia, serif; font-size: 22px; line-height: 1.35; color: var(--ink); }

.results-bars { display: grid; gap: 12px; margin: 20px 0 8px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--blue); transition: width 900ms cubic-bezier(.2,.8,.2,1); }
.results-bars.in .bar i { width: var(--w); }

.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.results-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Training: give the record button real breathing room top and bottom. */
.rec-panel { display: grid; justify-items: center; gap: 16px; padding: 34px 0 30px; }
.rec-panel .prep-note { margin: 0; text-align: center; }

@media (max-width: 720px) {
  .results-grid { grid-template-columns: 1fr; }
  .results-hero { flex-direction: column; text-align: center; gap: 16px; }
  .bar-row { grid-template-columns: 120px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .results, .bar i { transition: none; }
}
.modal-wide { max-width: 720px; }
.review-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 4px; }
.review-facts div { background: var(--card-soft); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 10px; text-align: center; }
.review-facts span { display: block; font-size: 19px; font-weight: 700; color: var(--ink); }
.review-facts small { display: block; margin-top: 3px; font-size: 11px; color: var(--faint); }
@media (max-width: 620px) { .review-facts { grid-template-columns: 1fr 1fr; } }

/* ── Survey ──────────────────────────────────────────────────────────── */
.survey-top { display: flex; align-items: baseline; justify-content: space-between; }
.survey-progress { font-size: 12px; color: var(--faint); }
.survey { margin: 14px 0 4px; }
.survey-q { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.45; margin-bottom: 12px; }
.survey-opts { display: grid; gap: 8px; }
.survey-opt {
  text-align: left; padding: 11px 14px; font-size: 13.5px; cursor: pointer;
  background: var(--card-soft); border: 1px solid var(--line-soft); border-radius: 12px; color: var(--soft);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.survey-opt:hover { border-color: var(--blue-border); transform: translateX(2px); }
.survey-opt.on { background: var(--blue-soft); border-color: var(--blue-border); color: var(--blue); font-weight: 600; }
.survey-text { margin-top: 4px; }
.survey-nav { display: flex; gap: 8px; margin-top: 14px; }
.survey-nav .btn { flex: none; }
.survey-nav #surveyNext { margin-left: auto; }
.survey-saved { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--green); }
.survey-raw { margin-top: 16px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.survey-raw > summary { cursor: pointer; font-size: 12.5px; color: var(--muted); list-style: none; }
.survey-raw > summary::-webkit-details-marker { display: none; }

/* ── Deep dive ───────────────────────────────────────────────────────── */
.wv-card[data-dive] { cursor: pointer; transition: border-color 160ms ease, transform 160ms ease; }
.wv-card[data-dive]:hover { border-color: var(--blue-border); transform: translateY(-2px); }
.wv-more { display: block; margin-top: 10px; font-size: 12px; color: var(--blue); font-weight: 600; }
.dash-card[data-dive] { cursor: pointer; }
.dash-card[data-dive]:hover { border-color: var(--blue-border); }
.dd-summary { font-size: 15px; line-height: 1.6; color: var(--soft); margin-bottom: 16px; }
.dd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 620px) { .dd-cols { grid-template-columns: 1fr; } }

/* ── Session playback ────────────────────────────────────────────────── */
.playback { display: flex; flex-direction: column; max-height: 86svh; }
.pb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pb-head h2 { margin-top: 6px; }
.pb-stage {
  flex: 1; min-height: 260px; max-height: 52svh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; margin: 16px 0;
  background: var(--card-soft); border: 1px solid var(--line-soft); border-radius: 14px;
  scroll-behavior: smooth;
}
.pb-turn {
  max-width: 82%; padding: 11px 14px; border-radius: 14px;
  border: 1px solid var(--line-soft); background: var(--card);
  animation: pbIn 320ms cubic-bezier(.2,.8,.2,1) both;
}
.pb-turn.me { align-self: flex-end; background: var(--blue-soft); border-color: var(--blue-border); }
.pb-turn.opp { align-self: flex-start; }
.pb-who { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.pb-turn.me .pb-who { color: var(--blue); }
.pb-turn p { font-size: 14px; line-height: 1.55; color: var(--soft); }
.pb-empty { color: var(--faint); font-size: 13.5px; text-align: center; padding: 40px 0; }
@keyframes pbIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pb-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pb-controls .btn { flex: none; }
#pbSeek { flex: 1; min-width: 120px; accent-color: var(--blue); }
.pb-time { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; flex: none; }
.pb-speeds { display: inline-flex; gap: 4px; flex: none; }
.pb-speeds button {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer;
}
.pb-speeds button.on { background: var(--blue-soft); border-color: var(--blue-border); color: var(--blue); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .pb-turn { animation: none; } }
@media (max-width: 620px) {
  .pb-controls { gap: 8px; }
  .pb-time { order: 3; }
}

/* Three worldviews should all be visible and clickable — a horizontal
   scroll-row pushed the third off-screen, which read as "it doesn't work". */
.card-row.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.card-row.three .wv-card { display: flex; flex-direction: column; }
.card-row.three .wv-card .weak { margin-top: auto; padding-top: 8px; }
@media (max-width: 900px) { .card-row.three { grid-template-columns: 1fr; } }

/* Famous debaters clickable, same affordance as worldviews. */
.persona-card[data-dive] { cursor: pointer; transition: border-color 160ms ease, transform 160ms ease; }
.persona-card[data-dive]:hover { border-color: var(--blue-border); transform: translateY(-2px); }

/* The kind pill was sitting flush against the title in the deep-dive modal. */
.modal .pill-tag { display: inline-block; margin-bottom: 12px; }
.modal .pill-tag + h2 { margin-top: 0; }

/* Modals: fade + lift instead of snapping into place. */
.modal-scrim {
  opacity: 0; pointer-events: none;
  transition: opacity 240ms ease;
}
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal-scrim .modal {
  transform: translateY(16px) scale(.985);
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}
.modal-scrim.open .modal { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .modal-scrim, .modal-scrim .modal { transition: none; }
}

/* The assist panel orders its children explicitly, and the heading was left
   on the default (5) — so "Say this next" rendered BELOW the answer and the
   fact-check instead of labelling them. Heading first. */
.assist-panel > .panel-heading, .assist-heading { order: 0; }

/* The Me/Opponent segments were sized by their text, so "Me" sat off-centre
   in a stretched pill on narrow windows. Equal columns fixes it at any width. */
.speaker-switch { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.speaker-switch .segment { justify-content: center; text-align: center; width: 100%; }

/* Topic actions sit together on the right. */
.topic-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* Continue-where-you-left-off card on the dashboard. */
.resume-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; margin-bottom: 22px;
  background: var(--blue-soft); border: 1px solid var(--blue-border); border-radius: 16px;
}
.resume-card .r-text { min-width: 0; }
.resume-card strong { display: block; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-card small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.resume-card .btn { flex: none; }

/* Anchor targets sat under the sticky header, so "See it live" appeared to
   scroll past the thing it was pointing at. */
#how, #features, #pricing, #about, #faq { scroll-margin-top: 84px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Login/signup: the wash was bleeding a hard blue band behind the card.
   Soften it so it reads as one gradient rather than a stripe. */
.auth-wrap {
  background:
    radial-gradient(120% 55% at 50% 0%, var(--lg-blue-lift) 0%, var(--lg-blue) 30%, rgba(15,82,201,0) 72%),
    linear-gradient(180deg, var(--lg-blue-deep) 0%, #dce7f7 42%, var(--bg) 100%);
}

/* ── Skeletons: a shape that resolves, not a spinner ─────────────────── */
.dd-skeleton { display: grid; gap: 12px; padding: 4px 0 8px; }
.dd-skeleton i {
  display: block; height: 14px; border-radius: 7px;
  background: linear-gradient(90deg, var(--line-soft) 25%, rgba(15,82,201,.10) 37%, var(--line-soft) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
.dd-skeleton i:nth-child(1) { width: 92%; }
.dd-skeleton i:nth-child(2) { width: 78%; }
.dd-skeleton i:nth-child(3) { width: 85%; }
.dd-skeleton i:nth-child(4) { width: 64%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

#ddBody { opacity: 0; transition: opacity 320ms ease, transform 320ms cubic-bezier(.2,.8,.2,1); transform: translateY(6px); }
#ddBody.in { opacity: 1; transform: none; }

/* The room's own waiting states get the same treatment. */
.v-loading {
  position: relative; color: var(--faint); font-size: 13.5px;
}
.v-loading::after {
  content: ""; display: inline-block; width: 3px; height: 3px; margin-left: 6px;
  border-radius: 50%; background: currentColor;
  animation: dotPulse 1.2s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100% { opacity: .2; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .dd-skeleton i, .v-loading::after { animation: none; }
}
.tp-score { text-align: center; margin: 6px 0 18px; }
.tp-score span { font-size: 46px; font-weight: 700; color: var(--blue); letter-spacing: -0.02em; }
.tp-score small { font-size: 15px; color: var(--faint); margin-left: 2px; }

/* One tactical instruction, under the line you say. */
.next-move {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--blue-border);
  font-size: 13px; font-weight: 600; color: var(--blue);
  display: flex; align-items: center; gap: 8px;
}
.next-move::before { content: "→"; opacity: .7; }
.term-block { grid-column: 1 / -1; display: block; }
.term-block .fact-head h3 { font-style: italic; }
.term-block > p { margin-top: 8px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* Nav visibility is decided by a class set in <head>, so the correct links
   are painted on the first frame instead of swapped in afterwards. */
[data-when="in"] { display: none; }
.is-authed [data-when="in"] { display: inline-flex; }
.is-authed [data-when="out"] { display: none; }

/* ── Usage meter ─────────────────────────────────────────────────────── */
.usage-meter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  text-decoration: none; transition: border-color 160ms ease;
}
.usage-meter:hover { border-color: var(--blue-border); }
.um-bar { display: block; width: 56px; height: 5px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.um-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--blue); transition: width 520ms cubic-bezier(.2,.8,.2,1), background 300ms ease; }
.um-bar i.low { background: var(--amber); }
.um-text { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════════════
   v36 — DESIGN-4 applied INSIDE the product.
   The landing page already reads premium; the logged-in surfaces did not.
   This brings Cluely's structural rules inward: hairline borders instead of
   shadows, Frost tint for the first band, 12/24px card radii, compact
   density, one accent — plus the motion the inside was missing entirely.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --frost: #f3f8ff;            /* atmospheric bridge below the hero */
  --vapor: #edeef2;            /* alternate surface */
  --bone: #e4e4e7;             /* the structural hairline */
  --carbon: #18181b;
  --steel: #5e616e;
  --signal: #3c83f6;
  --ease-out: cubic-bezier(.2,.8,.2,1);
}

/* Cluely leans on borders, not shadows. Soften every interior surface. */
.dash-card, .settings-card, .vcard, .wv-card, .persona-card, .session-row {
  box-shadow: none;
  border: 1px solid var(--bone);
  border-radius: 12px;
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out), background 200ms ease;
}
.dash-card:hover, .wv-card:hover, .persona-card:hover, .session-row:hover {
  border-color: rgba(60,131,246,.45);
  transform: translateY(-1px);
}
.dash-card { padding: 24px; }
.settings-card { border-radius: 24px; }

/* First band after any hero carries the atmospheric tint downward. */
.dash-hero { background: var(--frost); border: 1px solid var(--bone); box-shadow: none; }

/* Interior pages fade up on load instead of appearing. */
.settings-wrap, .dash-wrap, main.prose-wrap {
  animation: pageIn 420ms var(--ease-out) both;
}
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Cards stagger in — the inside felt static because nothing ever moved. */
.dash-grid > *, .card-row > *, .session-list > * {
  animation: cardIn 460ms var(--ease-out) both;
}
.dash-grid > *:nth-child(2), .card-row > *:nth-child(2) { animation-delay: 60ms; }
.dash-grid > *:nth-child(3), .card-row > *:nth-child(3) { animation-delay: 120ms; }
.dash-grid > *:nth-child(4) { animation-delay: 180ms; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Settings rows respond to the pointer. */
.settings-row { transition: background 180ms ease; border-radius: 10px; margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
.settings-row:hover { background: var(--frost); }

/* ── The morphing loader ──────────────────────────────────────────────
   One element that spins while loading, then collapses into a filled dot
   and fades — so the wait resolves into the content instead of being
   replaced by it. Used anywhere we say "reading up". */
.morph-load {
  display: grid; place-items: center; padding: 34px 0;
}
.morph-load i {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--bone); border-top-color: var(--signal);
  animation: morphSpin 720ms linear infinite;
}
.morph-load.done i {
  animation: morphSettle 420ms var(--ease-out) forwards;
}
@keyframes morphSpin { to { transform: rotate(360deg); } }
@keyframes morphSettle {
  0%   { transform: rotate(300deg) scale(1); border-color: var(--bone); border-top-color: var(--signal); }
  60%  { transform: rotate(360deg) scale(.45); border-color: var(--signal); }
  100% { transform: rotate(360deg) scale(0); border-color: var(--signal); opacity: 0; }
}
.morph-load span { margin-top: 12px; font-size: 12.5px; color: var(--steel); }
.morph-load.done span { opacity: 0; transition: opacity 200ms ease; }

@media (prefers-reduced-motion: reduce) {
  .settings-wrap, .dash-wrap, main.prose-wrap,
  .dash-grid > *, .card-row > *, .session-list > * { animation: none; }
  .morph-load i { animation: none; }
}

/* Mobile: the home plans band jittered because cards resize during the
   reveal. Pin the transform origin and stop layout shifting mid-animation. */
@media (max-width: 760px) {
  .tier-grid { contain: layout paint; }
  .tier-card { will-change: auto; transform: none !important; }
  .reveal { will-change: opacity; }
}
