/* =============================================
   tAIm — Product website
   Uses the same variables and patterns as the tAIm app
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables (copied from the app's style.css) ── */
:root {
  --bg:          #f4f3ff;
  --surface:     #ffffff;
  --surface-2:   #f9f8ff;
  --dark:        #16151a;
  --dark-card:   #1c1b22;
  --primary:     #3b35d4;
  --primary-h:   #2e29b8;
  --primary-soft:#e8e7ff;
  --accent:      #7c78f5;
  --accent-warm: #f4845f;
  --text:        #16151a;
  --text-2:      #6b6880;
  --text-3:      #9896a8;
  --border:      #e4e2f0;
  --border-dark: #2e2d38;
  --green:       #22c55e;
  --radius:      16px;
  --radius-sm:   10px;
  --radius-xs:   6px;
  --shadow:      0 2px 16px rgba(59,53,212,0.08);
  --shadow-lg:   0 8px 40px rgba(59,53,212,0.14);
  --font-head:   'Plus Jakarta Sans', sans-serif;
  --font-body:   'Inter', sans-serif;
  --transition:  0.22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; outline: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 243, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(244, 243, 255, 0.96);
  box-shadow: 0 2px 24px rgba(59,53,212,0.07);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__logo {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 800;
  letter-spacing: -0.5px; transition: opacity var(--transition);
}
.nav__logo:hover { opacity: 0.75; }
.nav__links { display: flex; gap: 4px; }
.nav__link {
  font-size: 0.9rem; font-weight: 500; color: var(--text-2);
  padding: 8px 14px; border-radius: var(--radius-xs);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--text); background: var(--primary-soft); }
.nav__link.active { color: var(--primary); font-weight: 600; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600;
  border-radius: var(--radius-sm); padding: 10px 22px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 2px 12px rgba(59,53,212,0.28); }
.btn--primary:hover { background: var(--primary-h); box-shadow: 0 4px 20px rgba(59,53,212,0.38); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }
.btn--sm { font-size: 0.82rem; padding: 7px 16px; }
.btn--lg { font-size: 1rem; padding: 14px 30px; border-radius: var(--radius); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* =============================================
   HERO
   ============================================= */
.hero { text-align: center; padding: 88px 32px 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 440px;
  background: radial-gradient(ellipse, rgba(124,120,245,0.18) 0%, rgba(59,53,212,0.06) 50%, transparent 75%);
  pointer-events: none;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 28px;
  border: 1px solid rgba(59,53,212,0.15);
  animation: fadeDown 0.6s ease both;
}
.hero__badge svg { width: 13px; height: 13px; }
.hero__title {
  font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -1.5px;
  max-width: 760px; margin: 0 auto 20px;
  animation: fadeDown 0.6s 0.1s ease both;
}
.hero__sub {
  font-size: 1.05rem; color: var(--text-2); max-width: 560px;
  margin: 0 auto 36px; line-height: 1.7;
  animation: fadeDown 0.6s 0.2s ease both;
}
.hero__cta { display: flex; justify-content: center; gap: 12px; animation: fadeDown 0.6s 0.3s ease both; }

/* ── Product preview ── */
.preview {
  max-width: 960px; margin: 64px auto 0; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
  position: relative;
}
.preview__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.preview__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.preview__label {
  margin-left: 10px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
}
.preview__body { display: grid; grid-template-columns: 1fr 260px; gap: 16px; padding: 20px; background: var(--bg); }

.analysis-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: box-shadow var(--transition);
}
.analysis-card:hover { box-shadow: var(--shadow); }
.analysis-card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.analysis-card__title-row { display: flex; align-items: center; gap: 10px; }
.analysis-card__icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--primary-soft); display: flex; align-items: center; justify-content: center;
}
.analysis-card__icon svg { width: 18px; height: 18px; color: var(--primary); }
.analysis-card__name { font-family: var(--font-head); font-size: 1rem; font-weight: 700; }

