/* ===========================================================================
   AI LEARN — Marketing site styles
   Built on the AI Learn design tokens (assets/colors_and_type.css).
   Warm paper field · white cards lift off · one confident purple · Geist.
   =========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* tone of the whole page is driven by a data-attr the Tweaks panel sets */
:root { --hero-ink: var(--ink-900); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.wrap { width: min(1180px, 92vw); margin-inline: auto; }
.wrap--narrow { width: min(880px, 92vw); margin-inline: auto; }

/* — shared type roles ---------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono); font-weight: 500;
  font-size: var(--text-eyebrow); text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow); color: var(--purple-700);
  margin: 0;
}
.eyebrow--muted { color: var(--ink-400); }
.eyebrow--light { color: rgba(255,255,255,.66); }

.display {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(44px, 7.4vw, 104px); line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display); margin: 0; text-wrap: balance;
}
.h-sec {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 4.6vw, 60px); line-height: 1.04;
  letter-spacing: var(--tracking-display); margin: 0; text-wrap: balance;
}
.h-card {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-xl); line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight); margin: 0;
}
.lede {
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5;
  color: var(--ink-600); margin: 0; max-width: 54ch; text-wrap: pretty;
}
.mono-voice {
  font-family: var(--font-mono); font-weight: 400;
  font-size: clamp(13px, 1.15vw, 15px); line-height: 1.65;
  color: var(--ink-600); margin: 0; max-width: 52ch;
}

/* — buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  border: none; font-family: var(--font-sans);
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}
.btn:active { transform: translateY(0); }
.btn-pill {
  height: 52px; padding: 0 30px; border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--tracking-button);
}
.btn-primary { background: var(--purple-700); color: #fff; box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--purple-800); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-900); }
.btn-ghost:hover { color: var(--purple-700); }
.btn-on-dark { background: #fff; color: var(--purple-800); }
.btn-on-dark:hover { background: #f3eefb; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--ink-900);
  border: 1px solid var(--line-strong);
  height: 52px; padding: 0 26px; border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: 500;
}
.btn-outline:hover { background: rgba(0,0,0,.03); }
.btn-sm { height: 40px; padding: 0 20px; }

.arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* — soft purple icon chip (the recurring brand unit) --------------------- */
.chip {
  width: 44px; height: 44px; border-radius: var(--radius-lg);
  background: var(--purple-100); color: var(--purple-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.chip svg { width: 22px; height: 22px; }
.chip--sm { width: 34px; height: 34px; border-radius: 9px; }
.chip--sm svg { width: 18px; height: 18px; }

/* ===========================================================================
   NAV
   =========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 64px;
  display: flex; align-items: center;
  background: rgba(246,244,239,.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-standard),
              background var(--dur-base) var(--ease-standard);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; width: min(1180px, 94vw); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark { width: 28px; height: 21px; color: var(--purple-700); }
.brand .mark svg { width: 100%; height: 100%; }
.brand .label {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: .2em; color: var(--ink-900); font-weight: 500;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: var(--text-sm); color: var(--ink-600); font-weight: 500;
  transition: color var(--dur-fast);
}
.nav-links a:hover { color: var(--purple-700); }
.nav .btn-pill { height: 40px; padding: 0 20px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ===========================================================================
   HERO
   =========================================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
}
.hero-bgwrap { position: absolute; inset: -8% -2% -2% -2%; z-index: 0; will-change: transform; }
.hero-bg { width: 100%; height: 100%; }
.img-slot.hero-bg { --radius: 0; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 18% 30%, rgba(246,244,239,.94) 0%, rgba(246,244,239,.72) 42%, rgba(246,244,239,.30) 100%);
  transition: background var(--dur-slow) var(--ease-standard);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.hero-copy { display: flex; flex-direction: column; gap: 26px; max-width: 640px; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; }
.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 999px; background: var(--purple-700);
  box-shadow: 0 0 0 0 rgba(101,53,139,.45); animation: heroPulse 2.4s var(--ease-out) infinite;
}
@keyframes heroPulse { 0%{box-shadow:0 0 0 0 rgba(101,53,139,.4)} 70%{box-shadow:0 0 0 12px rgba(101,53,139,0)} 100%{box-shadow:0 0 0 0 rgba(101,53,139,0)} }

.hero h1 { color: var(--hero-ink); }
.hero h1 .word { display: inline-block; }
.hero h1 .accent { color: var(--purple-700); font-style: normal; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* hero session card (frosted) */
.hero-card {
  position: relative; border-radius: var(--radius-2xl); padding: 30px;
  background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-float);
  display: flex; flex-direction: column; gap: 22px; will-change: transform;
}
.hero-card .coach-row { display: flex; align-items: center; gap: 16px; }
.coach-av { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.img-slot.coach-av { width: 64px; height: 64px; border-radius: 999px; }
.coach-av::after {
  content: ""; position: absolute; inset: -5px; border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(101,53,139,.85), 0 0 0 6px rgba(101,53,139,.16);
  animation: coachRing 2s var(--ease-out) infinite; pointer-events: none;
}
@keyframes coachRing { 0%,100%{box-shadow:0 0 0 2px rgba(101,53,139,.85),0 0 0 6px rgba(101,53,139,.14)} 50%{box-shadow:0 0 0 3px rgba(101,53,139,.6),0 0 0 12px rgba(101,53,139,0)} }
.coach-meta .cn { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; }
.coach-meta .cr { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-400); margin-top: 2px; }

.hero-utterance {
  font-family: var(--font-mono); font-size: 14px; line-height: 1.6; color: var(--ink-700);
  padding: 16px 18px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.hero-utterance .cursor { display: inline-block; width: 8px; height: 1.05em; vertical-align: -2px; background: var(--purple-700); margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* status pills: LYSSNAR / TALAR / VÄNTAR */
.status-row { display: flex; gap: 8px; }
.status-pill {
  flex: 1; text-align: center; padding: 9px 0; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .16em; color: var(--ink-300); background: var(--line-soft);
  transition: all var(--dur-base) var(--ease-standard);
}
.status-pill.on-listen { background: var(--purple-700); color: #fff; box-shadow: var(--shadow-card); }
.status-pill.on-talk   { background: var(--forest-500); color: #fff; }
.status-pill.on-wait   { background: var(--clay-300); color: var(--ink-900); }

.mic-meter { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.mic-meter span { flex: 1; border-radius: 3px; background: var(--purple-200); transition: height .12s var(--ease-out), background .12s; min-height: 4px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .22em; color: var(--ink-400);
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--ink-300), transparent); animation: cueLine 2.2s var(--ease-out) infinite; transform-origin: top; }
@keyframes cueLine { 0%{transform:scaleY(0);opacity:0} 40%{transform:scaleY(1);opacity:1} 100%{transform:scaleY(1);opacity:0} }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { order: 2; }
}

/* ===========================================================================
   SECTION scaffolding
   =========================================================================== */
.section { position: relative; padding: clamp(88px, 12vh, 150px) 0; }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.section-head.center { margin-inline: auto; align-items: center; text-align: center; }

/* — How it works (3 steps) ----------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 30px 28px 32px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden;
}
.step .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--ink-400); text-transform: uppercase; }
.step h3 { margin: 4px 0 0; }
.step p { margin: 0; color: var(--ink-600); font-size: var(--text-base); }
.step .rule { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--purple-700); transition: width .9s var(--ease-out); transition-delay: calc(var(--i,0)*120ms + 200ms); }
.step.in .rule { width: 100%; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ===========================================================================
   TOOLBOX — pinned scrollytelling
   =========================================================================== */
.toolbox { background: var(--paper); }
.toolbox-pin { position: relative; }
.toolbox-stage {
  position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden;
}
.toolbox-stage .wrap {
  display: grid; grid-template-columns: 1fr 1.04fr; gap: clamp(32px, 5vw, 80px); align-items: center; width: min(1180px, 92vw);
}

/* left: changing big word + tool rail */
.tb-left { display: flex; flex-direction: column; gap: 26px; }
.tb-words { position: relative; height: clamp(120px, 18vh, 200px); }
.tb-word {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 6vw, 88px); line-height: .98; letter-spacing: var(--tracking-display);
  color: var(--ink-900); opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.tb-word.on { opacity: 1; transform: none; }
.tb-word.past { opacity: 0; transform: translateY(-24px); }
.tb-caption { font-size: var(--text-lg); line-height: 1.5; color: var(--ink-600); max-width: 40ch; min-height: 3em; }
.tb-caption b { color: var(--purple-700); font-weight: 600; }

.tb-rail { display: flex; flex-direction: column; gap: 2px; }
.tb-tool {
  display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: var(--radius-md);
  transition: background var(--dur-base) var(--ease-standard);
}
.tb-tool .chip { transition: transform var(--dur-base) var(--ease-out), background var(--dur-base), color var(--dur-base); }
.tb-tool .tname { font-size: var(--text-sm); font-weight: 500; color: var(--ink-400); transition: color var(--dur-base); }
.tb-tool.on { background: var(--white); box-shadow: var(--shadow-card); }
.tb-tool.on .chip { background: var(--purple-700); color: #fff; transform: scale(1.04); }
.tb-tool.on .tname { color: var(--ink-900); }
.tb-progress { height: 2px; background: var(--line); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.tb-progress i { display: block; height: 100%; width: 0; background: var(--purple-700); }

/* ===========================================================================
   TOOLBOX — scroll-scrubbed video background (canvas image-sequence)
   Active only on .toolbox.has-video. Canvas fills the pinned stage; a scrim
   keeps the overlay text legible; the old .tb-screen mock is hidden.
   =========================================================================== */
.tb-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  display: block; background: #141040;
}
.tb-canvas-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(20,16,64,.90) 0%, rgba(20,16,64,.62) 40%, rgba(20,16,64,.20) 72%, rgba(20,16,64,.05) 100%);
}
.toolbox.has-video .toolbox-stage .wrap { position: relative; z-index: 2; grid-template-columns: minmax(0, 640px); }
.toolbox.has-video .tb-screen { display: none; }
.toolbox.has-video .tb-word { color: #fff; }
.toolbox.has-video .tb-lead { color: rgba(255,255,255,.82); }
.toolbox.has-video .tb-caption { color: rgba(255,255,255,.82); }
.toolbox.has-video .tb-caption b { color: #d9c2ef; }
.toolbox.has-video .eyebrow { color: #c9b3dd; }
.toolbox.has-video .tb-tool .tname { color: rgba(255,255,255,.55); }
.toolbox.has-video .tb-tool.on { background: rgba(255,255,255,.10); box-shadow: none; }
.toolbox.has-video .tb-tool.on .tname { color: #fff; }
.toolbox.has-video .tb-tool .chip { background: rgba(255,255,255,.12); color: #d9c2ef; }
.toolbox.has-video .tb-tool.on .chip { background: #fff; color: var(--purple-800); }
.toolbox.has-video .tb-progress { background: rgba(255,255,255,.18); }
.toolbox.has-video .tb-progress i { background: #fff; }

/* right: the session screen, panels crossfade */
.tb-screen {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-2xl); overflow: hidden;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-float);
}
.tb-screen .scr-top {
  position: absolute; inset: 0 0 auto 0; height: 44px; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 6;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-400);
}
.tb-screen .scr-top .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--purple-300); }
.tb-panel {
  position: absolute; inset: 44px 0 0 0; padding: 26px 28px; opacity: 0; transform: scale(.985);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); pointer-events: none;
  display: flex; flex-direction: column; gap: 14px;
}
.tb-panel.on { opacity: 1; transform: none; }

/* panel: video */
.pv-frame { flex: 1; border-radius: var(--radius-lg); background: linear-gradient(135deg, #2d1b69, #4d2569); position: relative; overflow: hidden; }
.pv-frame::after { content:""; position:absolute; inset:0; background: radial-gradient(60% 60% at 50% 45%, rgba(255,255,255,.12), transparent); }
.pv-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 999px; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--purple-800); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.pv-play svg { width: 26px; height: 26px; margin-left: 3px; }
.pv-scrub { height: 4px; border-radius: 3px; background: var(--line); position: relative; }
.pv-scrub i { position: absolute; inset: 0 62% 0 0; background: var(--purple-700); border-radius: 3px; }
/* panel: images */
.pi-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.pi-grid > div { border-radius: var(--radius-md); background: var(--line-soft); border: 1px solid var(--line); position: relative; overflow: hidden; }
.pi-grid > div::after { content:""; position:absolute; inset:0; background: linear-gradient(135deg, var(--purple-100), transparent 70%); }
.pi-grid .ic { position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; color: var(--purple-300); }
/* panel: lecture (slide card mini) */
.pl-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--purple-700); }
.pl-title { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; color: var(--ink-900); }
.pl-lines { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.pl-lines span { height: 9px; border-radius: 4px; background: var(--line); }
.pl-lines span:nth-child(1){width:92%} .pl-lines span:nth-child(2){width:80%} .pl-lines span:nth-child(3){width:66%}
/* panel: question */
.pq-q { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; letter-spacing: -.01em; color: var(--ink-900); }
.pq-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.pq-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); font-size: var(--text-sm); color: var(--ink-700); }
.pq-opt .box { width: 18px; height: 18px; border-radius: 6px; border: 1.6px solid var(--line-strong); flex-shrink: 0; }
.pq-opt.correct { border-color: var(--forest-500); background: var(--forest-100); color: var(--forest-700); }
.pq-opt.correct .box { border-color: var(--forest-500); background: var(--forest-500); position: relative; }
.pq-opt.correct .box::after { content:""; position:absolute; left:5px; top:2px; width:5px; height:9px; border:2px solid #fff; border-top:0; border-left:0; transform: rotate(45deg); }
/* panel: whiteboard */
.pw-board { flex: 1; border-radius: var(--radius-lg); background: #fbfaf7; border: 1px solid var(--line); padding: 22px 24px; position: relative; }
.pw-h { font-family: var(--font-hand); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); color: var(--teach-default); margin-bottom: 10px; }
.pw-line { font-family: var(--font-hand); font-weight: 600; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.5; color: var(--teach-default); }
.pw-line .hl { background: linear-gradient(transparent 55%, rgba(252,211,77,.6) 55%); padding: 0 .12em; }
.pw-line .red { color: var(--teach-problem); }
.pw-line .green { color: var(--teach-solution); }
/* panel: interactive exercise */
.px-card { flex: 1; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.px-track { height: 44px; border-radius: var(--radius-md); background: var(--purple-100); position: relative; display: flex; align-items: center; padding: 0 6px; }
.px-knob { width: 34px; height: 34px; border-radius: 9px; background: var(--purple-700); position: absolute; left: 58%; box-shadow: var(--shadow-card); }
.px-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.px-chips span { padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--white); font-size: var(--text-sm); color: var(--ink-700); }
.px-chips span.sel { background: var(--purple-700); color: #fff; border-color: var(--purple-700); }
/* panel: roleplay — a live voice call, not a chat */
.pr-call { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; text-align: center; }
.pr-avwrap { position: relative; width: 92px; height: 92px; }
.pr-avwrap::after { content: ""; position: absolute; inset: -6px; border-radius: 999px; box-shadow: 0 0 0 2px rgba(101,53,139,.7), 0 0 0 6px rgba(101,53,139,.14); animation: coachRing 2s var(--ease-out) infinite; pointer-events: none; }
.img-slot.pr-av { width: 92px; height: 92px; border-radius: 999px; display: block; box-shadow: var(--shadow-raised); }
.pr-name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--ink-900); line-height: 1.2; }
.pr-name b { font-weight: 600; }
.pr-name span { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); margin-top: 3px; font-weight: 400; }
.pr-status { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--purple-700); }
.pr-status .d { width: 7px; height: 7px; border-radius: 999px; background: var(--purple-700); animation: cuePulse 1.4s infinite; }
.pr-wave { display: flex; align-items: center; gap: 4px; height: 36px; }
.pr-wave span { width: 5px; height: 9px; border-radius: 3px; background: var(--purple-300); animation: prWave 1.05s var(--ease-standard) infinite; }
.pr-wave span:nth-child(3n) { background: var(--purple-500); }
.pr-wave span:nth-child(1){animation-delay:-.9s} .pr-wave span:nth-child(2){animation-delay:-.2s}
.pr-wave span:nth-child(3){animation-delay:-.65s} .pr-wave span:nth-child(4){animation-delay:-.05s}
.pr-wave span:nth-child(5){animation-delay:-.45s} .pr-wave span:nth-child(6){animation-delay:-.85s}
.pr-wave span:nth-child(7){animation-delay:-.15s} .pr-wave span:nth-child(8){animation-delay:-.55s}
.pr-wave span:nth-child(9){animation-delay:-.3s} .pr-wave span:nth-child(10){animation-delay:-.75s}
.pr-wave span:nth-child(11){animation-delay:-.1s} .pr-wave span:nth-child(12){animation-delay:-.6s}
.pr-wave span:nth-child(13){animation-delay:-.4s}
@keyframes prWave { 0%,100% { height: 9px; } 50% { height: 32px; } }
.pr-cap { font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1.6; color: var(--ink-600); max-width: 34ch; }
.pr-turn { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); margin-top: 2px; }
.pr-turn svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) {
  .pr-avwrap::after, .pr-status .d { animation: none; }
  .pr-wave span { animation: none; }
  .pr-wave span:nth-child(2),.pr-wave span:nth-child(5),.pr-wave span:nth-child(8),.pr-wave span:nth-child(11) { height: 30px; }
  .pr-wave span:nth-child(3n) { height: 22px; }
}

