/* ═══════════════════════════════════════════════════════════
   WONDROVA — design system, v2
   Serious, near-monochrome, editorial. Black canvas, one cool
   accent used sparingly, large readable type. Inspired by the
   calm of a well-set document rather than a neon dashboard.
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink: #0A0A0C;
  --ink-2: #0F0F12;
  --surface: #141418;
  --surface-2: #1A1A20;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);

  --text: #F2F2F4;
  --text-dim: #B4B6BE;
  --text-faint: #7C7E88;

  /* One restrained accent. Everything else is greyscale. */
  --accent: #7AA0FF;
  --accent-soft: #A9C0FF;
  --accent-dim: #4C6DC4;
  --accent-glow: rgba(122, 160, 255, 0.16);
  --accent-wash: rgba(122, 160, 255, 0.09);

  --good: #57C98A;
  --warn: #E5B567;
  --bad: #E86F7B;

  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 24px;
  --shadow: 0 20px 50px -26px rgba(0, 0, 0, 0.8);
  --font-h: 'Inter', system-ui, -apple-system, sans-serif;
  --font-b: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, monospace;
  --max: 1120px;
}

/* Both worlds share the same serious palette. The theme hook is
   kept so per-section accents remain a one-line change later. */
body.theme-launch { --accent: #7AA0FF; }

* { box-sizing: border-box; margin: 0; padding: 0; }

/* The `hidden` attribute must always win over any display rule. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 17.5px;
  line-height: 1.72;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { font-family: var(--font-h); line-height: 1.16; letter-spacing: -0.021em; font-weight: 650; }
p { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--accent-soft); text-underline-offset: 3px; }

::selection { background: var(--accent-wash); }

/* Faint fixed vignette instead of loud grain — keeps the canvas calm. */
#grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 90% at 50% -10%, rgba(122,160,255,0.05), transparent 55%);
}

/* ── header ───────────────────────────────────────────── */
#topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 18px;
  padding: 14px max(22px, calc((100vw - var(--max)) / 2));
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--text); color: var(--ink);
  font-weight: 800; font-size: 16px; letter-spacing: -0.03em;
}
.brand-name { font-weight: 650; font-size: 17.5px; letter-spacing: -0.02em; }
.topnav { display: flex; gap: 2px; margin-left: 6px; }
.tab {
  padding: 8px 15px; border-radius: 9px; color: var(--text-faint); font-size: 15px; font-weight: 550;
  display: flex; align-items: center; gap: 7px; transition: 0.16s;
}
.tab:hover { color: var(--text); background: var(--surface); }
.tab.active { color: var(--text); background: var(--surface-2); }
.topright { margin-left: auto; display: flex; align-items: center; gap: 11px; }
.pill {
  display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600;
}
.pill-xp { color: var(--accent-soft); }
.pill-sep { width: 1px; height: 13px; background: var(--line); }
.pill-streak { color: var(--text-dim); }

/* ── buttons ──────────────────────────────────────────── */
.btn {
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15.5px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  transition: 0.16s; white-space: nowrap;
}
.btn:hover { background: var(--surface); border-color: rgba(255,255,255,0.18); }
.btn:active { transform: translateY(1px); }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.btn.wide { width: 100%; }
.btn.ghost { background: transparent; color: var(--text-dim); }
.btn.ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); background: var(--surface); }
/* Primary = a clean light key button, the one bright thing on the page. */
.btn.primary, .btn.amber, .btn.accent {
  background: var(--text); border-color: transparent; color: var(--ink); font-weight: 650;
}
.btn.primary:hover, .btn.amber:hover, .btn.accent:hover { background: #fff; transform: translateY(-1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── views ────────────────────────────────────────────── */
.view { display: none; position: relative; z-index: 2; }
.view.active { display: block; animation: fade 0.4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── home ─────────────────────────────────────────────── */
.home-glow { display: none; }
.hero { max-width: 820px; margin: 0 auto; padding: 104px 24px 46px; text-align: center; }
.badge-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.mini-badge {
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-dim);
}
.mini-badge.alt { color: var(--good); border-color: rgba(87, 201, 138, 0.3); background: rgba(87, 201, 138, 0.06); }
.hero-title { font-size: clamp(46px, 8vw, 84px); letter-spacing: -0.04em; font-weight: 700; line-height: 1.02; }
.hero-title em { font-style: normal; color: var(--text); position: relative; }
.hero-title em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 3px;
  background: var(--accent); border-radius: 2px; opacity: 0.9;
}
.hero-sub { margin: 30px auto 0; max-width: 660px; color: var(--text-dim); font-size: 19.5px; line-height: 1.62; }
.hero-free { margin-top: 22px; color: var(--text-faint); font-weight: 500; font-size: 15px; }

