/* =========================================================
   POD VIBE — DESIGN SYSTEM
   Direction: "Signal in the noise" — a dark broadcast-console
   aesthetic. The waveform is the brand's native material: it
   shows up in the hero, as loading state, as the podcast
   timeline, and as the texture behind score rings.
   Palette: near-black indigo base, violet→teal signal gradient,
   amber for "needs attention", coral for peak/hot moments.
   ========================================================= */

:root, [data-theme="dark"]{
  --bg:            #0a0b12;
  --bg-raised:     #0e1019;
  --surface:       rgba(255,255,255,0.045);
  --surface-hi:    rgba(255,255,255,0.075);
  --border:        rgba(255,255,255,0.09);
  --border-hi:     rgba(255,255,255,0.16);
  --text:          #f2f2f8;
  --text-dim:      #a6a6bd;
  --text-faint:    #6b6b85;

  --violet:        #8b6bff;
  --violet-dim:    #6c4ff2;
  --teal:          #2ad6c9;
  --coral:         #ff6b6b;
  --amber:         #f5c242;
  --grey:          #6b7280;

  --grad-signal:   linear-gradient(120deg, #8b6bff 0%, #2ad6c9 100%);
  --grad-hot:      linear-gradient(120deg, #ff6b6b 0%, #f5c242 100%);
  --grad-atmo:     radial-gradient(60% 60% at 50% 0%, rgba(139,107,255,0.20), transparent 70%),
                    radial-gradient(50% 50% at 85% 15%, rgba(42,214,201,0.14), transparent 70%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 10px 30px rgba(0,0,0,0.35);
  --shadow-2: 0 20px 60px rgba(0,0,0,0.45);

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --sidebar-w: 244px;
  --sidebar-w-collapsed: 76px;
  --topbar-h: 64px;
  --bottomnav-h: 60px;
}

/* ---------- LIGHT THEME ---------- */
[data-theme="light"]{
  --bg:            #f5f5f8;
  --bg-raised:     #ffffff;
  --surface:       rgba(20,20,35,0.035);
  --surface-hi:    rgba(20,20,35,0.06);
  --border:        rgba(20,20,35,0.10);
  --border-hi:     rgba(20,20,35,0.18);
  --text:          #16161f;
  --text-dim:      #55556b;
  --text-faint:    #8a8aa0;
  --shadow-1: 0 1px 0 rgba(255,255,255,0.6) inset, 0 10px 30px rgba(20,20,40,0.08);
  --shadow-2: 0 20px 60px rgba(20,20,40,0.14);
}
[data-theme="light"] .best-card-inner{ background:var(--bg-raised); }
[data-theme="light"] .stage-row.active .mark{ opacity:1; }

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
  font-size:15px;
  line-height:1.5;
}
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:600; margin:0; letter-spacing:-0.01em; }
p{ margin:0; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button, input, textarea, select{ font-family:inherit; color:inherit; }
button{ cursor:pointer; }
::selection{ background:rgba(139,107,255,0.35); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}

:focus-visible{ outline:2px solid var(--teal); outline-offset:2px; border-radius:6px; }

/* ---------- scrollbar ---------- */
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{ background:rgba(255,255,255,0.12); border-radius:8px; }
::-webkit-scrollbar-thumb:hover{ background:rgba(255,255,255,0.2); }

/* =========================================================
   LAYOUT SHELL
   ========================================================= */
.shell{ display:flex; min-height:100vh; }

.sidebar{
  width:var(--sidebar-w);
  flex-shrink:0;
  background:var(--bg-raised);
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column;
  position:sticky;
  top:0; height:100vh;
  transition:width .22s ease;
  z-index:40;
}
.sidebar.collapsed{ width:var(--sidebar-w-collapsed); }
.sidebar-brand{
  display:flex; align-items:center; gap:10px;
  padding:20px 18px; border-bottom:1px solid var(--border);
  white-space:nowrap; overflow:hidden;
}
.brand-mark{
  width:32px; height:32px; border-radius:10px; flex-shrink:0;
  background:var(--grad-signal);
  display:flex; align-items:center; justify-content:center;
  font-size:16px;
}
.brand-name{ font-family:var(--font-display); font-weight:700; font-size:17px; }
.sidebar.collapsed .brand-name, .sidebar.collapsed .nav-label, .sidebar.collapsed .profile-meta{ display:none; }

.sidebar-nav{ flex:1; overflow-y:auto; padding:14px 10px; }
.nav-item{
  display:flex; align-items:center; gap:12px;
  padding:10px 12px; border-radius:var(--radius-sm);
  color:var(--text-dim); font-size:14px; font-weight:500;
  margin-bottom:2px; white-space:nowrap; overflow:hidden;
  transition:background .15s, color .15s;
}
.nav-item:hover{ background:var(--surface); color:var(--text); }
.nav-item.active{ background:var(--surface-hi); color:var(--text); box-shadow:inset 2px 0 0 var(--violet); }
.nav-icon{ width:18px; flex-shrink:0; display:flex; align-items:center; justify-content:center; }

.sidebar-footer{ border-top:1px solid var(--border); padding:14px; }
.profile-chip{ display:flex; align-items:center; gap:10px; padding:8px; border-radius:var(--radius-sm); }
.profile-chip:hover{ background:var(--surface); }
.avatar{
  width:32px; height:32px; border-radius:50%; flex-shrink:0;
  background:var(--grad-signal); display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:13px;
}
.profile-meta{ overflow:hidden; }
.profile-name{ font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.profile-role{ font-size:11.5px; color:var(--text-faint); }

.collapse-btn{
  margin-top:8px; width:100%; display:flex; align-items:center; justify-content:center;
  padding:8px; border-radius:var(--radius-sm); border:1px solid var(--border);
  background:transparent; color:var(--text-faint); font-size:13px;
}
.collapse-btn:hover{ color:var(--text); border-color:var(--border-hi); }

.main-col{ flex:1; min-width:0; display:flex; flex-direction:column; }

.topbar{
  height:var(--topbar-h); flex-shrink:0;
  display:flex; align-items:center; gap:14px;
  padding:0 22px; border-bottom:1px solid var(--border);
  background:rgba(10,11,18,0.7); backdrop-filter:blur(14px);
  position:sticky; top:0; z-index:30;
}
.icon-btn{
  width:36px; height:36px; border-radius:var(--radius-sm);
  display:flex; align-items:center; justify-content:center;
  background:transparent; border:1px solid transparent; color:var(--text-dim); font-size:16px;
  position:relative;
}
.icon-btn:hover{ background:var(--surface); color:var(--text); border-color:var(--border); }
.search-bar{
  flex:1; max-width:420px;
  display:flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:var(--radius-sm);
  background:var(--surface); border:1px solid var(--border);
  color:var(--text-faint); font-size:13.5px;
}
.search-bar:hover{ border-color:var(--border-hi); }
.kbd{
  margin-left:auto; font-family:var(--font-mono); font-size:11px;
  padding:2px 6px; border-radius:6px; border:1px solid var(--border); color:var(--text-faint);
}
.topbar-spacer{ flex:1; }
.btn-new-analysis{
  display:flex; align-items:center; gap:8px;
  padding:9px 16px; border-radius:999px; border:none;
  background:var(--grad-signal); color:#0a0b12; font-weight:700; font-size:13.5px;
  box-shadow:0 6px 20px rgba(139,107,255,0.28);
  white-space:nowrap;
}
.btn-new-analysis:hover{ filter:brightness(1.08); }
.notif-dot{ position:absolute; top:7px; right:7px; width:7px; height:7px; border-radius:50%; background:var(--coral); }

/* ---------------------------------------------------------
   Creator credit badge — sits at the top-right of the header,
   flows as a normal flex item (never fixed/overlapping), and
   shrinks gracefully on smaller screens.
--------------------------------------------------------- */
.creator-credit{
  display:flex; align-items:center; gap:7px;
  padding:6px 13px 6px 11px; border-radius:999px;
  background:var(--surface); border:1px solid var(--border);
  color:var(--text-dim); font-size:12.5px; font-weight:500;
  white-space:nowrap; flex-shrink:0; line-height:1.2;
  user-select:none; cursor:default;
  transition:border-color .2s ease, background .2s ease, color .2s ease;
  animation:cc-in .5s ease-out;
}
.creator-credit:hover{ border-color:var(--border-hi); color:var(--text); background:var(--surface-hi); }
.creator-credit .cc-dot{
  width:6px; height:6px; border-radius:50%; flex-shrink:0;
  background:var(--grad-signal);
}
.creator-credit .cc-name{ color:var(--text); font-weight:700; }
.creator-credit .cc-sep{ color:var(--text-faint); margin:0 1px; }
@keyframes cc-in{ from{ opacity:0; transform:translateY(-3px);} to{ opacity:1; transform:translateY(0);} }

.landing-nav{ flex-wrap:wrap; row-gap:10px; }
.landing-nav .nav-right{ display:flex; align-items:center; gap:12px; flex-shrink:0; flex-wrap:wrap; justify-content:flex-end; }

/* Wrapper is a no-op on roomy screens; the credit sits inline as
   the last (top-right) item next to the theme toggle. */
.topbar-credit-row{ display:contents; }

@media (max-width:880px){
  .creator-credit{ padding:5px 11px 5px 9px; font-size:11.5px; gap:6px; }
  .creator-credit .cc-dot{ width:5px; height:5px; }
}
@media (max-width:560px){
  .topbar{ padding:0 14px; gap:10px; }
  .landing-nav{ padding:16px 5%; }
  .landing-nav .links{ order:3; width:100%; justify-content:center; gap:18px; }
  .landing-nav .nav-right{ gap:8px; }
}
@media (max-width:480px){
  /* Give the credit its own row on very small phones instead of
     shrinking it into illegibility or letting it collide with the
     icon buttons — it stays full text, right-aligned, in-flow. */
  .topbar{ flex-wrap:wrap; height:auto; min-height:var(--topbar-h); padding:10px 14px; row-gap:8px; }
  .btn-new-analysis .ba-label{ display:none; }
  .btn-new-analysis{ padding:9px 12px; }
  .topbar-credit-row{ display:flex; flex-basis:100%; justify-content:flex-end; order:10; }
}

.page{ padding:28px 32px 60px; max-width:1320px; width:100%; margin:0 auto; }
.page-narrow{ max-width:920px; }

/* mobile drawer */
.sidebar-scrim{ display:none; }
@media (max-width: 880px){
  .sidebar{ position:fixed; left:0; top:0; transform:translateX(-100%); width:260px; }
  .sidebar.mobile-open{ transform:translateX(0); }
  .sidebar.collapsed{ width:260px; }
  .sidebar-scrim.open{ display:block; position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:35; }
  .search-bar{ display:none; }
  .page{ padding:18px 16px calc(48px + var(--bottomnav-h)); }
  .collapse-btn{ display:none; }
  .bottom-nav{ display:flex; }
}

.bottom-nav{
  display:none; position:fixed; left:0; right:0; bottom:0; height:var(--bottomnav-h); z-index:45;
  background:rgba(14,16,25,0.92); backdrop-filter:blur(14px); border-top:1px solid var(--border);
  align-items:stretch; justify-content:space-around;
}
[data-theme="light"] .bottom-nav{ background:rgba(255,255,255,0.92); }
.bottom-nav a, .bottom-nav button{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  background:none; border:none; color:var(--text-faint); font-size:10.5px; font-weight:600;
}
.bottom-nav a.active, .bottom-nav button.active{ color:var(--teal); }
.bottom-nav .bn-icon{ display:flex; align-items:center; justify-content:center; }

/* ---------------------------------------------------------
   Icon system support (icons.js) — tier dots, inline stars,
   h1 icon alignment, active/favorite states.
--------------------------------------------------------- */
.icon{ display:block; flex-shrink:0; }
.icon-btn .icon{ display:block; }
.icon-btn.is-active{ color:var(--amber, #f5a524); border-color:transparent; }
.inline-star{ color:var(--amber, #f5a524); vertical-align:-2px; }
.favorite-mark{ color:var(--amber, #f5a524); display:inline-flex; align-items:center; }
.h1-icon{ display:inline-flex; align-items:center; vertical-align:-3px; color:var(--violet); margin-right:2px; }
.tier-dot{ display:inline-block; vertical-align:-1px; }
.tier-dot-hot{ color:var(--coral, #ff6b6b); }
.tier-dot-high{ color:var(--success, #2ecc71); }
.tier-dot-medium{ color:var(--amber, #f5a524); }
.tier-dot-low{ color:var(--text-faint); }
.mark-current{ color:var(--violet); }

/* =========================================================
   PRIMITIVES
   ========================================================= */
.glass{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-1);
}
.card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:20px; }
.card:hover{ border-color:var(--border-hi); }
.section-title{ font-size:13px; text-transform:uppercase; letter-spacing:.09em; color:var(--text-faint); font-weight:600; margin-bottom:14px; }
.eyebrow{
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 12px; border-radius:999px; font-size:12px; font-weight:600;
  background:var(--surface); border:1px solid var(--border); color:var(--text-dim);
}
.grid{ display:grid; gap:18px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-5{ grid-template-columns:repeat(5,1fr); }
@media (max-width:1100px){ .grid-4{ grid-template-columns:repeat(2,1fr);} .grid-5{ grid-template-columns:repeat(3,1fr);} }
@media (max-width:760px){ .grid-2,.grid-3,.grid-4,.grid-5{ grid-template-columns:1fr; } }

.flex{ display:flex; }
.row{ display:flex; align-items:center; }
.between{ justify-content:space-between; }
.gap-6{gap:6px} .gap-8{gap:8px} .gap-10{gap:10px} .gap-12{gap:12px} .gap-16{gap:16px} .gap-20{gap:20px}
.wrap{ flex-wrap:wrap; }
.mt-4{margin-top:4px} .mt-6{margin-top:6px} .mt-8{margin-top:8px} .mt-10{margin-top:10px} .mt-12{margin-top:12px} .mt-14{margin-top:14px} .mt-16{margin-top:16px} .mt-20{margin-top:20px} .mt-24{margin-top:24px} .mt-28{margin-top:28px} .mt-32{margin-top:32px}
.mb-4{margin-bottom:4px} .mb-6{margin-bottom:6px} .mb-8{margin-bottom:8px} .mb-10{margin-bottom:10px} .mb-12{margin-bottom:12px} .mb-14{margin-bottom:14px} .mb-16{margin-bottom:16px} .mb-24{margin-bottom:24px}
.gap-4{gap:4px} .gap-14{gap:14px} .gap-24{gap:24px}
.muted{ color:var(--text-dim); }
.faint{ color:var(--text-faint); }
.small{ font-size:12.5px; }
.mono{ font-family:var(--font-mono); }
.bold{ font-weight:700; }
.text-center{ text-align:center; }
.w-full{ width:100%; }
.divider{ height:1px; background:var(--border); border:none; margin:18px 0; }
.pill{
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 10px; border-radius:999px; font-size:11px; font-weight:700;
  letter-spacing:.02em; text-transform:uppercase;
  background:var(--surface); border:1px solid var(--border); color:var(--text-dim);
}
.pill.hot{ background:rgba(255,107,107,0.12); color:#ff9b9b; border-color:rgba(255,107,107,0.3); }
.pill.high{ background:rgba(42,214,201,0.12); color:#7fe6dc; border-color:rgba(42,214,201,0.3); }
.pill.medium{ background:rgba(245,194,66,0.12); color:#f5d485; border-color:rgba(245,194,66,0.3); }
.pill.low{ background:rgba(107,114,128,0.16); color:#a7abb5; border-color:rgba(107,114,128,0.3); }
.pill.demo{ background:rgba(139,107,255,0.14); color:#c3b3ff; border-color:rgba(139,107,255,0.35); }

.tag{ padding:3px 9px; border-radius:999px; font-size:11.5px; background:var(--surface); border:1px solid var(--border); color:var(--text-dim); }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 18px; border-radius:var(--radius-sm); border:1px solid var(--border);
  background:var(--surface); color:var(--text); font-weight:600; font-size:13.5px;
  transition:all .15s;
}
.btn:hover{ border-color:var(--border-hi); background:var(--surface-hi); }
.btn-primary{ background:var(--grad-signal); border:none; color:#0a0b12; }
.btn-primary:hover{ filter:brightness(1.08); }
.btn-ghost{ background:transparent; border-color:transparent; color:var(--text-dim); }
.btn-ghost:hover{ background:var(--surface); color:var(--text); }
.btn-danger{ background:transparent; border-color:rgba(255,107,107,0.35); color:#ff9b9b; }
.btn-danger:hover{ background:rgba(255,107,107,0.1); }
.btn-sm{ padding:6px 12px; font-size:12.5px; }
.btn:disabled{ opacity:.45; cursor:not-allowed; }

.input, .textarea, .select{
  width:100%; padding:11px 14px; border-radius:var(--radius-sm);
  background:var(--bg-raised); border:1px solid var(--border); color:var(--text); font-size:14px;
}
.input:focus, .textarea:focus, .select:focus{ border-color:var(--violet); }
.textarea{ resize:vertical; min-height:80px; }
.input::placeholder{ color:var(--text-faint); }

.stat-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:18px 20px; }
.stat-value{ font-family:var(--font-display); font-size:30px; font-weight:700; }
.stat-label{ font-size:12.5px; color:var(--text-faint); margin-top:4px; }

/* score ring */
.score-ring{ position:relative; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.score-ring svg{ transform:rotate(-90deg); }
.score-ring .ring-num{ position:absolute; font-family:var(--font-display); font-weight:700; }

/* toasts */
.toast-root{ position:fixed; top:18px; right:18px; z-index:200; display:flex; flex-direction:column; gap:10px; }
.toast{
  min-width:260px; max-width:340px; padding:12px 16px; border-radius:var(--radius-sm);
  background:var(--bg-raised); border:1px solid var(--border-hi); box-shadow:var(--shadow-2);
  font-size:13.5px; animation:toastIn .2s ease;
}
@keyframes toastIn{ from{ opacity:0; transform:translateY(-8px);} to{ opacity:1; transform:translateY(0);} }

/* modal */
.modal-scrim{ position:fixed; inset:0; background:rgba(4,4,8,0.6); backdrop-filter:blur(4px); z-index:150; display:flex; align-items:flex-start; justify-content:center; padding:10vh 16px; }
.modal{ width:100%; max-width:560px; background:var(--bg-raised); border:1px solid var(--border-hi); border-radius:var(--radius-lg); box-shadow:var(--shadow-2); overflow:hidden; }
.modal-header{ padding:16px 20px; border-bottom:1px solid var(--border); }
.modal-body{ padding:16px 20px; max-height:60vh; overflow-y:auto; }
.modal-footer{ padding:14px 20px; border-top:1px solid var(--border); display:flex; justify-content:flex-end; gap:10px; }

/* =========================================================
   LANDING PAGE
   ========================================================= */
.landing{ min-height:100vh; background:var(--bg); position:relative; overflow-x:hidden; }
.landing-nav{ display:flex; align-items:center; justify-content:space-between; padding:22px 5%; position:relative; z-index:5; }
.landing-nav .links{ display:flex; gap:26px; font-size:14px; color:var(--text-dim); }
.landing-nav .links a:hover{ color:var(--text); }

.hero{ position:relative; padding:70px 5% 40px; text-align:center; overflow:hidden; }
.hero::before{ content:''; position:absolute; inset:0; background:var(--grad-atmo); pointer-events:none; z-index:0; }
.hero-inner{ position:relative; z-index:2; max-width:760px; margin:0 auto; }
.hero h1{ font-size:clamp(36px,6vw,64px); line-height:1.05; letter-spacing:-0.02em; }
.hero h1 .grad{ background:var(--grad-signal); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero p.sub{ font-size:17px; color:var(--text-dim); max-width:560px; margin:20px auto 0; }

.url-form{
  margin:32px auto 0; max-width:640px; display:flex; gap:8px;
  padding:8px; border-radius:999px; background:var(--surface); border:1px solid var(--border-hi);
}
.url-form input{ flex:1; background:transparent; border:none; padding:12px 16px; color:var(--text); font-size:14.5px; }
.url-form input:focus{ outline:none; }
.url-form button{ border-radius:999px; padding:12px 22px; }
.hero-actions{ margin-top:18px; display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.badge-row{ margin-top:34px; display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }

.waveform{ display:flex; align-items:flex-end; gap:3px; height:54px; }
.waveform .bar{ width:4px; border-radius:3px; background:var(--grad-signal); opacity:.55; animation:wf 1.4s ease-in-out infinite; }
@keyframes wf{ 0%,100%{ transform:scaleY(.3);} 50%{ transform:scaleY(1);} }

.section{ padding:70px 5%; max-width:1180px; margin:0 auto; }
.section-head{ text-align:center; max-width:600px; margin:0 auto 40px; }
.section-head h2{ font-size:clamp(26px,4vw,38px); }
.section-head p{ color:var(--text-dim); margin-top:12px; }

.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.step-card{ padding:22px; border-radius:var(--radius-md); background:var(--surface); border:1px solid var(--border); }
.step-num{ font-family:var(--font-mono); color:var(--teal); font-size:13px; }
.step-card h4{ margin-top:10px; font-size:16px; }
.step-card p{ margin-top:8px; color:var(--text-dim); font-size:13.5px; }
@media (max-width:880px){ .steps{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .steps{ grid-template-columns:1fr; } }

.feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.feature-card{ padding:24px; border-radius:var(--radius-lg); background:var(--surface); border:1px solid var(--border); }
.feature-icon{ width:40px; height:40px; border-radius:12px; background:var(--grad-signal); display:flex; align-items:center; justify-content:center; font-size:18px; margin-bottom:14px; }
.feature-card h4{ font-size:16px; } .feature-card p{ margin-top:8px; font-size:13.5px; color:var(--text-dim); }
@media (max-width:880px){ .feature-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .feature-grid{ grid-template-columns:1fr; } }

.faq-item{ border-bottom:1px solid var(--border); padding:16px 4px; }
.faq-q{ display:flex; justify-content:space-between; align-items:center; cursor:pointer; font-weight:600; font-size:14.5px; }
.faq-a{ margin-top:10px; color:var(--text-dim); font-size:13.5px; display:none; }
.faq-item.open .faq-a{ display:block; }

.final-cta{ text-align:center; padding:80px 5%; background:var(--grad-atmo); }
.landing-footer{ padding:30px 5%; border-top:1px solid var(--border); text-align:center; color:var(--text-faint); font-size:13px; }

/* =========================================================
   LOADING / ANALYZE
   ========================================================= */
.analyze-hero{ text-align:center; padding:30px 0 10px; }
.stage-list{ max-width:440px; margin:26px auto 0; }
.stage-row{ display:flex; align-items:center; gap:10px; padding:8px 4px; font-size:13.5px; color:var(--text-faint); }
.stage-row .mark{ width:18px; text-align:center; }
.stage-row.done{ color:var(--text-dim); }
.stage-row.done .mark{ color:var(--teal); }
.stage-row.active{ color:var(--text); }
.stage-row.active .mark{ color:var(--violet); animation:pulse 1s infinite; }
@keyframes pulse{ 0%,100%{ opacity:1;} 50%{ opacity:.3;} }
.progress-track{ height:6px; border-radius:999px; background:var(--surface); overflow:hidden; margin-top:22px; max-width:440px; margin-left:auto; margin-right:auto; }
.progress-fill{ height:100%; background:var(--grad-signal); border-radius:999px; transition:width .3s ease; }

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline-track{ position:relative; height:10px; border-radius:999px; background:var(--surface-hi); margin:18px 0 8px; }
.timeline-dot{ position:absolute; top:50%; width:14px; height:14px; border-radius:50%; transform:translate(-50%,-50%); border:2px solid var(--bg); cursor:pointer; }
.timeline-labels{ display:flex; justify-content:space-between; font-size:11px; color:var(--text-faint); font-family:var(--font-mono); }

/* =========================================================
   OPPORTUNITY CARD
   ========================================================= */
.opp-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px; }
.opp-top{ display:flex; align-items:flex-start; gap:14px; }
.opp-rank{ font-family:var(--font-mono); color:var(--text-faint); font-size:13px; padding-top:4px; }
.opp-title{ font-size:16px; font-weight:600; line-height:1.35; }
.opp-meta{ display:flex; gap:14px; margin-top:8px; font-size:12.5px; color:var(--text-faint); font-family:var(--font-mono); flex-wrap:wrap; }
.opp-badges{ display:flex; gap:6px; margin-top:10px; flex-wrap:wrap; }
.opp-tabs{ display:flex; gap:4px; margin-top:16px; border-bottom:1px solid var(--border); overflow-x:auto; }
.opp-tab{ padding:8px 12px; font-size:12.5px; color:var(--text-faint); border-bottom:2px solid transparent; white-space:nowrap; }
.opp-tab.active{ color:var(--text); border-color:var(--violet); }
.opp-panel{ padding:14px 2px 4px; font-size:13.5px; color:var(--text-dim); line-height:1.6; }
.opp-panel .line{ margin-bottom:8px; }
.copy-block{ background:var(--bg-raised); border:1px solid var(--border); border-radius:var(--radius-sm); padding:10px 12px; margin-bottom:8px; display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.opp-actions{ display:flex; gap:8px; margin-top:14px; flex-wrap:wrap; }

.best-card{
  border-radius:var(--radius-xl); padding:2px;
  background:var(--grad-signal);
}
.best-card-inner{ background:var(--bg-raised); border-radius:calc(var(--radius-xl) - 2px); padding:26px; }

/* result tabs */
.tabbar{ display:flex; gap:4px; overflow-x:auto; border-bottom:1px solid var(--border); margin-bottom:22px; }
.tabbar button{ background:none; border:none; padding:12px 16px; font-size:13.5px; font-weight:600; color:var(--text-faint); border-bottom:2px solid transparent; white-space:nowrap; }
.tabbar button.active{ color:var(--text); border-color:var(--violet); }
.tabbar button:hover{ color:var(--text); }

/* empty state */
.empty-state{ text-align:center; padding:70px 20px; }
.empty-icon{ font-size:38px; margin-bottom:14px; }
.empty-state h3{ font-size:19px; }
.empty-state p{ color:var(--text-dim); max-width:380px; margin:10px auto 20px; font-size:14px; }

/* history */
.history-group-label{ font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-faint); margin:22px 0 10px; }
.history-item{ display:flex; align-items:center; gap:14px; padding:14px; border-radius:var(--radius-md); background:var(--surface); border:1px solid var(--border); margin-bottom:8px; }
.history-thumb{ width:52px; height:52px; border-radius:12px; background:var(--grad-signal); flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:18px; }
.history-main{ flex:1; min-width:0; }
.history-title{ font-weight:600; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.history-sub{ font-size:12px; color:var(--text-faint); margin-top:3px; }

/* kanban */
.kanban{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; align-items:flex-start; }
@media (max-width:1000px){ .kanban{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .kanban{ grid-template-columns:1fr; } }
.kanban-col{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:12px; min-height:120px; transition:background .15s, border-color .15s; }
.kanban-col.drag-over{ background:rgba(139,107,255,0.08); border-color:var(--violet); }
.kanban-col-head{ display:flex; justify-content:space-between; font-size:12.5px; font-weight:700; color:var(--text-dim); margin-bottom:10px; text-transform:uppercase; letter-spacing:.04em;}
.kanban-card{ background:var(--bg-raised); border:1px solid var(--border); border-radius:var(--radius-sm); padding:10px; margin-bottom:8px; font-size:12.5px; cursor:grab; transition:opacity .15s, transform .15s; }
.kanban-card:active{ cursor:grabbing; }
.kanban-card.dragging{ opacity:0.4; }
.kanban-card:focus-visible{ outline:2px solid var(--teal); outline-offset:2px; }
.kanban-card .title{ font-weight:600; font-size:13px; margin-bottom:6px; }
.kanban-move{ display:flex; gap:4px; margin-top:8px; }
.kanban-move select{ font-size:11.5px; padding:4px 6px; }

/* calendar */
.cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.cal-cell{ min-height:88px; border-radius:var(--radius-sm); background:var(--surface); border:1px solid var(--border); padding:6px; font-size:11.5px; }
.cal-cell.today{ border-color:var(--violet); }
.cal-cell .daynum{ color:var(--text-faint); font-family:var(--font-mono); }
.cal-cell .event-chip{ margin-top:4px; padding:3px 6px; border-radius:6px; background:rgba(139,107,255,0.16); color:#c3b3ff; font-size:10.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cal-weekday{ text-align:center; font-size:11px; color:var(--text-faint); padding-bottom:4px; }

/* chart bars */
.bars{ display:flex; align-items:flex-end; gap:8px; height:140px; }
.bars .bar-col{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:6px; }
.bars .bar-fill{ width:100%; border-radius:6px 6px 0 0; background:var(--grad-signal); }
.bars .bar-label{ font-size:10.5px; color:var(--text-faint); }

/* switch */
.switch{ position:relative; width:40px; height:22px; border-radius:999px; background:var(--surface-hi); border:1px solid var(--border); flex-shrink:0; }
.switch .knob{ position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:var(--text-faint); transition:.2s; }
.switch.on{ background:var(--grad-signal); border-color:transparent; }
.switch.on .knob{ left:20px; background:#0a0b12; }

/* search modal results */
.search-group-label{ font-size:11px; text-transform:uppercase; color:var(--text-faint); margin:14px 0 6px; letter-spacing:.06em; }
.search-result{ padding:9px 10px; border-radius:var(--radius-sm); font-size:13.5px; }
.search-result:hover{ background:var(--surface); }
.search-result .r-sub{ font-size:11.5px; color:var(--text-faint); margin-top:2px; }

/* help */
.help-item{ padding:16px 0; border-bottom:1px solid var(--border); }
.help-item h4{ font-size:15px; }
.help-item p{ margin-top:8px; color:var(--text-dim); font-size:13.5px; }

/* misc */
.link{ color:var(--teal); }
.link:hover{ text-decoration:underline; }
.err-box{ border:1px solid rgba(255,107,107,0.3); background:rgba(255,107,107,0.08); border-radius:var(--radius-md); padding:20px; }

/* =========================================================
   LANDING 2.0 — hero visual, stats, preview, feature demos
   ========================================================= */
.hero-visual{
  max-width:640px; margin:36px auto 0; padding:26px 28px; position:relative; min-height:190px;
  overflow:hidden;
}
.hv-stage{ display:none; text-align:center; }
.hv-stage.active{ display:block; animation:hvIn .4s ease; }
@keyframes hvIn{ from{ opacity:0; transform:translateY(6px);} to{ opacity:1; transform:translateY(0);} }
.hv-label{ font-family:var(--font-mono); font-size:11.5px; color:var(--text-faint); margin-bottom:14px; letter-spacing:.03em; }
.hv-scanline{ position:absolute; left:0; right:0; height:2px; background:var(--grad-signal); opacity:.7; top:56px; animation:scan 1.8s ease-in-out infinite; }
@keyframes scan{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(34px);} }
.hv-dots{ display:flex; gap:8px; justify-content:center; margin-top:18px; }
.hv-dot{ width:7px; height:7px; border-radius:50%; background:var(--surface-hi); border:1px solid var(--border); cursor:pointer; }
.hv-dot.active{ background:var(--teal); border-color:var(--teal); }

.stat-row{ display:flex; gap:20px; justify-content:center; flex-wrap:wrap; margin-top:30px; }
.stat-block{ text-align:center; min-width:180px; }
.stat-big{ font-family:var(--font-display); font-size:44px; font-weight:700; background:var(--grad-signal); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat-caption{ font-size:13px; color:var(--text-dim); margin-top:6px; max-width:210px; margin-left:auto; margin-right:auto; }

.steps-connected{ position:relative; }
.steps-connected::before{
  content:''; position:absolute; top:34px; left:8%; right:8%; height:1px;
  background:linear-gradient(90deg, transparent, var(--border-hi) 15%, var(--border-hi) 85%, transparent);
  z-index:0;
}
@media (max-width:880px){ .steps-connected::before{ display:none; } }

.browser-frame{ max-width:920px; margin:0 auto; border-radius:var(--radius-xl); overflow:hidden; border:1px solid var(--border-hi); box-shadow:var(--shadow-2); }
.browser-chrome{ display:flex; align-items:center; gap:6px; padding:10px 14px; background:var(--bg-raised); border-bottom:1px solid var(--border); }
.browser-chrome span{ width:9px; height:9px; border-radius:50%; background:var(--surface-hi); border:1px solid var(--border); }
.browser-url{ margin-left:14px; font-family:var(--font-mono); font-size:11.5px; color:var(--text-faint); background:var(--surface); padding:3px 10px; border-radius:6px; }
.browser-body{ background:var(--bg); padding:22px; }

.demo-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
@media (max-width:760px){ .demo-grid{ grid-template-columns:1fr; } }
.demo-card{ padding:24px; border-radius:var(--radius-lg); background:var(--surface); border:1px solid var(--border); }
.demo-card h4{ font-size:16px; margin-top:2px; } .demo-card p{ margin-top:8px; font-size:13.5px; color:var(--text-dim); }
.demo-panel{ margin-top:16px; padding:16px; border-radius:var(--radius-md); background:var(--bg-raised); border:1px solid var(--border); }
.pipeline-row{ position:relative; display:flex; justify-content:space-between; font-size:10.5px; color:var(--text-faint); font-weight:600; padding-top:22px; }
.pipeline-chip{ position:absolute; top:-4px; left:2%; transform:translateX(-50%); background:var(--grad-signal); color:#0a0b12; font-size:11px; font-weight:700; padding:4px 10px; border-radius:999px; transition:left 1s ease; white-space:nowrap; }

/* =========================================================
   PHASE 3 — analysis options, score breakdown
   ========================================================= */
.opt-group{ padding:2px 0; }
.breakdown{ display:flex; flex-direction:column; gap:12px; }
.breakdown-row{ cursor:pointer; }
.breakdown-bar{ height:6px; border-radius:999px; background:var(--surface-hi); margin-top:6px; overflow:hidden; }
.breakdown-fill{ height:100%; border-radius:999px; transition:width .4s ease; }
.breakdown-explain{ margin-top:6px; font-size:12.5px; color:var(--text-dim); background:var(--bg-raised); border:1px solid var(--border); border-radius:var(--radius-sm); padding:8px 10px; }
