/* ═══════════════════════════════════════════════════════════════
   Lumen — the front page, in the look of the social posts
   Purple ground, yellow tags and brush underlines, round Fredoka
   headings, and drawn phone screens instead of screenshots: the page
   sells the platform and never shows a teacher's own content.
   Loaded after site.css, on index.html only.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --night: #1B1240;
  --lilac: #E3D9FF;
  --brush: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15C60 7 130 6 200 9S280 13 296 10L294 19C230 21 150 15 90 17S20 21 6 22Z' fill='%23FFD23F'/%3E%3C/svg%3E");
  --blob: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 10c14 0 18 30 30 34s38-12 46 0-14 34-10 48 34 22 28 36-36 6-46 16-6 42-20 46-24-26-38-28-34 20-44 10 4-36-2-48-38-14-36-28 32-14 36-28-12-38 0-46 32 8 44 2 0-42 12-42z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}
html:has(body.home), .home { overflow-x: clip; }
.home { background: #fff; }
.home h1, .home h2, .home h3 { font-family: 'Fredoka', 'Manrope', sans-serif; letter-spacing: -.01em; font-weight: 700; }
.home em { font-style: normal; position: relative; z-index: 0; white-space: nowrap; }
.home em::after {
  content: ''; position: absolute; z-index: -1; left: -3%; right: -3%; bottom: -.08em; height: .28em;
  background: var(--brush) center / 100% 100% no-repeat;
}
.home .tag {
  display: inline-block; background: var(--sun); color: var(--night);
  font: 700 .82rem/1 'Fredoka', sans-serif; letter-spacing: .04em; text-transform: uppercase;
  padding: 9px 15px 10px; border-radius: 9px; transform: rotate(-2deg); margin-bottom: 18px;
}
.home .kicker { display: block; font: 700 .86rem 'Fredoka', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }

.blob { position: absolute; width: 380px; height: 380px; background: var(--blob) center / contain no-repeat; opacity: .08; pointer-events: none; }

/* ── HERO ── */
.h-hero { position: relative; overflow: hidden; background: var(--primary); color: #fff; padding: 80px 0 90px; }
.h-hero .b1 { top: -150px; right: -120px; transform: rotate(20deg); }
.h-hero .b2 { bottom: -190px; left: -160px; width: 460px; height: 460px; }
.h-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.h-hero h1 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.1rem); line-height: 1.06; }
.h-lead { font-size: 1.12rem; line-height: 1.6; color: var(--lilac); margin: 22px 0 32px; max-width: 34em; }
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.h-actions.center { justify-content: center; }
.h-student { margin-top: 26px; font-size: .92rem; color: var(--lilac); }
.h-student a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 4px; }
.h-phone-wrap { display: flex; justify-content: center; }

/* ── SECTIONS ── */
.h-section { padding: 96px 0; position: relative; overflow: hidden; }
.h-alt { background: var(--cream); }
.h-night { background: var(--night); color: var(--lilac); }
.h-night h2 { color: #fff; }
.h-night .b3 { top: -120px; left: -140px; }
.h-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.h-head.left { text-align: left; margin: 0; }
.h-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.12; }
.h-head p { margin-top: 16px; font-size: 1rem; }
.h-head p a { color: var(--primary); font-weight: 600; }

.h-ic { width: 52px; height: 52px; border-radius: 15px; background: var(--sun); color: var(--night); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.h-ic svg { width: 26px; height: 26px; }

.h-who { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.h-who article { border: 2px solid var(--border); border-radius: 26px; padding: 36px; }
.h-who h3 { font-size: 1.6rem; margin-bottom: 10px; }

.h-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 96px; position: relative; z-index: 1; }
.h-feat:last-child { margin-bottom: 0; }
.h-feat.rev > :first-child { order: 2; }
.h-feat h3 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.12; margin-bottom: 24px; }
.h-feat h2 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.12; }
.h-feat .phone { justify-self: center; }
.h-night .h-feat { margin-bottom: 0; }
.h-night .h-lead { color: var(--lilac); }

