/* ============================================================
   True Life English 360° — Tutlo
   Light design system + 3D scroll landing
   Mobile-first. No build step. No external requests.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Tutlo brand */
  --purple:       #6d40fe;   /* 5.5:1 on white — safe for text */
  --purple-deep:  #4a1fd0;
  --purple-lift:  #8a66ff;
  --purple-soft:  #f0ebff;
  --yellow:       #fdd100;   /* background only — 1.5:1 on white */
  --yellow-soft:  #fff3b8;
  --ink:          #16121f;

  /* Canvas */
  --bg:           #ffffff;
  --bg-1:         #f7f4ff;
  --bg-2:         #efe9fe;
  --deep:         #1d0f47;   /* the one dark band */
  --deep-2:       #2c1668;

  /* Text */
  --tx:           #16121f;
  --tx-dim:       #4f4863;
  --tx-faint:     #7b7492;
  --on-deep:      #ffffff;
  --on-deep-dim:  rgba(255,255,255,.74);
  --on-deep-faint:rgba(255,255,255,.5);

  /* Lines & surfaces */
  --line:         rgba(22,18,31,.10);
  --line-strong:  rgba(22,18,31,.20);
  --card:         #ffffff;
  --shadow-sm:    0 2px 8px rgba(45,25,95,.06);
  --shadow-md:    0 14px 36px -18px rgba(45,25,95,.35);
  --shadow-lg:    0 34px 70px -30px rgba(45,25,95,.45);

  /* Motion */
  --ease:         cubic-bezier(.22,.61,.36,1);
  --ease-out:     cubic-bezier(.16,1,.3,1);

  /* Layout */
  --pad:          clamp(20px, 5vw, 64px);
  --maxw:         1180px;
  --r-lg:         28px;
  --r-md:         18px;
  --r-sm:         12px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- 2. Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--tx);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