.doors {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px;
  max-width: var(--max); margin: 0 auto; padding: 26px 24px 46px;
}
.door {
  position: relative; overflow: hidden; text-align: left; padding: 34px;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: 0.22s ease; color: var(--text);
}
.door:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.22); box-shadow: var(--shadow); }
.door-glow { display: none; }
.door-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.door-emoji { display: none; }
.door-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); }
.door-kicker::before { content: ''; display: inline-block; width: 22px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 10px; }
.door h2 { font-size: 29px; margin-bottom: 13px; letter-spacing: -0.03em; }
.door p { color: var(--text-dim); font-size: 16px; }
.door-list { list-style: none; margin: 22px 0; display: grid; gap: 10px; }
.door-list li { position: relative; padding-left: 24px; font-size: 15.5px; color: var(--text-dim); }
.door-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.door-cta { font-weight: 600; font-size: 16px; display: inline-flex; gap: 8px; color: var(--text); }
.door:hover .door-cta b { display: inline-block; animation: nudge 0.7s infinite; }
@keyframes nudge { 0%,100% { transform: none; } 50% { transform: translateX(4px); } }

.strip {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  max-width: var(--max); margin: 0 auto 96px; padding: 0 24px;
}
.strip div {
  flex: 1 1 150px; text-align: center; padding: 24px 16px; border-radius: var(--r);
  background: var(--ink-2); border: 1px solid var(--line-soft);
}
.strip b { display: block; font-size: 34px; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.strip span { font-size: 13px; color: var(--text-faint); }

/* ── stage start (learn + business suite entry) ────────── */
.stage-start { max-width: 780px; margin: 0 auto; padding: 92px 24px 96px; text-align: center; }
.eyebrow, .eyebrow.launch {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-dim); letter-spacing: 0.02em;
  margin-bottom: 26px;
}
.eyebrow::before, .eyebrow.launch::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.stage-start h1 { font-size: clamp(34px, 5.6vw, 54px); letter-spacing: -0.035em; }
.stage-sub { margin: 18px auto 36px; max-width: 580px; color: var(--text-dim); font-size: 18px; }

.ask { display: flex; gap: 10px; max-width: 660px; margin: 0 auto; }
.ask input {
  flex: 1; padding: 18px 22px; border-radius: 13px; font-size: 17px;
  background: var(--surface); border: 1px solid var(--line); outline: none; transition: 0.18s;
}
.ask input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.ask input::placeholder { color: var(--text-faint); }
.ask.small input { padding: 13px 16px; font-size: 15.5px; }

