/* Taito Learning brand: deep purple, lavender, rounded green buttons, Fredoka. */
:root {
  --purple-950: #150f35;
  --purple-900: #1f1752;
  --purple-800: #312572;
  --purple-600: #5a48c2;
  --purple-500: #7d6dd9;
  --purple-200: #c9c0fa;
  --purple-100: #e4dffe;
  --purple-50: #f5f3ff;
  --green-600: #3f8a5b;
  --green-500: #509e6d;
  --green-100: #ddf1e4;
  --yellow: #ffc845;
  --yellow-dark: #d9a21f;
  --orange: #f28c38;
  --pink: #f06a9b;
  --red: #c2263f;
  --ink: #0f0f0f;
  --ink-soft: #4a4560;
  --line: #e6e2f5;
  --bg: #fbfaff;
  --radius: 18px;
  --radius-lg: 28px;
  --pill: 999px;
  --shadow: 0 24px 60px -24px rgba(49, 37, 114, 0.38);
  --font: 'Fredoka', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hero-gradient: radial-gradient(circle at 18% 22%, #5a48c2 0, transparent 42%),
    radial-gradient(circle at 85% 78%, #7d6dd9 0, transparent 38%),
    linear-gradient(160deg, #312572 0%, #1f1752 60%, #150f35 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-weight: 600;
  color: var(--purple-800);
}

p {
  margin: 0;
}

button,
input {
  font: inherit;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--pill);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}

.btn:active {
  transform: translateY(3px);
}

.btn:focus-visible,
.fab:focus-visible,
.rail button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--green-500);
  color: #fff;
  box-shadow: 0 5px 0 var(--green-600);
}

.btn-primary:hover {
  background: #5aad78;
}

.btn-primary:active {
  box-shadow: 0 2px 0 var(--green-600);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-ghost {
  background: transparent;
  color: var(--purple-800);
  border: 2px solid var(--purple-800);
}

.btn-ghost:hover {
  background: var(--purple-50);
}

.btn-block {
  width: 100%;
}

/* ---------- Logo & top bar ---------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.85;
  color: inherit;
  text-decoration: none;
}

.logo-word {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-sub {
  margin-top: 3px;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.42em;
}

.logo-dark {
  color: var(--purple-800);
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px);
  color: #fff;
  transition: background 0.3s, box-shadow 0.3s, color 0.3s, padding 0.3s;
}

.topbar.is-scrolled {
  padding-block: 10px;
  color: var(--purple-800);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px -18px rgba(49, 37, 114, 0.6);
}

.topbar-customer {
  max-width: 55vw;
  overflow: hidden;
  padding: 8px 16px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-customer:empty {
  display: none;
}

.topbar.is-scrolled .topbar-customer {
  background: var(--purple-50);
}

/* ---------- Loading ---------- */
.loading {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: var(--hero-gradient);
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.load-error {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 20px 110px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: var(--hero-gradient);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -2px;
  height: 120px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1040px;
}

.hero-greeting {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  opacity: 0;
  animation: rise 0.8s 0.1s forwards;
}

.hero-for {
  margin-top: 6px;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--purple-200);
  opacity: 0;
  animation: rise 0.8s 0.25s forwards;
}

.hero-for strong {
  color: #fff;
  font-weight: 600;
}

.hero-title {
  margin-top: 30px;
  font-size: clamp(2.9rem, 9vw, 7.2rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff;
}

.word {
  display: inline-block;
  margin-right: 0.22em;
  opacity: 0;
  transform: translateY(44px) rotate(5deg);
  animation: word-in 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.25) forwards;
}

.word:last-child {
  margin-right: 0;
  color: var(--yellow);
}

.word:nth-child(1) { animation-delay: 0.45s; }
.word:nth-child(2) { animation-delay: 0.55s; }
.word:nth-child(3) { animation-delay: 0.65s; }
.word:nth-child(4) { animation-delay: 0.75s; }
.word:nth-child(5) { animation-delay: 0.85s; }
.word:nth-child(6) { animation-delay: 0.95s; }
.word:nth-child(7) { animation-delay: 1.05s; }

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 56px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-200);
  opacity: 0;
  animation: rise 0.8s 1.4s forwards;
}

.mouse {
  display: flex;
  justify-content: center;
  width: 28px;
  height: 44px;
  padding-top: 8px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
}

