/* =========================================================
   Creator Ladder — homepage (dark)
   Warm Editorial type on a warm near-black, with the Bright Rewards layer:
   gold coins, coral, mint. Motion: GSAP ScrollTrigger + Lenis.
   ========================================================= */

:root {
  --bg: #0F0D0B;
  --bg-2: #16130F;
  --surface: #1D1914;
  --surface-2: #26211A;
  --line: rgba(243, 236, 221, .10);
  --line-2: rgba(243, 236, 221, .18);
  --text: #F3ECDD;
  --text-2: #B9AF9D;

  --coral: #FF5A3C;
  --coral-btn: #E4472B;
  --gold: #FFC93C;
  --gold-deep: #E0A21B;
  --mint: #3DDC97;
  --green: #2F5D50;

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-game: "Bricolage Grotesque", "Manrope", sans-serif;

  --gut: clamp(20px, 5vw, 80px);
  --nav-h: 76px;
  --r-lg: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } body { overflow-x: clip !important; } }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::after { /* film grain */
  content: ""; position: fixed; inset: -50%; z-index: 200; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--bg); }

.wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: var(--gut); top: -60px; background: var(--gold); color: var(--bg); padding: 10px 16px; border-radius: 8px; text-decoration: none; z-index: 20; }
.skip-link:focus { top: 14px; }