.opts { display: flex; gap: 16px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.opts label { font-size: 13px; color: var(--text-faint); display: flex; align-items: center; gap: 8px; }
.opts select {
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 12px; font-size: 14px; color: var(--text); outline: none;
}
.opts select:focus { border-color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 34px; }
.chip {
  padding: 9px 16px; border-radius: 999px; font-size: 14px; color: var(--text-dim);
  background: var(--ink-2); border: 1px solid var(--line-soft); transition: 0.16s;
}
.chip:hover { color: var(--text); border-color: var(--accent); background: var(--surface); }

.library { margin-top: 52px; text-align: left; }
.library h3 { font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 14px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.lib-item {
  text-align: left; padding: 16px; border-radius: var(--r-sm); background: var(--ink-2);
  border: 1px solid var(--line-soft); transition: 0.16s; color: var(--text);
}
.lib-item:hover { border-color: var(--accent); }
.lib-item b { display: block; font-size: 15px; font-weight: 600; }
.lib-item span { font-size: 12.5px; color: var(--text-faint); }

.quick-domain { margin-top: 74px; padding-top: 40px; border-top: 1px solid var(--line-soft); }
.quick-domain h3 { font-size: 17px; margin-bottom: 18px; color: var(--text-dim); font-weight: 550; }

/* ── loading ──────────────────────────────────────────── */
.loading { max-width: 520px; margin: 0 auto; padding: 140px 24px; text-align: center; }
.loader-orb, .loader-orb.amber {
  width: 46px; height: 46px; margin: 0 auto 30px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading h2 { font-size: 25px; font-weight: 600; }
.loading p { color: var(--text-dim); margin-top: 12px; min-height: 26px; font-size: 16px; }
.loader-bar, .loader-bar.amber { margin: 32px auto 0; width: 220px; height: 2px; border-radius: 3px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 40%; border-radius: 3px; background: var(--accent); animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ── deck (lesson screens) ────────────────────────────── */
.deck { max-width: 1060px; margin: 0 auto; padding: 30px 24px 72px; }
.deck-hook { font-size: 16.5px; color: var(--text-dim); margin: 2px 0 22px; max-width: 72ch; line-height: 1.6; }
.deck-foot { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.deck-foot .askbox { margin-top: 0; padding-top: 0; border-top: none; }
.deck-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.deck-title { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 220px; }
.deck-title span:empty { display: none; }
.deck-title span { font-size: 20px; }
.deck-title h2 { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; }
.deck-meta { display: flex; gap: 8px; }
.tag {
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-dim); text-transform: lowercase;
}
.rail { display: flex; gap: 5px; margin-bottom: 28px; }
.rail i {
  flex: 1; height: 3px; border-radius: 3px; background: var(--line); transition: 0.3s; cursor: pointer;
}
.rail i.done { background: var(--accent-dim); }
.rail i.now { background: var(--accent); }

.screens { position: relative; min-height: 380px; }
.screen { display: none; animation: slideIn 0.42s cubic-bezier(0.2, 0.8, 0.2, 1); }
.screen.active { display: block; }
@keyframes slideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* moodboard — every lesson screen shown at once, masonry columns */
.screens.moodboard { min-height: 0; column-count: 2; column-gap: 14px; }
.screens.moodboard > .card {
  break-inside: avoid; margin: 0 0 14px; width: 100%;
  animation: slideIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.screens.moodboard .card { padding: 24px; box-shadow: 0 12px 30px -22px rgba(0,0,0,0.7); }
.screens.moodboard .card h3 { font-size: 22px; margin-bottom: 14px; }
.screens.moodboard .figure { margin-bottom: 18px; }
.screens.moodboard .card p { font-size: 15.5px; }
.screens.moodboard .card .lead { font-size: 18px; }
@media (max-width: 760px) { .screens.moodboard { column-count: 1; } }

/* key-terms screen */
.termlist { display: grid; gap: 9px; margin-top: 6px; }
.term { padding: 13px 15px; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--line-soft); border-left: 2px solid var(--accent); }
.term b { display: block; font-size: 15.5px; color: var(--text); font-weight: 650; }
.term span { display: block; font-size: 14.5px; color: var(--text-dim); margin-top: 3px; line-height: 1.55; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 38px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 14px; }
.card-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.card h3 { font-size: 30px; margin-bottom: 18px; letter-spacing: -0.03em; font-weight: 650; }
.card h4 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 17px; line-height: 1.72; }
.card .lead { font-size: 21px; color: var(--text); line-height: 1.55; letter-spacing: -0.01em; }
.caption { font-size: 13.5px; color: var(--text-faint); margin-top: 18px; font-style: italic; }

/* ── concept figure (the illustration on every screen) ── */
.figure {
  position: relative; margin: 0 0 26px; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 140% at 12% -10%, rgba(122,160,255,0.10), transparent 55%),
    linear-gradient(180deg, #101014, #0C0C10);
}
.figure svg { display: block; width: 100%; height: auto; }
.figure-cap {
  position: absolute; left: 14px; bottom: 11px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint);
}
.figure.slim { margin-bottom: 18px; }

.keypoints { list-style: none; margin-top: 24px; display: grid; gap: 10px; counter-reset: kp; }
.keypoints li {
  position: relative; padding: 15px 16px 15px 50px; border-radius: var(--r-sm);
  background: var(--ink-2); border: 1px solid var(--line-soft); font-size: 16px; color: var(--text-dim);
}
.keypoints li::before {
  content: counter(kp); counter-increment: kp; position: absolute; left: 15px; top: 14px;
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: var(--accent-wash); border: 1px solid var(--accent-dim); color: var(--accent-soft); font-size: 11.5px; font-weight: 700;
}

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 8px; }
.stat { padding: 22px 20px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line-soft); }
.stat b { display: block; font-size: 36px; font-weight: 700; color: var(--text); line-height: 1; letter-spacing: -0.03em; }
.stat .lbl { display: block; margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.stat .note { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-faint); }

.bars { display: grid; gap: 12px; margin-top: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(72px, 140px) 1fr auto; gap: 14px; align-items: center; }
.bar-row .lbl { font-size: 14px; color: var(--text-dim); text-align: right; }
.bar-track { height: 26px; border-radius: 7px; background: var(--ink-2); overflow: hidden; border: 1px solid var(--line-soft); }
.bar-fill {
  display: block; height: 100%; border-radius: 6px; width: 0;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bar-row .val { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); min-width: 44px; }
.donut-wrap { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.donut { width: 168px; height: 168px; flex-shrink: 0; }
.legend { display: grid; gap: 9px; flex: 1; min-width: 180px; }
.legend div { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-dim); }
.legend i { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.legend b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 170px; margin-top: 8px; }

.timeline { position: relative; margin-top: 14px; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item::before {
  content: ''; position: absolute; left: -26px; top: 5px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--accent);
}
.tl-when { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-soft); }
.tl-item h5 { font-size: 18px; margin: 4px 0 5px; font-weight: 600; }
.tl-item p { font-size: 15.5px; color: var(--text-dim); }

.cmp { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15.5px; }
.cmp th { text-align: left; padding: 12px 14px; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); border-bottom: 1px solid var(--line); }
.cmp td { padding: 15px 14px; border-bottom: 1px solid var(--line-soft); color: var(--text-dim); vertical-align: top; }
.cmp td:first-child { color: var(--text); font-weight: 600; width: 26%; }

.steps { display: grid; gap: 12px; margin-top: 12px; }
.step-item {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px;
  border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line-soft);
}
.step-num {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-wash); border: 1px solid var(--accent-dim); color: var(--accent-soft);
  font-weight: 700; font-size: 16px;
}
.step-item h5 { font-size: 17px; margin-bottom: 4px; font-weight: 600; }
.step-item p { font-size: 15.5px; color: var(--text-dim); }