/* ---------- 3. Typography ---------- */
.h-xxl { font-size: clamp(2.6rem, 12.5vw, 8rem);  line-height: .92; letter-spacing: -.045em; font-weight: 700; }
.h-xl  { font-size: clamp(2.1rem, 8.2vw, 5rem);   line-height: 1.0; letter-spacing: -.038em; font-weight: 700; }
.h-lg  { font-size: clamp(1.7rem, 6vw, 3.2rem);   line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.h-md  { font-size: clamp(1.25rem, 4.4vw, 1.9rem);line-height: 1.2; letter-spacing: -.02em; font-weight: 650; }

.lede {
  font-size: clamp(1.02rem, 3.9vw, 1.35rem);
  line-height: 1.55; color: var(--tx-dim);
  font-weight: 400; letter-spacing: -.011em;
}
.small { font-size: .87rem; line-height: 1.45; color: var(--tx-faint); }

.eyebrow {
  font-size: .69rem; letter-spacing: .19em; text-transform: uppercase;
  font-weight: 700; color: var(--purple);
}

/* emphasis inside body copy */
.em { color: var(--tx); font-weight: 640; }
/* yellow marker — Tutlo's signature accent, ink on yellow stays 12:1 */
.mark {
  background: linear-gradient(180deg, transparent 56%, var(--yellow) 56%);
  padding: 0 .08em; color: var(--ink);
}
.hl { color: var(--purple); }

.grad {
  background: linear-gradient(100deg, var(--purple-deep) 2%, var(--purple) 38%, #e8a400 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Split words are transformed, so they escape the parent's clipped background.
   Re-declare the gradient on the word itself (`inherit` resolves against the
   untouched .rv wrapper, not .grad). Never add text-shadow here — it paints
   over the clipped fill and greys it out. */
.grad .rv > i {
  background: linear-gradient(100deg, var(--purple-deep) 2%, var(--purple) 38%, #e8a400 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
}
.grad { text-shadow: none; }

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.sect { position: relative; padding-block: clamp(80px, 15vw, 160px); }
.sect.tint { background: var(--bg-1); }
.center { text-align: center; }
.mw-60 { max-width: 62ch; }
.mx-auto { margin-inline: auto; }

/* the single dark band — makes the AI lecturers read as premium product cards */
.sect.dark {
  background: radial-gradient(120% 90% at 50% 0%, var(--deep-2), var(--deep) 70%);
  color: var(--on-deep);
}
.sect.dark .lede { color: var(--on-deep-dim); }
.sect.dark .small { color: var(--on-deep-faint); }
.sect.dark .eyebrow { color: var(--yellow); }
.sect.dark .em { color: #fff; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 1.05em 1.85em; border-radius: 999px;
  font-weight: 640; font-size: clamp(.95rem, 3.6vw, 1.05rem);
  letter-spacing: -.012em; text-align: center;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .2s;
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(180deg, var(--purple-lift), var(--purple));
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(109,64,254,.55), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 16px 36px -10px rgba(109,64,254,.7); }
.btn-yellow {
  background: var(--yellow); color: var(--ink);
  box-shadow: 0 10px 26px -10px rgba(215,178,0,.65);
}
.btn-yellow:hover { transform: translateY(-2px) scale(1.015); }
.btn-ghost {
  border: 1px solid var(--line-strong); color: var(--tx); background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.sect.dark .btn-ghost, .final .btn-ghost {
  border-color: rgba(255,255,255,.34); color: #fff; background: rgba(255,255,255,.1);
}
.btn:active { transform: translateY(0) scale(.985); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn-row.center { justify-content: center; }

/* ---------- 6. Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem var(--pad);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), backdrop-filter .35s, border-color .35s, box-shadow .35s;
}
.nav.solid {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-logo { display: flex; align-items: center; gap: .6rem; }
/* the mark is black + Tutlo yellow — never filter it */
.nav-logo img { height: 24px; width: auto; }
.nav-badge {
  font-size: .6rem; font-weight: 800; letter-spacing: .12em;
  padding: .35em .6em; border-radius: 999px;
  background: var(--purple); color: #fff; white-space: nowrap;
}
.nav-links { display: none; gap: 1.6rem; margin-inline: auto; font-size: .9rem; color: var(--tx-dim); font-weight: 520; }
.nav-links a:hover { color: var(--purple); }
.nav .btn { padding: .62em 1.15em; font-size: .85rem; margin-left: auto; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav .btn { margin-left: 0; }
}

/* ---------- 7. Ambient background ---------- */
.aura {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(58vw 58vw at 80% 4%,  rgba(109,64,254,.16), transparent 62%),
    radial-gradient(50vw 50vw at 8% 28%,  rgba(161,95,226,.12), transparent 64%),
    radial-gradient(44vw 44vw at 64% 74%, rgba(253,209,0,.16),  transparent 66%);
  transition: opacity .8s var(--ease);
}
.grain { display: none; }

/* ============================================================
   8. HERO — 3D face ring
   ============================================================ */
.hero { position: relative; height: 340vh; background: linear-gradient(180deg, #fff 0%, var(--bg-1) 62%, #fff 100%); }
.hero-pin {
  position: sticky; top: 0; height: 100svh;
  display: grid; place-items: center; overflow: hidden;
  perspective: 1000px; perspective-origin: 50% 46%;
}

/* hero background loop — deliberately washed out so it reads as an airy bed,
   never as a competing subject behind the face ring */
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg-1); }
.hero-video video {
  width: 100%; height: 100%; object-fit: cover;
  /* blurred on purpose: the face ring and the headline are the subjects,
     the footage is only a warm, bright environment behind them.
     scale hides the soft edge the blur leaves at the frame border. */
  filter: blur(5px) saturate(.8) brightness(1.12) contrast(.92);
  transform: scale(1.08);
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero-video.ready video { opacity: 1; }
.hero-video::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.62) 34%,
                    rgba(255,255,255,.55) 60%, rgba(255,255,255,.86) 88%, #fff 100%),
    radial-gradient(80% 60% at 50% 34%, rgba(255,255,255,.7), transparent 72%);
}

.ring-stage {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  transform-style: preserve-3d; will-change: transform;
}
.ring { position: relative; width: 1px; height: 1px; transform-style: preserve-3d; will-change: transform; }

.orb {
  position: absolute; top: 50%; left: 50%;
  width: var(--orb, 92px); height: var(--orb, 92px);
  margin: calc(var(--orb, 92px) / -2);
  border-radius: 50%; overflow: hidden;
  backface-visibility: hidden;
  border: 3px solid #fff;
  box-shadow: 0 14px 30px -10px rgba(45,25,95,.42);
  background: var(--bg-2);
}
.orb img { width: 100%; height: 100%; object-fit: cover; }
.orb.is-ai { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(253,209,0,.28), 0 16px 34px -10px rgba(45,25,95,.5); }
.orb.is-ai::after {
  content: "AI"; position: absolute; left: 50%; bottom: 5%;
  transform: translateX(-50%);
  font-size: 8px; font-weight: 900; letter-spacing: .1em;
  background: var(--yellow); color: var(--ink);
  padding: 1px 5px; border-radius: 999px;
}

.hero-frame {
  position: relative; z-index: 3; height: 100svh; width: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(76px, 15vh, 128px) var(--pad) clamp(58px, 9vh, 76px);
  text-align: center; pointer-events: none;
}
.hero-frame > * { pointer-events: auto; }

.hero-copy { max-width: 900px; margin-inline: auto; will-change: transform, opacity; }
.hero-copy .h-xxl { text-wrap: balance; font-size: clamp(2.35rem, 11.4vw, 7.4rem); }
.hero-360 { display: block; }
.hero-sub { margin-top: .95rem; max-width: 36ch; margin-inline: auto; font-size: clamp(.96rem, 3.7vw, 1.3rem); }
.hero-foot { will-change: transform, opacity; }

/* light scrim: keeps copy legible where the ring passes behind it */
.hero-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(66% 44% at 50% 32%, rgba(255,255,255,.96) 0%, rgba(255,255,255,.72) 56%, transparent 100%),
    linear-gradient(180deg,
      rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 20%, rgba(255,255,255,.55) 36%,
      rgba(255,255,255,.3) 52%, rgba(255,255,255,.7) 76%, rgba(255,255,255,.97) 92%);
  will-change: opacity;
}
.hero-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; align-items: center; gap: .45rem;
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tx-faint);
  will-change: opacity;
}
@media (min-height: 780px) { .hero-hint { bottom: 20px; } }
.hero-hint span { animation: bob 2.1s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .5 } 50% { transform: translateY(5px); opacity: 1 } }

.hero-beat {
  position: absolute; z-index: 3; text-align: center;
  padding-inline: var(--pad); max-width: 860px;
  will-change: transform, opacity; pointer-events: none;
  isolation: isolate;
}
/* scroll-driven, so only hide it up front when the script is there to show it */
.js .hero-beat { opacity: 0; }
.hero-beat::before {
  content: ""; position: absolute; inset: -18% -14%; z-index: -1;
  background: radial-gradient(58% 52% at 50% 50%,
    rgba(255,255,255,.97) 26%, rgba(255,255,255,.88) 54%, rgba(255,255,255,.5) 78%, transparent 100%);
}

/* ============================================================
   9. Reveals
   ============================================================ */
.rv { display: inline-block; overflow: hidden; vertical-align: bottom; }
.js .rv > i {
  display: inline-block; font-style: inherit;
  transform: translateY(105%); opacity: 0;
  transition: transform .78s var(--ease-out), opacity .6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 42ms);
}
.in .rv > i { transform: translateY(0); opacity: 1; }