.wheel {
  width: 4px;
  height: 9px;
  border-radius: 2px;
  background: #fff;
  animation: wheel 1.6s infinite;
}

.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Parallax: JS sets --sy (scroll offset), each piece moves by its own --depth. */
.decor {
  position: absolute;
  transform: translate3d(0, calc(var(--sy, 0) * var(--depth, 0.3) * -1px), 0);
  will-change: transform;
}

.decor > span {
  display: grid;
  place-items: center;
  width: var(--size, 64px);
  height: var(--size, 64px);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.16);
  font-size: calc(var(--size, 64px) * 0.38);
  font-weight: 600;
  animation: bob var(--dur, 6s) ease-in-out infinite;
}

.decor-1 { top: 15%; left: 7%; --depth: 0.5; --dur: 6s; }
.decor-2 { top: 21%; right: 9%; --depth: 0.8; --dur: 7s; --size: 78px; }
.decor-3 { top: 63%; left: 11%; --depth: 0.9; --dur: 5.5s; --size: 56px; }
.decor-4 { top: 68%; right: 13%; --depth: 0.45; --dur: 8s; }
.decor-5 { top: 41%; left: 3%; --depth: 0.25; --dur: 9s; --size: 44px; }
.decor-6 { top: 46%; right: 4%; --depth: 0.6; --dur: 6.5s; --size: 50px; }
.decor-7 { top: 9%; left: 43%; --depth: 0.35; --dur: 7.5s; --size: 42px; }
.decor-8 { bottom: 17%; left: 34%; --depth: 0.7; --dur: 6s; --size: 46px; }

.decor-2 > span { background: var(--yellow); border-color: transparent; color: var(--purple-800); }
.decor-4 > span { background: var(--green-500); border-color: transparent; }
.decor-6 > span { background: var(--pink); border-color: transparent; }

/* ---------- Progress rail ---------- */
.rail {
  position: fixed;
  top: 50%;
  left: clamp(12px, 2vw, 28px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.4s;
}

body.in-adventure .rail {
  opacity: 1;
  pointer-events: auto;
}

.rail button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--purple-800);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.rail-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--purple-500);
  border-radius: 50%;
  background: var(--bg);
  transition: transform 0.3s, background 0.3s;
}

.rail-label {
  opacity: 0;
  white-space: nowrap;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s;
}

.rail button:hover .rail-label,
.rail button.is-active .rail-label {
  opacity: 1;
  transform: none;
}

.rail button.is-done .rail-dot {
  background: var(--purple-200);
}

.rail button.is-active .rail-dot {
  background: var(--purple-500);
  transform: scale(1.35);
}

/* ---------- Adventure chapters (sticky scrollytelling) ---------- */
.chapter {
  --accent: var(--purple-500);
  position: relative;
  height: calc(100vh + var(--steps, 3) * 75vh);
}

.chapter-logo {
  display: block;
  width: min(340px, 80%);
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}

.chapter-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.fact {
  padding: 7px 14px;
  border-radius: var(--pill);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.fact strong {
  font-weight: 700;
  color: var(--accent);
}

.chapter-sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  height: 100vh;
  height: 100svh;
  padding: 90px clamp(20px, 8vw, 150px) 40px;
  overflow: hidden;
  isolation: isolate;
}

.chapter-sticky::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 78% 52%, color-mix(in srgb, var(--accent) 24%, transparent) 0, transparent 55%),
    var(--bg);
}

.chapter-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.chapter-title {
  margin-top: 10px;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.chapter-tagline {
  margin-top: 10px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink-soft);
}

.badge-included {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: var(--pill);
  background: var(--green-100);
  color: var(--green-600);
  font-size: 0.9rem;
  font-weight: 600;
}

.steps {
  position: relative;
  min-height: 8.5rem;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.45s, transform 0.45s;
}

.step.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.step h3 {
  font-size: 1.45rem;
  color: var(--ink);
}

.step p {
  max-width: 36ch;
  margin-top: 8px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.step-dots {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.step-dots span {
  width: 28px;
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 25%, #fff);
  transition: width 0.3s, background 0.3s;
}

.step-dots span.is-active {
  width: 46px;
  background: var(--accent);
}

.chapter-stage {
  display: grid;
  place-items: center;
}

/* Media frame: a browser window whose screen changes with the steps.
   JS sets --enter (0..1) as the chapter scrolls into view. */
.frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--accent) 55%, rgba(21, 15, 53, 0.6)),
    0 0 0 1px rgba(49, 37, 114, 0.06);
  opacity: var(--enter, 1);
  transform: perspective(1400px) translateY(calc((1 - var(--enter, 1)) * 80px))
    rotateX(calc((1 - var(--enter, 1)) * 18deg)) scale(calc(0.9 + var(--enter, 1) * 0.1));
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  background: var(--purple-50);
  border-bottom: 1px solid var(--line);
}