.mapping { display: grid; gap: 10px; margin-top: 18px; }
.map-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center;
  padding: 16px 18px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line-soft);
}
.map-row .arrow { color: var(--accent); font-size: 18px; }
.map-row div { font-size: 15.5px; }
.map-row .right { color: var(--text-dim); }

.myth { padding: 20px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line-soft); }
.myth + .myth { margin-top: 12px; }
.myth .m { color: var(--text); font-weight: 600; font-size: 16px; }
.myth .m::before { content: '✕'; color: var(--bad); font-weight: 700; margin-right: 9px; }
.myth .t { color: var(--text-dim); font-size: 15.5px; margin-top: 9px; padding-left: 25px; }
.myth .t::before { content: '✓'; color: var(--good); font-weight: 700; margin-left: -25px; margin-right: 9px; }

.layers { display: grid; gap: 10px; margin-top: 12px; }
.layer { padding: 16px 20px; border-radius: var(--r-sm); border: 1px solid var(--line-soft); background: var(--ink-2); border-left: 2px solid var(--accent) !important; }
.layer h5 { font-size: 16.5px; margin-bottom: 5px; font-weight: 600; }
.layer p { font-size: 15px; color: var(--text-dim); }

.quote-block { padding: 8px 0 0; }
.quote-block blockquote { font-size: 25px; line-height: 1.45; color: var(--text); border-left: 2px solid var(--accent); padding-left: 24px; font-weight: 500; letter-spacing: -0.02em; }
.quote-block cite { display: block; margin-top: 16px; font-style: normal; color: var(--text-faint); font-size: 14.5px; }

.askbox { margin-top: 22px; display: flex; gap: 9px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.askbox input { flex: 1; padding: 13px 16px; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--line); outline: none; font-size: 15.5px; }
.askbox input:focus { border-color: var(--accent); }
.answer { margin-top: 16px; padding: 18px; border-radius: var(--r); background: var(--accent-wash); border: 1px solid var(--accent-dim); font-size: 15.5px; color: var(--text); }

.deck-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 30px; }
.count { font-size: 14px; color: var(--text-faint); font-variant-numeric: tabular-nums; }

/* ── quiz ─────────────────────────────────────────────── */
.quiz { max-width: 720px; margin: 0 auto; padding: 54px 24px 88px; }
.quiz-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.quiz-progress { display: flex; gap: 5px; }
.quiz-progress i { width: 28px; height: 4px; border-radius: 4px; background: var(--line); }
.quiz-progress i.right { background: var(--good); }
.quiz-progress i.wrong { background: var(--bad); }
.quiz-progress i.now { background: var(--accent); }
.quiz-score { font-size: 15px; font-weight: 600; color: var(--accent-soft); }
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 38px; box-shadow: var(--shadow); }
.q-num { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.q-text { font-size: 26px; margin: 14px 0 28px; line-height: 1.32; font-weight: 600; letter-spacing: -0.02em; }
.options { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: flex-start; gap: 15px; padding: 18px 20px; text-align: left;
  border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line);
  transition: 0.14s; font-size: 16.5px; color: var(--text);
}
.opt:hover:not(:disabled) { border-color: var(--accent); background: var(--surface); }
.opt .key {
  width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--text-dim);
}
.opt.correct { border-color: var(--good); background: rgba(87, 201, 138, 0.09); }
.opt.correct .key { background: var(--good); color: #062a18; }
.opt.wrong { border-color: var(--bad); background: rgba(232, 111, 123, 0.09); }
.opt.wrong .key { background: var(--bad); color: #340910; }
.opt:disabled { cursor: default; }
.feedback { margin-top: 22px; padding: 20px; border-radius: var(--r); animation: fade 0.3s; }
.feedback.right { background: rgba(87, 201, 138, 0.08); border: 1px solid rgba(87, 201, 138, 0.3); }
.feedback.wrong { background: rgba(232, 111, 123, 0.07); border: 1px solid rgba(232, 111, 123, 0.28); }
.feedback b { display: block; margin-bottom: 7px; font-size: 16px; }
.feedback p { font-size: 15.5px; color: var(--text-dim); }
.fun { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14.5px; color: var(--text-dim); }
.fun::before { content: 'Note — '; color: var(--accent-soft); font-weight: 600; }

/* ── results ──────────────────────────────────────────── */
.results { max-width: 700px; margin: 0 auto; padding: 74px 24px 96px; text-align: center; }
.score-ring { width: 176px; height: 176px; margin: 0 auto 28px; position: relative; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .num {
  position: absolute; inset: 0; display: grid; place-content: center;
  font-size: 44px; font-weight: 700; letter-spacing: -0.03em;
}
.results h1 { font-size: 40px; letter-spacing: -0.035em; }
.results .sub { color: var(--text-dim); margin: 14px 0 32px; font-size: 18px; }
.reward-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.reward { padding: 17px 24px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line-soft); }
.reward b { display: block; font-size: 27px; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.reward span { font-size: 12.5px; color: var(--text-faint); }
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 11px; margin-top: 16px; }
.next-item { text-align: left; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: 0.16s; color: var(--text); }
.next-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.next-item b { display: block; font-size: 15.5px; margin-bottom: 6px; }
.next-item span { font-size: 13.5px; color: var(--text-faint); }
.results-actions { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ── business suite board ─────────────────────────────── */
.board { display: grid; grid-template-columns: 272px 1fr; gap: 28px; max-width: 1240px; margin: 0 auto; padding: 28px 24px 88px; align-items: start; }
.board-side { position: sticky; top: 88px; display: grid; gap: 14px; }
.venture-card { padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.venture-label { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.venture-card h3 { font-size: 21px; margin: 8px 0 6px; letter-spacing: -0.02em; }
.venture-card p { font-size: 14px; color: var(--text-dim); }
.venture-domain { margin-top: 13px; padding: 10px 13px; border-radius: 9px; background: rgba(87, 201, 138, 0.08); border: 1px solid rgba(87, 201, 138, 0.28); font-size: 14px; font-weight: 600; color: var(--good); }
.stagenav { display: grid; gap: 3px; }
.stagenav button {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 9px;
  text-align: left; font-size: 15px; color: var(--text-dim); transition: 0.14s; border: 1px solid transparent;
}
.stagenav button:hover { background: var(--surface); color: var(--text); }
.stagenav button.active { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.stagenav button.done .dot { background: var(--good); border-color: var(--good); }
.stagenav .dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line); flex-shrink: 0; }
.stagenav button.active .dot { border-color: var(--accent); background: var(--accent); }

.board-main { min-height: 420px; display: grid; gap: 16px; scroll-margin-top: 96px; }
.board-main .card-kicker { color: var(--accent); }

.scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); gap: 12px; }
.dial { text-align: center; padding: 16px 10px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line-soft); }
.dial svg { width: 72px; height: 72px; }
.dial .v { font-size: 19px; font-weight: 700; }
.dial .l { font-size: 12px; color: var(--text-faint); margin-top: 6px; }

.killshot { padding: 22px; border-radius: var(--r); background: rgba(232, 111, 123, 0.06); border: 1px solid rgba(232, 111, 123, 0.28); }
.killshot .lbl { font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bad); margin-bottom: 9px; }
.killshot p { color: var(--text); font-size: 16.5px; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 11px; }
.mini { padding: 18px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line-soft); }
.mini h5 { font-size: 16px; margin-bottom: 6px; font-weight: 600; }
.mini p { font-size: 15px; color: var(--text-dim); }
.mini .meta { font-size: 13px; color: var(--text-faint); margin-top: 8px; }