@media (max-width: 900px) {
  .toolbox-stage { height: auto; position: relative; padding: 80px 0; }
  .toolbox-pin { height: auto !important; }
  .toolbox-stage .wrap { grid-template-columns: 1fr; gap: 40px; }
  .tb-words { height: auto; min-height: 80px; }
  .tb-word { position: relative; opacity: 1; transform: none; }
  .tb-word:not(:first-child) { display: none; }
  .toolbox.has-video .toolbox-stage { min-height: 70svh; }
  .toolbox.has-video .toolbox-stage .wrap { grid-template-columns: 1fr; }
}

/* ===========================================================================
   ADAPTIVE diagnostics — split with path graphic
   =========================================================================== */
.adapt .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.adapt-copy { display: flex; flex-direction: column; gap: 22px; }
.adapt-list { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.adapt-item { display: flex; gap: 14px; align-items: flex-start; }
.adapt-item p { margin: 0; color: var(--ink-600); font-size: var(--text-base); }
.adapt-item p b { color: var(--ink-900); font-weight: 600; }

.path { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-2xl); padding: 34px 30px; box-shadow: var(--shadow-card); }
.path-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 22px; }
.path-row { display: flex; align-items: center; gap: 0; }
.node { display: flex; flex-direction: column; align-items: center; gap: 9px; flex-shrink: 0; width: 64px; }
.node .bead { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; border: 2px solid var(--line-strong); background: var(--white); color: var(--ink-400); transition: all .5s var(--ease-out); }
.node .bead svg { width: 18px; height: 18px; }
.node .nl { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); }
.seg { flex: 1; height: 2px; background: var(--line); position: relative; }
.seg i { position: absolute; inset: 0; width: 0; background: var(--purple-700); transition: width .6s var(--ease-out); }
.adapt.in .seg i { width: 100%; }
.adapt.in .seg:nth-child(2) i { transition-delay: .15s; }
.adapt.in .seg:nth-child(4) i { transition-delay: .45s; }
.adapt.in .seg:nth-child(6) i { transition-delay: .75s; }
.node.done .bead { background: var(--forest-500); border-color: var(--forest-500); color: #fff; }
.node.skip .bead { background: var(--clay-100); border-color: var(--clay-300); color: var(--clay-700); border-style: dashed; }
.node.now .bead { background: var(--purple-700); border-color: var(--purple-700); color: #fff; box-shadow: 0 0 0 4px var(--purple-100); }
.path-note { margin-top: 22px; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--ink-500); display: flex; gap: 10px; align-items: flex-start; }
.path-note .dash { width: 22px; height: 0; border-top: 2px dashed var(--clay-300); margin-top: 9px; flex-shrink: 0; }
@media (max-width: 860px) { .adapt .wrap { grid-template-columns: 1fr; } }

/* ===========================================================================
   PLAYER demo — slides plop in
   =========================================================================== */
.player-demo { background: linear-gradient(180deg, var(--paper), #efeae1); }
.pd-stage {
  margin-top: 56px; position: relative; border-radius: var(--radius-2xl); overflow: hidden;
  background: linear-gradient(135deg, #1a1040 0%, #2d1b69 52%, #1a1040 100%);
  box-shadow: var(--shadow-float); padding: clamp(34px, 5vw, 64px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
}
.pd-coach { display: flex; flex-direction: column; align-items: center; gap: 16px; color: #fff; text-align: center; width: 180px; }
.pd-av { width: 96px; height: 96px; border-radius: 999px; background: linear-gradient(135deg, var(--clay-300), var(--purple-300)); position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.pd-av::after { content:""; position:absolute; inset:-4px; border-radius:999px; box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 0 0 7px rgba(255,255,255,.14); animation: coachRing 1.8s var(--ease-out) infinite; }
.pd-coach .cn { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; }
.pd-coach .cr { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.pd-cue { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.pd-cue .d { width: 6px; height: 6px; border-radius: 999px; background: var(--clay-300); animation: cuePulse 1.4s infinite; }
.pd-cue span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.82); }
@keyframes cuePulse { 0%,100%{opacity:.4} 50%{opacity:1} }

.pd-right { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pd-slide { background: #fff; border-radius: var(--radius-xl); padding: 30px 34px; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.pd-slide .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--purple-700); }
.pd-slide h3 { font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 12px 0 12px; color: var(--ink-900); }
.pd-slide p { margin: 0; font-size: var(--text-base); line-height: 1.6; color: var(--ink-700); }
.pd-thumbs { display: flex; gap: 10px; }
.pd-thumb {
  width: 70px; height: 44px; border-radius: 9px; background: #fff; border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 2px 10px rgba(0,0,0,.28); padding: 6px 7px; display: flex; flex-direction: column; gap: 4px;
  opacity: 0; transform: scale(.4);
}
.pd-thumb .tl { height: 3px; border-radius: 2px; background: var(--purple-300); }
.pd-thumb .tl.s { width: 70%; background: var(--purple-700); }
.pd-thumb .tl.m { width: 90%; }
.pd-thumb .tl.l { width: 55%; }
.pd-thumb.cur { outline: 2px solid #fff; outline-offset: 1px; }
.player-demo.in .pd-thumb { animation: thumbPlop .42s cubic-bezier(.34,1.4,.5,1) forwards; }
.player-demo.in .pd-thumb:nth-child(1){animation-delay:.05s}
.player-demo.in .pd-thumb:nth-child(2){animation-delay:.18s}
.player-demo.in .pd-thumb:nth-child(3){animation-delay:.31s}
.player-demo.in .pd-thumb:nth-child(4){animation-delay:.44s}
.player-demo.in .pd-thumb:nth-child(5){animation-delay:.57s}
@keyframes thumbPlop { 0%{transform:scale(.4);opacity:0} 60%{transform:scale(1.12);opacity:1} 100%{transform:scale(1);opacity:1} }
@media (max-width: 760px) { .pd-stage { grid-template-columns: 1fr; } .pd-coach { flex-direction: row; width: auto; text-align: left; } }

/* ===========================================================================
   STUDIO — producer workspace
   =========================================================================== */
.studio .wrap { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.studio-copy { display: flex; flex-direction: column; gap: 22px; }
.studio-feats { display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }
.studio-feat { display: flex; gap: 14px; align-items: flex-start; }
.studio-feat .ft h4 { margin: 0 0 3px; font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; color: var(--ink-900); }
.studio-feat .ft p { margin: 0; font-size: var(--text-sm); color: var(--ink-500); }

/* mock studio shell */
.studio-mock { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-float); background: var(--white); }
.sm-top { height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--white); }
.sm-top .crumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-500); }
.sm-top .crumb b { color: var(--ink-900); font-weight: 600; }
.sm-top .spacer { flex: 1; }
.sm-top .kbd { font-family: var(--font-mono); font-size: 11px; color: var(--ink-400); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.sm-body { display: grid; grid-template-columns: 168px 1fr; min-height: 320px; }
.sm-side { border-right: 1px solid var(--line); background: var(--paper); padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.sm-nav { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--ink-600); }
.sm-nav svg { width: 17px; height: 17px; color: var(--ink-400); }
.sm-nav.active { background: var(--white); color: var(--ink-900); font-weight: 500; box-shadow: var(--shadow-card); }
.sm-nav.active svg { color: var(--purple-700); }
.sm-main { padding: 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.sm-head { display: flex; align-items: center; justify-content: space-between; }
.sm-head .t { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; letter-spacing: -.01em; }
.sm-new { height: 34px; padding: 0 14px; border-radius: var(--radius-md); background: var(--purple-700); color: #fff; font-size: var(--text-xs); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.sm-new svg { width: 15px; height: 15px; }
.sm-rows { display: flex; flex-direction: column; gap: 8px; }
.sm-row { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.sm-row .rt { flex: 1; min-width: 0; }
.sm-row .rt .name { font-size: var(--text-sm); font-weight: 500; color: var(--ink-900); }
.sm-row .rt .meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-400); letter-spacing: .04em; margin-top: 2px; }
.tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--radius-pill); font-weight: 600; }
.tag.published { background: var(--forest-100); color: var(--forest-700); }
.tag.draft { background: var(--clay-100); color: var(--clay-700); }
.tag.review { background: var(--purple-100); color: var(--purple-800); }
@media (max-width: 880px) { .studio .wrap { grid-template-columns: 1fr; } .sm-body { grid-template-columns: 1fr; } .sm-side { display: none; } }

/* ===========================================================================
   KANBAN — the learning-objective board ("Så här ser det ut i appen")
   =========================================================================== */
.kanban-sec { background: linear-gradient(180deg, #efeae1, var(--paper)); overflow: hidden; }
.kanban-sec .section-head { max-width: 760px; }
.kanban-caption { font-family: var(--font-mono); font-size: var(--text-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--ink-400); margin: 44px 0 14px; }

.kanban-frame {
  width: min(1320px, 96vw); margin: 0 auto; border-radius: var(--radius-xl);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-float);
  overflow: hidden;
}
/* window chrome */
.kn-top { display: flex; align-items: center; gap: 14px; padding: 0 16px; height: 50px; border-bottom: 1px solid var(--line); }
.kn-crumb { display: flex; align-items: center; gap: 9px; font-size: var(--text-sm); min-width: 0; }
.kn-crumb .back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-500); }
.kn-crumb .sep { color: var(--ink-300); }
.kn-crumb .here { font-weight: 600; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kn-top .spacer { flex: 1; }
.kn-actions { display: flex; align-items: center; gap: 6px; }
.kn-act { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: var(--radius-md); font-size: var(--text-xs); font-weight: 500; color: var(--ink-600); border: 1px solid transparent; }
.kn-act svg { width: 14px; height: 14px; }
.kn-act.bordered { border-color: var(--line); }
.kn-act.ai { color: var(--purple-700); }
@media (max-width: 760px) { .kn-actions .kn-act:not(.ai) { display: none; } }

/* tab row */
.kn-tabs { display: flex; align-items: center; gap: 4px; padding: 0 16px; height: 46px; border-bottom: 1px solid var(--line); background: var(--paper); }
.kn-tab { padding: 6px 12px; border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 500; color: var(--ink-500); }
.kn-tab.active { background: var(--white); color: var(--ink-900); box-shadow: var(--shadow-card); }
.kn-tabs .spacer { flex: 1; }
.kn-newlo { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); font-size: var(--text-xs); font-weight: 600; color: var(--ink-700); background: var(--white); }
.kn-newlo svg { width: 14px; height: 14px; }

/* framework strip */
.kn-fw { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.kn-fw .lbl { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-400); margin-right: 4px; }
.kn-pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--white); font-size: var(--text-xs); font-weight: 500; color: var(--ink-700); }
.kn-pill .chip { width: 18px; height: 18px; border-radius: 6px; }
.kn-pill .chip svg { width: 12px; height: 12px; }
.kn-pill.ghost { border-style: dashed; color: var(--ink-400); font-style: italic; font-family: var(--font-mono); }
.kn-arrow { color: var(--ink-300); font-size: 13px; }

/* board */
.kn-board { display: grid; grid-auto-flow: column; grid-auto-columns: 286px; gap: 16px; padding: 18px 16px 20px; overflow-x: auto; scrollbar-width: thin; }
.kn-col { display: flex; flex-direction: column; gap: 11px; }
.kn-lo {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px 14px 13px; display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.kn-lo-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kn-lo .eyb { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); }
.kn-lo .dots { color: var(--ink-300); flex-shrink: 0; }
.kn-lo .t { font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 600; line-height: 1.3; color: var(--ink-900); }
.kn-lo .d { font-size: 12px; line-height: 1.45; color: var(--ink-500);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kn-lo .prog { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.kn-lo .bars { display: flex; gap: 4px; flex: 1; }
.kn-lo .bars i { height: 4px; flex: 1; border-radius: 3px; background: var(--purple-200); }
.kn-lo .bars i.on { background: var(--purple-700); }
.kn-lo .cnt { font-family: var(--font-mono); font-size: 10px; color: var(--ink-400); white-space: nowrap; }

.kn-card {
  border-radius: var(--radius-md); padding: 11px 13px 12px; display: flex; flex-direction: column; gap: 7px;
  border: 1px solid rgba(26,26,31,.05);
  opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.kn-card .ct { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kn-card .tlabel { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding: 3px 7px; border-radius: 5px; background: rgba(255,255,255,.6); }
.kn-card .cmeta { display: flex; align-items: center; gap: 6px; color: var(--ink-300); }
.kn-card .cmeta svg { width: 13px; height: 13px; }
.kn-card .ctitle { font-size: var(--text-sm); font-weight: 600; line-height: 1.3; color: var(--ink-900); }
.kn-card .cdesc { font-size: 11.5px; line-height: 1.45; color: var(--ink-500);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kn-card .cnode { font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; color: var(--ink-400); margin-top: 1px; }

/* node-type colours (mirror the app) */
.kn-card.t-video      { background: #fbe1e3; }
.kn-card.t-video      .tlabel { color: #b3344b; }
.kn-card.t-lecture    { background: var(--purple-100); }
.kn-card.t-lecture    .tlabel { color: var(--purple-700); }
.kn-card.t-whiteboard { background: #ece4f4; }
.kn-card.t-whiteboard .tlabel { color: var(--purple-700); }
.kn-card.t-exercise   { background: #f6ebcf; }
.kn-card.t-exercise   .tlabel { color: var(--clay-700); }
.kn-card.t-question   { background: #f8eed3; }
.kn-card.t-question   .tlabel { color: var(--clay-700); }

.kn-add { display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); color: var(--ink-400); font-size: var(--text-xs); font-weight: 500; margin-top: 2px; }
.kn-add svg { width: 14px; height: 14px; }

/* build-up on scroll */
.kanban-frame.in .kn-lo, .kanban-frame.in .kn-card { opacity: 1; transform: none; }
.kanban-frame .kn-col:nth-child(1) .kn-lo { transition-delay: .05s; }
.kanban-frame .kn-col:nth-child(2) .kn-lo { transition-delay: .12s; }
.kanban-frame .kn-col:nth-child(3) .kn-lo { transition-delay: .19s; }
.kanban-frame .kn-col:nth-child(4) .kn-lo { transition-delay: .26s; }
.kanban-frame .kn-card { transition-delay: calc(var(--cd, 0) * 1ms); }

.kn-hint { display: none; }
@media (max-width: 760px) {
  .kn-hint { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--ink-400); text-align: center; margin-top: 12px; }
}

/* tone variant */
:root[data-tone="purple"] .kanban-sec { background: linear-gradient(180deg, #1a1040, #2d1b69); }
:root[data-tone="purple"] .kanban-sec .h-sec { color: #fff; }
:root[data-tone="purple"] .kanban-sec .eyebrow { color: #c9b3dd; }
:root[data-tone="purple"] .kanban-sec .lede { color: rgba(255,255,255,.72); }
:root[data-tone="purple"] .kanban-caption { color: rgba(255,255,255,.5); }

/* ===========================================================================
   CLOSING CTA + footer
   =========================================================================== */
.closing { padding: clamp(96px, 14vh, 170px) 0; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #371a4d 0%, #4d2569 48%, #2d1b69 100%); }
.closing::before { content:""; position:absolute; inset:0; background: radial-gradient(80% 60% at 70% 20%, rgba(101,53,139,.5), transparent 70%); }
.closing .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; }
.closing h2 { color: #fff; }
.closing .lede { color: rgba(255,255,255,.82); text-align: center; }
.closing .hand { display: inline-block; white-space: nowrap; font-family: var(--font-hand); font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); color: var(--clay-300); transform: rotate(-3deg); }

.footer { background: var(--ink-900); color: rgba(255,255,255,.7); padding: 56px 0 40px; }
.footer .wrap { display: flex; flex-direction: column; gap: 30px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand .mark { color: #fff; }
.footer .brand .label { color: #fff; }
.footer .tagline { font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 34ch; margin-top: 14px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .ch { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.footer-col a { font-size: var(--text-sm); color: rgba(255,255,255,.72); transition: color var(--dur-fast); }
.footer-col a:hover { color: #fff; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.4); }

/* ===========================================================================
   REVEAL primitives
   =========================================================================== */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }

/* hero word stagger */
.hero h1 .word { opacity: 0; transform: translateY(.55em); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.hero.in h1 .word { opacity: 1; transform: none; }
.hero.in h1 .word { transition-delay: calc(var(--w, 0) * 70ms); }
/* hard fallback: if the one-shot transition ever freezes at 0, force the
   end-state (dropping the transition makes the resolved opacity:1 apply). */
.hero.hero-shown h1 .word { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ===========================================================================
   TONE VARIANT — Tweaks panel sets :root[data-tone]
   "purple" pushes deep-purple feature surfaces; "paper" keeps it calm.
   =========================================================================== */
:root[data-tone="purple"] .hero-scrim {
  background:
    linear-gradient(120deg, rgba(28,16,56,.92) 0%, rgba(45,27,105,.74) 46%, rgba(28,16,56,.30) 100%);
}
:root[data-tone="purple"] { --hero-ink: #fff; }
:root[data-tone="purple"] .hero-eyebrow .eyebrow { color: #c9b3dd; }
:root[data-tone="purple"] .hero h1 .accent { color: #d9c2ef; }
:root[data-tone="purple"] .hero .mono-voice { color: rgba(255,255,255,.82); }
:root[data-tone="purple"] .hero .btn-ghost { color: #fff; }
:root[data-tone="purple"] .hero .btn-ghost:hover { color: #e0cdf4; }
:root[data-tone="purple"] .scroll-cue { color: rgba(255,255,255,.6); }
:root[data-tone="purple"] .scroll-cue .line { background: linear-gradient(rgba(255,255,255,.6), transparent); }
:root[data-tone="purple"] .toolbox { background: linear-gradient(180deg, #1a1040, #2d1b69); }
:root[data-tone="purple"] .toolbox .tb-word { color: #fff; }
:root[data-tone="purple"] .toolbox .tb-caption { color: rgba(255,255,255,.74); }
:root[data-tone="purple"] .toolbox .tb-caption b { color: #d9c2ef; }
:root[data-tone="purple"] .toolbox .eyebrow { color: #c9b3dd; }
:root[data-tone="purple"] .toolbox .tb-tool .tname { color: rgba(255,255,255,.5); }
:root[data-tone="purple"] .toolbox .tb-tool.on .tname { color: #fff; }
:root[data-tone="purple"] .toolbox .tb-tool.on { background: rgba(255,255,255,.08); box-shadow: none; }
:root[data-tone="purple"] .toolbox .tb-tool .chip { background: rgba(255,255,255,.1); color: #d9c2ef; }
:root[data-tone="purple"] .toolbox .tb-progress { background: rgba(255,255,255,.15); }
:root[data-tone="purple"] .studio { background: linear-gradient(180deg, #2d1b69, #1a1040); }
:root[data-tone="purple"] .studio .h-sec, :root[data-tone="purple"] .studio .studio-feat .ft h4 { color: #fff; }
:root[data-tone="purple"] .studio .lede, :root[data-tone="purple"] .studio .studio-feat .ft p { color: rgba(255,255,255,.72); }
:root[data-tone="purple"] .studio .eyebrow { color: #c9b3dd; }
:root[data-tone="purple"] .studio .chip { background: rgba(255,255,255,.1); color: #d9c2ef; }

/* motion off */
:root[data-motion="off"] [data-reveal],
:root[data-motion="off"] .hero h1 .word { opacity: 1 !important; transform: none !important; transition: none !important; }
:root[data-motion="off"] [data-parallax] { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .hero h1 .word { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-bgwrap, .hero-card { transform: none !important; }
}

/* ===========================================================================
   IMAGE SLOT PLACEHOLDERS
   Production replacements for <image-slot> design-tool custom elements.
   Drop real <img> tags inside these divs when images are ready.
   =========================================================================== */
.img-slot {
  background: var(--line-soft);
  display: block;
}
.img-slot--circle { border-radius: 50%; }
.img-slot--rect { width: 100%; height: 100%; }

.hero-bg.img-slot {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple-900) 0%, var(--purple-700) 60%, var(--clay-700) 100%);
}
.hero-bg.img-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.coach-av.img-slot,
.pr-av.img-slot {
  border-radius: 50%;
  background: var(--purple-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-600);
}
.coach-av.img-slot img,
.pr-av.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