.frame-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f06a9b;
}

.frame-bar i:nth-child(2) { background: #ffc845; }
.frame-bar i:nth-child(3) { background: #7bc47f; }

.frame-caption {
  margin-left: auto;
  padding: 3px 12px;
  border-radius: var(--pill);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple-800);
}

.frame-caption:empty {
  display: none;
}

.frame-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--purple-950);
}

/* Layers reveal with a growing circle when their step becomes active. */
.layer {
  position: absolute;
  inset: 0;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.layer.is-active {
  z-index: 1;
  clip-path: circle(75% at 50% 50%);
}

.layer img,
.layer video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layer-image.is-active img {
  animation: ken-burns 12s ease-in-out infinite alternate;
}

.layer-scene {
  background: #fff;
}

.layer .typing-screen {
  min-height: 2.4em;
  padding: 10px 16px;
}

.layer .typing {
  gap: 8px;
}

.scene {
  height: 100%;
  padding: clamp(12px, 2vw, 22px);
}

.scene-hint {
  font-size: 0.85rem;
  text-align: center;
  color: var(--ink-soft);
}

/* Scene: typing */
.typing {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
}

.typing-screen {
  min-height: 3.4em;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--purple-50);
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 500;
  color: var(--purple-800);
}

.caret {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

.keyboard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 0.6vw, 7px);
}

.key-row {
  display: flex;
  gap: clamp(4px, 0.6vw, 7px);
}

.key-row:nth-child(2) { margin-left: 3%; }
.key-row:nth-child(3) { margin-left: 8%; }

.key {
  --f: var(--purple-200);
  display: grid;
  place-items: center;
  width: clamp(22px, 3.4vw, 42px);
  aspect-ratio: 1;
  border: 2px solid color-mix(in srgb, var(--f) 45%, #fff);
  border-radius: 10px;
  background: color-mix(in srgb, var(--f) 16%, #fff);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--f) 45%, #fff);
  font-size: clamp(0.7rem, 1.3vw, 1rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--purple-800);
  transition: transform 0.12s, background 0.2s, box-shadow 0.12s, color 0.2s;
}

.key-space {
  width: clamp(140px, 26vw, 300px);
  height: clamp(22px, 3.4vw, 42px);
  aspect-ratio: auto;
}

/* Finger zones, like on a typing course. */
.f-pinky { --f: #f06a9b; }
.f-ring { --f: #f28c38; }
.f-middle { --f: #e8b400; }
.f-index { --f: #509e6d; }
.f-thumb { --f: #7d6dd9; }

.key.is-next {
  background: var(--f);
  color: #fff;
  animation: key-pulse 1s ease-in-out infinite;
}

.key.is-pressed {
  border-color: var(--purple-800);
  background: var(--purple-800);
  box-shadow: 0 0 0 transparent;
  color: #fff;
  transform: translateY(4px);
}

.key-pop {
  position: absolute;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--purple-800);
  pointer-events: none;
  transform: translate(-50%, 0);
  animation: pop 0.7s ease-out forwards;
}

/* Scene: coding */
.coding {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: 16px;
  height: 100%;
}

.code-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--purple-900);
  color: #fff;
}

.code-title {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--purple-200);
}

.code {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(0.78rem, 1.3vw, 1rem);
  counter-reset: line;
}

.code-line {
  padding: 6px 8px;
  border-radius: 8px;
  opacity: 0.55;
  counter-increment: line;
  transition: background 0.2s, opacity 0.2s;
}

.code-line::before {
  content: counter(line);
  display: inline-block;
  width: 1.4em;
  color: var(--purple-200);
  opacity: 0.6;
}

.code-line.is-active {
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
}

.kw { color: var(--yellow); }
.arg { color: #8fe3b0; }

.btn-run {
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--purple-900);
  box-shadow: 0 4px 0 var(--yellow-dark);
}

.board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 4px;
  padding: 6px;
  border-radius: var(--radius);
  background: #cfebd9;
}

.cell {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e6f5eb;
  font-size: clamp(1rem, 2.4vw, 1.8rem);
}

.cell.is-path {
  background: #f6e7c1;
}

.actor {
  position: absolute;
  top: calc(6px + var(--y) * ((100% - 12px) / 4));
  left: calc(6px + var(--x) * ((100% - 12px) / 5));
  display: grid;
  place-items: center;
  width: calc((100% - 12px) / 5);
  height: calc((100% - 12px) / 4);
  font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  pointer-events: none;
}

.banana {
  transition: transform 0.3s, opacity 0.3s;
}

.banana > span {
  animation: bob 2.4s ease-in-out infinite;
}

.board.is-done .banana {
  opacity: 0;
  transform: scale(2);
}

.board-done {
  position: absolute;
  inset: auto 10px 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  text-align: center;
  color: var(--green-600);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}

.board.is-done .board-done {
  opacity: 1;
  transform: none;
}

/* Scene: digital skills */
.digital {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 100%;
}

.pw-card {
  --meter: #e63946;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--purple-50);
}

.pw-card[data-level='1'] { --meter: #f28c38; }
.pw-card[data-level='2'] { --meter: #e8b400; }
.pw-card[data-level='3'] { --meter: #7bc47f; }
.pw-card[data-level='4'] { --meter: var(--green-500); }

.pw-label {
  font-weight: 600;
  color: var(--purple-800);
}

.pw-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--purple-200);
  border-radius: 14px;
  outline: none;
  background: #fff;
  font-size: 1.1rem;
  color: var(--ink);
}

.pw-input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple-500) 20%, transparent);
}