.sev { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.sev.high { background: rgba(232, 111, 123, 0.14); color: var(--bad); }
.sev.medium { background: rgba(229, 181, 103, 0.14); color: var(--warn); }
.sev.low { background: rgba(87, 201, 138, 0.14); color: var(--good); }

.dom-row {
  display: flex; align-items: center; gap: 13px; padding: 15px 18px; border-radius: var(--r-sm);
  background: var(--ink-2); border: 1px solid var(--line-soft); flex-wrap: wrap;
}
.dom-row + .dom-row { margin-top: 8px; }
.dom-name { font-size: 16.5px; font-weight: 600; }
.dom-status { padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.dom-status.free { background: rgba(87, 201, 138, 0.14); color: var(--good); }
.dom-status.taken { background: rgba(232, 111, 123, 0.12); color: var(--bad); }
.dom-status.unknown { background: var(--surface-2); color: var(--text-faint); }
.dom-meta { font-size: 12.5px; color: var(--text-faint); margin-left: auto; }
.dom-buy { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; margin-top: 4px; }
.dom-buy a {
  padding: 6px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 600; text-decoration: none;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-dim);
}
.dom-buy a:hover { border-color: var(--accent); color: var(--accent-soft); }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.swatch { text-align: center; }
.swatch i { display: block; width: 64px; height: 64px; border-radius: 12px; border: 1px solid var(--line); }
.swatch b { display: block; font-size: 12.5px; margin-top: 7px; }
.swatch span { font-size: 11px; color: var(--text-faint); font-family: var(--mono); }

.checklist-phase { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.checklist-phase + .checklist-phase { margin-top: 11px; }
.cp-head { padding: 17px 20px; background: var(--surface-2); }
.cp-head h4 { font-size: 17px; }
.cp-head p { font-size: 13.5px; color: var(--text-faint); margin-top: 4px; }
.cp-task { display: flex; align-items: flex-start; gap: 13px; padding: 14px 20px; border-top: 1px solid var(--line-soft); }
.cp-task input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.cp-task .body { flex: 1; }
.cp-task b { font-size: 15px; font-weight: 600; }
.cp-task p { font-size: 14px; color: var(--text-dim); margin-top: 3px; }
.cp-task .cost { font-size: 12.5px; color: var(--text-faint); white-space: nowrap; }
.cp-task.done b, .cp-task.done p { text-decoration: line-through; opacity: 0.5; }

.stage-empty { text-align: center; padding: 72px 24px; }
.stage-empty h3 { font-size: 24px; margin-bottom: 12px; letter-spacing: -0.02em; }
.stage-empty p { color: var(--text-dim); max-width: 440px; margin: 0 auto 26px; font-size: 16.5px; }

/* ── pricing ──────────────────────────────────────────── */
.pricing-head { max-width: 720px; margin: 0 auto; padding: 84px 24px 32px; text-align: center; }
.pricing-head h1 { font-size: clamp(33px, 5vw, 48px); letter-spacing: -0.035em; }
.cycle-toggle { display: inline-flex; gap: 3px; padding: 4px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); margin-top: 10px; }
.cycle-toggle button { padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-dim); }
.cycle-toggle button.active { background: var(--surface-2); color: var(--text); }
.save { font-size: 11px; color: var(--good); margin-left: 5px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(252px, 1fr)); gap: 15px; max-width: var(--max); margin: 0 auto; padding: 28px 24px; align-items: start; }
.plan { position: relative; padding: 28px 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-dim), 0 24px 54px -30px var(--accent-glow); }
.plan-flag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.plan h3 { font-size: 22px; }
.plan .tagline { font-size: 14px; color: var(--text-faint); margin-top: 4px; }
.plan .price { font-size: 44px; font-weight: 700; margin: 20px 0 2px; letter-spacing: -0.04em; }
.plan .price small { font-size: 15px; color: var(--text-faint); font-weight: 500; }
.plan .per { font-size: 12.5px; color: var(--text-faint); min-height: 18px; }
.plan ul { list-style: none; margin: 22px 0; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--text-dim); }
.plan li::before { content: '—'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .btn { width: 100%; }

.addons { max-width: var(--max); margin: 34px auto 0; padding: 0 24px; }
.addons h2 { font-size: 23px; margin-bottom: 18px; text-align: center; }
.addon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 11px; }
.addon { padding: 20px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line-soft); }
.addon b { display: block; font-size: 15.5px; }
.addon .p { font-size: 14px; color: var(--accent-soft); font-weight: 600; margin: 5px 0 7px; }
.addon p { font-size: 13.5px; color: var(--text-faint); }