.js .fu {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.in.fu, .in .fu { opacity: 1; transform: none; }

/* ============================================================
   10. Problem beat
   ============================================================ */
.beat { max-width: 22ch; }
.beat-strike { position: relative; display: inline-block; }
.beat-strike::after {
  content: ""; position: absolute; left: -.04em; right: -.04em; top: 54%;
  height: .075em; background: var(--purple); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .85s var(--ease-out) .35s;
}
.in .beat-strike::after { transform: scaleX(1); }

/* ============================================================
   11. The 360 hybrid flip
   ============================================================ */
.flip-scene { height: 260vh; position: relative; background: var(--bg-1); }
.flip-pin {
  position: sticky; top: 0; height: 100svh;
  display: grid; place-items: center; perspective: 1400px; padding-inline: var(--pad);
}
.flip-inner { display: grid; place-items: center; gap: clamp(1.4rem, 4vw, 2.4rem); width: 100%; }
.flip-head { text-align: center; max-width: 30ch; }

.card3d {
  position: relative; width: min(84vw, 380px); aspect-ratio: 3 / 4;
  transform-style: preserve-3d; will-change: transform;
}
.card3d-face {
  position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.4rem; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.card3d-face.back { transform: rotateY(180deg); }
.card3d-face img.subj {
  position: absolute; inset: auto 0 0 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%; z-index: 0;
}
.card3d-face .veil { position: absolute; inset: 0; z-index: 1; }
.card3d-face .txt { position: relative; z-index: 2; color: #fff; }
.card3d-face .txt .small { color: rgba(255,255,255,.8); }
.face-ai  { background: linear-gradient(165deg, var(--deep-2), var(--deep)); }
.face-ai .veil  { background: linear-gradient(to top, rgba(16,7,40,.96) 10%, rgba(16,7,40,.4) 46%, transparent 72%); }
.face-hum { background: linear-gradient(165deg, #efeaff, #cfc2ff); }
.face-hum .veil { background: linear-gradient(to top, rgba(20,10,40,.94) 10%, rgba(20,10,40,.35) 46%, transparent 70%); }

.tag {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: .42em .8em; border-radius: 999px; margin-bottom: .7rem;
}
.tag-ai  { background: var(--yellow); color: var(--ink); }
.tag-hum { background: var(--purple); color: #fff; }

.flip-legend {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: .8rem; width: min(100%, 460px); text-align: center;
}
.flip-legend .sideline {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  opacity: .38; color: var(--tx-dim); transition: color .3s, opacity .3s;
}
.flip-legend .sideline.on { opacity: 1; color: var(--purple); }
.flip-legend .dial {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  font-size: .62rem; font-weight: 800; background: #fff; box-shadow: var(--shadow-sm);
}

/* ============================================================
   12. Pillars
   ============================================================ */
.pillars {
  display: grid; gap: .9rem; grid-template-columns: 1fr;
  perspective: 1300px; margin-top: clamp(2rem, 6vw, 3.6rem);
}
@media (min-width: 620px) { .pillars { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 980px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }

.pillar {
  position: relative; padding: clamp(1.3rem, 3.6vw, 1.9rem);
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transform-origin: 50% 100%;
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), box-shadow .3s, border-color .3s;
  transition-delay: calc(var(--d, 0) * 1ms);
  overflow: hidden;
}
.js .pillar { opacity: 0; transform: translateY(38px) rotateX(16deg); }
.in .pillar { opacity: 1; transform: none; }
.pillar:hover { border-color: rgba(109,64,254,.3); box-shadow: 0 22px 48px -22px rgba(45,25,95,.45); }
.pillar-n { font-size: .66rem; font-weight: 900; letter-spacing: .14em; color: var(--purple); margin-bottom: .9rem; display: block; }
.pillar-ico {
  width: 42px; height: 42px; margin-bottom: .95rem;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--purple-soft); border: 1px solid rgba(109,64,254,.2);
}
.pillar-ico svg { width: 21px; height: 21px; stroke: var(--purple); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: 1.08rem; font-weight: 660; letter-spacing: -.018em; margin-bottom: .3rem; }
.pillar .en { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-faint); margin-bottom: .7rem; }
.pillar p { font-size: .92rem; color: var(--tx-dim); line-height: 1.5; }

/* ============================================================
   13. AI lecturers — 3D deck (inside the dark band)
   ============================================================ */
.deck-viewport {
  position: relative; margin-top: clamp(2rem, 6vw, 3.4rem);
  perspective: 1500px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-block: 2.2rem;
}
.deck-viewport::-webkit-scrollbar { display: none; }
.deck {
  display: flex; gap: clamp(.9rem, 2.6vw, 1.4rem);
  padding-inline: max(var(--pad), calc(50vw - 155px));
  transform-style: preserve-3d; width: max-content;
}
@media (min-width: 1100px) { .deck { padding-inline: max(var(--pad), calc(50vw - 520px)); } }

.ai-card {
  position: relative; flex: 0 0 auto;
  width: min(74vw, 310px); aspect-ratio: 5 / 7.9;
  border-radius: var(--r-lg); overflow: hidden; scroll-snap-align: center;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(170deg, var(--c2, #1a1030), #0b0618);
  box-shadow: 0 34px 74px -28px rgba(0,0,0,.75);
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow .4s var(--ease); isolation: isolate;
}
.ai-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(78% 52% at 50% 6%, var(--c1) 0%, transparent 66%);
  opacity: .5;
}
.ai-card img.p {
  position: absolute; left: 50%; top: 4%;
  height: 62%; width: auto; max-width: none;
  transform: translateX(-50%); z-index: 1;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.55));
}
.ai-card .fade {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top,
    rgba(6,3,12,.99) 44%, rgba(6,3,12,.9) 54%, rgba(6,3,12,.35) 66%, transparent 78%);
}
.ai-card .meta {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  padding: 1.15rem 1.2rem 1.3rem; min-height: 52%;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
}
.ai-card .nm { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.ai-card .rl { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c1); font-weight: 800; margin-top: .45rem; }
.ai-card .ds { font-size: .87rem; color: rgba(255,255,255,.76); margin-top: .6rem; line-height: 1.45; }
.ai-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .85rem; }
.ai-chip {
  font-size: .66rem; padding: .34em .65em; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.78);
}
.ai-badge {
  position: absolute; top: .9rem; left: .9rem; z-index: 3;
  font-size: .58rem; font-weight: 900; letter-spacing: .13em;
  background: rgba(8,4,15,.6); border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: .4em .7em; border-radius: 999px; color: #fff;
}
.ai-badge b { color: var(--yellow); }
.deck-hint { text-align: center; margin-top: .4rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep-faint); }

