/* ========================================================
   InterviewWise Landing — landing.css
   Light theme: :root  |  Dark theme: :root[data-theme="dark"]
   ======================================================== */

/* ===== TOKENS ===== */
:root {
  --bg:           #FCFAF5;
  --nav-bg:       rgba(252,250,245,0.80);
  --bg-panel:     #F1EDE3;
  --card:         #FFFFFF;
  --line:         rgba(28,24,14,0.10);
  --line-strong:  rgba(28,24,14,0.22);
  --text:         #1C1712;
  --text-1:       #211C15;
  --text-2:       #5C574E;
  --text-3:       #8A857A;
  --accent:       #3F6212;
  --accent-line:  rgba(63,98,18,0.30);
  --accent-soft:  rgba(63,98,18,0.07);
  --accent-bg:    #C6F24E;
  --accent-on:    #1A1A18;
  --dot:          #4D7C0F;
  --dot-glow:     none;
  --btn-bg:       #1A1A18;
  --btn-text:     #FBFBF9;
  --btn-shadow:   rgba(0,0,0,0.20);
  --ghost-line:   rgba(20,20,18,0.18);
  --ghost-hover-line: rgba(20,20,18,0.35);
  --ghost-hover-bg:   rgba(20,20,18,0.03);
  --icon-line:    rgba(20,20,18,0.12);
  --icon-bg:      rgba(20,20,18,0.03);
  --lime-cta-shadow: rgba(63,98,18,0.22);
  --hero-glow:    rgba(198,242,78,0.14);
  --gold:         #E7B54A;
  --gold-line:    rgba(231,181,74,0.40);
  --gold-on:      #1A1405;
}

:root[data-theme="dark"] {
  --bg:           #0A0A0C;
  --nav-bg:       rgba(10,10,12,0.72);
  --bg-panel:     #0C0C0F;
  --card:         #111114;
  --line:         rgba(255,255,255,0.07);
  --line-strong:  rgba(255,255,255,0.16);
  --text:         #F4F4F6;
  --text-1:       #ECECEE;
  --text-2:       #9C9CA6;
  --text-3:       #67676F;
  --accent:       #C6F24E;
  --accent-line:  rgba(198,242,78,0.28);
  --accent-soft:  rgba(198,242,78,0.06);
  --accent-bg:    #C6F24E;
  --accent-on:    #0A0A0C;
  --dot:          #C6F24E;
  --dot-glow:     0 0 8px #C6F24E;
  --btn-bg:       #ECECEE;
  --btn-text:     #0A0A0C;
  --btn-shadow:   rgba(255,255,255,0.16);
  --ghost-line:   rgba(255,255,255,0.14);
  --ghost-hover-line: rgba(255,255,255,0.3);
  --ghost-hover-bg:   rgba(255,255,255,0.03);
  --icon-line:    rgba(255,255,255,0.1);
  --icon-bg:      rgba(255,255,255,0.04);
  --lime-cta-shadow: rgba(198,242,78,0.25);
  --hero-glow:    rgba(198,242,78,0.07);
  --gold:         #E7B54A;
  --gold-line:    rgba(231,181,74,0.40);
  --gold-on:      #1A1405;
}

::selection { background: rgba(198,242,78,0.30); color: #1A1A18; }

/* ===== KEYFRAMES ===== */
@keyframes ia-blink  { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes ia-pulse  { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(.7)} }
@keyframes ia-float  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
@keyframes zoom-wave { 0%,100%{transform:scaleY(1)} 50%{transform:scaleY(0.4)} }
@keyframes ia-spin   { to{transform:rotate(360deg)} }
@keyframes ia-flash  { 0%{opacity:.4} 100%{opacity:0} }

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }

/* ===== NAV (shared .navbar from global.css; landing-only logo dot kept for footer) ===== */
.ia-logo-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--dot);
  box-shadow: var(--dot-glow);
}
.ia-logo-dot--sm { width: 8px; height: 8px; }

/* ===== HERO ===== */
.ia-hero {
  position: relative;
  padding: 64px max(28px,4vw) 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.ia-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: flex-start;
  position: relative;
}

.ia-hero::before {
  content: '';
  position: absolute;
  top: 80px; right: 0;
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--hero-glow), transparent 65%);
  pointer-events: none;
  filter: blur(8px);
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].ia-visible { opacity: 1; transform: none; }

/* Hero copy */
.ia-hero-copy { padding-top: 20px; }

.ia-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  border-radius: 980px; padding: 6px 14px;
  margin-bottom: 30px;
}
.ia-eyebrow-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--dot); box-shadow: var(--dot-glow);
  animation: ia-pulse 2s ease-in-out infinite;
}

.ia-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(46px, 5.6vw, 80px);
  line-height: 1.0; letter-spacing: -0.035em;
  color: var(--text); margin-bottom: 26px;
}
.ia-h1-accent { position: relative; white-space: nowrap; }
.ia-h1-accent::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0.08em;
  height: 0.12em; background: var(--accent-bg); border-radius: 2px; opacity: 0.9;
}

.ia-hero-sub {
  font-size: 18px; line-height: 1.65;
  color: var(--text-2); max-width: 480px; margin-bottom: 38px;
}

