/* ─────────────────────────────────────────────────────────────
   Qandeel — clay, clean, calm.
   Big rounded "plates" inset from the page edge hold photographed
   clay sets (indigo plaster, amber lamp light). Between them, plain
   paper with one two-tone headline per section. Arabic first.
   ───────────────────────────────────────────────────────────── */
:root {
  --paper: #fbf7f0;
  --paper-2: #f3ebde;
  --ink: #1b1645;
  --ink-2: #3a3463;
  --muted: #6e678a;
  --quiet: #a69fbd;
  --line: #e8dfd0;
  --surface: #ffffff;

  --night-950: #100d2b;
  --night-900: #17143a;
  --night-800: #211c50;
  --night-700: #2d2868;
  --night-600: #3d3a80;

  --amber-200: #ffe6a8;
  --amber-300: #ffc85a;
  --amber-400: #f9b13a;
  --amber-500: #f29a1a;
  --sand-100: #f6ead7;
  --sand-200: #efdcbc;
  --sand-300: #e8c690;
  --sand-500: #c99c5c;
  --clay: #cf6e36;
  --palm: #3f7f4f;
  --palm-100: #e1f0de;
  --sea: #3b86c6;
  --rose: #e4889c;
  --rose-100: #fbe3e5;

  /* Arabic: Kufam (geometric kufi) for display, IBM Plex Sans Arabic for text.
     English: Parkinsans for both. Swapped by language below. */
  --display: "Kufam", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 10px;
  --r-plate: 30px;
  --ease-land: cubic-bezier(.1, .75, .15, 1);
  --ease-leave: cubic-bezier(.55, 0, .9, .35);
  --ease-heavy: cubic-bezier(.75, 0, .18, 1);
  --ease-sine: cubic-bezier(.37, 0, .63, 1);
  --ease-spring: cubic-bezier(.1, .75, .15, 1);
  --spring-dur: 620ms;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #110f2c; --paper-2: #18153b; --ink: #f6eee2; --ink-2: #ded5ea; --muted: #aaa3c4; --quiet: #6f6894; --line: #2b2758; --surface: #1b1844;
  }
}
:root[data-theme="dark"] {
  --paper: #110f2c; --paper-2: #18153b; --ink: #f6eee2; --ink-2: #ded5ea; --muted: #aaa3c4; --quiet: #6f6894; --line: #2b2758; --surface: #1b1844;
}
:root[lang="en"] {
  --display: "Parkinsans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Parkinsans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@property --p { syntax: "<percentage>"; inherits: false; initial-value: 100%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 3px; border-radius: 10px; }
.flip-rtl { transform: scaleX(1); }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 52px); }
.plate {
  position: relative;
  margin-inline: var(--gutter);
  border-radius: var(--r-plate);
  overflow: hidden;
  isolation: isolate;
  background: var(--night-800);
  color: #fff;
}
.plate__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }

/* two-tone headline: the statement in ink, the follow-up quieter */
.say {
  margin: 0;
  font: 700 clamp(36px, 5.3vw, 84px)/1.14 var(--display);
  color: var(--ink);
  text-wrap: balance;
}
.say span { display: block; }
.say .say__quiet { color: var(--quiet); }
[dir="ltr"] .say { letter-spacing: -.018em; line-height: 1.02; }
.lede { margin: 18px 0 0; max-width: 60ch; color: var(--muted); font-size: clamp(17px, 1.35vw, 20px); }
.sec { padding-block: clamp(80px, 11vw, 150px) clamp(28px, 4vw, 48px); }
.sec__head { margin-bottom: clamp(28px, 4vw, 52px); }

/* white pill with an amber arrow, the one main action */
.pill {
  display: inline-flex; align-items: center; gap: 14px;
  padding-block: 8px; padding-inline: 22px 8px;
  border: 0; border-radius: 999px;
  background: #fff; color: var(--night-900);
  font: 600 17px/1.2 var(--body);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 14px 30px -14px rgba(10, 8, 40, .55);
  transition: transform .5s var(--ease-land), box-shadow .5s var(--ease-land);
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 20px 36px -14px rgba(10, 8, 40, .6); }
.pill:active { transform: translateY(1px); transition-duration: .08s; }
.pill__dot {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--amber-200), var(--amber-400) 55%, var(--amber-500));
  color: var(--night-900);
  box-shadow: inset 0 -2px 0 rgba(160, 80, 0, .25);
}
.pill__dot svg { width: 18px; height: 18px; }
.pill--ghost {
  padding: 13px 22px;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.26);
  box-shadow: none;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.pill--ghost:hover { background: rgba(255,255,255,.2); box-shadow: none; }