/* A hidden scrollbar on a pointer device leaves no way to know the deck
   moves — give desktop explicit arrows, and everyone position dots. */
.deck-wrap { position: relative; }
.deck-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 6; width: 46px; height: 46px; border-radius: 50%;
  display: none; place-items: center;
  background: rgba(255,255,255,.94); color: var(--deep);
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.6);
  transition: transform .22s var(--ease), opacity .22s, background .2s;
}
.deck-nav svg { width: 20px; height: 20px; }
.deck-nav.prev { left: max(10px, calc(50vw - 560px)); }
.deck-nav.next { right: max(10px, calc(50vw - 560px)); }
.deck-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.deck-nav[disabled] { opacity: .3; pointer-events: none; }
@media (min-width: 900px) and (hover: hover) { .deck-nav { display: grid; } }

.deck-dots { display: flex; justify-content: center; gap: .45rem; margin-top: .2rem; }
.deck-dots button {
  width: 7px; height: 7px; border-radius: 50%; padding: 0;
  background: rgba(255,255,255,.3); transition: background .25s, width .25s;
}
.deck-dots button.on { background: var(--yellow); width: 20px; border-radius: 999px; }
@media (min-width: 900px) and (hover: hover) { .deck-hint { display: none; } }

/* ============================================================
   14. Human tutors — parallax wall
   ============================================================ */