.pw-meter {
  height: 12px;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.pw-meter span {
  display: block;
  width: var(--strength, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--meter);
  transition: width 0.4s, background 0.4s;
}

.pw-strength {
  min-height: 1.5em;
  font-weight: 600;
  color: var(--purple-800);
}

.chat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.bubble {
  max-width: 92%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: clamp(0.8rem, 1.3vw, 0.98rem);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.4s, transform 0.4s;
}

.bubble.is-visible {
  opacity: 1;
  transform: none;
}

.bubble-left {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: #fde7ef;
}

.bubble-right {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--green-100);
}

/* ---------- Quotes ---------- */
.quotes {
  position: relative;
  padding: clamp(80px, 10vw, 140px) clamp(16px, 6vw, 96px);
  border-radius: 48px 48px 0 0;
  background: #fff;
  box-shadow: 0 -24px 60px -40px rgba(49, 37, 114, 0.5);
}

.quotes-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.quotes-head {
  text-align: center;
}

.kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-500);
}

.quotes-head h2 {
  margin-top: 8px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
}

.validity {
  margin-top: 10px;
  color: var(--ink-soft);
}

.seller-message {
  max-width: 760px;
  margin: 36px auto 0;
  padding: 24px 28px;
  border-radius: 24px;
  background: var(--purple-50);
  font-size: 1.1rem;
  color: var(--purple-900);
}

.seller-message footer {
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--purple-500);
}

.banner {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 16px 22px;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
}

.banner-accepted {
  background: var(--green-100);
  color: var(--green-600);
}

.banner-expired {
  background: #fde7ef;
  color: #a3214b;
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: stretch;
  gap: 24px;
  margin-top: 52px;
}

.option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 26px 26px;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, opacity 0.3s;
}

.option:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.option.is-recommended {
  border-color: var(--purple-500);
  box-shadow: var(--shadow);
}

.option.is-accepted {
  border-color: var(--green-500);
}

.option.is-dimmed {
  opacity: 0.5;
}

.ribbon {
  position: absolute;
  top: -15px;
  left: 24px;
  padding: 5px 14px;
  border-radius: var(--pill);
  background: var(--purple-500);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.ribbon-accepted {
  background: var(--green-500);
}

.option-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-500);
}

.option h3 {
  font-size: 1.6rem;
}

.option-desc {
  color: var(--ink-soft);
}

.lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.line {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--purple-50);
}

.line-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.line-head strong {
  font-weight: 600;
  color: var(--purple-800);
}

.line-price {
  font-weight: 600;
  white-space: nowrap;
}