.pill--night { background: var(--night-800); color: #fff; }

/* ═════════ Nav ═════════ */
.nav { position: fixed; inset-inline: 0; top: 18px; z-index: 60; pointer-events: none; }
.nav__bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 18px;
  margin-inline: auto;
  width: calc(100% - 2 * var(--gutter) - 2 * clamp(14px, 3vw, 40px));
  max-width: 1320px;
  padding: 8px 10px; padding-inline-start: 18px;
  border-radius: 999px;
  color: #fff;
  transition: background-color .45s var(--ease-land), box-shadow .45s var(--ease-land), -webkit-backdrop-filter .45s, backdrop-filter .45s;
}
.nav.is-scrolled .nav__bar {
  background: rgba(23, 20, 58, .78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 18px 40px -20px rgba(8, 6, 30, .6), inset 0 0 0 1px rgba(255,255,255,.08);
}
.brand { display: inline-flex; align-items: center; color: #fff6e6; text-decoration: none; }
.brand svg { height: 40px; width: auto; }
.brand .brand__en { height: 44px; margin-block: -4px; }
[lang="en"] .brand__ar, [lang="ar"] .brand__en { display: none; }
.nav__links { display: flex; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.nav__links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; color: rgba(255,255,255,.86);
  transition: background-color .3s, color .3s;
}
.nav__links a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav__end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav__links + .nav__end { margin-inline-start: 0; }
.lang {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 9px 14px; border-radius: 999px; cursor: pointer; text-decoration: none;
  border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08); color: #fff;
  font-size: 14px; font-weight: 500;
}
.lang svg { width: 16px; height: 16px; }
.lang:hover { background: rgba(255,255,255,.16); }
.nav__signin {
  padding: 9px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; color: rgba(255,255,255,.9);
  transition: background-color .3s, color .3s;
}
.nav__signin:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav .pill { padding-block: 10px; padding-inline: 18px; font-size: 15px; }

/* ═════════ Hero ═════════ */
.hero { padding-top: var(--gutter); }
.hero__plate {
  height: clamp(660px, calc(100svh - 2 * var(--gutter)), 1060px);
  container-type: size;
  background: #282853;
}
.hero__stage {
  --ar: 1.7917;
  --sw: max(100cqw, 100cqh * var(--ar));
  position: absolute; z-index: -1;
  width: var(--sw);
  aspect-ratio: 2752 / 1536;
  left: calc((100cqw - var(--sw)) * .64);
  top: calc((100cqh - var(--sw) / var(--ar)) * .5);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__live {
  position: absolute;
  left: 56.395%; top: 11.068%; width: 43.605%; height: 78.125%;
  opacity: 0;
  -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent 99%);
  mask-image: radial-gradient(closest-side, #000 74%, transparent 99%);
  transition: opacity .35s linear;
}
.hero__live.is-on { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 46% at 50% 30%, rgba(24, 20, 66, .42), transparent 70%),
    linear-gradient(to bottom, rgba(18, 16, 52, .35), transparent 22%);
}
.hero__copy {
  position: relative;
  max-width: 1000px; margin-inline: auto;
  padding: clamp(118px, 15.5cqh, 176px) 20px 0;
  text-align: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.9);
}
.eyebrow svg { width: 12px; height: 16px; }
.hero h1 {
  margin: 22px 0 0;
  font: 700 clamp(54px, min(7.4cqw, 11.4cqh), 122px)/1.12 var(--display);
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 4px 40px rgba(18, 14, 60, .45);
}
[dir="ltr"] .hero h1 { letter-spacing: -.025em; line-height: 1.02; font-size: clamp(50px, min(6.6cqw, 10.4cqh), 108px); }
.hero h1 em { font-style: normal; color: var(--amber-300); text-shadow: 0 0 34px rgba(255, 176, 60, .55), 0 4px 40px rgba(18, 14, 60, .45); }
.hero__sub { margin: 22px auto 0; max-width: 42ch; font-size: clamp(17px, 1.4vw, 21px); color: rgba(255,255,255,.84); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.tag {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--night-900);
  font: 600 14px/1.1 var(--body); white-space: nowrap;
  box-shadow: 0 16px 30px -16px rgba(10, 8, 40, .6);
}
.tag svg { width: 18px; height: 18px; flex: none; }
.tag--moon { left: 18%; top: 41%; }
.tag--star { left: max(12.5%, calc((var(--sw) - 100cqw) * .64 + 150px)); top: 92%; }