h2 {
  font: 400 clamp(38px, 5vw, 72px)/1.02 var(--f-display);
  letter-spacing: -.03em; font-variation-settings: "opsz" 144;
}
h3 { font: 500 21px/1.3 var(--f-display); letter-spacing: -.01em; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--f-body); color: var(--gold); margin-bottom: 22px; }
.kicker::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.kicker--dark { color: var(--bg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s;
  will-change: transform;
}
.btn .arrow { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { scale: .97; }
.btn--primary { background: var(--gold); color: var(--bg); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8); }
.btn--primary:hover { background: #FFD668; box-shadow: 0 0 0 6px rgba(255, 201, 60, .14), 0 14px 30px -12px rgba(0, 0, 0, .9); }
.btn--ghost { color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--text); background: rgba(243, 236, 221, .06); }
.btn--dark { background: var(--bg); color: var(--gold); }
.btn--dark:hover { background: #000; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Loader ---------- */
.loader { display: none; }
.motion .loader {
  position: fixed; inset: 0; z-index: 300; background: var(--bg);
  display: grid; place-items: center; align-content: center; gap: 14px;
}
.loader__coin { width: 72px; height: 72px; animation: flip 1.1s var(--ease) infinite; }
.loader__count { font: 700 15px/1 var(--f-game); color: var(--text-2); font-variant-numeric: tabular-nums; }
.loader__name { position: absolute; bottom: 32px; left: var(--gut); font: 400 20px/1 var(--f-display); color: var(--text-2); }

/* ---------- Progress + cursor ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), var(--gold)); transform-origin: left; transform: scaleX(0); }
.cursor { display: none; }
@media (pointer: fine) {
  .motion .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 250; }
  .cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); }
  .cursor__ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(255, 201, 60, .5);
    display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s, border-color .35s;
  }
  .cursor__ring b { font: 700 13px/1 var(--f-game); color: var(--bg); opacity: 0; transition: opacity .2s; }
  .cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--gold); }
  .cursor.is-view .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--gold); border-color: var(--gold); }
  .cursor.is-view .cursor__ring b { opacity: 1; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background-color .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(15, 13, 11, .78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__row { height: 100%; display: flex; align-items: center; gap: 32px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 21px/1 var(--f-display); letter-spacing: -.01em; }
.logo__mark { width: 34px; height: 34px; transition: transform .6s var(--spring); }
.logo:hover .logo__mark { transform: rotate(-10deg) scale(1.08); }
.nav__links { display: flex; gap: 32px; margin-left: auto; }
.nav__links a, .footer a {
  text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text-2);
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1.5px no-repeat; padding-bottom: 3px;
  transition: background-size .4s var(--ease), color .3s;
}
.nav__links a:hover, .footer a:hover { background-size: 100% 1.5px; color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__toggle span { width: 18px; height: 1.8px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.4px) rotate(-45deg); }
.menu { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--nav-h)); overflow-y: auto; background: var(--bg); border-top: 1px solid var(--line); padding: 24px var(--gut); display: flex; flex-direction: column; gap: 4px; }
.menu[hidden] { display: none; }
.menu a:not(.btn) { font: 400 34px/1.2 var(--f-display); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 680px; overflow: hidden; }
.hero__coins { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__glow {
  position: absolute; width: 900px; height: 900px; left: var(--gx, 70%); top: var(--gy, 30%);
  translate: -50% -50%; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(255, 201, 60, .16), rgba(255, 90, 60, .06) 40%, transparent 65%);
}
.hero__inner { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + clamp(28px, 6vh, 64px)); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; background: rgba(243, 236, 221, .06); border: 1px solid var(--line); font: 500 14px/1 var(--f-game); margin-bottom: 26px; }
.eyebrow__coin { width: 24px; height: 24px; animation: flip 4s var(--ease) infinite; }
.hero__title {
  font: 400 clamp(48px, 8.2vw, 136px)/.92 var(--f-display);
  letter-spacing: -.045em; font-variation-settings: "opsz" 144; max-width: 13ch;
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .wi { display: inline-block; }
.hero__row { display: flex; flex-direction: column; align-items: start; gap: 28px; margin-top: 30px; max-width: 520px; }
.hero__lead { max-width: 440px; font-size: 18px; color: var(--text-2); }
.hero__media { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__frame {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(50% 5% 7% 57% round 28px);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform-origin: 50% 50%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 13, 11, .1), rgba(15, 13, 11, .65)); opacity: 0; }
.hero__over {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 9vh;
  font: 400 clamp(56px, 10vw, 168px)/.9 var(--f-display); letter-spacing: -.045em; color: var(--text);
}
.hero__over span { display: inline-block; opacity: 0; }
.hero__over .gold { color: var(--gold); font-style: italic; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 18px;
  background: rgba(29, 25, 20, .82); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7);
}
.chip svg { width: 40px; height: 40px; flex: none; }
.motion .chip { clip-path: circle(0% at 30% 50%); }
.motion.chips-in .chip { animation: chipIn 1s var(--ease) forwards; }
.motion.chips-in .chip--streak { animation-delay: .12s; } .motion.chips-in .chip--level { animation-delay: .24s; }
.chip strong { display: block; font: 700 17px/1.1 var(--f-game); }
.chip span { display: block; font-size: 13px; color: var(--text-2); }
.chip--points { left: 51%; top: 58%; }
.chip--points svg { animation: flip 3.2s var(--ease) infinite; }
.chip--streak { right: 2.5%; top: 76%; }
.chip--streak svg { animation: flicker 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
.chip--level { right: 28%; bottom: 3.5%; }
.chip--level b { width: 36px; height: 36px; border-radius: 50%; background: var(--mint); color: var(--bg); display: grid; place-items: center; font-size: 17px; }
.hero__hint { position: absolute; left: var(--gut); bottom: 28px; z-index: 2; display: flex; align-items: center; gap: 12px; font: 500 13px/1 var(--f-game); color: var(--text-2); }
.hero__hint span { width: 1.5px; height: 40px; background: var(--line-2); position: relative; overflow: hidden; }
.hero__hint span::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; background: var(--gold); animation: hint 1.8s var(--ease) infinite; }

/* ---------- Band (topic marquee) ---------- */
.band { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: var(--bg-2); position: relative; z-index: 2; }
.band__track { display: flex; align-items: center; gap: 36px; width: max-content; will-change: transform; }
.band span { font: 400 clamp(36px, 5vw, 72px)/1 var(--f-display); letter-spacing: -.03em; white-space: nowrap; }
.band span.i { font-style: italic; color: transparent; -webkit-text-stroke: 1.2px var(--text-2); }
.band svg { width: 42px; height: 42px; flex: none; }

/* ---------- Statement ---------- */
.statement { padding: clamp(110px, 16vw, 220px) 0; }
.statement__text {
  font: 400 clamp(34px, 4.6vw, 70px)/1.12 var(--f-display); letter-spacing: -.03em;
  max-width: 22ch; text-wrap: balance;
}
.statement__text em { color: var(--gold); }
.statement__text .sw { transition: color .2s; }

/* ---------- Courses (horizontal) ---------- */
.courses { position: relative; background: var(--bg-2); border-top: 1px solid var(--line); }
.courses__pin { padding: calc(var(--nav-h) + 40px) 0 56px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.courses__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 44px; }
.courses__meta { max-width: 380px; color: var(--text-2); }
.courses__count { margin-top: 24px; font: 700 15px/1 var(--f-game); color: var(--text-2); font-variant-numeric: tabular-nums; }
.courses__now { color: var(--gold); font-size: 28px; }
.courses__bar { margin-top: 12px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.courses__bar span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(.14); }
.courses__track { display: flex; gap: 24px; padding-inline: var(--gut); width: max-content; will-change: transform; }
.course {
  position: relative; flex: none; width: clamp(300px, 28vw, 400px);
  display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .4s, translate .5s var(--ease);
}
.course:hover { border-color: rgba(255, 201, 60, .45); translate: 0 -8px; }
.course__img { aspect-ratio: 4 / 3; overflow: hidden; }
.course__img img { width: 100%; height: 100%; object-fit: cover; scale: 1.15; transition: scale 1s var(--ease), filter .6s; filter: saturate(.85); }
.course:hover .course__img img { scale: 1.22; filter: saturate(1.05); }
.price {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px 6px 6px; border-radius: 999px; background: rgba(15, 13, 11, .82); color: var(--text);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line-2);
  font: 700 17px/1 var(--f-game);
}
.price svg { width: 24px; height: 24px; transition: transform .7s var(--spring); }
.course:hover .price svg { transform: rotateY(360deg); }
.price--big { font-size: 22px; padding: 8px 16px 8px 8px; }
.price--big svg { width: 32px; height: 32px; }
.course__no { position: absolute; top: 12px; right: 18px; font: 700 15px/1 var(--f-game); color: rgba(243, 236, 221, .75); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.course__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.course__level { font: 500 13px/1 var(--f-game); color: var(--mint); margin-bottom: 10px; }
.course h3 { font-size: 24px; }
.course__body p:not(.course__level) { color: var(--text-2); font-size: 15px; margin-top: 8px; }
.course__link { margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; text-decoration: none; font: 600 15px/1 var(--f-body); color: var(--gold); }
.course__link svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.course:hover .course__link svg { transform: translateX(4px); }
.course--feature { width: clamp(320px, 40vw, 600px); background: linear-gradient(160deg, #2A2116, var(--surface) 60%); border-color: rgba(255, 201, 60, .35); }
.course--feature .course__img { aspect-ratio: 16 / 9; }
.course--feature h3 { font-size: 30px; }
/* Computers: the held course section always fits the screen height, so every card shows whole */
@media (min-width: 900px) {
  .courses__pin { height: 100vh; height: 100svh; min-height: 540px; padding: calc(var(--nav-h) + 20px) 0 28px; justify-content: flex-start; }
  .courses__head { flex: none; margin-bottom: clamp(16px, 3.2vh, 40px); }
  .courses__head h2 { font-size: clamp(34px, min(5vw, 7.4vh), 72px); }
  .courses__meta p { font-size: clamp(14px, 1.9vh, 17px); }
  .courses__count { margin-top: clamp(10px, 2vh, 24px); }
  .courses__track { flex: 1 1 auto; min-height: 0; align-items: stretch; }
  .course { height: 100%; }
  .course__img, .course--feature .course__img { aspect-ratio: auto; flex: 1 1 0; min-height: 80px; }
  .course__body { flex: none; padding: clamp(16px, 2.4vh, 24px); }
  .course h3 { font-size: clamp(19px, 2.8vh, 24px); }
  .course--feature h3 { font-size: clamp(22px, 3.3vh, 30px); }
  .course__body p:not(.course__level) { font-size: clamp(13.5px, 1.8vh, 15px); }
  .course__link { padding-top: clamp(10px, 1.8vh, 20px); }
}
.tag { display: inline-block; background: var(--mint); color: var(--bg); padding: 6px 10px; border-radius: 999px; }

/* ---------- Ladder (rewards) ---------- */
.ladder { position: relative; background: var(--bg); overflow: hidden; }
.ladder::before { /* faint coin pattern */
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23FFC93C' stroke-opacity='.10' stroke-width='1.5'%3E%3Ccircle cx='20' cy='20' r='9'/%3E%3Ccircle cx='20' cy='20' r='5.5'/%3E%3Cpath d='M80 72l3 6 6.5.9-4.7 4.6 1.1 6.5L80 87l-5.9 3 1.1-6.5-4.7-4.6 6.5-.9z'/%3E%3C/g%3E%3C/svg%3E");
}
.ladder__pin { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 32px) 0 48px; position: relative; }
.ladder__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.ladder__steps { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 28px; margin-top: 40px; }
.ladder__svg { width: 70px; height: 100%; min-height: 360px; }
.ladder__rail { fill: none; stroke: var(--line-2); stroke-width: 3; stroke-linecap: round; }
.ladder__rail--lit { stroke: var(--gold); stroke-dasharray: 800; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(255, 201, 60, .6)); }
.ladder__rungs path { stroke: var(--gold); stroke-width: 4; stroke-linecap: round; }
.lsteps { display: grid; gap: 22px; align-content: space-between; }
.lstep { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.lstep p { color: var(--text-2); font-size: 16px; margin-top: 4px; }
.lstep__n {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font: 700 19px/1 var(--f-game); color: #5A3E02;
  background: radial-gradient(circle at 35% 30%, #FFE7A0, var(--gold) 55%, #E29E12);
  box-shadow: inset 0 -3px 0 #C98A0A, 0 0 0 0 rgba(255, 201, 60, .4);
  transition: box-shadow .5s, filter .5s;
}
.lstep.is-on .lstep__n { box-shadow: inset 0 -3px 0 #C98A0A, 0 0 0 8px rgba(255, 201, 60, .14); }
.fineprint { margin-top: 32px; font-size: 14px; color: var(--text-2); }

.wallet {
  position: relative; background: linear-gradient(165deg, #241E16, #16130F 70%);
  border: 1px solid var(--line-2); border-radius: 30px; padding: 34px;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9);
}
.wallet__glow { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 201, 60, .14), transparent 60%); }
.wallet__label { font: 500 14px/1 var(--f-game); color: var(--text-2); }
.wallet__points { font: 700 clamp(60px, 7vw, 96px)/1 var(--f-game); color: var(--gold); letter-spacing: -.035em; margin: 10px 0 20px; font-variant-numeric: tabular-nums; }
.wallet__bar { height: 10px; border-radius: 99px; background: rgba(243, 236, 221, .08); overflow: hidden; }
.wallet__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--gold)); transform-origin: left; transform: scaleX(.68); }
.wallet__next { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.wallet__streak { display: flex; gap: 16px; align-items: center; margin-top: 24px; padding: 18px; border-radius: 18px; background: rgba(243, 236, 221, .05); border: 1px solid var(--line); }
.wallet__streak strong { font: 700 17px/1 var(--f-game); }
.wallet__flame { width: 44px; height: 44px; flex: none; animation: flicker 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
.days { display: flex; gap: 6px; margin-top: 10px; }
.days li { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--f-game); background: var(--mint); color: var(--bg); transition: transform .5s var(--spring), background-color .3s, color .3s; }
.days li.is-off { background: rgba(243, 236, 221, .08); color: var(--text-2); transform: scale(.85); }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.badges li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px; border-radius: 16px; background: rgba(243, 236, 221, .05); border: 1px solid var(--line); font: 500 13px/1.2 var(--f-game); text-align: center; color: var(--text-2); transition: transform .5s var(--spring), opacity .4s, filter .4s; }
.badges li.is-off { opacity: .35; filter: grayscale(1); transform: scale(.92); }
.b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 17px/1 var(--f-game); color: var(--bg); }
.b--gold { background: var(--gold); } .b--mint { background: var(--mint); } .b--red { background: var(--coral); }
.tapcoin {
  margin-top: 18px; width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 1.5px dashed rgba(255, 201, 60, .5); border-radius: 18px; background: transparent; color: var(--gold); cursor: pointer;
  font: 600 16px/1 var(--f-game); transition: background-color .3s, border-color .3s;
}
.tapcoin svg { width: 32px; height: 32px; transition: transform .6s var(--spring); }
.tapcoin:hover { background: rgba(255, 201, 60, .08); border-color: var(--gold); }
.tapcoin:hover svg { transform: rotate(20deg) scale(1.12); }
.tapcoin:active { scale: .97; }
.burst { position: fixed; width: 26px; height: 26px; pointer-events: none; z-index: 220; }
.plus { position: fixed; pointer-events: none; z-index: 220; font: 700 24px/1 var(--f-game); color: var(--gold); text-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.pop { animation: pop .5s var(--spring); }

/* ---------- Generic sections ---------- */
.section { position: relative; padding: clamp(100px, 13vw, 180px) 0; }
.head { margin-bottom: clamp(44px, 5vw, 72px); }
.head--row { display: flex; justify-content: space-between; align-items: end; gap: 40px; }

/* ---------- Trust ---------- */
.trust { background: var(--bg-2); border-top: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.trust__photo { position: relative; border-radius: var(--r-lg); overflow: visible; align-self: center; }
.trust__photo picture, .trust__photo .trust__frame { display: block; border-radius: var(--r-lg); overflow: hidden; }
.trust__photo img { display: block; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 60%; width: 100%; filter: saturate(.9); }
.stamp { position: absolute; right: 18px; bottom: 18px; z-index: 2; width: 136px; height: 136px; display: grid; place-items: center; background: var(--bg-2); border-radius: 50%; border: 1px solid var(--line); }
.stamp > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: rotate 22s linear infinite; }
.stamp text { font: 600 11.5px var(--f-game); letter-spacing: .03em; fill: var(--gold); }
.stamp__coin { width: 52px; height: 52px; }
.tcards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tcard {
  position: relative; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .4s, translate .5s var(--ease);
}
.tcard::before { /* spotlight that follows the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 201, 60, .13), transparent 60%);
}
.tcard:hover { border-color: rgba(255, 201, 60, .35); translate: 0 -4px; }
.tcard:hover::before { opacity: 1; }
.tcard { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; align-items: center; }
.tcard h3 { margin: 0; }
.tcard p { grid-column: 1 / -1; }
.tcard p { color: var(--text-2); margin-top: 8px; font-size: 15px; }
.ticon { width: 52px; height: 52px; border-radius: 16px; background: rgba(61, 220, 151, .12); border: 1px solid rgba(61, 220, 151, .3); display: grid; place-items: center; transition: transform .5s var(--spring); }
.ticon svg { width: 24px; height: 24px; fill: none; stroke: var(--mint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tcard:hover .ticon { transform: rotate(-8deg) scale(1.08); }

/* ---------- Numbers ---------- */
.numbers { overflow: hidden; border-top: 1px solid var(--line); }
.numbers__word {
  position: absolute; top: 50%; left: 0; translate: 0 -50%; white-space: nowrap; pointer-events: none;
  font: 400 clamp(120px, 20vw, 320px)/1 var(--f-display); letter-spacing: -.05em; font-style: italic;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 201, 60, .14);
}
.numbers .wrap { position: relative; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 30px 0 0; border-top: 1px solid var(--line-2); }
.stat dt { font-size: 15px; color: var(--text-2); }
.stat dd { margin: 0 0 12px; font: 700 clamp(44px, 5vw, 76px)/1 var(--f-game); letter-spacing: -.035em; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat dd small { font-size: .42em; color: var(--text-2); margin-left: 4px; }

/* ---------- Reviews ---------- */
.reviews__side { display: flex; flex-direction: column; align-items: end; gap: 14px; }
.rating { display: flex; align-items: center; gap: 12px; color: var(--text-2); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; }
.stars svg.off { color: rgba(243, 236, 221, .2); }
.pause { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; color: var(--text-2); font: 500 14px/1 var(--f-body); cursor: pointer; }
.pause:hover { color: var(--text); border-color: var(--text); }
.marquee { display: grid; gap: 20px; overflow: hidden;-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__row { overflow: hidden; }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: marquee 48s linear infinite; }
.marquee__row--rev .marquee__track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
.review { margin: 0; width: 400px; flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; transition: border-color .3s; }
.review:hover { border-color: rgba(255, 201, 60, .4); }
.review blockquote { margin: 16px 0 22px; font: 400 20px/1.45 var(--f-display); letter-spacing: -.01em; }
.review blockquote::before { content: "“"; } .review blockquote::after { content: "”"; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.review figcaption strong { display: block; color: var(--text); font-size: 15px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 15px/1 var(--f-game); flex: none; color: var(--bg); }
.a1 { background: var(--gold); } .a2 { background: var(--mint); } .a3 { background: var(--coral); } .a4 { background: #F3ECDD; }

/* ---------- Close ---------- */
.close { padding: 0 0 clamp(90px, 10vw, 140px); }
.close__card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--gold); color: var(--bg); border-radius: 36px;
  padding: clamp(56px, 8vw, 120px) clamp(28px, 6vw, 96px);
}
.close__rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.close__card h2 { max-width: 14ch; }
.close__card p { margin: 20px 0 38px; font-size: 19px; max-width: 460px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 32px; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 2fr repeat(var(--cols, 2), 1fr); gap: 40px; }
.footer__brand p { margin-top: 16px; max-width: 340px; color: var(--text-2); font-size: 15px; }
.footer h3 { font: 600 14px/1 var(--f-body); margin-bottom: 16px; color: var(--text); }
.footer li + li { margin-top: 10px; }
.footer__word {
  margin: 64px 0 0; text-align: center; white-space: nowrap;
  font: 400 clamp(56px, 13.5vw, 220px)/.85 var(--f-display); letter-spacing: -.055em;
  color: var(--surface-2);
}
.footer__word .ch { display: inline-block; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 240; translate: -50% 0; background: var(--text); color: var(--bg); padding: 14px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; animation: rise .4s var(--ease); }

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes flip { 0%, 60% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.07, .95) rotate(-3deg); } 60% { transform: scale(.95, 1.06) rotate(3deg); } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes chipIn { from { clip-path: circle(0% at 30% 50%); } to { clip-path: circle(150% at 30% 50%); } }
@keyframes pop { 40% { transform: scale(1.12); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes hint { 0% { top: -40%; } 100% { top: 100%; } }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

/* ---------- Responsive ---------- */
/* menu button instead of links before the links get crowded (the menu can have up to 10 links) */
@media (max-width: 1060px) { .nav__links { display: none; } .nav__actions { margin-left: auto; } .nav__toggle { display: flex; } }
.nav__links a { white-space: nowrap; }
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .tcards { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__toggle { display: flex; }
  .nav__login { display: none; }
  /* Hero: no pinned zoom on small screens; the photo sits under the words */
  .hero { height: auto; min-height: 100svh; padding-bottom: 40px; }
  .hero__row { flex-direction: column; align-items: stretch; gap: 26px; margin-top: 22px; }
  .hero__media { position: relative; inset: auto; margin: 36px var(--gut) 0; height: 62vw; max-height: 460px; }
  .hero__frame { clip-path: none; border-radius: 22px; }
  .hero__frame img { transform: none; }
  .hero__over { display: none; }
  .chip--points { left: -8px; top: -22px; }
  .chip--streak { right: -8px; top: auto; bottom: 18%; }
  .chip--level { display: none; }
  .hero__hint { display: none; }
  /* Courses: plain vertical list on small screens */
  .courses__pin { min-height: 0; padding: 100px 0 80px; }
  .courses__head { flex-direction: column; align-items: start; gap: 18px; }
  .courses__count, .courses__bar { display: none; }
  .courses__track { width: auto; flex-direction: column; padding-inline: var(--gut); }
  .course, .course--feature { width: 100%; }
  .ladder__grid, .trust__grid { grid-template-columns: minmax(0, 1fr); }
  .ladder__pin { min-height: 0; padding: 100px 0; }
  .head--row { flex-direction: column; align-items: start; gap: 20px; }
  .reviews__side { align-items: start; }
  .stamp { right: 12px; bottom: 12px; width: 96px; height: 96px; }
  .stamp__coin { width: 38px; height: 38px; }
  .stamp text { font-size: 12.5px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .nav .btn--sm.nav__login { display: none; }
  .nav .btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
  .nav .logo { white-space: nowrap; font-size: 18px; }
  .nav__row { gap: 10px; }
  .nav__actions { gap: 8px; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero__lead { font-size: 17px; }
  .chip { padding: 9px 14px 9px 9px; border-radius: 14px; }
  .chip svg { width: 30px; height: 30px; }
  .chip strong { font-size: 15px; }
  .band { padding: 18px 0; }
  .band svg { width: 30px; height: 30px; }
  .ladder__steps { grid-template-columns: 44px 1fr; gap: 16px; }
  .ladder__svg { width: 44px; }
  .wallet { padding: 22px 18px; }
  .wallet__streak { padding: 14px; gap: 12px; }
  .wallet__flame { width: 34px; height: 34px; }
  .days { gap: 4px; }
  .days li { width: 24px; height: 24px; font-size: 11px; }
  .badges li { padding: 14px 4px; font-size: 12px; }
  .review { width: 300px; padding: 22px; }
  .review blockquote { font-size: 18px; }
  .stats { gap: 32px 16px; }
}

/* ---------- Reduced motion: everything rests and stays visible ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee__track { animation: none !important; }
  .marquee__row { overflow-x: auto; }
}

/* ---------- Extra scroll moments ---------- */
/* Kicker lines draw in */
.motion .kicker::before { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .1s; }
.motion .kicker.is-in::before { transform: scaleX(1); }

/* Statement: gold underline under the last phrase */
.statement__text em { position: relative; }
.statement__text em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.04em; height: .06em; border-radius: 99px;
  background: var(--gold); transform-origin: left; transform: scaleX(var(--u, 1));
}
.motion .statement__text em::after { transform: scaleX(var(--u, 0)); }

/* Numbers: a gold line draws over each figure's top rule */
.stat { position: relative; }
.stat__line { position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--gold); transform-origin: left; }

/* Side ladder: a coin climbs as you read (large screens only) */
.climb { display: none; }
@media (min-width: 1100px) and (pointer: fine) {
  .motion .climb {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    position: fixed; right: 18px; top: 50%; z-index: 40; translate: 0 -50%;
    opacity: 0; transition: opacity .5s; pointer-events: none;
  }
  .motion .climb.is-on { opacity: 1; }
  .climb__rail {
    position: relative; width: 16px; height: 38vh;
    border-inline: 1.5px solid rgba(243, 236, 221, .22);
    background: repeating-linear-gradient(to bottom, transparent 0 calc(10% - 1.5px), rgba(243, 236, 221, .22) calc(10% - 1.5px) 10%);
  }
  .climb__coin { position: absolute; left: 50%; top: 0; width: 26px; height: 100%; margin-left: -13px; transform: translateY(100%); }
  .climb__coin svg { position: absolute; left: 0; top: -13px; width: 26px; height: 26px; animation: flip 3s var(--ease) infinite; }
  .climb__pct { font: 700 12px/1 var(--f-game); color: var(--text-2); font-variant-numeric: tabular-nums; }
}

/* ---------- Premium / Ultra Premium course badges ---------- */
.tier { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; overflow: hidden; font: 700 12px/1.2 var(--f-game); letter-spacing: .06em; text-transform: uppercase; }
.tier--premium { color: #2A1E05; background: linear-gradient(135deg, #FBE7A1 0%, #E8B931 45%, #B8860B 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 0 0 1px rgba(255, 201, 60, .5), 0 4px 18px rgba(232, 185, 49, .35); }
.tier--ultra { color: #F7EEFF; background: linear-gradient(120deg, #1B1530 0%, #3B2A6B 35%, #7B5BE0 55%, #2B1F4F 100%); background-size: 220% 100%; box-shadow: 0 0 0 1px rgba(214, 196, 255, .6), 0 0 22px rgba(140, 100, 255, .45); animation: ultraGlow 6s ease-in-out infinite; }
.tier--ultra > span { color: #F7E7A8; }
.tier::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .7) 48%, transparent 66%); transform: translateX(-120%); animation: tierShine 3.2s ease-in-out infinite; }
@keyframes tierShine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes ultraGlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.course:has(.tier--ultra) { border-color: rgba(170, 140, 255, .55); box-shadow: 0 0 0 1px rgba(170, 140, 255, .25), 0 20px 60px rgba(90, 60, 200, .18); }
.course:has(.tier--premium) { border-color: rgba(232, 185, 49, .5); }
@media (prefers-reduced-motion: reduce) { .tier::after, .tier--ultra { animation: none; } }