.line-desc {
  margin-top: 2px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.line-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.months {
  padding: 2px 10px;
  border-radius: var(--pill);
  background: #fff;
  font-weight: 600;
  color: var(--purple-800);
}

.totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 2px dashed var(--line);
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.totals dt {
  color: var(--ink-soft);
}

.totals dd {
  margin: 0;
  font-weight: 500;
}

.totals .grand dt {
  font-weight: 600;
  color: var(--ink);
}

.totals .grand dd {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple-800);
}

.per-year {
  font-size: 0.88rem;
  text-align: right;
  color: var(--ink-soft);
}

.quote-terms,
.quote-message {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 24px 28px;
  border-radius: 24px;
  background: var(--purple-50);
}

.quote-terms h3,
.quote-message h3 {
  font-size: 1.3rem;
}

.quote-terms-block + .quote-terms-block {
  margin-top: 16px;
}

.quote-terms h4 {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--purple-500);
}

.quote-terms p {
  margin-top: 8px;
  white-space: pre-line;
}

.quote-message-intro {
  margin-top: 6px;
  color: var(--ink-soft);
}

.quote-message form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.quote-message textarea {
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  font: inherit;
  resize: vertical;
}

.quote-message textarea:focus {
  border-color: var(--purple-500);
  outline: none;
}

.quote-message-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.quote-message .btn {
  justify-self: start;
}

.quote-message-sent {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.quote-message-sent li {
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
}

.quote-message-sent time {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.quote-message-sent p {
  margin-top: 4px;
  white-space: pre-line;
}

.form-success {
  color: var(--green-600);
  font-weight: 600;
}

.fine-print {
  margin-top: 28px;
  font-size: 0.88rem;
  text-align: center;
  color: var(--ink-soft);
}

.quote-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.seller-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  background: var(--purple-800);
  color: #fff;
}

.seller-card h3 {
  font-size: 1.3rem;
  color: #fff;
}

.seller-card p {
  color: var(--purple-200);
}

.seller-card a {
  font-weight: 600;
  color: var(--yellow);
}

/* ---------- Floating "take me to quotes" button ---------- */
.fab {
  position: fixed;
  right: clamp(14px, 2.5vw, 32px);
  bottom: clamp(14px, 2.5vw, 32px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: var(--pill);
  background: var(--yellow);
  box-shadow: 0 12px 30px -8px rgba(21, 15, 53, 0.55), 0 5px 0 var(--yellow-dark);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--purple-900);
  text-decoration: none;
  transition: transform 0.3s, opacity 0.3s;
}

.fab::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--yellow);
  border-radius: inherit;
  opacity: 0;
  animation: ring 2.4s ease-out infinite;
}

.fab:hover {
  transform: translateY(-3px);
}

.fab svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.fab:hover svg {
  transform: translateY(3px);
}

.fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
}

/* ---------- Accept dialog ---------- */
.dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.dialog::backdrop {
  background: rgba(21, 15, 53, 0.55);
  backdrop-filter: blur(4px);
}

.dialog form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
}

.dialog h2 {
  font-size: 1.6rem;
}

.dialog-text {
  color: var(--ink-soft);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
}

.field input {
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
}

.field input:focus {
  border-color: var(--purple-500);
  outline: none;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--green-500);
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.form-error {
  font-weight: 500;
  color: var(--red);
}

/* ---------- Confetti ---------- */
.confetti {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  top: -20px;
  left: var(--x);
  width: 10px;
  height: 16px;
  border-radius: 3px;
  background: var(--c);
  transform: rotate(var(--r));
  animation: fall var(--d) cubic-bezier(0.3, 0.6, 0.6, 1) forwards;
}

/* ---------- Access & landing pages ---------- */
.access-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
  background: var(--hero-gradient);
}

.access-card {
  width: min(460px, 100%);
  padding: clamp(28px, 5vw, 44px);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.access-icon {
  margin: 20px 0 8px;
  font-size: 3.2rem;
  animation: bob 4s ease-in-out infinite;
}

.access-card h1 {
  font-size: 1.8rem;
}

.access-card h1 small {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--purple-500);
}

.access-card p {
  margin-top: 12px;
  color: var(--ink-soft);
}

.access-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  text-align: left;
}

.access-form label {
  font-weight: 500;
  color: var(--purple-800);
}

.code-input {
  padding: 16px;
  border: 2px solid var(--purple-200);
  border-radius: 16px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  color: var(--purple-800);
}