.ia-hero-btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.ia-btn-primary {
  display: inline-block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600; color: var(--btn-text); background: var(--btn-bg);
  border-radius: 10px;
  transition: transform .15s, box-shadow .15s;
}
.ia-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--btn-shadow); }
.ia-btn-hero { font-size: 15px; padding: 14px 26px; }
/* Lime variant of the primary button — same shape, the pricing-card accent colour. */
.ia-btn-lime { color: var(--accent-on); background: var(--accent-bg); }
.ia-btn-lime:hover { box-shadow: 0 12px 32px var(--lime-cta-shadow); }

.ia-btn-ghost {
  display: inline-block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px; font-weight: 500; color: var(--text-1);
  padding: 14px 24px; border-radius: 10px;
  border: 1px solid var(--ghost-line);
  transition: border-color .15s, background .15s;
}
.ia-btn-ghost:hover { border-color: var(--ghost-hover-line); background: var(--ghost-hover-bg); }

.ia-trust-row {
  display: flex; align-items: center; gap: 22px;
  margin-top: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--text-3);
}
.ia-trust-row span { display: flex; align-items: center; gap: 7px; }
.ia-check { color: var(--accent); }

/* ===== HERO LEAD CAPTURE (small screens) ===== */
/* Rendered on every viewport, shown only ≤720px — this repo does device detection with
   media queries / matchMedia, never user-agent sniffing. See @media (max-width: 720px) below. */
.ia-lead { display: none; margin-top: 22px; max-width: 480px; }
.ia-lead-done { display: none; }

.ia-lead-label {
  display: block; margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
}
.ia-lead-row { display: flex; flex-direction: column; gap: 10px; }

/* First <input> styling in this stylesheet — reuses existing tokens only, no new colours. */
.ia-lead-input {
  width: 100%; box-sizing: border-box;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;                       /* ≥16px or iOS Safari zooms the page on focus */
  color: var(--text-1);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color .15s, box-shadow .15s;
}
.ia-lead-input::placeholder { color: var(--text-3); }
.ia-lead-input:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.ia-lead-input[aria-invalid="true"] { border-color: #C0392B; }

.ia-lead-btn {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px; font-weight: 600;
  color: var(--btn-text); background: var(--btn-bg);
  border: none; border-radius: 10px; padding: 14px 26px; cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.ia-lead-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--btn-shadow); }
.ia-lead-btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }

.ia-lead-date { margin-top: 16px; }
.ia-lead-date-label {
  display: block; margin-bottom: 8px;
  font-size: 13px; color: var(--text-2);
}
.ia-lead-optional { color: var(--text-3); }
.ia-lead-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ia-lead-pill {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13px; font-weight: 500; color: var(--text-1);
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: 980px; padding: 7px 14px; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.ia-lead-pill:hover { border-color: var(--ghost-hover-line); background: var(--ghost-hover-bg); }
.ia-lead-pill.active { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.ia-lead-pill-muted { color: var(--text-3); }

.ia-lead-err { min-height: 18px; margin: 8px 0 0; font-size: 13px; color: #C0392B; }
.ia-lead-alt { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }

.ia-lead-done[hidden] { display: none !important; }
.ia-lead-done {
  margin-top: 22px; max-width: 480px;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  border-radius: 12px; padding: 16px 18px;
  font-size: 15px; line-height: 1.6; color: var(--text-1);
}
.ia-lead-done strong { display: block; margin-bottom: 4px; }

/* Honeypot — off-canvas rather than display:none, which some bots skip. */
.ia-hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

/* ===== HERO DEMO ===== */
.ia-hero-demo { display: flex; flex-direction: column; gap: 10px; max-width: 100%; position: relative; }
.ia-demo-caption { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #67676F; text-align: center; margin: 0; }
.ia-demo-frame { position: relative; padding-bottom: 50px; max-width: 100%; }

/* Demo tabs — theme-aware */
.demo-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.demo-tab {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  padding: 5px 12px; border-radius: 6px;
  border: 1px solid var(--line-strong);
  color: var(--text-2); background: var(--icon-bg);
  cursor: pointer; transition: all .15s; user-select: none;
}
.demo-tab:hover { border-color: var(--line-strong); color: var(--text-1); }
.demo-tab.active { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }

.demo-speed-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; line-height: 1; color: var(--text-2);
  border-radius: 6px; border: 1px solid var(--accent-line);
  background: var(--icon-bg); cursor: pointer; transition: all .15s;
}
/* Not :first-of-type — the dev-build back/pause/forward buttons are also <button>s that can
   sit earlier in the row, which would make one of those "first of type" instead. */
#demoSlowBtn { margin-left: auto; }
.demo-speed-btn:hover { border-color: var(--accent-line); color: var(--text-1); }
/* Clicked: the resting outline goes away — the bar plus a toned fill (stronger at level 2)
   is the only feedback left. */
.demo-speed-btn.active { border-color: transparent; color: var(--accent); }
.demo-speed-btn.level-1 { background: var(--accent-soft); }
.demo-speed-btn.level-2 { background: rgba(198,242,78,0.16); }

.demo-speed-bar {
  position: absolute; left: 4px; right: 4px; bottom: 3px;
  height: 2px; border-radius: 1px; background: var(--line-strong);
  transform: scaleX(0); transform-origin: left;
  transition: transform .15s, background .15s;
}
.demo-speed-bar.level-1 { background: var(--text-2); transform: scaleX(0.5); }
.demo-speed-bar.level-2 { background: var(--accent); transform: scaleX(1); }

/* Dev-build-only demo controls (config.DEV_BUILD) */
.demo-dev-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; font-size: 12px; line-height: 1;
  border-radius: 6px; border: 1px solid var(--line-strong);
  color: var(--text-2); background: var(--icon-bg);
  cursor: pointer; transition: all .15s;
}
.demo-dev-btn:hover { border-color: var(--accent-line); color: var(--accent); }

/* Demo stage — always dark */
.demo-stage {
  background: #101013;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 28px 64px rgba(0,0,0,0.5);
}

.demo-menubar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 14px; background: #1a1a1d;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #67676F;
}
.demo-menubar-apple { color: #555; font-size: 13px; }
.demo-menubar-items { display: flex; gap: 14px; }

.demo-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 12px; background: #141417;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots span { width: 10px; height: 10px; border-radius: 50%; }
.demo-dots span:nth-child(1) { background: #ff5f57; }
.demo-dots span:nth-child(2) { background: #febc2e; }
.demo-dots span:nth-child(3) { background: #28c840; }

.demo-url-bar { flex: 1; min-width: 0; }
.demo-url {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.04); border-radius: 6px; padding: 4px 11px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #9C9CA6;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.demo-url svg { color: #67676F; flex-shrink: 0; }
.demo-chrome-spacer { width: 46px; }

.demo-body { display: flex; min-height: 360px; }

.demo-computer { flex: 1; min-width: 0; overflow: hidden; }
.demo-scenes { height: 100%; }
.demo-scene { display: none; padding: 14px 16px; flex-direction: column; gap: 11px; }
.demo-scene.active { display: flex; }

/* LeetCode scene */
.sc-lc-header { display: flex; align-items: center; gap: 10px; }
.sc-lc-title { font-family: 'Space Grotesk', sans-serif; font-size: 13.5px; font-weight: 600; color: #ECECEE; }
.demo-badge-easy { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: #C6F24E; border: 1px solid rgba(198,242,78,0.3); border-radius: 5px; padding: 1px 7px; }
.sc-lc-desc { font-size: 12px; color: #9C9CA6; line-height: 1.55; margin-bottom: 9px; }
.sc-lc-example { background: #0A0A0C; border: 1px solid rgba(255,255,255,0.05); border-radius: 7px; padding: 8px 11px; }
.sc-lc-example pre { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #67676F; line-height: 1.65; margin: 0; }

.sc-editor-tabs { display: flex; }
.sc-editor-tabs span { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; padding: 4px 11px; color: #67676F; background: #0A0A0C; border: 1px solid rgba(255,255,255,0.05); border-bottom: none; border-radius: 4px 4px 0 0; }
.sc-editor-tabs span.active { color: #9C9CA6; background: #0D0D10; }
.sc-editor-stub { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #9C9CA6; line-height: 1.65; background: #0D0D10; border: 1px solid rgba(255,255,255,0.05); border-radius: 0 5px 5px 5px; padding: 9px 11px; margin: 0; white-space: pre; }
.demo-cursor { display: inline-block; width: 7px; height: 14px; background: #C6F24E; vertical-align: middle; animation: ia-blink 1.1s step-end infinite; }

.demo-capture-bar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.demo-capture-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Hanken Grotesk', sans-serif; font-size: 12px; font-weight: 600;
  background: #ECECEE; color: #0A0A0C;
  padding: 4px 11px; border-radius: 6px; cursor: pointer; transition: transform .1s;
}
.demo-capture-btn.pressing { transform: scale(0.94); }
.demo-hotkey { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: #9C9CA6; border: 1px solid rgba(255,255,255,0.12); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }
.demo-intercepted { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: #C6F24E; opacity: 0; transition: opacity .3s; }
.demo-intercepted.visible { opacity: 1; }

/* Zoom scenes */
.sc-zoom { display: flex; flex-direction: column; gap: 10px; }
.sc-zoom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zoom-tile { background: #1A1A1F; border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 11px 10px; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; min-height: 96px; }
.zoom-tile.speaking { border-color: rgba(198,242,78,0.4); }
.zoom-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,rgba(108,99,255,0.35),rgba(0,212,170,0.2)); display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; color: #E2E2F0; }
.zoom-name, .zoom-you-label { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: #9C9CA6; text-align: center; }
.zoom-speaking-dots { display: flex; gap: 3px; position: absolute; bottom: 6px; right: 7px; }
.zoom-speaking-dot { width: 4px; background: #C6F24E; border-radius: 2px; animation: zoom-wave 1s ease-in-out infinite; }
.zoom-speaking-dot:nth-child(1) { height: 9px; animation-delay: 0s; }
.zoom-speaking-dot:nth-child(2) { height: 14px; animation-delay: .1s; }
.zoom-speaking-dot:nth-child(3) { height: 6px; animation-delay: .2s; }
.zoom-speaking-dot:nth-child(4) { height: 12px; animation-delay: .15s; }
.zoom-speaking-dot:nth-child(5) { height: 9px; animation-delay: .05s; }

.zoom-caption-bar { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #9C9CA6; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 6px; padding: 5px 10px; min-height: 33px; line-height: 1.5; white-space: pre-wrap; }
.demo-voice-bar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.demo-voice-btn, .demo-replay-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  background: rgba(255,255,255,0.06); color: #ECECEE;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; padding: 4px 11px;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.demo-voice-btn.recording { background: rgba(198,242,78,0.08); border-color: rgba(198,242,78,0.3); color: #C6F24E; }
.demo-replay-btn.pressed { transform: scale(0.94); }
.demo-voice-hint { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #67676F; }

/* Phone panel — floats in front of the stage. Flex column so .phone-toast (mobile only)
   just pushes the frame down from the bottom-anchored position instead of needing a
   guessed negative offset to float above it. No gap here — the toast's own arrow (see
   .phone-toast::after) supplies the visual connection, so the two sit flush. */
.demo-phone-panel {
  position: absolute; right: -20px; bottom: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
}

.phone-frame {
  width: 170px; height: 340px;
  display: flex; flex-direction: column;
  background: #0D0D10; border: 6px solid #1A1A20; border-radius: 36px;
  overflow: hidden; position: relative;
  box-shadow: 0 32px 72px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
  animation: ia-float 6s ease-in-out infinite;
}
.phone-status-bar { display: flex; align-items: center; justify-content: space-between; padding: 5px 13px 3px; font-family: 'JetBrains Mono', monospace; font-size: 9px; color: #67676F; flex-shrink: 0; }
.phone-signal { display: flex; align-items: flex-end; gap: 2px; }
.phone-signal-bar { width: 2px; border-radius: 1px; background: #67676F; }
.phone-signal-bar--sm { height: 3px; }
.phone-signal-bar--md { height: 5px; }
.phone-signal-bar--lg { height: 7px; }
.phone-screen { flex: 1; padding: 7px 10px 10px; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.phone-home-bar { height: 4px; background: rgba(255,255,255,0.12); border-radius: 2px; margin: 4px auto 8px; width: 46px; flex-shrink: 0; }

.phone-state { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 9px; flex: 1; min-height: 0; overflow: hidden; }
.phone-state.visible { display: flex; }
.phone-answer { align-items: flex-start; justify-content: flex-start; }

.phone-idle { font-size: 9.5px; color: #67676F; font-family: 'JetBrains Mono', monospace; text-align: center; }
.phone-idle-icon { color: #3A3A45; }

.phone-recording-row, .phone-capturing-row { display: flex; align-items: center; gap: 6px; }
.phone-recording-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; animation: ia-pulse 1s ease-in-out infinite; }
.phone-capturing-dot { width: 8px; height: 8px; border-radius: 50%; background: #C6F24E; animation: ia-pulse 1s ease-in-out infinite; }
.phone-recording-label, .phone-capturing-label { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: #ECECEE; }
.phone-recording-hint { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: #67676F; }

.phone-waveform { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.phone-wave-bar { width: 5px; background: #C6F24E; border-radius: 2px; animation: zoom-wave 0.8s ease-in-out infinite; }
.phone-wave-bar:nth-child(1) { height: 13px; animation-delay: 0s; }
.phone-wave-bar:nth-child(2) { height: 23px; animation-delay: .08s; }
.phone-wave-bar:nth-child(3) { height: 17px; animation-delay: .16s; }
.phone-wave-bar:nth-child(4) { height: 27px; animation-delay: .06s; }
.phone-wave-bar:nth-child(5) { height: 20px; animation-delay: .14s; }
.phone-wave-bar:nth-child(6) { height: 12px; animation-delay: .1s; }
.phone-wave-bar:nth-child(7) { height: 25px; animation-delay: .04s; }
.phone-wave-bar:nth-child(8) { height: 16px; animation-delay: .12s; }
.phone-waveform-replay .phone-wave-bar { background: rgba(198,242,78,0.5); }

.phone-spinner { width: 23px; height: 23px; border: 2px solid rgba(198,242,78,0.15); border-top-color: #C6F24E; border-radius: 50%; animation: ia-spin 0.8s linear infinite; }
.phone-analyzing-label { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: #9C9CA6; }

.phone-answer-header { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.phone-answer-dot { width: 6px; height: 6px; border-radius: 50%; background: #C6F24E; box-shadow: 0 0 6px #C6F24E; flex-shrink: 0; }
.phone-answer-label { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 600; color: #C6F24E; letter-spacing: 0.05em; }
.phone-context-note {
  display: none;
  font-family: 'JetBrains Mono', monospace; font-size: 8.5px; color: #9C9CA6;
  background: rgba(255,255,255,0.04); border-radius: 5px; padding: 4px 7px;
  margin: 0 0 7px; flex-shrink: 0;
}
.phone-context-note.has-note { display: block; }

/* Mobile-only stand-in for .phone-context-note — see @media (max-width: 500px) below, and
   showContextNote() in the inline script, which writes a shorter version of the same note
   here (it's a narrow bubble, not room for the full sentence). The ::after arrow anchors it
   to the phone below so it reads as a callout attached to the phone, not a floating banner. */
.phone-toast {
  display: none;
  position: relative;
  max-width: 150px;
  margin-bottom: 9px; /* reserves room for the arrow, which sits in this gap */
  font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1.4;
  color: #D6D6DC; text-align: center;
  background: rgba(13,13,16,0.94); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 7px 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}
.phone-toast::after {
  content: '';
  position: absolute;
  right: 22px; bottom: -8px;
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid rgba(13,13,16,0.94);
  filter: drop-shadow(0 3px 2px rgba(0,0,0,0.25));
}
.phone-code, .phone-prose {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; line-height: 1.6;
  color: #D6D6DC; margin: 0; white-space: pre-wrap; word-break: break-word;
  flex: 1; overflow: hidden; min-height: 0;
}
/* Demo code tokens — shared by the phone answers and the fake editor on the laptop screen.
   Always dark: both sit inside mock devices, so these don't follow the light/dark toggle. */
.tok-kw   { color: #C6F24E; }
.tok-fn   { color: #9CDCFE; }
.tok-num  { color: #B5CEA8; }
.tok-cm   { color: #67676F; }
.tok-str  { color: #E5A06B; }
.tok-def  { color: #E8D48B; }
.tok-self { color: #C586C0; }

.phone-complexity-row { display: flex; gap: 5px; margin-top: 7px; }
.phone-badge { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: #C6F24E; border: 1px solid rgba(198,242,78,0.25); border-radius: 5px; padding: 3px 7px; }

.phone-flash { position: absolute; inset: 0; border-radius: 30px; opacity: 0; pointer-events: none; background: rgba(198,242,78,0.08); }
.phone-frame.answer-arriving .phone-flash { animation: ia-flash 0.5s ease-out; }

/* ===== PLATFORM STRIP ===== */
.ia-platform-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
}
.ia-platform-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 22px max(28px,4vw);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.ia-platform-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); margin-right: 6px;
}
.ia-platform-item { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-2); }
.ia-platform-sep { color: var(--text-3); }

/* ===== SOCIAL PROOF ===== */
.ia-proof-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 40px 0;
  overflow: hidden;
}
.ia-proof-head {
  max-width: 1180px; margin: 0 auto 26px; padding: 0 max(28px,4vw);
  text-align: center;
}
.ia-proof-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 8px;
}
.ia-proof-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text);
}
.ia-proof-track-wrap {
  width: 100%; overflow: hidden;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.ia-proof-track-wrap.ia-proof-dragging { cursor: grabbing; }
.ia-proof-track {
  display: flex; width: max-content;
  align-items: flex-start;
  will-change: transform;
  backface-visibility: hidden;
  user-select: none;
  touch-action: pan-y;
}
.ia-proof-hint {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
  opacity: 0.7;
  transition: opacity .5s ease;
  pointer-events: none;
  user-select: none;
}
.ia-proof-hint svg { flex-shrink: 0; }
.ia-proof-hint--hidden { opacity: 0; }
.ia-proof-col {
  flex: 0 0 300px;
  margin-right: 16px;
  display: flex; flex-direction: column;
}
.ia-proof-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.ia-proof-stars { color: var(--accent); font-size: 13px; letter-spacing: 2px; }
.ia-proof-star-empty { color: var(--line-strong); }
.ia-proof-quote { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.ia-proof-person { display: flex; align-items: center; gap: 10px; margin-top: auto; }
/* Landing page tokens invert the rest of the app: :root (no attribute) IS light here, and
   :root[data-theme="dark"] is the override — see the file banner up top. So the default rule
   below must be the light-safe styling (stronger fill + dark text over a white --card); the
   original near-white-on-purple only reads fine over the dark --card, so it's confined to the
   dark override underneath. */
.ia-proof-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,rgba(63,98,18,0.22),rgba(0,120,96,0.16));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 600; color: var(--text-1);
}
.ia-proof-name { font-size: 13px; font-weight: 600; color: var(--text-1); }
.ia-proof-role { font-size: 11.5px; color: var(--text-3); }

:root[data-theme="dark"] .ia-proof-avatar {
  background: linear-gradient(135deg,rgba(108,99,255,0.35),rgba(0,212,170,0.2));
  color: #E2E2F0;
}

.ia-proof-card--pick, .ia-proof-card--shipped {
  overflow: hidden;
  padding-top: 0;
}
.ia-proof-card--pick { border-color: var(--gold-line); }
.ia-proof-card--shipped { border-color: var(--accent-line); }
.ia-proof-pick-banner {
  background: var(--gold); color: var(--gold-on);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 22px; margin: 0 -22px;
  display: flex; align-items: center; gap: 8px;
}
.ia-proof-shipped-banner {
  background: var(--accent-soft); border-bottom: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 22px; margin: 0 -22px;
  display: flex; align-items: center; gap: 8px;
}
.ia-proof-reply-bubble {
  position: relative;
  margin: 14px 8px 0;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; gap: 10px;
}
.ia-proof-reply-bubble::before {
  content: "";
  position: absolute; top: -6px; left: 26px;
  width: 11px; height: 11px;
  background: var(--accent-soft);
  border-left: 1px solid var(--accent-line);
  border-top: 1px solid var(--accent-line);
  transform: rotate(45deg);
}
.ia-proof-reply-bubble-mark {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  background: var(--accent); color: var(--accent-on);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ia-proof-reply-bubble-label {
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 3px;
}
.ia-proof-reply-bubble-text { font-size: 12.5px; line-height: 1.45; color: var(--text-2); }

@media (max-width: 460px) { .ia-proof-col { flex-basis: 260px; } }

/* ===== SECTION UTILITIES ===== */
.ia-section { padding: 100px max(28px,4vw); }
.ia-section--light { background: var(--bg); }
.ia-section--panel { background: var(--bg-panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.ia-container { max-width: 1180px; margin: 0 auto; }
.ia-container--pricing { max-width: 1000px; }
.ia-container--cta { max-width: 760px; text-align: center; }

.ia-section-hd { max-width: 640px; margin-bottom: 40px; }
.ia-section-hd--center { max-width: none; text-align: center; }

.ia-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 18px;
}
.ia-kicker-n { color: var(--accent); }

.ia-h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: clamp(30px,4vw,46px);
  line-height: 1.08; letter-spacing: -0.03em; color: var(--text);
}

/* ===== PAIN GRID ===== */
.ia-pain-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.ia-pain-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px;
  transition: border-color .25s, transform .25s; cursor: default;
}
.ia-pain-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.ia-card-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); margin-bottom: 18px; }
.ia-pain-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; color: var(--text-1); margin-bottom: 10px; line-height: 1.25; }
.ia-pain-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }

/* ===== HOW IT WORKS ===== */
.ia-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.ia-step-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ia-step-num {
  width: 44px; height: 44px; border-radius: 11px;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 18px;
  color: var(--accent); flex-shrink: 0;
}
.ia-step-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.ia-step h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600; color: var(--text-1); margin-bottom: 10px; line-height: 1.3; }
.ia-step p { font-size: 14.5px; color: var(--text-2); line-height: 1.65; }
.ia-section--how { padding-top: 88px; padding-bottom: 88px; }
.ia-section--how .ia-section-hd { margin-bottom: 44px; }

.ia-steps { gap: 36px; margin-bottom: 56px; }

.ia-step-note {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--text-3);
}
.ia-step-note--accent { color: var(--accent); }

.ia-how-proof {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: stretch;
}
.ia-video-wrap {
  position: relative; aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong); border-radius: 18px;
  overflow: hidden; background: #0A0A0C;
}
.ia-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ia-how-proof .ia-proof-col { display: flex; flex-direction: column; gap: 14px; }
.ia-how-proof .ia-proof-card {
  flex: 1;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 24px;
  transition: border-color .2s;
}
.ia-how-proof .ia-proof-card:hover { border-color: var(--line-strong); }
.ia-how-proof .ia-proof-card--accent:hover { border-color: var(--accent-line); }

.ia-how-proof .ia-proof-hd { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.ia-how-proof .ia-proof-icon { display: flex; color: var(--text-1); }
.ia-how-proof .ia-proof-card--accent .ia-proof-icon { color: var(--accent); }
.ia-how-proof .ia-proof-hd h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 600;
  color: var(--text-1); letter-spacing: -0.02em;
}
.ia-how-proof .ia-proof-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.6; text-wrap: pretty; }

/* ===== PRICING ===== */
.ia-pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
/* When only one plan is shown (e.g. sessions user sees Unlimited only), center it instead of leaving it in the left column */
.ia-plan:only-child { grid-column: 1 / -1; max-width: 480px; margin-left: auto; margin-right: auto; }
.ia-plan {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 32px; display: flex; flex-direction: column;
}
.ia-plan--featured {
  background: linear-gradient(180deg, var(--accent-soft), var(--card) 42%);
  border-color: var(--accent-line); position: relative;
}
.ia-plan-badge {
  position: absolute; top: -11px; left: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  color: var(--accent-on); background: var(--accent-bg); padding: 4px 11px; border-radius: 6px;
}
.ia-plan-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 18px; }
.ia-plan-label--accent { color: var(--accent); }
.ia-plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.ia-plan-amount { font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 600; color: var(--text); }
.ia-plan-per { font-size: 14px; color: var(--text-3); }
.ia-plan-note { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent); margin-bottom: 18px; }
.ia-plan-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 22px; }
.ia-plan-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.ia-plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-1); }
.ia-plan-cta {
  margin-top: auto; display: block; text-align: center;
  font-family: 'Hanken Grotesk', sans-serif; font-size: 15px; font-weight: 600;
  padding: 13px; border-radius: 10px;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.ia-plan-cta--ghost { color: var(--text-1); border: 1px solid var(--ghost-line); }
.ia-plan-cta--ghost:hover { background: var(--ghost-hover-bg); border-color: var(--ghost-hover-line); }
.ia-plan-cta--lime { color: var(--accent-on); background: var(--accent-bg); }
.ia-plan-cta--lime:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--lime-cta-shadow); }

.ia-pricing-faq-nudge {
  text-align: center; font-size: 14px; color: var(--text-3);
  margin-top: 40px;
  display: block;
}
.ia-pricing-faq-nudge a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; transition: color .15s; }
.ia-pricing-faq-nudge a:hover { color: var(--text-1); }

/* ===== CLOSING CTA ===== */
.ia-cta-section { padding: 130px max(28px,4vw); }
.ia-cta-h2 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: clamp(32px,4.5vw,52px); line-height: 1.06;
  letter-spacing: -0.03em; color: var(--text); margin-bottom: 20px;
}
.ia-cta-sub { font-size: 17px; color: var(--text-2); margin-bottom: 36px; }
.ia-btn-cta { font-size: 16px; padding: 16px 34px; border-radius: 11px; }

/* ===== FOOTER ===== */
.ia-footer { border-top: 1px solid var(--line); padding: 40px max(28px,4vw); }
.ia-footer .ia-container {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.ia-footer-logo {
  display: flex; align-items: center; gap: 9px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; color: var(--text-1);
}
.ia-footer-copy { font-size: 13px; color: var(--text-3); }
/* The dark/light toggle is position:fixed bottom-right — ensure footer links don't sit
   underneath it. padding-right keeps the right-most links clear of the ~90px toggle; the
   wrapping bottom-row also needs extra bottom clearance on small screens (see responsive). */
.ia-footer-links { display: flex; flex-wrap: wrap; gap: 16px 22px; font-size: 13px; color: var(--text-2); }
.ia-footer-links a { transition: color .15s; }
.ia-footer-links a:hover { color: var(--text-1); }
.ia-footer-links a.ia-footer-link--highlight {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ia-footer-links a.ia-footer-link--highlight:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .ia-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ia-hero::before { display: none; }
  .ia-hero-demo { max-width: 560px; min-width: 0; }
  .demo-phone-panel { right: 24px; }
  .ia-pain-grid { grid-template-columns: repeat(2,1fr); }
  .ia-steps { grid-template-columns: 1fr; gap: 36px; }
  .ia-step-rule { display: none; }
  .ia-pricing { grid-template-columns: 1fr; max-width: 480px; }
  /* Tablet and below: cut the "How it works" and Pricing sections — keep
     the mobile landing page focused on the hero + CTA instead of a long scroll. */
  #how, #pricing { display: none; }
  /* Its target (#how) is gone at this width — don't leave a dead link in the hero. */
  a.ia-btn-hero[href="#how"] { display: none; }
}

@media (max-width: 720px) {
  .ia-section { padding: 80px max(20px,4vw); }
  .ia-cta-section { padding: 80px max(20px,4vw); }
  .ia-hero { padding: 24px max(20px,4vw) 40px; }
  .ia-hero-inner { gap: 24px; }
  .ia-hero-copy { padding-top: 0; }
  .ia-eyebrow { margin-bottom: 16px; }
  .ia-h1 { font-size: clamp(38px,10vw,60px); margin-bottom: 16px; }
  .ia-hero-sub { margin-bottom: 22px; }
  .ia-lead { display: block; margin-top: 16px; }
  .ia-lead-done.is-shown { display: block; }
  .ia-cta-desktop { display: none; }
  /* Mobile already gets to the app via the nav bar — don't spend hero space repeating it,
     the demo should be the thing they scroll a short way to see. */
  a.ia-btn-hero[href="/app"] { display: none; }
  .ia-trust-row { margin-top: 18px; }
}

@media (max-width: 900px) {
  .ia-section--how { padding-top: 72px; padding-bottom: 72px; }
  .ia-how-proof { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .ia-pain-grid { grid-template-columns: 1fr; }
  .ia-hero-btns { flex-direction: column; align-items: flex-start; }
  .ia-hero-demo { width: 100%; }
  /* Bigger than before (was 120x240) — freed up by moving the context note out to the
     toast below, plus the extra headroom from the hero decluttering. Less wrapped code,
     less clipped text. */
  .phone-frame { width: 150px; height: 300px; border-radius: 30px; }
  .demo-phone-panel { right: 0; }
  .ia-demo-frame { padding-bottom: 36px; }
  .phone-context-note.has-note { display: none; }
  .phone-toast.has-note { display: block; }
  /* Footer: theme toggle is position:fixed at bottom-right (~90px wide, right:24px). Give the
     footer bottom clearance and right-side padding so links don't hide under the toggle. */
  .ia-footer { padding-bottom: 72px; }
  .ia-footer-links { padding-right: 116px; }
}

@media (max-width: 380px) {
  /* Speed buttons would wrap to a second row — hide them rather than show them orphaned. */
  .demo-speed-btn { display: none; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .phone-frame { animation: none; }
  .ia-eyebrow-dot { animation: none; }
  .demo-cursor { animation: none; opacity: 1; }
}

/* ===== DEMO: FORCE LIGHT MODE WHEN PAGE IS DARK =====
   The demo simulates a real macOS/Chrome/Zoom window. On dark pages it looks
   more convincing — and more readable — rendered in light mode so it reads as
   an actual bright screen floating in the dark environment.
   The phone panel mirrors this treatment — white body, dark text — so both
   devices read as real bright screens against the dark page background. */
html[data-theme="dark"] .demo-stage {
  background: #FAF8F3;
  border-color: rgba(0,0,0,0.14);
  box-shadow: 0 28px 64px rgba(0,0,0,0.55);
}
html[data-theme="dark"] .demo-menubar {
  background: #ECE9E2;
  border-bottom-color: rgba(0,0,0,0.1);
  color: #555;
}
html[data-theme="dark"] .demo-menubar-apple { color: #333; }
html[data-theme="dark"] .demo-chrome {
  background: #F1EEE8;
  border-bottom-color: rgba(0,0,0,0.08);
}
html[data-theme="dark"] .demo-url {
  background: rgba(0,0,0,0.07);
  color: #444;
}
html[data-theme="dark"] .demo-url svg { color: #888; }
html[data-theme="dark"] .demo-body { background: #F8F5EF; }

/* LeetCode scene — light */
html[data-theme="dark"] .sc-lc-title { color: #1A1A2E; }
html[data-theme="dark"] .sc-lc-desc { color: #555; }
html[data-theme="dark"] .sc-lc-example {
  background: #EFECE6;
  border-color: rgba(0,0,0,0.08);
}
html[data-theme="dark"] .sc-lc-example pre { color: #666; }
html[data-theme="dark"] .sc-editor-tabs span {
  color: #888;
  background: #E8E5DE;
  border-color: rgba(0,0,0,0.1);
}
html[data-theme="dark"] .sc-editor-tabs span.active {
  color: #333;
  background: #F4F1EB;
  border-color: rgba(0,0,0,0.1);
}
html[data-theme="dark"] .sc-editor-stub {
  color: #333;
  background: #F4F1EB;
  border-color: rgba(0,0,0,0.1);
}

/* Token colours for the light editor stub — VS Code light theme palette.
   Scoped to .demo-computer so the phone panel tokens stay dark. */
html[data-theme="dark"] .demo-computer .tok-kw   { color: #AF00DB; }
html[data-theme="dark"] .demo-computer .tok-fn   { color: #0070C1; }
html[data-theme="dark"] .demo-computer .tok-num  { color: #098658; }
html[data-theme="dark"] .demo-computer .tok-cm   { color: #6A9955; }
html[data-theme="dark"] .demo-computer .tok-str  { color: #A31515; }
html[data-theme="dark"] .demo-computer .tok-def  { color: #795E26; }
html[data-theme="dark"] .demo-computer .tok-self { color: #001080; }
html[data-theme="dark"] .demo-computer .demo-cursor { background: #0070C1; }

/* Capture / hotkey bar — light */
html[data-theme="dark"] .demo-capture-btn {
  background: #1A1A2E;
  color: #FFFFFF;
}
html[data-theme="dark"] .demo-hotkey {
  color: #555;
  border-color: rgba(0,0,0,0.2);
}
html[data-theme="dark"] .demo-badge-easy {
  color: #1a8c3a;
  border-color: rgba(26,140,58,0.35);
}
html[data-theme="dark"] .demo-intercepted { color: #1a8c3a; }

/* Zoom scenes — light */
html[data-theme="dark"] .zoom-tile {
  background: #EDEAE4;
  border-color: rgba(0,0,0,0.1);
}
html[data-theme="dark"] .zoom-tile.speaking { border-color: rgba(26,140,58,0.5); }
html[data-theme="dark"] .zoom-avatar { color: #1A1A2E; }
html[data-theme="dark"] .zoom-name,
html[data-theme="dark"] .zoom-you-label { color: #666; }
html[data-theme="dark"] .zoom-caption-bar {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.09);
  color: #444;
}
html[data-theme="dark"] .demo-voice-btn,
html[data-theme="dark"] .demo-replay-btn {
  background: rgba(0,0,0,0.07);
  color: #222;
  border-color: rgba(0,0,0,0.16);
}
html[data-theme="dark"] .demo-voice-btn.recording {
  background: rgba(26,140,58,0.1);
  border-color: rgba(26,140,58,0.4);
  color: #1a8c3a;
}
html[data-theme="dark"] .demo-voice-hint { color: #999; }

/* Phone panel — white device in dark mode, matching the laptop's light treatment */
html[data-theme="dark"] .phone-frame {
  background: #F8F5EF;
  border-color: #2A2826;
  box-shadow: 0 32px 72px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.08);
}
html[data-theme="dark"] .phone-status-bar { color: #3C3C43; }
html[data-theme="dark"] .phone-signal-bar { background: #3C3C43; }
html[data-theme="dark"] .phone-home-bar { background: rgba(0,0,0,0.18); }
html[data-theme="dark"] .phone-idle { color: #8E8E93; }
html[data-theme="dark"] .phone-idle-icon { color: #AEAEB2; }
html[data-theme="dark"] .phone-recording-label,
html[data-theme="dark"] .phone-capturing-label { color: #1C1C1E; }
html[data-theme="dark"] .phone-recording-hint { color: #8E8E93; }
html[data-theme="dark"] .phone-analyzing-label { color: #6C6C70; }
html[data-theme="dark"] .phone-code,
html[data-theme="dark"] .phone-prose { color: #1C1C1E; }
html[data-theme="dark"] .phone-context-note {
  color: #6C6C70;
  background: rgba(0,0,0,0.04);
}
html[data-theme="dark"] .phone-toast {
  color: #1C1712;
  background: rgba(248,245,239,0.97);
  border-color: rgba(0,0,0,0.1);
}
html[data-theme="dark"] .phone-toast::after {
  border-top-color: rgba(248,245,239,0.97);
}
/* Olive green replaces acid green on the now-light phone */
html[data-theme="dark"] .phone-capturing-dot { background: #4D7C0F; }
html[data-theme="dark"] .phone-wave-bar { background: #4D7C0F; }
html[data-theme="dark"] .phone-waveform-replay .phone-wave-bar { background: rgba(77,124,15,0.45); }
html[data-theme="dark"] .phone-spinner {
  border-color: rgba(77,124,15,0.15);
  border-top-color: #4D7C0F;
}
html[data-theme="dark"] .phone-answer-dot {
  background: #4D7C0F;
  box-shadow: 0 0 6px rgba(77,124,15,0.5);
}
html[data-theme="dark"] .phone-answer-label { color: #3F6212; }
html[data-theme="dark"] .phone-badge {
  color: #3F6212;
  border-color: rgba(63,98,18,0.30);
}

/* Token colours for the light phone — VS Code light theme, same as the laptop */
html[data-theme="dark"] .demo-phone-panel .tok-kw   { color: #AF00DB; }
html[data-theme="dark"] .demo-phone-panel .tok-fn   { color: #0070C1; }
html[data-theme="dark"] .demo-phone-panel .tok-num  { color: #098658; }
html[data-theme="dark"] .demo-phone-panel .tok-cm   { color: #6A9955; }
html[data-theme="dark"] .demo-phone-panel .tok-str  { color: #A31515; }
html[data-theme="dark"] .demo-phone-panel .tok-def  { color: #795E26; }
html[data-theme="dark"] .demo-phone-panel .tok-self { color: #001080; }