.faq-block { max-width: 760px; margin: 68px auto 96px; padding: 0 24px; display: grid; gap: 10px; }
.faq-item { padding: 20px 22px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line-soft); }
.faq-item b { display: block; font-size: 16.5px; margin-bottom: 7px; }
.faq-item p { font-size: 15.5px; color: var(--text-dim); }

/* ── modal ────────────────────────────────────────────── */
.modal-root { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 6, 0.8); backdrop-filter: blur(10px); animation: fade 0.2s; }
.modal {
  position: relative; width: min(660px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 38px; box-shadow: var(--shadow); animation: pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-x { position: absolute; top: 18px; right: 20px; font-size: 17px; color: var(--text-faint); }
.modal-x:hover { color: var(--text); }
.modal h2 { font-size: 28px; margin-bottom: 12px; letter-spacing: -0.03em; }
.modal > div > p { color: var(--text-dim); font-size: 16.5px; }
.paywall-plans { display: grid; gap: 11px; margin: 24px 0; }
.pw-plan {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); text-align: left; transition: 0.16s; width: 100%; color: var(--text);
}
.pw-plan:hover { border-color: var(--accent); }
.pw-plan.best { border-color: var(--accent); }
.pw-plan .info { flex: 1; }
.pw-plan b { display: block; font-size: 17px; }
.pw-plan span { font-size: 14px; color: var(--text-faint); }
.pw-plan .cost { font-size: 22px; font-weight: 700; white-space: nowrap; letter-spacing: -0.02em; }
.form-row { display: grid; gap: 10px; margin-top: 20px; }
.form-row input {
  padding: 15px 17px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); outline: none; font-size: 16px;
}
.form-row input:focus { border-color: var(--accent); }
.form-note { font-size: 14px; color: var(--text-faint); margin-top: 14px; text-align: center; }
.form-note a { cursor: pointer; }
.err { color: var(--bad); font-size: 14.5px; margin-top: 10px; }

/* ── toasts + confetti ────────────────────────────────── */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: grid; gap: 9px; }
.toast {
  padding: 14px 19px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow); animation: toastIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  max-width: 340px;
}
.toast.good { border-color: rgba(87, 201, 138, 0.45); }
.toast.bad { border-color: rgba(232, 111, 123, 0.45); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 250; display: none; }

.demo-note {
  padding: 13px 16px; border-radius: 10px; font-size: 14px;
  background: var(--accent-wash); border: 1px solid var(--accent-dim); color: var(--accent-soft);
}