.confidence-badge {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.confidence-badge--high { color: #16a34a; background: #dcfce7; }

/* Grey text lines that shimmer (stand in for AI text) */
.skeleton-text { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.skeleton-text span {
  display: block; height: 9px; border-radius: 6px;
  background: linear-gradient(90deg, var(--border) 25%, var(--surface-2) 50%, var(--border) 75%);
  background-size: 200% 100%; animation: shimmer 2.4s infinite;
}
.skeleton-text--sm { gap: 6px; margin-bottom: 0; }
.skeleton-text--sm span { height: 7px; }

.competitor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.competitor-chip {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color var(--transition), transform var(--transition);
}
.competitor-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.competitor-chip__name { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; }
.competitor-dot { width: 8px; height: 8px; border-radius: 50%; }
.competitor-dot--blue   { background: var(--primary); }
.competitor-dot--purple { background: var(--accent); }
.competitor-dot--orange { background: var(--accent-warm); }

.plan-list { display: flex; flex-direction: column; gap: 10px; }
.plan-list li { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-2); }
.plan-list__num {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 600; color: var(--text-2);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.plan-list li:hover .plan-list__num { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 88px 0; }
.section--tight { padding-top: 56px; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-head); font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin-bottom: 14px;
}
.section__sub { font-size: 1rem; color: var(--text-2); line-height: 1.7; }
.problem { text-align: center; max-width: 720px; }

/* ── Cards (same as the app) ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(59,53,212,0.2); }
.card__icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card__icon--blue { background: #eef0ff; }
.card__icon--teal { background: #edfaf5; }
.card__icon--warm { background: #fff1ec; }
.card__title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.card__desc { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }

.card--dark { background: var(--dark); border-color: var(--border-dark); }
.card--dark .card__title { color: #fff; }
.card--dark .card__desc { color: rgba(255,255,255,0.55); }
.card--dark:hover { border-color: rgba(124,120,245,0.35); }
.auto-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-size: 0.88rem; font-weight: 600; color: var(--accent);
  transition: gap var(--transition);
}
.auto-link:hover { gap: 10px; }

/* ── How it works ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step__num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  font-family: var(--font-head); font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.step:hover .step__num { background: var(--primary); color: #fff; transform: scale(1.08); }

/* ── Features ── */
.features__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ── Who it's for ── */
.who { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.who__tag {
  font-size: 0.9rem; font-weight: 500; color: var(--primary);
  background: var(--primary-soft); border: 1px solid rgba(59,53,212,0.2);
  border-radius: 999px; padding: 8px 18px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.who__tag:hover { background: rgba(59,53,212,0.15); transform: translateY(-2px); box-shadow: 0 2px 8px rgba(59,53,212,0.15); }

/* =============================================
   EARLY ACCESS FORM (same form styles as the app)
   ============================================= */
.access { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: center; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-field { margin-bottom: 20px; }
.form-label { display: flex; align-items: center; gap: 5px; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; }
.form-label .required { color: #e53935; font-size: 0.75rem; }
.form-input, .form-select {
  width: 100%; font-family: var(--font-body); font-size: 0.9rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 14px; outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,53,212,0.1); }
.form-input.error { border-color: #e53935; box-shadow: 0 0 0 3px rgba(229,57,53,0.1); }
.form-error-msg { font-size: 0.78rem; color: #e53935; margin-top: 5px; display: none; }
.form-error-msg.visible { display: block; }
.form-select-wrap { position: relative; }
.form-select-wrap .form-select { padding-right: 40px; cursor: pointer; }
.select-chevron { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-3); display: flex; }
.select-chevron svg { width: 16px; height: 16px; }

.access__submit { width: 100%; margin-top: 8px; }
.access__note { font-size: 0.78rem; color: var(--text-3); text-align: center; margin-top: 12px; }
.access__success { text-align: center; padding: 48px 32px; animation: fadeUp 0.4s ease both; }
.access__success-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px;
  background: #dcfce7; color: #16a34a;
  display: flex; align-items: center; justify-content: center;
}
.access__success-icon svg { width: 26px; height: 26px; }

/* =============================================
   FOOTER
   ============================================= */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer__brand-name { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.5px; }
.footer__copy { font-size: 0.8rem; color: var(--text-3); }
.footer__social-link { font-size: 0.85rem; color: var(--text-2); transition: color var(--transition); }
.footer__social-link:hover { color: var(--primary); }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 9000;
  background: var(--dark); color: #fff;
  padding: 14px 20px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 17px; height: 17px; color: var(--green); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(20px); }  to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer  { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .steps, .features__grid { grid-template-columns: 1fr; }
  .access { grid-template-columns: 1fr; gap: 32px; }
  .preview__body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero { padding: 56px 20px 24px; }
  .hero__cta { flex-direction: column; }
  .nav__links { display: none; }
  .competitor-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* =============================================
   HERO DEMO — animated walkthrough
   paste at bottom of style.css
   ============================================= */

/* Animated underline on the headline */
.hero__title { position: relative; z-index: 0; }
.hero__highlight { position: relative; white-space: nowrap; color: var(--primary); }
.hero__highlight::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.04em;
  height: 0.18em; border-radius: 999px; z-index: -1;
  background: var(--accent); opacity: 0.3;
  transform: scaleX(0); transform-origin: left;
  animation: underline 0.8s 0.7s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

.demo { max-width: 960px; margin: 64px auto 0; }
.demo .preview { margin-top: 16px; }

/* Step tabs */
.demo__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.demo__step {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 0.85rem; font-weight: 600; color: var(--text-2); text-align: left;
  transition: border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.demo__step:hover { border-color: rgba(59,53,212,0.2); color: var(--text); transform: translateY(-1px); }
.demo__step.is-active { color: var(--primary); border-color: rgba(59,53,212,0.25); box-shadow: var(--shadow); }
.demo__step-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; background: var(--surface-2); border: 1.5px solid var(--border);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.demo__step.is-active .demo__step-num,
.demo__step.is-done .demo__step-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.demo__step-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.demo__step-bar span { display: block; height: 100%; width: 0; background: var(--primary); }
.demo__step.is-done .demo__step-bar span { width: 100%; }
.demo__step.is-active .demo__step-bar span { animation: stepFill var(--scene-time, 6s) linear forwards; }
.demo.is-paused .demo__step.is-active .demo__step-bar span { animation-play-state: paused; }
@keyframes stepFill { from { width: 0; } to { width: 100%; } }

/* Top bar extras */
.demo__team { display: flex; margin-left: auto; margin-right: 10px; }
.demo__team .demo__av { margin-left: -6px; border: 2px solid var(--surface-2); }
.demo__play {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.demo__play:hover { background: var(--primary); color: #fff; transform: scale(1.08); }
.demo__play svg { width: 13px; height: 13px; }
.demo__icon-play { display: none; }
.demo.is-paused .demo__icon-play { display: block; }
.demo.is-paused .demo__icon-pause { display: none; }

/* Avatars (same gradients as the app) */
.demo__av {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 700; color: #fff;
}
.demo__av--a { background: linear-gradient(135deg, #a5b4fc, #6366f1); }
.demo__av--b { background: linear-gradient(135deg, #fca5a5, #ef4444); }

/* Stage + scenes */
.demo__stage { position: relative; height: 400px; background: var(--bg); overflow: hidden; }
.demo__scene {
  position: absolute; inset: 0; padding: 28px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px) scale(0.98); pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.demo__scene.is-active { opacity: 1; transform: none; }

/* Items that pop in during a scene */
.demo-pop { opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease, border-color var(--transition), box-shadow var(--transition); }
.demo-pop.is-in { opacity: 1; transform: none; }

/* Scene 1 — form */
.demo__form {
  width: 100%; max-width: 440px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.demo__field { margin-bottom: 14px; }
.demo__label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; }
.demo__input { min-height: 42px; display: flex; align-items: center; font-size: 0.88rem; }
.demo__input.is-focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,53,212,0.1); }
.demo__caret { display: none; width: 1.5px; height: 1.1em; margin-left: 1px; background: var(--primary); animation: blink 1s step-end infinite; }
.demo__input.is-focus .demo__caret { display: inline-block; }
.demo__analyse { width: 100%; margin-top: 6px; }
.demo__analyse.is-pressed { transform: scale(0.96); background: var(--primary-h); }

/* Scene 2 — research terminal */
.demo__terminal {
  width: 100%; max-width: 480px; background: var(--dark); border: 1px solid var(--border-dark);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-lg);
}
.demo__terminal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.demo__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
.demo__terminal-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.demo__line { font-family: 'Courier New', monospace; font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.demo__line span { color: var(--green); margin-right: 6px; }
.demo__progress { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.08); margin-top: 16px; overflow: hidden; }
.demo__progress span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 3.6s linear; }

/* Scene 3 — insights */
.demo__insights { width: 100%; display: grid; grid-template-columns: 1fr 220px; gap: 16px; align-items: start; }
.demo__summary { font-size: 0.88rem; color: var(--text-2); line-height: 1.65; margin-bottom: 16px; }
.demo__chip-desc { font-size: 0.76rem; color: var(--text-2); }
.competitor-chip.is-hovered { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.demo__score { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--primary); letter-spacing: -1px; margin: 10px 0 8px; }
.demo__score-track { height: 5px; border-radius: 999px; background: var(--border); overflow: hidden; }
.demo__score-track span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 1.4s cubic-bezier(.4,0,.2,1); }

/* Scene 4 — plan */
.demo__plan { width: 100%; max-width: 520px; }
.demo__badge-soft { color: var(--primary); background: var(--primary-soft); }
.demo__tasks { display: flex; flex-direction: column; gap: 8px; }
.demo__tasks li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 0.88rem; font-weight: 500;
}
.demo__tasks li .demo__av { margin-left: auto; }
.demo__tasks li.is-hovered { border-color: rgba(59,53,212,0.25); box-shadow: var(--shadow); }
.demo__check {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--border); background: var(--surface);
  transition: background var(--transition), border-color var(--transition);
}
.demo__tasks li.is-done .demo__check {
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
  border-color: var(--green);
}
.demo__toast {
  position: absolute; bottom: 22px; right: 22px;
  background: var(--dark); color: #fff; border-radius: var(--radius-sm);
  padding: 12px 18px; font-size: 0.85rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  opacity: 0; transform: translateY(14px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.demo__toast.is-in { opacity: 1; transform: none; }
.demo__toast svg { width: 16px; height: 16px; color: var(--green); }

/* Team cursors */
.demo__cursor {
  position: absolute; top: 0; left: 0; z-index: 5; pointer-events: none;
  display: flex; align-items: flex-start;
  transform: translate(var(--x, 50%), var(--y, 110%));
  transition: transform 0.9s cubic-bezier(.45,0,.2,1);
}
.demo__cursor svg { width: 20px; height: 20px; filter: drop-shadow(0 2px 3px rgba(22,21,26,0.25)); transition: transform 0.15s ease; }
.demo__cursor span {
  margin: 14px 0 0 -2px; padding: 3px 9px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; color: #fff; white-space: nowrap;
}
.demo__cursor--a svg { fill: var(--primary); }
.demo__cursor--a span { background: var(--primary); }
.demo__cursor--b svg { fill: var(--accent-warm); }
.demo__cursor--b span { background: var(--accent-warm); }
.demo__cursor.is-clicking svg { transform: scale(0.8); }

.demo__caption {
  text-align: center; font-size: 0.92rem; color: var(--text-2); margin-top: 16px; min-height: 1.6em;
  transition: opacity 0.3s ease;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

@media (max-width: 760px) {
  .demo__steps { grid-template-columns: repeat(2, 1fr); }
  .demo__stage { height: 470px; }
  .demo__insights { grid-template-columns: 1fr; }
  .demo__insights .analysis-card:last-child { display: none; }
  .demo__team { display: none; }
  .demo__play { margin-left: auto; }
}