.wall {
  position: relative; margin-top: clamp(2rem, 6vw, 3.2rem);
  display: grid; gap: .5rem; grid-template-columns: repeat(4, 1fr); perspective: 1200px;
}
@media (min-width: 700px)  { .wall { grid-template-columns: repeat(5, 1fr); gap: .7rem; } }
@media (min-width: 1040px) { .wall { grid-template-columns: repeat(7, 1fr); gap: .8rem; } }

.face {
  position: relative; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
  border: 3px solid #fff; background: var(--bg-2);
  box-shadow: 0 8px 20px -8px rgba(45,25,95,.3);
  will-change: transform; transition: transform .5s var(--ease), box-shadow .3s;
}
.face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.face .dot {
  position: absolute; right: 6%; bottom: 6%;
  width: 22%; height: 22%; border-radius: 50%;
  border: 2px solid #fff; background: var(--purple);
}
.face[data-kind="pl"]  .dot { background: #e0483f; }
.face[data-kind="nat"] .dot { background: var(--purple); }
.face[data-kind="exp"] .dot { background: var(--yellow); }
.face:hover { transform: translateY(-6px) scale(1.06); z-index: 5; box-shadow: 0 16px 34px -10px rgba(45,25,95,.45); }

.wall-key { display: flex; flex-wrap: wrap; gap: 1.1rem; justify-content: center; margin-top: 1.8rem; }
.wall-key div { display: flex; align-items: center; gap: .45rem; font-size: .83rem; font-weight: 550; color: var(--tx-dim); }
.wall-key i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.types { display: grid; gap: .9rem; grid-template-columns: 1fr; margin-top: clamp(2rem,5vw,3rem); }
@media (min-width: 780px) { .types { grid-template-columns: repeat(3, 1fr); } }
.type {
  padding: 1.5rem; border-radius: var(--r-md);
  background: var(--bg-1); border: 1px solid var(--line);
}
.type h4 { font-size: 1.05rem; font-weight: 660; letter-spacing: -.018em; display: flex; align-items: center; gap: .5rem; }
.type h4 i { width: 10px; height: 10px; border-radius: 50%; }
.type p { font-size: .9rem; color: var(--tx-dim); margin-top: .55rem; line-height: 1.5; }

/* ============================================================
   15. Lesson flow — 3D device
   ============================================================ */
.lesson { display: grid; gap: clamp(2rem, 6vw, 4rem); align-items: center; }
@media (min-width: 900px) { .lesson { grid-template-columns: 1fr 1fr; } }

.phone-stage { perspective: 1200px; display: grid; place-items: center; }
.phone {
  position: relative; width: min(66vw, 268px); aspect-ratio: 9 / 19;
  border-radius: 34px;
  background: linear-gradient(168deg, #2e1a5e, #150a33);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 44px 84px -30px rgba(45,25,95,.65), inset 0 1px 0 rgba(255,255,255,.2);
  padding: 9px; transform-style: preserve-3d; will-change: transform;
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 26px; overflow: hidden;
  background: linear-gradient(170deg, #1b0f3d, #0c0620);
  display: flex; flex-direction: column; color: #fff;
}
.phone-notch { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 34%; height: 15px; border-radius: 999px; background: #0c0620; z-index: 5; }
.pv-top { padding: 30px 12px 8px; text-align: center; }
.pv-live {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .52rem; font-weight: 800; letter-spacing: .12em;
  background: rgba(224,72,63,.2); color: #ff9d96;
  border: 1px solid rgba(224,72,63,.42); padding: .28em .55em; border-radius: 999px;
}
.pv-live b { width: 5px; height: 5px; border-radius: 50%; background: #ff5b52; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }
.pv-body { flex: 1; display: grid; place-items: center; padding: 6px; }
.pv-av { width: 78px; height: 78px; border-radius: 50%; overflow: hidden; border: 2px solid var(--yellow); }
.pv-av img { width: 100%; height: 100%; object-fit: cover; }
.pv-nm { font-size: .78rem; font-weight: 650; margin-top: .55rem; text-align: center; }
.pv-rl { font-size: .52rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); text-align: center; margin-top: .18rem; }
.pv-timer { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-align: center; margin-top: .7rem; }
.pv-timer small { display: block; font-size: .5rem; font-weight: 700; letter-spacing: .14em; color: rgba(255,255,255,.5); margin-top: .2rem; }
.pv-bar { padding: 0 16px 10px; }
.pv-track { height: 3px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.pv-fill { height: 100%; background: linear-gradient(90deg, var(--purple-lift), var(--yellow)); width: 0%; transition: width .2s linear; }
.pv-dock { display: flex; justify-content: center; gap: 12px; padding: 0 0 18px; }
.pv-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); }
.pv-btn.call { background: #2f7cf6; border-color: #2f7cf6; box-shadow: 0 0 24px -4px rgba(47,124,246,.9); }
.pv-btn svg { width: 16px; height: 16px; fill: #fff; }

.steps { counter-reset: s; display: grid; gap: 1.05rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding-bottom: 1.05rem; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step-n {
  counter-increment: s; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  background: var(--purple-soft); border: 1px solid rgba(109,64,254,.24);
  font-size: .8rem; font-weight: 800; color: var(--purple);
}
.step-n::before { content: counter(s); }
.step h4 { font-size: 1rem; font-weight: 640; letter-spacing: -.016em; }
.step p { font-size: .89rem; color: var(--tx-dim); margin-top: .25rem; line-height: 1.5; }

/* ============================================================
   16. Stats + logos
   ============================================================ */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md);
}
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; padding: clamp(1.3rem, 4vw, 2rem) 1.1rem; text-align: center; }
.stat b {
  display: block; font-size: clamp(1.9rem, 7vw, 3rem); font-weight: 700;
  letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--purple);
}
.stat span { display: block; font-size: .76rem; color: var(--tx-faint); margin-top: .5rem; }

.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.2rem, 5vw, 2.8rem); margin-top: clamp(2rem, 5vw, 3rem); }
.logos img { height: clamp(15px, 3.4vw, 22px); width: auto; filter: grayscale(1); opacity: .55; transition: opacity .3s, filter .3s; }
.logos img:hover { opacity: 1; filter: none; }