/* ── market advisor (bottom-left chatbot) ─────────────── */
.advisor-fab {
  position: fixed; left: 22px; bottom: 22px; z-index: 240;
  display: flex; align-items: center; gap: 9px; padding: 12px 18px;
  border-radius: 999px; background: var(--text); color: var(--ink);
  font-weight: 650; font-size: 14.5px; letter-spacing: -0.01em;
  box-shadow: 0 14px 34px -14px rgba(0,0,0,0.8); transition: 0.18s;
}
.advisor-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(0,0,0,0.85); }
.advisor-fab svg { color: var(--ink); }
.advisor-fab.open { opacity: 0; pointer-events: none; }

.advisor-panel {
  position: fixed; left: 22px; bottom: 22px; z-index: 241;
  width: 384px; max-width: calc(100vw - 32px);
  height: min(640px, calc(100vh - 44px));
  display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -24px rgba(0,0,0,0.85);
  overflow: hidden; animation: advIn 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes advIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

.advisor-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 15px 16px; border-bottom: 1px solid var(--line-soft); background: var(--surface);
}
.advisor-id { display: flex; align-items: center; gap: 11px; }
.advisor-id b { display: block; font-size: 15.5px; font-weight: 650; }
.advisor-id small { display: block; font-size: 12px; color: var(--text-faint); }
.advisor-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(87,201,138,0.2); flex-shrink: 0; }
.advisor-x { font-size: 20px; color: var(--text-faint); line-height: 1; padding: 4px; }
.advisor-x:hover { color: var(--text); }

.advisor-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.advisor-log::-webkit-scrollbar { width: 8px; }
.advisor-log::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

.ad-msg { max-width: 100%; font-size: 14.5px; line-height: 1.6; animation: fade 0.3s ease; }
.ad-msg.me {
  align-self: flex-end; max-width: 84%; padding: 11px 15px; border-radius: 14px 14px 4px 14px;
  background: var(--accent-wash); border: 1px solid var(--accent-dim); color: var(--text);
}
.ad-msg.bot { align-self: flex-start; max-width: 100%; color: var(--text-dim); }
.ad-msg.bot > p { color: var(--text-dim); }
.ad-err { color: var(--bad); }

.ad-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.ad-chip {
  padding: 7px 13px; border-radius: 999px; font-size: 13px; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--line-soft); transition: 0.15s;
}
.ad-chip:hover { color: var(--text); border-color: var(--accent); }

.ad-typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.ad-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); animation: adBlink 1.2s infinite; }
.ad-typing i:nth-child(2) { animation-delay: 0.18s; }
.ad-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes adBlink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

/* the structured brief — a compact stack of little "windows" */
.ad-brief { display: flex; flex-direction: column; gap: 12px; }
.ad-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.ad-thesis { font-size: 16px; line-height: 1.5; color: var(--text); font-weight: 500; letter-spacing: -0.01em; }
.ad-facts { display: grid; gap: 8px; }
.ad-fact {
  padding: 11px 13px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-soft);
}
.ad-fact b { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 3px; }
.ad-fact span { font-size: 14px; color: var(--text-dim); line-height: 1.5; }

.ad-section { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-top: 6px; }
.ad-gap {
  padding: 10px 13px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent-dim);
}
.ad-gap b { display: block; font-size: 14px; color: var(--text); }
.ad-gap span { display: block; font-size: 13px; color: var(--text-faint); margin-top: 2px; line-height: 1.5; }