.island {
  position: absolute; z-index: 2;
  left: 50%; bottom: clamp(18px, 3cqh, 32px);
  transform: translateX(-50%);
  width: min(440px, calc(100% - 32px));
  padding: 14px 16px 16px;
  border-radius: 26px;
  background: rgba(21, 18, 56, .7);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 60px -30px rgba(5, 4, 25, .8);
  color: #fff;
}
.island__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  font: 600 13px/1.2 var(--body); white-space: nowrap;
}
.chip--live { background: var(--amber-300); color: var(--night-900); }
.chip--live i { width: 7px; height: 7px; border-radius: 50%; background: var(--night-900); }
.chip--drops { background: #fff; color: var(--night-900); }
.chip--drops svg { width: 13px; height: 16px; }
.island__main { display: flex; align-items: center; gap: 14px; }
.island__main .island__title { flex: 1; }
.bond {
  flex: none; display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe0a0, var(--amber-400) 60%, #e48912);
  color: var(--night-900); font: 700 30px/1 var(--display);
  box-shadow: inset 0 -3px 0 rgba(150, 70, 0, .3), 0 0 0 5px rgba(255, 200, 90, .18);
}
.island .island__title { margin: 0; font: 600 22px/1.2 var(--display); }
.island p { margin: 2px 0 0; font-size: 14px; color: rgba(255,255,255,.7); }
.track { display: flex; gap: 5px; margin-top: 14px; }
.track span { height: 8px; border-radius: 999px; background: rgba(255,255,255,.16); }
.track span.is-done { background: var(--c); }
.track span.is-now { background: linear-gradient(90deg, var(--c) var(--fill, 45%), rgba(255,255,255,.16) 0); }
[dir="rtl"] .track span.is-now { background: linear-gradient(270deg, var(--c) var(--fill, 45%), rgba(255,255,255,.16) 0); }

/* ═════════ Numbers ═════════ */
.facts { padding-block: clamp(56px, 7vw, 96px) 0; }
.facts__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.fact { padding-inline: clamp(12px, 2.2vw, 32px); border-inline-start: 1px solid var(--line); }
.fact:first-child { border-inline-start: 0; padding-inline-start: 0; }
.fact dt { font: 700 clamp(54px, 6.4vw, 96px)/1 var(--display); color: var(--ink); }
.fact dd { margin: 10px 0 0; color: var(--muted); font-size: 16px; max-width: 22ch; }

/* ═════════ Word problems from home ═════════ */
.dates { height: clamp(560px, 52vw, 860px); background: #2b2a58; }
.dates .plate__img { object-position: 72% 50%; }
.dates__side {
  position: absolute; top: 50%; left: clamp(20px, 5.5vw, 104px);
  transform: translateY(-50%);
  width: min(440px, 42%);
  display: grid; gap: 14px;
}
.ui { --surface: #fff; --ink: #1b1645; --ink-2: #3a3463; --muted: #6e678a; --line: #ece3d4; color: var(--ink); }
.card {
  background: var(--surface);
  border-radius: 26px;
  box-shadow: 0 40px 80px -40px rgba(5, 4, 30, .7), 0 2px 0 rgba(255,255,255,.7) inset;
  overflow: hidden;
}
.wp-card__top { padding: 22px 24px 20px; background: linear-gradient(160deg, #fff4dc, #f5dfb5); }
.kicker { display: flex; align-items: center; gap: 8px; font: 600 13px/1.3 var(--body); color: #9a6a23; }
.kicker b { padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.7); color: #7a4d10; }
.wp-card__q { margin: 0; font: 600 clamp(19px, 1.6vw, 23px)/1.45 var(--display); color: var(--ink); }
.coins { display: flex; gap: 6px; margin-top: 16px; }
.coin {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #f0c75d 55%, #c99a2e);
  color: #6b4a06; font: 700 17px/1 var(--display);
  box-shadow: inset 0 -3px 0 rgba(120, 80, 0, .25), 0 3px 0 #b88a24;
}
.coin--new { box-shadow: inset 0 -3px 0 rgba(120, 80, 0, .25), 0 3px 0 #b88a24, 0 0 0 4px rgba(63, 127, 79, .35); }
.wp-card__bottom { padding: 18px 24px 22px; }
.answers { display: flex; gap: 8px; }
.answers span {
  flex: 1; display: grid; place-items: center; height: 52px; border-radius: 16px;
  background: #f7f1e6; color: var(--ink); font: 700 24px/1 var(--display);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.06);
}
.answers span.is-right { background: var(--palm); color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.wp-card__note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.wp-card__note svg { width: 18px; height: 18px; flex: none; }
.dates__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dates__tags li {
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 14px; color: #fff;
}

/* ═════════ Try a question ═════════ */
.try {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 72px);
  background:
    radial-gradient(70% 60% at 25% 20%, rgba(255, 176, 70, .22), transparent 60%),
    radial-gradient(90% 70% at 80% 0%, #4a4f97 0%, transparent 60%),
    linear-gradient(180deg, #2f2d6c 0%, #24205a 62%, #1d1a4b 100%);
}
.try::after {
  content: ""; position: absolute; inset: auto 0 0; height: 26%; z-index: -1;
  background: linear-gradient(to bottom, transparent, rgba(10, 8, 34, .35));
}
.stage { display: flex; flex-direction: column; align-items: center; }
.bubble-slot { position: relative; width: 100%; min-height: 84px; }
.bubble {
  position: absolute; inset-inline: 0; bottom: 8px;
  margin-inline: auto; width: fit-content; max-width: 100%;
  padding: 12px 18px; border-radius: 22px;
  background: #fff; color: var(--night-900);
  font: 600 18px/1.4 var(--display);
  box-shadow: 0 18px 30px -18px rgba(0,0,0,.6);
  transform-origin: 50% 100%;
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 18px; height: 18px;
  background: #fff; border-radius: 4px; transform: translateX(-50%) rotate(45deg);
}
.bubble p { margin: 0; position: relative; z-index: 1; }
.niche { position: relative; width: min(100%, 330px); margin: 0; }
.niche__frame {
  aspect-ratio: 4 / 5;
  padding: 14px;
  border-radius: 999px 999px 28px 28px;
  background: linear-gradient(170deg, #f6dfb6, #dcb47c 60%, #c99c5c);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -4px 0 rgba(120, 70, 20, .25), 0 30px 50px -24px rgba(0,0,0,.65);
}
.niche__inner {
  position: relative; height: 100%;
  border-radius: 999px 999px 18px 18px; overflow: hidden;
  background: var(--clip-bg, #f2d8b7);
  box-shadow: inset 0 12px 26px rgba(90, 50, 10, .28);
  transition: background-color .4s linear;
}
.niche__inner video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 62%;
  opacity: 0; transition: opacity .22s linear;
}
.niche__inner video.is-on { opacity: 1; }
.ledge {
  height: 22px; margin: -6px -18px 0; border-radius: 12px;
  background: linear-gradient(#ecd2a4, #cfa468);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 18px 24px -14px rgba(0,0,0,.6);
}

.q { padding: clamp(18px, 2.4vw, 28px); }
.q__top { display: flex; align-items: flex-start; gap: 14px; }
.q__prompt { flex: 1; margin: 0; font: 600 clamp(19px, 1.6vw, 23px)/1.5 var(--display); color: var(--ink); }
.q__audio {
  flex: none; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 18px; border: 0; cursor: pointer;
  background: linear-gradient(#f6ecdc, #ead7b7); color: var(--night-800);
  box-shadow: inset 0 2px 0 #fff, 0 4px 0 #d6bb8c;
}
.q__audio svg { width: 26px; height: 26px; }
.q__audio:active { transform: translateY(3px); box-shadow: inset 0 2px 0 #fff, 0 1px 0 #d6bb8c; }
.q__audio.is-speaking .wave { animation: wave 1s var(--ease-sine) infinite alternate; }
@keyframes wave { from { opacity: .25; } to { opacity: 1; } }
.q__art { position: relative; aspect-ratio: 320 / 184; margin: 10px 0 6px; }
.q__art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.count-tag { font-family: var(--display); }
.q__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.opt {
  height: 76px; border: 0; border-radius: 22px; cursor: pointer;
  font: 700 36px/1 var(--display); color: var(--ink);
  background: linear-gradient(#fffaf2, #f2e2c6);
  box-shadow: inset 0 2px 0 #fff, inset 0 -3px 0 rgba(160, 110, 50, .2), 0 6px 0 #dcc296, 0 16px 22px -12px rgba(60, 30, 10, .45);
  transition: transform .12s var(--ease-land), box-shadow .12s var(--ease-land), background-color .3s;
}
.opt:hover { transform: translateY(-2px); }
.opt:active { transform: translateY(5px); box-shadow: inset 0 2px 0 #fff, 0 1px 0 #dcc296, 0 4px 10px -6px rgba(60, 30, 10, .45); }
.opt.is-right { background: linear-gradient(#5aa069, var(--palm)); color: #fff; box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 6px 0 #2a5c37, 0 16px 22px -12px rgba(20, 60, 30, .5); }
.opt.is-wrong { background: linear-gradient(#f6e9ea, #ecd5d7); color: #a7848b; box-shadow: inset 0 2px 0 #fff, 0 3px 0 #d8bcc0; }
.opt:disabled { cursor: default; }
.q__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; min-height: 48px; }
.drops-count { display: inline-flex; align-items: center; gap: 8px; font: 700 24px/1 var(--display); color: var(--ink); }
.drops-count svg { width: 22px; height: 28px; }
.next { padding-block: 8px; padding-inline: 20px 8px; }
.loop {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 0; padding: 0; list-style: none; counter-reset: loop;
}
.loop li {
  counter-increment: loop;
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px; border-radius: 18px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.78);
  transition: background-color .4s var(--ease-land), color .4s, border-color .4s;
}
.loop li::before {
  content: counter(loop); flex: none;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font: 600 14px/1 var(--display);
}
.loop li.is-active { background: rgba(255, 200, 90, .16); border-color: rgba(255, 200, 90, .5); color: #fff; }
.loop li.is-active::before { background: var(--amber-300); color: var(--night-900); }
.try__note { grid-column: 1 / -1; margin: -8px 0 0; font-size: 14px; color: rgba(255,255,255,.6); }

/* ═════════ Five steps, drawn to time ═════════ */
.steps-plate {
  padding: clamp(36px, 5.5vw, 84px) clamp(22px, 5.5vw, 84px) clamp(40px, 5vw, 72px);
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(255, 180, 80, .16), transparent 65%),
    radial-gradient(80% 80% at 10% 0%, #45488f, transparent 62%),
    linear-gradient(180deg, #2d2b69 0%, #221e55 70%, #1b1848 100%);
}
.steps-plate .say { color: #fff; }
.steps-plate .say .say__quiet { color: #9d97cf; }
.steps-plate .lede { color: rgba(255,255,255,.72); }
.axis {
  position: relative; display: flex; justify-content: space-between;
  margin: clamp(36px, 5vw, 60px) 0 18px; padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255,255,255,.2);
  font: 600 13px/1 var(--body); color: rgba(255,255,255,.55);
}
.rows { display: grid; gap: clamp(14px, 1.8vw, 22px); margin: 0; padding: 0; list-style: none; }
.row { position: relative; height: var(--h); --h: clamp(46px, 4.6vw, 64px); }
.bar {
  position: absolute; top: 0; height: 100%;
  inset-inline-start: calc(var(--s) * 1%);
  width: max(var(--h), calc(var(--l) * 1%));
  border-style: solid; border-width: 0 calc(var(--h) / 2);
  border-image: var(--pill) 0 92 fill / 0 calc(var(--h) / 2) stretch;
  filter: drop-shadow(0 12px 14px rgba(5, 3, 30, .45));
  transform-origin: left center;
}
[dir="rtl"] .bar { transform-origin: right center; }
.row__label {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34%;
  display: grid; gap: 2px;
}
.row--after .row__label { inset-inline-start: calc((var(--s) + var(--l)) * 1% + 2%); }
.row--before .row__label { inset-inline-end: calc((100 - var(--s)) * 1% + 2%); text-align: end; }
.row__label b { font: 700 clamp(20px, 1.8vw, 26px)/1.1 var(--display); color: #fff; }
.row__label b small { font: 600 13px/1 var(--body); color: var(--amber-300); margin-inline-start: 8px; }
.row__label span { font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.66); }
.steps-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(34px, 4vw, 52px); font-size: 15px; color: rgba(255,255,255,.7); }
.steps-foot b { color: var(--amber-300); font-weight: 600; }

/* ═════════ Curriculum ═════════ */
.steps {
  display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 3vw, 44px);
  padding: clamp(40px, 6vw, 84px) clamp(16px, 4vw, 64px) 0;
  min-height: clamp(300px, 34vw, 460px);
  background:
    radial-gradient(60% 80% at 50% 105%, rgba(255, 200, 90, .55), transparent 70%),
    linear-gradient(to bottom, #f6d9a4, #f3c27a);
  color: var(--night-900);
}
.steps__row { display: flex; align-items: flex-end; gap: clamp(6px, 2vw, 28px); padding-bottom: clamp(28px, 4vw, 56px); }
.step { position: relative; display: block; width: clamp(44px, 9vw, 118px); aspect-ratio: 260 / 342; margin-bottom: calc(var(--k) * clamp(6px, 1.6vw, 22px)); }
.step img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.step__flame { transform-origin: 50% 85%; animation: flick 2.6s ease-in-out infinite; animation-delay: calc(var(--k) * -.5s); filter: drop-shadow(0 0 14px rgba(255, 170, 40, .6)); }
@keyframes flick { 0%, 100% { transform: scale(1) rotate(-1deg); } 50% { transform: scale(1.06, .97) rotate(1.5deg); } }
.steps__shuala { flex: none; width: clamp(130px, 22vw, 290px); height: auto; align-self: flex-end; }

/* ═════════ Ten ways to play ═════════ */
.acts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.act {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--ease-land), box-shadow .5s var(--ease-land);
}
.act:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(30, 20, 70, .5); }
.act svg { width: 64px; height: 64px; margin-bottom: 8px; padding: 6px; border-radius: 18px; background: #fbf3e5; }
.act b { font: 600 19px/1.25 var(--display); }
.act span { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ═════════ Rewards ═════════ */
.reward {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(32px, 5vw, 76px);
  color: var(--night-900);
  background:
    radial-gradient(70% 80% at 85% 20%, #fff5e2, transparent 60%),
    linear-gradient(160deg, #f4e4c9, #e9cfa6);
}
.reward .say { color: var(--night-900); font-size: clamp(34px, 4.2vw, 64px); }
.reward .say .say__quiet { color: #b08a5a; }
.reward .lede { color: #6f5636; }
.ticks { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: center; gap: 14px; }
.ticks svg { width: 30px; height: 30px; flex: none; }
.ticks b { display: block; font: 600 19px/1.3 var(--display); }
.ticks span { font-size: 15px; color: #6f5636; }
.phone {
  padding: 12px; border-radius: 38px;
  background: linear-gradient(#2b2766, #17143a);
  box-shadow: 0 50px 80px -40px rgba(40, 20, 0, .6), inset 0 0 0 2px rgba(255,255,255,.08);
  transform: perspective(1600px) rotateY(var(--tilt, -9deg)) rotateX(4deg);
}
[dir="ltr"] .phone { --tilt: 9deg; }
.phone img { border-radius: 28px; width: 100%; height: auto; }

/* ═════════ Parents and teachers ═════════ */
.fam { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fam__card { padding: clamp(22px, 3vw, 36px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.fam__k { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--sand-100); color: #8a5b1b; font: 600 13px/1.4 var(--body); }
.fam__card h3 { margin: 14px 0 18px; font: 700 clamp(24px, 2.4vw, 32px)/1.2 var(--display); }
.mock { padding: 18px; border-radius: 22px; background: #f8f3ea; border: 1px solid #ece3d4; color: #1b1645; }
.mock__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font: 600 16px/1.3 var(--display); }
.mock__head small { font: 500 12px/1 var(--body); color: #6e678a; }
.mock__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.stat { padding: 12px 14px; border-radius: 16px; background: #fff; }
.stat b { display: block; font: 700 32px/1 var(--display); }
.stat span { font-size: 13px; color: #6e678a; }
.flag { margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: var(--rose-100); color: #9b3346; font-size: 14px; font-weight: 500; }
.tip { margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: var(--palm-100); color: #23502f; font-size: 14px; }
table.class { width: 100%; margin-top: 12px; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
table.class th { text-align: start; font-weight: 500; color: #6e678a; padding: 0 10px; }
table.class td { background: #fff; padding: 9px 10px; }
table.class td:first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; font-weight: 600; }
table.class td:last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status--ok { background: var(--palm-100); color: #23502f; }
.status--help { background: var(--rose-100); color: #9b3346; }
.status--go { background: #e1eefa; color: #1f5a8f; }
.bul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bul li { display: flex; gap: 10px; color: var(--muted); font-size: 15px; }
.bul li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--amber-400); }

/* ═════════ Offline week ═════════ */
.week { height: clamp(560px, 50vw, 820px); background: #23234a; }
.week .plate__img { object-position: 50% 62%; }
.week__dim { filter: brightness(.34) saturate(.55); }
.week__lit {
  --p: 100%;
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - var(--p) - 4%), transparent calc(100% - var(--p) + 4%));
  mask-image: linear-gradient(to left, #000 calc(100% - var(--p) - 4%), transparent calc(100% - var(--p) + 4%));
}
[dir="ltr"] .week__lit {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--p) - 4%), transparent calc(100% - var(--p) + 4%));
  mask-image: linear-gradient(to right, #000 calc(100% - var(--p) - 4%), transparent calc(100% - var(--p) + 4%));
}
.week__head { position: relative; padding: clamp(40px, 6vw, 86px) 24px 0; text-align: center; }
.week__head .say { color: #fff; }
.week__head .say .say__quiet { color: #a7a1d4; }
.week__head .lede { margin-inline: auto; color: rgba(255,255,255,.72); }
.days { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.days li {
  position: absolute; top: var(--y, 77.5%); left: var(--x);
  transform: translate(-50%, -50%);
  font: 600 clamp(13px, 1.1vw, 17px)/1 var(--display);
  color: rgba(96, 60, 24, .42);
  text-shadow: 0 1px 0 rgba(255, 238, 205, .35);
  transition: color .5s var(--ease-land), text-shadow .5s var(--ease-land);
}
.days li.is-lit { color: #6a3a0e; text-shadow: 0 1px 0 rgba(255, 238, 205, .7), 0 0 14px rgba(255, 190, 90, .45); }
.sync {
  position: absolute; left: 50%; bottom: clamp(18px, 3vw, 34px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(21, 18, 56, .7); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 14px; white-space: nowrap;
}
.sync svg { width: 18px; height: 18px; }
.mode { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 13px; }
.mode svg { width: 14px; height: 14px; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; list-style: none; }
.specs li { padding-inline: clamp(12px, 2.2vw, 32px); border-inline-start: 1px solid var(--line); }
.specs li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.specs b { display: block; font: 700 clamp(30px, 3vw, 44px)/1.1 var(--display); }
.specs span { color: var(--muted); font-size: 15px; }

/* ═════════ Pilot ═════════ */
/* the clay word gets its own banner; the ask sits underneath on the same night */
.pilot { --base: #29235a; background: var(--base); }
.pilot__art { position: relative; aspect-ratio: 2.4; overflow: hidden; }
.pilot__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.pilot__art::after {
  content: ""; position: absolute; inset: 55% 0 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(41, 35, 90, 0), var(--base));
}
.pilot__body { position: relative; margin-top: clamp(-40px, -2vw, -12px); padding: 0 clamp(20px, 5vw, 80px) clamp(40px, 5vw, 72px); text-align: center; }
.pilot h2 { margin: 0; font: 700 clamp(34px, 4.4vw, 64px)/1.18 var(--display); color: #fff; text-wrap: balance; }
[dir="ltr"] .pilot h2 { letter-spacing: -.02em; }
.pilot__lede { margin: 14px auto 0; max-width: 60ch; color: rgba(255,255,255,.76); font-size: clamp(16px, 1.3vw, 19px); }
.pilot__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pilot__facts li { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 14px; }
.ask { margin: clamp(26px, 3.4vw, 40px) auto 0; max-width: 900px; }
.ask__line {
  margin: 0; font: 600 clamp(21px, 2.1vw, 30px)/2 var(--display); color: #fff;
}
.ask input, .ask select {
  font: inherit; color: #fff;
  background: transparent; border: 0; border-bottom: 2px dashed rgba(255,255,255,.4);
  padding: 0 4px; margin-inline: 4px;
  min-width: 5ch; width: 9ch; field-sizing: content;
  unicode-bidi: plaintext;
  border-radius: 0; outline: none;
  transition: border-color .2s;
}
.ask input::placeholder { color: rgba(255,255,255,.45); }
.ask input:focus, .ask select:focus { border-bottom-color: var(--amber-300); border-bottom-style: solid; }
.ask select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding: 2px 16px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.14);
  width: auto;
}
.ask select option { color: #1b1645; }
.ask #f-contact { width: 13ch; min-width: 8ch; }
.ask__send { display: flex; justify-content: center; margin-top: 24px; }
.form__status { margin: 16px auto 0; min-height: 1.5em; max-width: 60ch; font-size: 15px; color: var(--amber-200); }
.form__status.is-error { color: #ffb4b4; }

/* ═════════ Footer ═════════ */
.foot { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.foot__card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 22px 32px;
  padding: clamp(22px, 3.4vw, 40px) clamp(20px, 3.6vw, 48px);
  border-radius: var(--r-plate);
  background: var(--paper-2); border: 1px solid var(--line);
}
.foot__id { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.foot .brand { color: var(--ink); }
.foot .brand svg { height: 34px; }
.foot .brand .brand__en { height: 38px; }
.foot__tag { margin: 0; font: 600 clamp(16px, 1.5vw, 19px)/1.4 var(--display); color: var(--ink-2); }
.foot__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.foot__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background-color .3s, border-color .3s, transform .3s var(--ease-land);
}
.foot__links a:hover { background: var(--amber-300); border-color: var(--amber-300); color: var(--night-900); transform: translateY(-2px); }
.foot__copy { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: start; }
[dir="rtl"] .foot__copy { text-align: right; }
@media (max-width: 860px) {
  .foot__card { grid-template-columns: minmax(0, 1fr); }
  .foot__links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .step__flame { animation: none; } }

/* ═════════ Reveal ═════════ */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .5s linear, transform 1.05s var(--ease-land); transition-delay: calc(var(--i, 0) * 70ms); }

/* ═════════ Responsive ═════════ */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .tag { display: none; }
  .acts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .try, .reward { grid-template-columns: minmax(0, 1fr); }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .fam { grid-template-columns: minmax(0, 1fr); }
  .phone { max-width: 620px; margin-inline: auto; }
}
@media (max-width: 760px) {
  :root { --gutter: 8px; --r-plate: 24px; }
  body { font-size: 16px; }
  .nav { top: 12px; }
  .nav__bar { padding-inline-start: 14px; gap: 8px; }
  .brand svg { height: 34px; }
  .brand .brand__en { height: 38px; }
  .nav .pill { display: none; }
  .lang { padding: 8px 12px; }
  .nav__links + .nav__end { margin-inline-start: auto; } /* the links are hidden, so push language + sign in to the far side */

  /* phone: stacked, so nothing painted ever sits behind the words — the words on the night sky,
     then Shuala whole (the picture cropped from just above the flame), then today's lesson on the floor */
  .hero__plate { height: auto; container-type: normal; display: flex; flex-direction: column; padding-bottom: 12px; background: linear-gradient(to bottom, #252a55, #30305c 70%); }
  .hero__copy { order: 1; padding-top: 92px; }
  .hero__stage {
    order: 2; position: relative; z-index: 0; --sw: 100%;
    width: min(100%, 560px); align-self: center; left: auto; top: auto; bottom: auto;
    aspect-ratio: 720 / 774; margin-top: -18px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%); mask-image: linear-gradient(to bottom, transparent, #000 9%);
  }
  .hero__img img { object-position: 50% 100%; }
  .hero__live { display: none; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 60px); }
  [dir="ltr"] .hero h1 { font-size: clamp(36px, 10.2vw, 52px); }
  .hero__sub { font-size: 16px; }
  .hero__ctas .pill--ghost { display: none; }
  .island { order: 3; position: relative; left: auto; bottom: auto; transform: none; width: min(calc(100% - 24px), 440px); align-self: center; margin: -36px 0 0; }

  .facts__grid { grid-template-columns: repeat(3, 1fr); }
  .fact { padding-inline: 10px; }
  .fact dt { font-size: clamp(40px, 13vw, 56px); }
  .fact dd { font-size: 14px; }

  .dates { height: auto; padding-top: 56%; padding-bottom: 16px; }
  .dates .plate__img { height: auto; aspect-ratio: 16 / 9; object-position: 78% 50%; }
  .dates::before { content: ""; position: absolute; inset: 0; z-index: -1; top: 0; background: linear-gradient(to bottom, transparent 40%, #2f2c5c 58%); }
  .dates__side { position: relative; top: auto; left: auto; transform: none; width: auto; margin: -40px 12px 0; }

  .niche { width: min(100%, 250px); }
  .bubble-slot { min-height: 72px; }
  .q__opts { gap: 8px; }
  .opt { height: 64px; font-size: 30px; }
  .loop { grid-template-columns: minmax(0, 1fr); }

  .row { height: auto; display: grid; gap: 8px; }
  .row .bar { position: relative; height: var(--h); --h: 40px; }
  .row__label, .row--after .row__label, .row--before .row__label { position: static; transform: none; width: auto; text-align: start; }
  .axis { font-size: 11px; }

  .steps { padding-top: 36px; min-height: 0; }
  .steps__row { gap: 4px; }
  .step { width: clamp(34px, 11vw, 56px); }
  .steps__shuala { width: clamp(96px, 30vw, 150px); }
  .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .act { padding: 16px; }

  .week { height: auto; padding-bottom: 76px; }
  /* phone: the whole shelf, uncropped, so the day names stay under their lamps */
  .week__layers { position: relative; }
  .week .plate__img { position: relative; height: auto; aspect-ratio: 1400 / 782; object-position: 50% 50%; z-index: 0; }
  .week .week__lit { position: absolute; inset: 0; height: 100%; }
  .days li { font-size: 11px; }
  .week__head { padding-top: 40px; }
  .specs { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .specs li { border-inline-start: 0; padding-inline-start: 0; }
  .sync { white-space: normal; width: calc(100% - 32px); justify-content: center; text-align: center; }

  .pilot__art { aspect-ratio: 16 / 10; }
  .pilot__art img { object-position: 38% 50%; }
  [lang="en"] .pilot__art img { object-position: 74% 50%; }
  .pilot__body { margin-top: -8px; }
  .ask__line { line-height: 2.1; }
}
@media (min-width: 561px) and (max-width: 760px) {
  /* small tablets: the picture is narrower than the plate, so soften its sides too */
  .hero__stage {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 9%), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .phone { transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