/* ============================================================
   17. Questionnaire
   ============================================================ */
.quiz-sect { background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 46%, var(--bg-1) 100%); }
.quiz { position: relative; max-width: 640px; margin-inline: auto; margin-top: clamp(1.8rem, 5vw, 2.8rem); perspective: 1600px; }
.quiz-shell {
  position: relative; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 40px 90px -34px rgba(45,25,95,.5);
  overflow: hidden; transform-style: preserve-3d; will-change: transform;
}
.quiz-top {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.05rem; border-bottom: 1px solid var(--line); background: var(--bg-1);
}
.quiz-back {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  border: 1px solid var(--line-strong); color: var(--tx-dim);
  transition: opacity .25s, background .2s;
}
.quiz-back:hover { background: #fff; }
.quiz-back[disabled] { opacity: .3; pointer-events: none; }
.quiz-prog { flex: 1; }
.quiz-prog-track { height: 4px; border-radius: 999px; background: rgba(22,18,31,.1); overflow: hidden; }
.quiz-prog-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--purple), var(--yellow)); transition: width .55s var(--ease-out); }
.quiz-count { font-size: .68rem; letter-spacing: .1em; font-weight: 700; color: var(--tx-faint); font-variant-numeric: tabular-nums; flex: 0 0 auto; }