.ad-idea { padding: 13px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.ad-idea-h { display: flex; align-items: center; justify-content: space-between; }
.ad-idea-h b { font-size: 15px; color: var(--text); }
.ad-idea > p { font-size: 14px; color: var(--text-dim); margin-top: 4px; line-height: 1.5; }
.ad-why { display: block; font-size: 12.5px; color: var(--text-faint); margin-top: 6px; font-style: italic; }
.ad-build {
  margin-top: 11px; width: 100%; padding: 9px 12px; border-radius: 9px; font-size: 13px; font-weight: 600;
  background: var(--accent-wash); border: 1px solid var(--accent-dim); color: var(--accent-soft); transition: 0.15s;
}
.ad-build:hover { background: rgba(122,160,255,0.16); color: var(--text); }

.ad-closing { font-size: 14px; color: var(--text); font-weight: 500; padding: 11px 13px; border-radius: 10px; background: var(--accent-wash); border: 1px solid var(--accent-dim); }
.ad-run {
  margin-top: 4px; width: 100%; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 650;
  background: var(--text); color: var(--ink); transition: 0.15s;
}
.ad-run:hover { background: #fff; }

.advisor-input { display: flex; gap: 8px; padding: 13px 14px; border-top: 1px solid var(--line-soft); background: var(--surface); }
.advisor-input input {
  flex: 1; padding: 11px 14px; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--line);
  outline: none; font-size: 14.5px;
}
.advisor-input input:focus { border-color: var(--accent); }
.advisor-send {
  width: 42px; display: grid; place-items: center; border-radius: 10px; flex-shrink: 0;
  background: var(--text); color: var(--ink); transition: 0.15s;
}
.advisor-send:hover { background: #fff; }

@media (max-width: 520px) {
  .advisor-panel { left: 12px; right: 12px; bottom: 12px; width: auto; height: min(76vh, 620px); }
  .advisor-fab { left: 14px; bottom: 14px; padding: 14px; }
  .advisor-fab span { display: none; }
}

/* shared brief group wrappers (used by panel + homepage) */
.ad-gaps { display: grid; gap: 10px; }
.ad-ideas { display: grid; gap: 11px; }

/* ── homepage = Market Advisor ────────────────────────── */
.advisor-home { max-width: 860px; margin: 0 auto; padding: 66px 24px 110px; text-align: center; }
.ah-visual { display: flex; justify-content: center; margin-bottom: 6px; }
.ah-visual svg { max-width: 220px; height: auto; }
.advisor-home .badge-row { margin-bottom: 22px; }
.ah-title { font-size: clamp(42px, 7vw, 70px); letter-spacing: -0.045em; font-weight: 700; line-height: 1.02; }
.ah-sub { margin: 20px auto 34px; max-width: 580px; color: var(--text-dim); font-size: 18.5px; line-height: 1.6; }
.advisor-home .ask { max-width: 620px; }
.ah-chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 18px; }
.ah-chips .chip { font-size: 13.5px; }
.ah-secondary { margin-top: 42px; font-size: 14.5px; color: var(--text-faint); }
.ah-secondary a { color: var(--text-dim); cursor: pointer; font-weight: 550; }
.ah-secondary a:hover { color: var(--text); }
.ah-secondary span { margin: 0 8px; opacity: 0.5; }

.ah-result { margin-top: 38px; text-align: left; }
.ah-result:empty { margin: 0; }
.ah-loading { display: flex; align-items: center; gap: 12px; justify-content: center; color: var(--text-dim); padding: 26px; font-size: 15px; }
.ah-spin { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
.ah-err { color: var(--bad); text-align: center; }
.ah-demo { text-align: center; color: var(--text-faint); font-size: 13px; margin-top: 14px; }

/* wide brief layout on the homepage (panel stays single-column) */
.ah-result .ad-brief {
  gap: 16px; padding: 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ah-result .ad-thesis { font-size: 23px; line-height: 1.4; letter-spacing: -0.02em; }
.ah-result .ad-facts { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.ah-result .ad-gaps { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.ah-result .ad-ideas { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ah-result .ad-section { font-size: 13px; margin-top: 12px; }
.ah-result .ad-run { max-width: 440px; margin: 8px auto 0; }

/* ── accessibility + interaction polish ───────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
button:focus-visible, .btn:focus-visible, .chip:focus-visible, .tab:focus-visible,
.opt:focus-visible, .lib-item:focus-visible, .next-item:focus-visible, .pw-plan:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
input:focus-visible, select:focus-visible { outline: none; }

/* stats/cards lift a touch on hover — small reward for exploring */
.stat, .mini { transition: border-color 0.16s, transform 0.16s; }
.stat:hover, .mini:hover { border-color: var(--line); transform: translateY(-2px); }

/* available domains get a quiet green edge so they read as "go" */
.dom-row:has(.dom-status.free) { border-left: 2px solid rgba(87, 201, 138, 0.55); }

/* keep long domain buy-rows tidy */
.dom-buy a { transition: 0.14s; }

/* the "Ask about this screen" answer streams in gently */
.answer { animation: fade 0.3s ease; }

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .board { grid-template-columns: 1fr; }
  .board-side { position: static; }
  .stagenav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; }
  .stagenav button { white-space: nowrap; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .hero { padding: 64px 20px 34px; }
  .card { padding: 24px; }
  .card h3 { font-size: 25px; }
  .q-card { padding: 24px; }
  .q-text { font-size: 22px; }
  #topbar { padding: 11px 14px; gap: 8px; }
  .brand-name { display: none; }
  .topnav { margin-left: 0; }
  .tab { padding: 7px 11px; font-size: 14px; gap: 5px; }
  .topright { gap: 7px; }
  .btn.sm { padding: 7px 12px; font-size: 13.5px; }
  .pill { padding: 6px 11px; font-size: 12.5px; gap: 8px; }
  .map-row { grid-template-columns: 1fr; gap: 7px; }
  .map-row .arrow { display: none; }
  .bar-row { grid-template-columns: 1fr; gap: 5px; }
  .bar-row .lbl { text-align: left; }
  .deck-nav .btn { flex: 1; }
  .modal { padding: 28px 22px; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}
/* ── website builder preview ──────────────────────────── */
.preview-frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.preview-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.preview-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.preview-bar span { margin-left: 12px; font-size: 12.5px; color: var(--text-faint); font-family: var(--mono); }
.site-preview { width: 100%; height: 600px; border: 0; display: block; background: #0b0d14; }
@media (max-width: 640px) { .site-preview { height: 460px; } }

/* ── scroll-reveal: draw the eye with motion, never colour ─ */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .screens.moodboard > .card,
    .board-main > .card,
    .board-main > .figure,
    .ah-result .ad-fact,
    .ah-result .ad-idea,
    .ah-result .ad-gap {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 2% entry 28%;
    }
    @keyframes reveal-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