.ticks { list-style: none; }
.ticks li { position: relative; padding-left: 36px; margin-bottom: 14px; font-size: 1.03rem; line-height: 1.5; color: var(--ink-2); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .18em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1240' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks.light li { color: var(--lilac); }

.h-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 96px; }
.h-grid article { background: #fff; border-radius: 24px; padding: 30px; box-shadow: var(--shadow-sm); }
.h-grid h3 { font-size: 1.3rem; margin-bottom: 8px; }
.h-grid p { font-size: .95rem; }

.h-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.h-steps > .h-step { background: var(--primary); color: var(--lilac); border-radius: 24px; padding: 22px 22px 28px; position: relative; overflow: hidden; }
.h-steps > .h-step > b { display: flex; width: 46px; height: 46px; border-radius: 50%; background: var(--sun); color: var(--night); font: 700 1.3rem 'Fredoka', sans-serif; align-items: center; justify-content: center; margin-bottom: 18px; }
.h-steps h3 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.h-steps p { font-size: .93rem; }

.h-faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.h-faq details { background: #fff; border-radius: 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.h-faq summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 26px; position: relative; font: 600 1.08rem 'Fredoka', sans-serif; color: var(--ink); }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--sun); color: var(--night);
  font: 700 1.2rem/30px 'Fredoka', sans-serif; text-align: center;
}
.h-faq details[open] summary::after { content: '–'; }
.h-faq details p { padding: 0 26px 24px; font-size: .98rem; }

.h-cta { position: relative; overflow: hidden; background: var(--primary); border-radius: 36px; padding: 70px 30px; text-align: center; color: var(--lilac); }
.h-cta .b4 { top: -140px; right: -120px; }
.h-cta h2 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.h-cta p { margin: 14px auto 30px; max-width: 34em; font-size: 1.05rem; }
.h-cta-icon { width: 96px; height: 96px; border-radius: 26px; margin: 0 auto 22px; transform: rotate(-4deg); box-shadow: 0 16px 40px -10px rgba(20,8,60,.6); }

/* ── BUTTONS ── */
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); font-family: 'Fredoka', sans-serif; font-weight: 600; }
.btn-ghost-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.home .btn { font-family: 'Fredoka', sans-serif; font-weight: 600; letter-spacing: .01em; }