.quiz-body { position: relative; padding: clamp(1.2rem, 4.4vw, 1.9rem); }
.qstep { display: none; }
.qstep.on { display: block; animation: qin .55s var(--ease-out) both; }
@keyframes qin { from { opacity: 0; transform: translateY(16px) rotateX(7deg); } to { opacity: 1; transform: none; } }

.asker { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.15rem; }
.asker-av {
  position: relative; flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%;
  overflow: hidden; background: var(--bg-2);
  border: 3px solid var(--c1, var(--purple));
  box-shadow: 0 6px 16px -6px rgba(45,25,95,.4);
}
.asker-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.asker-bub { flex: 1; min-width: 0; }
.asker-nm { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--c1-txt, var(--purple)); }
.asker-q { font-size: clamp(1.12rem, 4.6vw, 1.42rem); font-weight: 660; letter-spacing: -.024em; line-height: 1.22; margin-top: .3rem; text-wrap: balance; }
.asker-hint { font-size: .84rem; color: var(--tx-faint); margin-top: .4rem; line-height: 1.45; }

.opts { display: grid; gap: .55rem; }
@media (min-width: 560px) { .opts { grid-template-columns: 1fr 1fr; } }
.opt {
  display: flex; align-items: center; gap: .8rem;
  text-align: left; width: 100%; padding: .95rem 1rem;
  border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: #fff;
  transition: transform .22s var(--ease), border-color .22s, background .22s, box-shadow .22s;
  will-change: transform;
}
.opt:hover { transform: translateY(-2px); border-color: var(--purple); box-shadow: var(--shadow-sm); }
.opt:active { transform: translateY(0) scale(.99); }
.opt.sel { border-color: var(--purple); background: var(--purple-soft); box-shadow: inset 0 0 0 1px var(--purple); }
.opt-e { font-size: 1.42rem; line-height: 1; flex: 0 0 auto; }
.opt-t { min-width: 0; }
.opt-t b { display: block; font-size: .95rem; font-weight: 600; letter-spacing: -.012em; }
.opt-t span { display: block; font-size: .78rem; color: var(--tx-faint); margin-top: .16rem; line-height: 1.35; }

.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (min-width: 520px) { .days { grid-template-columns: repeat(5, 1fr); } }
.day {
  padding: .8rem .4rem; border-radius: var(--r-sm); text-align: center;
  border: 1px solid var(--line-strong); background: #fff;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.day:hover { transform: translateY(-2px); border-color: var(--purple); }
.day.sel { border-color: var(--purple); background: var(--purple-soft); box-shadow: inset 0 0 0 1px var(--purple); }
.day i { display: block; font-style: normal; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-faint); font-weight: 700; }
.day b { display: block; font-size: 1.28rem; font-weight: 680; letter-spacing: -.03em; margin-top: .12rem; line-height: 1; }
.day s { display: block; text-decoration: none; font-size: .62rem; color: var(--tx-faint); margin-top: .12rem; }
.day.sel i, .day.sel s { color: var(--purple); }

.hours { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin-top: .85rem; }
@media (min-width: 520px) { .hours { grid-template-columns: repeat(4, 1fr); } }
.hour {
  padding: .68rem .3rem; border-radius: 10px; text-align: center;
  font-size: .92rem; font-weight: 600; font-variant-numeric: tabular-nums;
  border: 1px solid var(--line-strong); background: #fff;
  transition: transform .18s var(--ease), border-color .2s, background .2s;
}
.hour:hover { transform: translateY(-2px); border-color: var(--purple); }
.hour.sel { border-color: var(--purple); background: var(--purple-soft); color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); }
.sub-label { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--tx-faint); margin: 1.2rem 0 .6rem; }