.code-input:focus {
  border-color: var(--purple-500);
  outline: none;
  box-shadow: 0 0 0 4px rgba(125, 109, 217, 0.2);
}

.access-card.shake {
  animation: shake 0.4s;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--pink), var(--purple-500), var(--green-500));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Hero extras: aurora, collage, people ---------- */
.hero-aurora {
  position: absolute;
  inset: -20%;
  z-index: 0;
  filter: blur(60px);
  opacity: 0.75;
}

.hero-aurora span {
  position: absolute;
  width: 45vmax;
  height: 45vmax;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: aurora 18s ease-in-out infinite alternate;
}

.hero-aurora span:nth-child(1) { top: 10%; left: 5%; background: radial-gradient(circle, #7d6dd9 0, transparent 65%); }
.hero-aurora span:nth-child(2) { top: 40%; right: 0; background: radial-gradient(circle, #f06a9b 0, transparent 60%); animation-duration: 22s; }
.hero-aurora span:nth-child(3) { bottom: 0; left: 30%; background: radial-gradient(circle, #2fb3a3 0, transparent 60%); animation-duration: 26s; }

/* Scrolling out of the hero zooms through the title like a portal (--hp = 0..1). */
.hero-content {
  transform: translateY(calc(var(--hp, 0) * -60px)) scale(calc(1 + var(--hp, 0) * 0.25));
  opacity: calc(1 - var(--hp, 0) * 1.3);
}

.hero.has-collage .decor-3,
.hero.has-collage .decor-4,
.hero.has-collage .decor-5,
.hero.has-collage .decor-6,
.hero.has-collage .decor-7,
.hero.has-collage .decor-8 {
  display: none;
}

.hero-collage {
  position: absolute;
  inset: 0;
  z-index: 1;
  perspective: 1200px;
  pointer-events: none;
}

.collage-card {
  --rx: 0deg;
  --ry: 0deg;
  --spread: 1;
  position: absolute;
  /* Big, but every card stays fully inside the hero (also when tilted). */
  width: min(27vw, 46vh * 1.6, 480px);
  margin: 0;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  /* Cards drift outwards only while scrolling out of the hero (--hp), so they start fully visible. */
  transform: translate3d(calc(var(--dir, 1) * var(--hp, 0) * 160px), calc(var(--hp, 0) * -40px), 0)
    rotateX(calc(var(--my, 0) * -8deg)) rotateY(calc(var(--mx, 0) * 10deg)) rotate(var(--rot));
  animation: card-in 1.1s cubic-bezier(0.2, 0.9, 0.25, 1.1) forwards;
  transition: transform 0.25s ease-out;
}

.collage-card img,
.collage-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Cards sit in the four corners, clear of the top bar and the bottom curve; the title stays readable on top. */
.collage-1 { top: 118px; left: 2.5vw; --tx: 0px; --ty: 0px; --rot: -6deg; animation-delay: 0.6s; }
.collage-2 { top: 122px; right: 2.5vw; --tx: 0px; --ty: 0px; --rot: 5deg; animation-delay: 0.8s; }
.collage-3 { bottom: 150px; left: 3.5vw; --tx: 0px; --ty: 0px; --rot: 4deg; animation-delay: 1s; }
.collage-4 { bottom: 140px; right: 3.5vw; --tx: 0px; --ty: 0px; --rot: -4deg; animation-delay: 1.2s; }

.hero.has-collage .hero-title,
.hero.has-collage .hero-greeting,
.hero.has-collage .hero-for {
  text-shadow: 0 4px 24px rgba(21, 15, 53, 0.85), 0 2px 6px rgba(21, 15, 53, 0.6);
}
.collage-1, .collage-3 { --dir: -1; }
.collage-2, .collage-4 { --dir: 1; }

.hero-people {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  opacity: 0;
  animation: rise 0.8s 1.2s forwards;
}

.person-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--pill);
  background: rgba(21, 15, 53, 0.45);
  backdrop-filter: blur(10px);
  text-align: left;
  line-height: 1.15;
}

.person-chip small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-200);
}

.avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--purple-900);
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 1.2rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.section-head h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- Proof: stats, awards, integrations ---------- */
.proof {
  position: relative;
  padding: clamp(90px, 12vw, 160px) clamp(16px, 6vw, 96px);
  overflow: hidden;
  color: #fff;
  background: var(--hero-gradient);
}

.proof .kicker { color: var(--yellow); }
.proof h2 { color: #fff; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.stat {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  backdrop-filter: blur(8px);
}

.stat:nth-child(2) { transition-delay: 0.12s; }
.stat:nth-child(3) { transition-delay: 0.24s; }

.stat-value {
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--yellow), #ffe8a3 45%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin-top: 10px;
  color: var(--purple-200);
}