/* ── DRAWN PHONE SCREENS (the same pieces as the posts) ── */
.phone { width: 300px; height: 610px; border: 10px solid #fff; border-radius: 44px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -14px rgba(20,8,60,.45); flex: none; }
.h-night .phone { border-color: #2A1D5E; }
.tilt-r { transform: rotate(3deg); }
.ui { position: relative; min-height: 100%; padding: 22px 18px; color: var(--night); font: 500 15px/1.35 'Fredoka', sans-serif; text-align: left; }
.ui .bar { display: block; height: 9px; border-radius: 5px; background: #E7E2F3; margin: 6px 0; }
.u-top { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.u-muted { display: block; color: #7E7896; font-size: 13px; margin-bottom: 8px; }
.u-h { font-size: 14px; font-weight: 700; color: #7E7896; margin: 16px 0 8px; }
.u-tiles { display: flex; gap: 8px; margin-top: 12px; }
.u-tiles div { flex: 1; border: 1.5px solid #ECE8F6; border-radius: 13px; padding: 10px 6px; text-align: center; }
.u-tiles b { display: block; font-size: 21px; color: var(--primary); }
.u-tiles b.r { color: #C62F45; }
.u-tiles span { font-size: 11px; color: #7E7896; }
.u-row { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1.5px solid #F1EEF8; }
.u-row.slim { padding: 5px 0; }
.u-av { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.u-grow { flex: 1; min-width: 0; }
.u-grow b { display: block; font-size: 14px; }
.u-grow small { color: #7E7896; font-size: 11px; }
.u-prog { height: 7px; border-radius: 4px; background: #EEE9FB; margin-top: 5px; overflow: hidden; }
.u-prog i { display: block; height: 100%; background: var(--sun); }
.u-prog.big { height: 9px; margin-bottom: 14px; }
.pill { flex: none; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 4px 9px; }
.pill.ok { background: #E5F7EE; color: #147A57; }
.pill.bad { background: #FDE8EB; color: #C62F45; }
.u-warn { background: #8E1D2F; color: #fff; border-radius: 10px; padding: 9px 11px; font-size: 11.5px; font-weight: 600; line-height: 1.35; margin-bottom: 14px; }
.u-card { background: #F7F5FC; border-radius: 13px; padding: 10px 14px; margin: 4px 0 10px; }
.u-opt { display: flex; gap: 10px; align-items: center; border: 1.5px solid #E3DDF3; border-radius: 12px; padding: 7px 11px; margin-top: 8px; }
.u-opt b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #EEE9FB; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.u-opt .bar { flex: 1; }
.u-opt.on { border-color: var(--primary); background: #F2ECFC; }
.u-opt.on b { background: var(--primary); color: #fff; }
.u-opt.right { border-color: #2BB673; background: #E5F7EE; }
.u-opt.right b { background: #2BB673; color: #fff; }
.u-wm { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; pointer-events: none; overflow: hidden; }
.u-wm span { transform: rotate(-27deg); font-size: 12px; font-weight: 700; color: rgba(85,76,83,.2); white-space: nowrap; padding: 26px 6px; }
.u-timer { display: flex; align-items: baseline; gap: 7px; justify-content: center; background: var(--night); color: var(--sun); border-radius: 14px; padding: 9px; margin: 10px 0 12px; }
.u-timer b { font-size: 34px; letter-spacing: .02em; }
.u-timer span { color: #fff; font-size: 14px; }
.u-btn { background: var(--primary); color: #fff; text-align: center; font-weight: 700; font-size: 15px; border-radius: 99px; padding: 9px; margin-top: 14px; }
.u-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.u-chips span { border: 1.5px solid #E3DDF3; border-radius: 99px; padding: 5px 11px; font-size: 13px; font-weight: 600; }
.u-chips span.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.u-note { color: #147A57; font-weight: 700; font-size: 13px; text-align: center; margin: 9px 0 12px; }
.u-mailhead { background: linear-gradient(120deg, #5E2BC0, var(--primary)); border-radius: 14px; padding: 14px; margin-bottom: 4px; }
.u-mailhead img { height: 24px; width: auto; }
.u-mailhead small { display: block; color: var(--lilac); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.u-files { display: flex; gap: 8px; margin-top: 12px; }
.u-files span { flex: 1; text-align: center; border: 1.5px dashed #CFC3F2; border-radius: 10px; padding: 8px; font-weight: 700; color: var(--primary); }

/* ── SMALL SCREENS ── */
@media (max-width: 900px) {
  .h-hero { padding: 56px 0 64px; }
  .h-hero-inner, .h-feat, .h-faq-wrap, .h-who { grid-template-columns: 1fr; gap: 40px; }
  .h-feat.rev > :first-child { order: 0; }
  .h-grid { grid-template-columns: 1fr 1fr; }
  .h-steps { grid-template-columns: 1fr 1fr; }
  .h-section { padding: 72px 0; }
  .h-feat { margin-bottom: 72px; }
  .h-grid { margin-top: 72px; }
  .h-head.left { text-align: center; }
}
@media (max-width: 560px) {
  .h-grid, .h-steps { grid-template-columns: 1fr; }
  .h-who article { padding: 26px; }
  .h-cta { padding: 54px 22px; border-radius: 28px; }
  .home .nav-cta { gap: 6px; }
  .home .nav-cta .btn-sm { padding: 9px 12px; }
}

/* ═══ MOTION, GRADIENTS AND THE EXTRAS (driven by js/home.js) ═══ */

/* Gradients: the hero's purple has depth and drifts slowly; the night
   section and the closing band pick up the same glow. */
.h-hero {
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(255,210,63,.16) 0%, transparent 60%),
    radial-gradient(70% 90% at 10% 100%, rgba(42,29,94,.65) 0%, transparent 65%),
    linear-gradient(135deg, #8A52F0 0%, #7B3FE4 45%, #5B2BC2 100%);
  background-size: 160% 160%, 160% 160%, 100% 100%;
  animation: h-drift 18s ease-in-out infinite alternate;
}
@keyframes h-drift { to { background-position: 30% 40%, 70% 10%, 0 0; } }
.h-night { background: radial-gradient(80% 70% at 90% 30%, rgba(123,63,228,.45) 0%, transparent 60%), linear-gradient(160deg, #1B1240 0%, #241757 100%); }
.h-cta { background: radial-gradient(70% 120% at 0% 0%, rgba(255,210,63,.22) 0%, transparent 55%), linear-gradient(135deg, #8A52F0 0%, #6633D6 100%); }
.h-steps > .h-step { background: linear-gradient(160deg, #8A52F0 0%, #6633D6 100%); }
.h-ic { background: linear-gradient(135deg, #FFE27A 0%, #FFC21A 100%); }

/* The nav lifts off the page once it scrolls. */
.nav { transition: box-shadow .25s, background .25s; }
.nav.scrolled { box-shadow: 0 8px 30px -12px rgba(27,18,64,.25); background: rgba(255,255,255,.92); }

/* Rise into view. Only once js/home.js has said motion is on, so with
   no script nothing is ever hidden. */
.motion .rv { opacity: 0; transform: translateY(34px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.motion .h-feat > .phone.rv { transform: translateY(50px) rotate(-3deg) scale(.96); }
.motion .rv.in { opacity: 1; transform: none; }
.motion .h-feat > .phone.rv.in { transform: rotate(0); }

/* Hover lift on the cards. */
.h-grid article, .h-who article { transition: transform .25s, box-shadow .25s, border-color .25s; }
.h-grid article:hover, .h-who article:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -18px rgba(60,20,140,.35); border-color: var(--primary-l); }
.h-grid article:hover .h-ic, .h-who article:hover .h-ic { animation: h-wiggle .5s ease; }
@keyframes h-wiggle { 30% { transform: rotate(-10deg) scale(1.08); } 65% { transform: rotate(6deg); } }

/* The hero phone floats; the hero buttons get a sheen. */
.h-phone-wrap { perspective: 900px; }
.h-phone-wrap .phone { animation: h-float 6s ease-in-out infinite; transition: transform .2s ease-out; }
@keyframes h-float { 50% { translate: 0 -14px; } }
.btn-sun { position: relative; overflow: hidden; }
.h-hero .btn-sun::after, .h-cta .btn-sun::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg);
  animation: h-sheen 3.6s ease-in-out infinite 1.2s;
}
@keyframes h-sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* The ticker. */
.h-ticker { background: var(--sun); color: var(--night); overflow: hidden; padding: 14px 0; transform: rotate(-1.2deg); margin: -14px -10px 0; position: relative; z-index: 2; box-shadow: 0 10px 30px -12px rgba(27,18,64,.35); }
.h-ticker-track { display: flex; width: max-content; animation: h-tick 38s linear infinite; }
.h-ticker span { font: 700 1.05rem 'Fredoka', sans-serif; white-space: nowrap; padding: 0 22px; display: flex; align-items: center; gap: 22px; }
.h-ticker span::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
@keyframes h-tick { to { transform: translateX(-50%); } }

/* Phone scenes. */
.ui[data-scene="dash"] .u-prog i { transform-origin: left; }
.ui[data-scene="dash"].play .u-prog i { animation: h-grow 1.4s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * .15s); }
@keyframes h-grow { from { transform: scaleX(0); } }
.u-opt, .u-chips span { transition: background .3s, border-color .3s, color .3s, transform .3s; }
.u-opt.on { transform: scale(1.03); box-shadow: 0 0 0 4px rgba(123,63,228,.12); }
.ui[data-scene="mock"] .u-timer b { font-variant-numeric: tabular-nums; }
.ui[data-scene="bank"] .u-opt.right { transition: opacity .4s, transform .4s; }
.ui[data-scene="bank"]:not(.play) .u-opt.right { opacity: .25; transform: scale(.96); }
.ui[data-scene="report"].play .u-row { animation: h-slide .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * .25s); }
.ui[data-scene="report"].play .u-row .pill { animation: h-pop .4s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i, 0) * .25s + .2s); }
@keyframes h-slide { from { opacity: 0; transform: translateX(-24px); } }
@keyframes h-pop { from { opacity: 0; transform: scale(.4); } }
.u-warn.drop { animation: h-drop .7s cubic-bezier(.3,1.5,.5,1); }
@keyframes h-drop { from { transform: translateY(-120%); opacity: 0; } 70% { transform: translateY(4px); } }
.ui[data-scene="protect"] .u-wm { animation: h-wm 14s linear infinite; }
@keyframes h-wm { to { transform: translate(-30px, 20px); } }

/* The one-time card and the WhatsApp button. */
.h-wa { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.35); transition: transform .2s; }
.h-wa:hover { transform: scale(1.08); }
.h-wa svg { width: 30px; height: 30px; }
.h-wa::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: h-ring 2.4s ease-out infinite; }
@keyframes h-ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.h-nudge { position: fixed; right: 20px; bottom: 90px; z-index: 95; width: min(360px, calc(100vw - 40px)); display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border-radius: 22px; padding: 18px 18px 18px 16px; box-shadow: 0 24px 60px -16px rgba(27,18,64,.45); border: 2px solid var(--sun);
  transform: translateY(30px) scale(.95); opacity: 0; transition: transform .35s cubic-bezier(.3,1.4,.5,1), opacity .3s; }
.h-nudge.on { transform: none; opacity: 1; }
.h-nudge-icon { width: 52px; height: 52px; border-radius: 14px; flex: none; transform: rotate(-4deg); }
.h-nudge b { font: 700 1.08rem 'Fredoka', sans-serif; color: var(--ink); }
.h-nudge p { font-size: .88rem; margin: 4px 0 12px; line-height: 1.45; }
.h-nudge-actions { display: flex; gap: 14px; align-items: center; }
.h-nudge-wa { font: 600 .85rem 'Fredoka', sans-serif; color: var(--primary); }
.h-nudge-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px; }

@media (prefers-reduced-motion: reduce) {
  .h-hero, .h-ticker-track, .h-phone-wrap .phone, .btn-sun::after, .h-wa::before, .ui * { animation: none !important; }
}
@media (max-width: 560px) {
  .h-ticker span { font-size: .92rem; padding: 0 16px; gap: 16px; }
  .h-wa { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .h-nudge { right: 14px; bottom: 78px; }
}

/* ═══ HOW IT STARTS: a looping scene on each step ═══ */
.h-track { position: relative; height: 6px; border-radius: 3px; background: var(--blush-2); margin: 0 12.5% 34px; }
.h-track-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); border-radius: 3px; background: linear-gradient(90deg, var(--sun), #FFB800); transition: width .15s linear; }
.h-track span { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; border: 4px solid var(--blush-2); transition: border-color .3s, transform .3s; }
.h-track span:nth-of-type(1) { left: 0; } .h-track span:nth-of-type(2) { left: 33.33%; } .h-track span:nth-of-type(3) { left: 66.66%; } .h-track span:nth-of-type(4) { left: 100%; }
.h-track span.lit { border-color: var(--sun); transform: scale(1.25); box-shadow: 0 0 0 6px rgba(255,210,63,.25); }
.h-step.lit > b { animation: st-pulse 1.6s ease-out 1; }
@keyframes st-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,210,63,.7); } 100% { box-shadow: 0 0 0 18px rgba(255,210,63,0); } }

.st-art { position: relative; height: 150px; border-radius: 16px; background: rgba(255,255,255,.1); margin-bottom: 20px; overflow: hidden; font: 600 12px/1.2 'Fredoka', sans-serif; color: var(--night); }
.motion .h-step:not(.in) .st-art * { animation-play-state: paused !important; }

/* 1 · the call: a day is picked, a time slides in, it's booked */
.st-call .cal { position: absolute; left: 14px; top: 14px; width: 130px; background: #fff; border-radius: 12px; padding: 9px; box-shadow: 0 8px 20px -8px rgba(20,8,60,.4); }
.st-call .cal-h { font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.st-call .cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.st-call .cal-g i { height: 11px; border-radius: 3px; background: #EEE9FB; }
.st-call .cal-g i.pick { animation: st-pick 5s ease-in-out infinite; }
@keyframes st-pick { 0%, 12% { background: #EEE9FB; transform: none; } 20%, 100% { background: var(--primary); transform: scale(1.35); } }
.st-call .slot { position: absolute; right: 14px; top: 26px; background: #fff; border: 2px solid var(--primary); color: var(--primary); border-radius: 99px; padding: 6px 10px; white-space: nowrap; animation: st-slot 5s cubic-bezier(.2,.8,.2,1) infinite; }
@keyframes st-slot { 0%, 28% { opacity: 0; transform: translateX(30px); } 38%, 100% { opacity: 1; transform: none; } }
.st-call .stamp { position: absolute; right: 18px; top: 70px; background: #2BB673; color: #fff; border-radius: 8px; padding: 6px 10px; font-weight: 700; transform: rotate(-8deg); animation: st-stamp 5s cubic-bezier(.3,1.6,.5,1) infinite; }
@keyframes st-stamp { 0%, 48% { opacity: 0; transform: rotate(-8deg) scale(2.2); } 56%, 92% { opacity: 1; transform: rotate(-8deg) scale(1); } 100% { opacity: 0; } }
.st-call .ring { position: absolute; left: 50%; bottom: 10px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: var(--sun); color: var(--night); display: flex; align-items: center; justify-content: center; animation: st-ring 5s ease-in-out infinite; }
.st-call .ring svg { width: 17px; height: 17px; }
@keyframes st-ring { 0%, 4%, 12%, 100% { transform: rotate(0); } 6%, 10% { transform: rotate(-16deg); } 8% { transform: rotate(16deg); } }

/* 2 · the build: the window fills with your logo, colours and courses */
.st-build .win { position: absolute; left: 14px; right: 14px; top: 14px; bottom: 30px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 20px -8px rgba(20,8,60,.4); }
.st-build .win-bar { height: 14px; background: #EEE9FB; display: flex; gap: 4px; align-items: center; padding: 0 7px; }
.st-build .win-bar i { width: 5px; height: 5px; border-radius: 50%; background: #CFC3F2; }
.st-build .win-top { display: flex; align-items: center; gap: 7px; padding: 7px 9px; animation: st-theme 6s steps(1) infinite; color: #fff; }
@keyframes st-theme { 0% { background: #7B3FE4; } 33% { background: #1F6FB2; } 66% { background: #138A63; } }
.st-build .logo-box { flex: none; width: 34px; height: 22px; border-radius: 6px; border: 1.5px dashed rgba(255,255,255,.8); font-size: 6.5px; display: flex; align-items: center; justify-content: center; text-align: center; animation: st-logo 6s ease infinite; }
@keyframes st-logo { 0%, 10% { background: transparent; color: #fff; } 18%, 100% { background: var(--sun); border-color: var(--sun); color: var(--night); } }
.st-build .name { font-size: 11px; font-weight: 700; animation: st-type 6s steps(12) infinite; overflow: hidden; white-space: nowrap; }
@keyframes st-type { 0% { max-width: 0; } 25%, 100% { max-width: 90px; } }
.st-build .win-body { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 9px; }
.st-build .win-body i { height: 18px; border-radius: 5px; background: #EEE9FB; animation: st-block 6s cubic-bezier(.3,1.5,.5,1) infinite; }
.st-build .win-body i:nth-child(2) { animation-delay: .25s; } .st-build .win-body i:nth-child(3) { animation-delay: .5s; } .st-build .win-body i:nth-child(4) { animation-delay: .75s; }
@keyframes st-block { 0%, 30% { opacity: 0; transform: scale(.4); } 40%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.st-build .swatches { position: absolute; bottom: 9px; left: 0; right: 0; display: flex; gap: 7px; justify-content: center; }
.st-build .swatches i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; background: #7B3FE4; }
.st-build .swatches i:nth-child(2) { background: #1F6FB2; } .st-build .swatches i:nth-child(3) { background: #138A63; }
.st-build .swatches i { animation: st-sw 6s steps(1) infinite; }
.st-build .swatches i:nth-child(2) { animation-name: st-sw2; } .st-build .swatches i:nth-child(3) { animation-name: st-sw3; }
@keyframes st-sw { 0% { transform: scale(1.35); } 33% { transform: none; } }
@keyframes st-sw2 { 0% { transform: none; } 33% { transform: scale(1.35); } 66% { transform: none; } }
@keyframes st-sw3 { 0% { transform: none; } 66% { transform: scale(1.35); } }

/* 3 · the students: faces pop in and the count runs up */
@property --n { syntax: '<integer>'; inherits: false; initial-value: 0; }
.st-people .count { position: absolute; left: 14px; right: 14px; top: 14px; background: #fff; border-radius: 10px; padding: 8px 10px; font-size: 13px; color: var(--ink-2); box-shadow: 0 8px 20px -8px rgba(20,8,60,.4); }
.st-people .num { font-size: 20px; font-weight: 700; color: var(--primary); counter-reset: n var(--n); animation: st-count 6s cubic-bezier(.2,.7,.2,1) infinite; }
.st-people .num::after { content: counter(n); }
@keyframes st-count { 0% { --n: 0; } 70%, 100% { --n: 482; } }
.st-people .faces { position: absolute; left: 14px; right: 14px; top: 64px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; justify-items: center; }
.st-people .faces i { width: 30px; height: 30px; border-radius: 50%; background: var(--sun); border: 3px solid #fff; animation: st-face 6s cubic-bezier(.3,1.6,.5,1) infinite; }
.st-people .faces i:nth-child(3n+2) { background: #B796F5; } .st-people .faces i:nth-child(3n) { background: #FF9FB2; }
.st-people .faces i:nth-child(1) { animation-delay: 0s } .st-people .faces i:nth-child(2) { animation-delay: .3s } .st-people .faces i:nth-child(3) { animation-delay: .6s }
.st-people .faces i:nth-child(4) { animation-delay: .9s } .st-people .faces i:nth-child(5) { animation-delay: 1.2s } .st-people .faces i:nth-child(6) { animation-delay: 1.5s }
.st-people .faces i:nth-child(7) { animation-delay: 1.8s } .st-people .faces i:nth-child(8) { animation-delay: 2.1s } .st-people .faces i:nth-child(9) { animation-delay: 2.4s } .st-people .faces i:nth-child(10) { animation-delay: 2.7s }
@keyframes st-face { 0%, 2% { opacity: 0; transform: scale(0); } 8%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: scale(.6); } }
.st-people .plus { position: absolute; right: 18px; top: 18px; background: #2BB673; color: #fff; border-radius: 99px; padding: 3px 8px; font-weight: 700; animation: st-plus 1.2s ease-out infinite; }
@keyframes st-plus { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-16px); } }

/* 4 · teaching: the answers tick themselves, the mark lands, the report goes */
.st-teach .sheet { position: absolute; left: 14px; top: 14px; width: 58%; bottom: 14px; background: #fff; border-radius: 10px; padding: 10px; box-shadow: 0 8px 20px -8px rgba(20,8,60,.4); }
.st-teach .q { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; }
.st-teach .q i { flex: 1; height: 9px; border-radius: 5px; background: #EEE9FB; }
.st-teach .q em { font-style: normal; flex: none; width: 16px; height: 16px; border-radius: 50%; background: #2BB673; color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; animation: st-tick 5s cubic-bezier(.3,1.6,.5,1) infinite; }
.st-teach .q:nth-child(2) em { animation-delay: .4s; } .st-teach .q:nth-child(3) em { animation-delay: .8s; }
@keyframes st-tick { 0%, 10% { opacity: 0; transform: scale(0); } 18%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.st-teach .score { display: inline-block; background: var(--sun); border-radius: 8px; padding: 4px 9px; font-size: 15px; font-weight: 700; animation: st-score 5s cubic-bezier(.3,1.6,.5,1) infinite; }
@keyframes st-score { 0%, 34% { opacity: 0; transform: scale(.3) rotate(-10deg); } 42%, 90% { opacity: 1; transform: rotate(-4deg); } 100% { opacity: 0; } }
.st-teach .mail { position: absolute; right: 12px; top: 50%; width: 34%; margin-top: -30px; background: #fff; border-radius: 10px; padding: 8px 6px; text-align: center; color: var(--primary); font-size: 10.5px; box-shadow: 0 8px 20px -8px rgba(20,8,60,.4); animation: st-mail 5s cubic-bezier(.2,.8,.2,1) infinite; }
.st-teach .mail svg { width: 24px; height: 24px; display: block; margin: 0 auto 3px; }
@keyframes st-mail { 0%, 50% { opacity: 0; transform: translateX(-40px) scale(.8); } 60%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(30px, -30px) scale(.7); } }

@media (max-width: 900px) { .h-track { display: none; } }

/* ═══ FEATURES AS A STORY: a line across the top, one feature at a time ═══ */
/* Without script (no .motion), the features stand one under another. */
.fx-line { display: none; }
.fx-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.fx-item { margin-bottom: 48px; }
.fx-item h3 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.12; margin-bottom: 24px; }
.fx-phone + .fx-phone { display: none; }
.fx-phone .phone { margin: 0 auto; }

.motion .fx { height: calc(var(--n) * 85vh + 20vh); position: relative; }
.motion .fx-stick { position: sticky; top: 70px; height: calc(100vh - 70px); display: flex; flex-direction: column; justify-content: center; gap: 36px; }
.motion .fx-line { display: flex; justify-content: space-between; position: relative; padding: 0 2%; }
.fx-track { position: absolute; left: calc(2% + 22px); right: calc(2% + 22px); top: 21px; height: 6px; border-radius: 3px; background: var(--blush-2); }
.fx-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); border-radius: 3px; background: linear-gradient(90deg, var(--sun), #FFB800); }
.fx-dot { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 .9rem 'Fredoka', sans-serif; color: var(--muted); padding: 0; width: 110px; }
.fx-dot b { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 4px solid var(--blush-2); color: var(--muted); font-size: 1.15rem; transition: all .35s cubic-bezier(.3,1.5,.5,1); }
.fx-dot.done b { background: var(--sun); border-color: var(--sun); color: var(--night); }
.fx-dot.on b { background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.18); box-shadow: 0 0 0 8px rgba(123,63,228,.15); }
.fx-dot.on, .fx-dot.done { color: var(--ink); }
.motion .fx-stage { position: relative; flex: 1; max-height: 640px; align-items: center; }
.motion .fx-texts, .motion .fx-phones { position: relative; height: 100%; }
.motion .fx-item, .motion .fx-phone { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; margin: 0;
  opacity: 0; pointer-events: none; transition: opacity .5s, transform .6s cubic-bezier(.2,.7,.2,1); }
.motion .fx-item { transform: translateY(40px); }
.motion .fx-phone { align-items: center; transform: translateY(80px) rotate(4deg) scale(.92); }
.motion .fx-item.on, .motion .fx-phone.on { opacity: 1; transform: none; pointer-events: auto; }
.motion .fx-item.past { transform: translateY(-40px); }
.motion .fx-phone.past { transform: translateY(-60px) rotate(-4deg) scale(.92); }
.motion .fx-item.on .ticks li { animation: fx-tick .5s cubic-bezier(.2,.7,.2,1) both; }
.motion .fx-item.on .ticks li:nth-child(2) { animation-delay: .1s; } .motion .fx-item.on .ticks li:nth-child(3) { animation-delay: .2s; } .motion .fx-item.on .ticks li:nth-child(4) { animation-delay: .3s; }
@keyframes fx-tick { from { opacity: 0; transform: translateX(-20px); } }
.motion .fx-item em::after { transform-origin: left; transform: scaleX(0); transition: transform .5s ease-out .35s; }
.motion .fx-item.on em::after { transform: scaleX(1); }

/* the two screens only the story has */
.u-flipwrap { position: relative; height: 270px; margin-top: 4px; }
.u-flip { position: absolute; inset: 0 0 0 0; border-radius: 20px; background: var(--primary); padding: 40px 26px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 14px 24px -10px rgba(60,20,140,.5); }
.u-flip .bar { background: rgba(255,255,255,.5); height: 13px; margin: 8px auto; }
.u-flip small { color: var(--lilac); text-align: center; font-size: 13px; margin-top: 20px; }
.u-flip.back { inset: 8px 16px -8px; background: #B796F5; transform: rotate(4deg); box-shadow: none; }
.ui[data-scene="flash"].play .u-flip:not(.back) { animation: fx-flip 3s ease-in-out infinite; }
@keyframes fx-flip { 0%, 35% { transform: scaleX(1); } 45% { transform: scaleX(0); } 55%, 100% { transform: scaleX(1); } }
.u-two { display: flex; gap: 10px; margin-top: 22px; }
.u-two span { flex: 1; text-align: center; font-weight: 700; font-size: 15px; border-radius: 99px; padding: 9px; }
.u-two .bad { background: #FDE8EB; color: #C62F45; } .u-two .ok { background: #E5F7EE; color: #147A57; }
.u-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; } .u-brand b { font-size: 18px; }
.u-logo { width: 54px; height: 54px; border-radius: 14px; border: 2px dashed var(--primary); color: var(--primary); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; text-align: center; transition: background .4s, border-color .4s, color .4s; }
.ui[data-scene="brand"].play .u-logo { background: var(--sun); border-color: var(--sun); color: var(--night); }
.u-hero { background: var(--primary); border-radius: 14px; padding: 16px; color: #fff; transition: background .5s; }
.u-hero b { display: block; font-size: 17px; margin-bottom: 4px; } .u-hero .bar { background: rgba(255,255,255,.35); }
.u-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.u-grid div { border: 1.5px solid #ECE8F6; border-radius: 12px; padding: 11px; } .u-grid b { display: block; font-size: 14px; margin-top: 6px; }
.dot { display: block; width: 26px; height: 26px; border-radius: 8px; background: var(--sun); }
.u-swatch { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.u-swatch i { width: 28px; height: 28px; border-radius: 50%; transition: transform .3s; }
.u-swatch i.on { transform: scale(1.3); box-shadow: 0 0 0 3px #fff, 0 0 0 5px currentColor; }

@media (max-width: 900px) {
  .h-grid { grid-template-columns: 1fr 1fr; }
  .fx-stage { grid-template-columns: 1fr; gap: 24px; }
  .motion .fx-stick { top: 64px; height: calc(100vh - 64px); gap: 18px; justify-content: flex-start; padding-top: 18px; }
  .motion .fx-stage { display: flex; flex-direction: column; max-height: none; align-items: stretch; }
  .fx-dot span { display: none; }
  .fx-dot.on span { display: block; position: absolute; top: 44px; white-space: nowrap; }
  .motion .fx-line { margin-bottom: 18px; }
  .motion .fx-texts { height: 200px; flex: none; }
  .motion .fx-phones { flex: 1; }
  .motion .fx-phone { justify-content: flex-start; }
  .motion .fx-phone .phone { transform: scale(.78); transform-origin: top center; }
  .fx-dot { width: 54px; font-size: .62rem; text-align: center; } .fx-dot b { width: 36px; height: 36px; font-size: .95rem; }
  .fx-track { top: 15px; }
  .fx-item h3 { font-size: 1.55rem; margin-bottom: 12px; }
  .motion .fx-item .ticks li { font-size: .9rem; margin-bottom: 6px; }
  .motion .fx-item .ticks li:nth-child(n+4) { display: none; }
}
/* sticky needs a parent that doesn't hide its overflow */
.h-section:has(.fx) { overflow: visible; }