.fields { display: grid; gap: .7rem; }
.field label { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--tx-faint); margin-bottom: .35rem; }
.field input, .field select {
  width: 100%; padding: .9rem 1rem; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: #fff; color: var(--tx);
  transition: border-color .2s, box-shadow .2s;
  font-size: 16px; /* prevents iOS zoom-on-focus */
}
.field input::placeholder { color: #a9a3bd; }
.field input:focus, .field select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(109,64,254,.16); }
.field input[aria-invalid="true"] { border-color: #d92d20; background: #fff5f4; }
.field .err { font-size: .74rem; color: #b42318; margin-top: .3rem; display: none; }
.field input[aria-invalid="true"] ~ .err { display: block; }
.phone-row { display: grid; grid-template-columns: 104px 1fr; gap: .5rem; }
.phone-row select { padding-inline: .7rem; }

.consent { display: flex; gap: .65rem; align-items: flex-start; margin-top: .9rem; }
.consent input { width: 19px; height: 19px; flex: 0 0 auto; margin-top: .12rem; accent-color: var(--purple); }
.consent label { font-size: .78rem; color: var(--tx-faint); line-height: 1.45; }
.consent a { text-decoration: underline; color: var(--tx-dim); }

.recap { display: grid; gap: .4rem; padding: .95rem 1.05rem; border-radius: var(--r-sm); background: var(--purple-soft); border: 1px solid rgba(109,64,254,.22); margin-bottom: 1.1rem; }
.recap-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; }
.recap-row span { color: var(--tx-faint); flex: 0 0 auto; }
.recap-row b { font-weight: 620; text-align: right; }

.done { text-align: center; padding: 1rem .5rem 0; }
.done-mark {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 1.15rem;
  display: grid; place-items: center;
  background: var(--yellow); box-shadow: 0 10px 26px -10px rgba(215,178,0,.8);
  animation: pop .6s var(--ease-out) both;
}
@keyframes pop { from { transform: scale(.5); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.done-mark svg { width: 30px; height: 30px; stroke: var(--ink); fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.done-team { display: flex; justify-content: center; margin: 1.3rem 0 .3rem; }
.done-team img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: 50% 16%; border: 3px solid #fff; background: var(--bg-2); box-shadow: 0 6px 14px -6px rgba(45,25,95,.4); }
.done-team img + img { margin-left: -12px; }

.quiz-note { font-size: .72rem; color: var(--tx-faint); text-align: center; margin-top: .8rem; line-height: 1.45; }

/* ============================================================
   18. Final CTA + footer
   ============================================================ */
.final {
  position: relative; text-align: center; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, var(--purple) 0%, #4a1fd0 55%, #300f9e 100%);
  color: #fff;
}
.final .lede { color: rgba(255,255,255,.82); }
.final .wrap { position: relative; z-index: 1; }
.final-orbs { display: flex; justify-content: center; margin-bottom: 1.6rem; }
.final-orbs img {
  width: clamp(46px, 12vw, 60px); height: clamp(46px, 12vw, 60px);
  border-radius: 50%; object-fit: cover; object-position: 50% 18%;
  border: 3px solid #fff; background: var(--bg-2);
}
.final-orbs img + img { margin-left: clamp(-16px, -3.4vw, -13px); }
.final-orbs img.ai { border-color: var(--yellow); }

.foot { border-top: 1px solid var(--line); padding-block: 2.4rem; font-size: .8rem; color: var(--tx-faint); background: #fff; }
.foot-in { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; justify-content: space-between; }
.foot a { text-decoration: underline; }
.foot a:hover { color: var(--purple); }
.foot img { height: 20px; }

/* ============================================================
   19. Reduced motion & small-screen trims
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv > i, .fu, .pillar { opacity: 1 !important; transform: none !important; }
  .ring.flat {
    position: static; width: auto; height: auto;
    display: flex; flex-wrap: wrap; justify-content: center; align-content: center;
    gap: 10px; max-width: min(88vw, 520px);
  }
  .ring.flat .orb { position: static; margin: 0; transform: none !important; opacity: 1 !important; }
  .hero-scrim { display: none; }
  .hero { height: auto; }
  .hero-pin {
    position: relative; height: auto; padding-block: 16vh 10vh;
    display: flex; flex-direction: column; align-items: center; gap: clamp(2rem, 6vw, 3.4rem);
  }
  .ring-stage { position: static; inset: auto; transform: none !important; }
  .hero-frame { height: auto; padding: 0 var(--pad); gap: 2rem; }
  .hero-beat { position: static; opacity: 1 !important; transform: none !important; margin-top: 1rem; }
  .hero-beat::before { display: none; }
  .hero-hint { display: none; }
  .flip-scene { height: auto; }
  .flip-pin { position: relative; height: auto; padding-block: 12vh; }
  .beat-strike::after { transform: scaleX(1); }
}

@media (max-width: 460px) {
  .hero-foot .btn-row, .final .btn-row { flex-direction: column; align-items: stretch; }
  .hero-foot .btn, .final .btn { width: 100%; }
}
@media (max-width: 420px) {
  .quiz-body { padding: 1.05rem; }
  .asker-av { width: 50px; height: 50px; }
}