.awards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  margin-top: 64px;
}

.award {
  position: relative;
  display: grid;
  place-items: center;
  width: 178px;
  height: 178px;
  margin: 0;
  text-align: center;
}

.laurel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--yellow);
  filter: drop-shadow(0 0 14px rgba(255, 200, 69, 0.35));
}

.award figcaption {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 108px;
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--purple-200);
}

.award strong {
  margin: 3px 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.award-product {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* A light sweep across the badges. */
.award::after {
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  background-size: 250% 100%;
  animation: shine 4s ease-in-out infinite;
  pointer-events: none;
}

/* Official award logos sit on a soft white disc so every badge reads on the dark background. */
.award-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 190px;
  height: auto;
}

.award-logo::after {
  display: none;
}

.award-image {
  position: relative;
  display: grid;
  place-items: center;
  width: 164px;
  height: 164px;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 60%, #f1eeff 100%);
  box-shadow: 0 0 0 6px rgba(255, 200, 69, 0.25), 0 24px 40px -16px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.25, 1.3);
}

.award-image img {
  width: 76%;
  height: 76%;
  object-fit: contain;
}

/* Light sweep across the badge. */
.award-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%);
  background-size: 250% 100%;
  animation: shine 4.5s ease-in-out infinite;
}

.award-logo:hover .award-image {
  transform: translateY(-6px) rotate(-4deg) scale(1.04);
}

.award-logo figcaption {
  max-width: 180px;
}

.as-seen {
  margin-top: 64px;
  text-align: center;
}

.as-seen p {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-200);
}

.as-seen ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.as-seen li {
  display: grid;
  place-items: center;
  height: 68px;
  padding: 10px 18px;
  border-radius: 16px;
  background: #fff;
  transition: transform 0.3s;
}

.as-seen li:hover {
  transform: translateY(-4px);
}

.as-seen img {
  display: block;
  max-width: 150px;
  max-height: 44px;
  object-fit: contain;
}

.integrations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 56px;
}

.integrations p {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-200);
}

.integrations ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.integrations li {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--pill);
  font-weight: 500;
}

/* ---------- Stories marquee ---------- */
.stories {
  padding: clamp(90px, 11vw, 150px) 0;
  overflow: hidden;
  background: var(--bg);
}

.stories .section-head {
  padding: 0 16px;
}

.marquee {
  margin-top: 48px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: marquee 70s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.story {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 360px;
  margin: 0;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.story:nth-child(3n + 2) { background: var(--purple-50); }
.story:nth-child(3n) { background: #fff7e0; }

.story-topic {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-500);
}

.story blockquote {
  flex: 1;
  margin: 0;
  font-size: 1.12rem;
  color: var(--purple-900);
}

.story figcaption {
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Professional development add-on ---------- */
.pd-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff, var(--purple-50));
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}

.pd-card-media {
  display: block;
  width: 120px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
}

.pd-card h3 {
  margin-top: 4px;
  font-size: 1.3rem;
  color: var(--purple-900);
}

.pd-card-body > p:not(.kicker) {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.pd-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.pd-pillars li {
  padding: 3px 12px;
  border-radius: var(--pill);
  background: var(--purple-100);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-800);
}

.pd-quote {
  margin: 12px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--yellow);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--purple-900);
}

.pd-prices {
  display: grid;
  gap: 10px;
  margin: 0;
  min-width: 190px;
}

.pd-prices div {
  padding: 12px 16px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.pd-prices dt {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.pd-prices dd {
  margin: 2px 0 0;
  font-weight: 700;
  color: var(--purple-800);
}

/* ---------- Quote extras ---------- */
.people {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  margin: 40px auto 0;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.person > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.person-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-500);
}

.person-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--purple-900);
}

.person-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.person a {
  overflow: hidden;
  font-size: 0.9rem;
  color: var(--purple-600);
  text-overflow: ellipsis;
}

.people-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.6rem;
}

.people-link span {
  width: 28px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--purple-200) 0 6px, transparent 6px 10px);
}

.option-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, -100%), color-mix(in srgb, var(--purple-500) 14%, transparent), transparent 60%);
  pointer-events: none;
}

.free {
  font-style: normal;
  color: var(--green-600);
}

.includes,
.details {
  margin-top: 56px;
}

.includes h3,
.details h3 {
  font-size: 1.5rem;
  text-align: center;
}

.includes ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.includes li {
  position: relative;
  padding: 14px 16px 14px 48px;
  border-radius: var(--radius);
  background: var(--purple-50);
}

.includes li::before {
  content: '✓';
  position: absolute;
  top: 12px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-500);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.detail-product h4 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--purple-800);
}

.details details {
  border-bottom: 1px solid var(--line);
}

.details summary {
  padding: 12px 4px;
  font-weight: 500;
  cursor: pointer;
}

.details details ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--ink-soft);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.info-card {
  padding: 24px;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
}

.info-card h3 {
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.info-card p {
  color: var(--ink-soft);
}

.info-card dl {
  margin: 0;
}

.info-card dl div {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.info-card dt {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.info-card dd {
  margin: 0;
  font-weight: 500;
}

.contact-list,
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.contact-list a,
.doc-list a {
  font-weight: 500;
  color: var(--purple-600);
  overflow-wrap: anywhere;
}

.info-card address {
  margin-top: 14px;
  font-style: normal;
  color: var(--ink-soft);
}

.seller-who {
  display: flex;
  align-items: center;
  gap: 16px;
}

.seller-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-light {
  background: #fff;
  color: var(--purple-800);
}

.btn-light:hover {
  background: var(--yellow);
}

@media (max-width: 820px) {
  .hero-collage {
    opacity: 0.55;
  }

  .collage-card {
    width: 200px;
  }

  .collage-2,
  .collage-3 {
    display: none;
  }

  .pd-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .pd-card-media {
    width: 72px;
  }

  .people {
    grid-template-columns: 1fr;
  }

  .people-link {
    display: none;
  }

  .story {
    width: 280px;
  }
}

/* ---------- Animations ---------- */
@keyframes aurora { to { transform: translate(8%, -6%) scale(1.2); } }
@keyframes card-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ken-burns { from { transform: scale(1); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
@keyframes marquee { to { transform: translateX(calc(-50% - 11px)); } }
@keyframes shine { 0%, 60% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes word-in { to { opacity: 1; transform: none; } }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes key-pulse { 50% { transform: translateY(-3px); } }
@keyframes pop { to { opacity: 0; transform: translate(-50%, -48px) scale(1.4); } }
@keyframes ring { 0% { opacity: 0.8; transform: scale(0.95); } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes fall { to { transform: translateY(110vh) rotate(calc(var(--r) + 720deg)); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .rail {
    display: none;
  }
}

@media (max-width: 820px) {
  .chapter {
    height: calc(100vh + var(--steps, 3) * 65vh);
  }

  .chapter-sticky {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 16px;
    padding: 76px 18px 18px;
  }

  .chapter-title {
    font-size: 2.2rem;
  }

  .chapter-tagline {
    font-size: 1rem;
  }

  .chapter-badges {
    margin-top: 10px;
  }

  .fact {
    display: none;
  }

  .chapter-logo {
    width: 220px;
  }

  .steps {
    min-height: 6.4rem;
    margin-top: 16px;
  }

  .step h3 {
    font-size: 1.2rem;
  }

  .step p {
    font-size: 0.98rem;
  }

  .frame-screen {
    aspect-ratio: auto;
    height: min(42vh, 360px);
  }

  .coding {
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
  }

  .code-panel {
    padding: 10px;
  }

  .btn-run {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .digital {
    grid-template-columns: 1fr;
  }

  .chat {
    display: none;
  }

  .fab {
    padding: 13px 18px;
    font-size: 0.95rem;
  }
}

@media (max-width: 700px) {
  .decor-3,
  .decor-5,
  .decor-6,
  .decor-7 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .topbar,
  .rail,
  .hero,
  .adventure,
  .proof,
  .stories,
  .scroll-progress,
  .seller-card,
  .fab,
  .quote-actions,
  .option .btn {
    display: none !important;
  }

  .quotes {
    padding: 0;
    box-shadow: none;
  }

  .option {
    break-inside: avoid;
    box-shadow: none !important;
    transform: none !important;
  }
}
