/* ==========================================================================
   Cerdek Homepage  ·  section styles. Requires tokens.css + base.css
   ========================================================================== */

.page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  background: var(--white);
}
.page-body {
  position: relative;
  z-index: 10;
  width: 100%;
  background: var(--white);
}
.xl-only {
  display: none;
}
@media (min-width: 1280px) {
  .xl-only {
    display: inline;
  }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-block: 60px;
  background: var(--white);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 100%;
}
.hero__wordmark {
  height: 44px;
  width: auto;
}
/* header CTA that only appears once the hero button has scrolled away (index) */
.header-cta {
  max-width: 220px;
  overflow: hidden;
  transition: max-width 0.32s var(--ease-out-strong), min-width 0.32s var(--ease-out-strong),
    padding 0.32s var(--ease-out-strong), margin 0.32s var(--ease-out-strong),
    opacity 0.2s, transform var(--dur-press) var(--ease-out-strong);
}
.header-cta[data-hidden="true"] {
  max-width: 0;
  min-width: 0;
  margin-left: -14px;
  padding-inline: 0;
  border-width: 0;
  opacity: 0;
  pointer-events: none;
}
/* hero headline with typing subject (index) */
.hero__copy--v2 {
  gap: 16px;
}
.hero__title {
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--gray-900);
}
.hero__line {
  display: block;
}
.hero__subj {
  display: block;
  min-height: 1.18em;
  color: var(--orange-300);
  white-space: nowrap;
}
.hero__caret {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 4px;
  vertical-align: -0.08em;
  border-radius: 2px;
  background: var(--orange-300);
  animation: hero-caret 1.06s step-end infinite;
}
@keyframes hero-caret {
  50% { opacity: 0; }
}
.hero__sub {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.6;
  text-wrap: balance;
}
@media (min-width: 640px) {
  .hero__title {
    font-size: 48px;
  }
  .hero__subj {
    display: inline;
  }
  .hero__sub {
    font-size: 17px;
  }
}
@media (min-width: 1280px) {
  .hero__title {
    font-size: 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__caret {
    display: none;
  }
}
/* press strip: "As seen on" logo marquee (paid PR placements, so never "featured") under the showcase video.
   Logo heights are set per file (optically matched), so they read as one size. */
.press-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 64px;
  padding-top: 36px;
  padding-bottom: 40px;
  background: var(--gray-50);
}
.press-strip__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray-500);
}
.press-strip__viewport {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.press-strip__track {
  display: flex;
  width: max-content;
  animation: press-marquee 32s linear infinite;
}
.press-strip__viewport:hover .press-strip__track {
  animation-play-state: paused;
}
.press-strip__set {
  display: flex;
  align-items: center;
  gap: 64px;
  height: 56px;
  padding-right: 64px;
}
.press-strip__set img {
  display: block;
  width: auto;
  opacity: 0.45;
  transition: opacity var(--dur-press);
}
.press-strip__set img:hover {
  opacity: 0.85;
}
@keyframes press-marquee {
  to { transform: translateX(-50%); }
}
@media (max-width: 639.98px) {
  .press-strip__set {
    gap: 44px;
    padding-right: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .press-strip__track {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    animation: none;
  }
  .press-strip__set[aria-hidden="true"] {
    display: none;
  }
  .press-strip__viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* hero proof row: tall laurels wrap icon + two bold lines; the whole badge warms to orange on hover */
.proof[hidden] {
  display: none !important;
}
.proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 52px;
  margin-top: 34px;
  color: var(--gray-900);
}
.proof__item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  transition: color 0.3s;
}
.proof__item:hover {
  color: var(--orange-300);
}
.proof__laurel {
  flex: none;
  width: 44px;
  height: 92px;
  fill: currentColor;
}
.proof__laurel--r {
  transform: scaleX(-1);
}
.proof__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 140px; /* same width for all three badges */
}
.proof__icon svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.proof__text b {
  font-size: 26px;
  font-weight: 800;
  line-height: 26px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.proof__text small {
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}
.proof__stars {
  display: flex;
  gap: 2px;
  height: 26px;
  align-items: center;
}
.proof__stars svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
@media (max-width: 639.98px) {
  .proof {
    gap: 12px 10px;
    margin-top: 26px;
  }
  .proof__item {
    gap: 2px;
  }
  .proof__laurel {
    width: 27px;
    height: 56px;
  }
  .proof__icon svg {
    width: 15px;
    height: 15px;
  }
  .proof__text {
    gap: 2px;
    min-width: 92px;
  }
  .proof__text b {
    font-size: 16px;
    line-height: 17px;
  }
  .proof__text small {
    font-size: 10.5px;
    line-height: 13px;
  }
  .proof__stars {
    height: 17px;
    gap: 1px;
  }
  .proof__stars svg {
    width: 15px;
    height: 15px;
  }
}

/* hero pill: SDG 4 support line (neutral cap icon in SDG 4 red; no UN icon or logo) */
.hero__sdg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 6px;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray-700);
}
.hero__sdg svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #c5192d;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 8px;
}
.hero__cta {
  height: 48px;
  padding-inline: 24px;
  font-size: 16px;
  font-weight: 600;
}
.hero__cta svg {
  width: 20px;
  height: 20px;
}
/* hero app-icon tile (index) */
.hero__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-bottom: 12px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.04), 0 2px 4px rgb(64 20 8 / 0.06), 0 10px 24px -6px rgb(64 20 8 / 0.18);
  transition: transform 0.32s var(--ease-pop), box-shadow 0.32s var(--ease-out-strong);
}
.hero__icon img {
  width: 68%;
  height: auto;
  transition: transform 0.32s var(--ease-pop);
}
@media (hover: hover) {
  .hero__icon:hover {
    transform: translateY(-4px) rotate(-6deg) scale(1.05);
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.04), 0 4px 8px rgb(64 20 8 / 0.08), 0 18px 32px -8px rgb(253 95 4 / 0.32);
  }
  .hero__icon:hover img {
    transform: scale(1.06);
  }
}
@media (min-width: 640px) {
  .hero__icon {
    width: 104px;
    height: 104px;
    border-radius: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__icon,
  .hero__icon img {
    transition: none;
  }
}
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.hero__copy h1 {
  max-width: 1030px;
  text-align: center;
  color: var(--gray-900);
}
.hero__copy p {
  max-width: 680px;
  text-align: center;
  color: var(--gray-700);
}
@media (min-width: 640px) {
  .hero__wordmark {
    height: 56px;
  }
}
@media (min-width: 1280px) {
  .hero__wordmark {
    height: 68px;
  }
}

/* ── Showcase (16:9 film slot) ──────────────────────────────────────────── */
.showcase-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 60px;
  background: var(--white);
}
.showcase__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showcase {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  background: var(--peach);
  container-type: inline-size;
  --u: calc(100cqw / 1192);
}
.showcase video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showcase__scene {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 110%, #ffd2b0 0%, #ffe6d3 42%, var(--peach) 75%);
}
.showcase[data-paused="true"] .showcase__scene,
.showcase[data-paused="true"] .showcase__scene * {
  animation-play-state: paused !important;
}
.sc-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(calc(var(--u) * 40));
  opacity: 0.55;
}
.sc-blob--1 {
  left: 8%;
  top: 12%;
  width: 30%;
  aspect-ratio: 1;
  background: #ffc79f;
  animation: sc-drift 14s ease-in-out infinite alternate;
}
.sc-blob--2 {
  right: 6%;
  bottom: 4%;
  width: 34%;
  aspect-ratio: 1;
  background: #ffd9a8;
  animation: sc-drift 17s ease-in-out -6s infinite alternate-reverse;
}
@keyframes sc-drift {
  from {
    transform: translate(-4%, -3%) scale(1);
  }
  to {
    transform: translate(5%, 4%) scale(1.12);
  }
}
.sc-ribbon {
  position: absolute;
  overflow: visible;
}
.sc-ribbon--1 {
  left: -6%;
  bottom: -14%;
  width: 40%;
  height: auto;
  aspect-ratio: 480 / 264;
  color: var(--green);
  transform: rotate(18deg);
}
.sc-ribbon--2 {
  right: -4%;
  top: -8%;
  width: 18%;
  aspect-ratio: 210 / 140;
  color: var(--blue);
  transform: rotate(-160deg);
}
.sc-star {
  position: absolute;
  width: calc(var(--u) * 30);
  height: calc(var(--u) * 30);
  color: var(--yellow);
}
.sc-star--1 {
  left: 30%;
  top: 12%;
}
.sc-star--2 {
  right: 27%;
  top: 20%;
  color: var(--orange-300);
  animation-delay: -1.2s;
  width: calc(var(--u) * 22);
  height: calc(var(--u) * 22);
}
.sc-star--3 {
  left: 37%;
  bottom: 12%;
  animation-delay: -2s;
  width: calc(var(--u) * 24);
  height: calc(var(--u) * 24);
}
.sc-mascot {
  position: absolute;
  left: 50%;
  top: 52%;
  width: calc(var(--u) * 300);
  translate: -50% -50%;
  animation: sc-hop 4.6s ease-in-out infinite;
}
.sc-mascot img {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 calc(var(--u) * 18) calc(var(--u) * 26) #c9480a40);
}
.sc-mascot__halo {
  position: absolute;
  inset: -22%;
  border-radius: 9999px;
  background: radial-gradient(closest-side, #ffffffd9, #ffffff00);
}
@keyframes sc-hop {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(calc(var(--u) * -16)) rotate(2deg);
  }
}
.sc-card {
  position: absolute;
  width: calc(var(--u) * 268);
  padding: calc(var(--u) * 16) calc(var(--u) * 18) calc(var(--u) * 18);
  border-radius: calc(var(--u) * 18);
  background: var(--white);
  border-bottom: calc(var(--u) * 5) solid var(--ui-edge);
  box-shadow: 0 calc(var(--u) * 14) calc(var(--u) * 30) #40140814;
  color: var(--ui-ink);
}
.sc-card--paper {
  left: 9%;
  top: 17%;
  --bob-rot: -1.5deg;
  rotate: -5deg;
  animation: float-bob 8.3s ease-in-out infinite;
}
.sc-card--score {
  right: 8%;
  top: 30%;
  rotate: 4deg;
  animation: float-bob 9.1s ease-in-out -3s infinite;
}
.sc-card__meta {
  font-size: calc(var(--u) * 12.5);
  line-height: 1.4;
  font-weight: 500;
  color: var(--ui-ink-soft);
}
.sc-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: calc(var(--u) * 4);
}
.sc-big {
  font-size: calc(var(--u) * 38);
  line-height: 1.15;
  font-weight: 700;
}
.sc-big i {
  font-style: normal;
  font-size: 0.5em;
  font-weight: 600;
  color: var(--gray-500);
}
.sc-timer {
  font-size: calc(var(--u) * 14);
  font-weight: 600;
  padding: calc(var(--u) * 3) calc(var(--u) * 10);
  border-radius: 9999px;
  background: var(--orange-100);
  color: var(--orange-400);
}
.sc-bar {
  display: block;
  height: calc(var(--u) * 7);
  margin-top: calc(var(--u) * 10);
  border-radius: 9999px;
  background: var(--gray-100);
  overflow: hidden;
}
.sc-bar span {
  display: block;
  height: 100%;
  width: 60%;
  border-radius: inherit;
  background: var(--orange-300);
  animation: sc-fill 6s var(--ease-out-strong) infinite;
}
@keyframes sc-fill {
  0% {
    width: 12%;
  }
  40%, 100% {
    width: 60%;
  }
}
.sc-scale {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 5);
  margin-top: calc(var(--u) * 8);
  font-size: calc(var(--u) * 13);
  line-height: 1.4;
}
.sc-scale li {
  display: flex;
  justify-content: space-between;
  color: var(--ui-ink-soft);
}
.sc-scale b {
  color: var(--ui-ink);
}
.sc-chat {
  position: absolute;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  padding: calc(var(--u) * 12) calc(var(--u) * 18);
  border-radius: calc(var(--u) * 22);
  font-size: calc(var(--u) * 15);
  line-height: 1.4;
  box-shadow: 0 calc(var(--u) * 10) calc(var(--u) * 24) #40140812;
}
.sc-chat--ask {
  left: 13%;
  bottom: 24%;
  background: var(--orange-400);
  color: var(--white);
  font-weight: 500;
  rotate: 3deg;
  animation: float-bob 7.1s ease-in-out -1s infinite;
}
.sc-chat--reply {
  left: 17%;
  bottom: 11%;
  background: var(--white);
  color: var(--gray-900);
  animation: sc-reply 6s var(--ease-pop) infinite;
}
.sc-chat__av {
  display: flex;
  flex: none;
  width: calc(var(--u) * 30);
  height: calc(var(--u) * 30);
}
@keyframes sc-reply {
  0%, 18% {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
  26%, 92% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: none;
  }
}
.sc-toast {
  position: absolute;
  right: 12%;
  bottom: 16%;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  padding: calc(var(--u) * 10) calc(var(--u) * 18) calc(var(--u) * 10) calc(var(--u) * 12);
  border-radius: calc(var(--u) * 18);
  border: 1.5px solid var(--success);
  background: var(--success-bg);
  box-shadow: 0 calc(var(--u) * 4) 0 var(--success-deep);
  font-size: calc(var(--u) * 15);
  color: var(--gray-900);
  rotate: -4deg;
  animation: sc-toast 6s var(--ease-pop) -2s infinite;
}
.sc-toast .ui-tick {
  width: calc(var(--u) * 26);
  height: calc(var(--u) * 26);
}
.sc-toast .ui-tick svg {
  width: 62%;
  height: 62%;
}
@keyframes sc-toast {
  0%, 8% {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  16%, 90% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: none;
  }
}
.sc-chip {
  position: absolute;
  padding: calc(var(--u) * 8) calc(var(--u) * 16);
  border-radius: 9999px;
  font-size: calc(var(--u) * 14);
  font-weight: 600;
  color: var(--white);
}
.sc-chip--1 {
  left: 34%;
  top: 9%;
  background: var(--blue);
  rotate: -6deg;
  animation: float-bob 9.7s ease-in-out -4s infinite;
}
.sc-chip--2 {
  right: 26%;
  bottom: 7%;
  background: var(--green);
  rotate: 5deg;
  animation: float-bob 7.9s ease-in-out -2s infinite;
}
.showcase__controls {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 6px;
}
.showcase__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: rgb(23 23 23 / 0.6);
  color: var(--white);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
#showcase-cc[aria-pressed="true"] {
  background: var(--orange-300);
  color: var(--white);
}
/* captions: our own pill (native ::cue can't be padded) */
.showcase__caption {
  position: absolute;
  left: 50%;
  bottom: 14%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: min(80%, 760px);
  font-size: clamp(13px, 1.7vw, 20px);
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  translate: -50% 0;
  pointer-events: none;
}
/* one rounded box per line, with room on the left and right */
.showcase__caption span {
  padding: 5px 16px 6px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.72);
  color: #fff;
}
.showcase__caption[hidden] {
  display: none;
}
.showcase__loud,
#showcase-sound[aria-pressed="true"] .showcase__muted {
  display: none;
}
#showcase-sound[aria-pressed="true"] .showcase__loud {
  display: block;
}
.showcase__btn:hover {
  background: rgb(23 23 23 / 0.8);
}
.showcase__btn svg {
  width: 16px;
  height: 16px;
}
@media (min-width: 640px) {
  .showcase__controls {
    right: 16px;
    bottom: 16px;
    gap: 8px;
  }
  .showcase__btn {
    width: 40px;
    height: 40px;
  }
  .showcase__btn svg {
    width: 20px;
    height: 20px;
  }
}
@media (min-width: 1024px) {
  .showcase__controls {
    right: 20px;
    bottom: 20px;
  }
  .showcase__btn {
    width: 48px;
    height: 48px;
  }
  .showcase__btn svg {
    width: 24px;
    height: 24px;
  }
}
@media (max-width: 639.98px) {
  .sc-chip,
  .sc-chat--reply {
    display: none;
  }
  .showcase {
    --u: calc(100cqw / 760);
  }
  .sc-card--paper {
    left: 3%;
    top: 8%;
  }
  .sc-card--score {
    right: 3%;
    top: 34%;
  }
  .sc-chat--ask {
    left: 4%;
    bottom: 10%;
  }
  .sc-toast {
    right: 5%;
    bottom: 8%;
  }
  .sc-mascot {
    width: calc(var(--u) * 230);
  }
}

/* ── Sticky banner stack ────────────────────────────────────────────────── */
.banner-stack {
  --banner-lap: -20px;
  --banner-air: 24px;
  --banner-stick: calc(var(--site-header) + var(--banner-park));
  --demo-top: 260px;
  position: relative;
  isolation: isolate;
  width: 100%;
  padding-bottom: 20px;
}
.banner-card {
  width: 100%;
}
.banner-card + .banner-card {
  margin-top: calc(-1 * var(--banner-lap));
}
.banner-layer {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--peach);
}
.banner-art {
  display: none;
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  aspect-ratio: 1192 / 666;
  transform: translateY(-50%);
  pointer-events: none;
}
.banner-art > svg {
  position: absolute;
  max-width: none;
  overflow: visible;
}
.banner-copy {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 28px 24px 0;
}
.banner-copy__in {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}
.banner-copy__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.banner-copy__text h2 {
  white-space: pre-line;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gray-900);
}
.banner-copy__text p {
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-700);
}
.banner-next {
  display: none;
}
.banner-demo {
  position: relative;
  margin: 28px 24px;
  aspect-ratio: 390 / var(--demo-h);
}
.banner-tail {
  display: none;
  pointer-events: none;
}
.fit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.fit__in {
  width: 100%;
  flex: none;
}
@media (min-width: 640px) {
  .banner-stack {
    --banner-lap: 32px;
    --banner-air: 32px;
  }
  .banner-card {
    position: sticky;
    top: var(--banner-stick);
    height: calc(100vh - var(--banner-stick) - var(--banner-air));
    height: calc(100svh - var(--banner-stick) - var(--banner-air));
  }
  .banner-card + .banner-card > .banner-layer {
    box-shadow: var(--shadow-stack);
  }
  .banner-tail {
    display: block;
  }
  .banner-copy {
    position: absolute;
    inset: 28px 24px auto 24px;
    padding: 0;
  }
  .banner-copy__text h2 {
    font-size: 24px;
  }
  .banner-next {
    display: inline-flex;
  }
  .banner-demo {
    position: absolute;
    inset: var(--demo-top) 12px 24px 12px;
    margin: 0;
    aspect-ratio: auto;
  }
}
@media (min-width: 1024px) {
  .banner-stack {
    --demo-top: 8.26%;
  }
  .banner-card {
    height: auto;
    aspect-ratio: 1192 / 666;
    max-height: calc(100vh - var(--banner-stick) - var(--banner-air));
    max-height: calc(100svh - var(--banner-stick) - var(--banner-air));
  }
  .banner-art {
    display: block;
  }
  .banner-copy {
    inset: 0 auto 0 10.07%;
    width: 38.59%;
    align-items: center;
  }
  .banner-copy__in {
    gap: 48px;
  }
  .banner-copy__text h2 {
    font-size: 28px;
  }
  .banner-copy__text p {
    max-width: none;
  }
  .banner-demo {
    inset: 8.26% 13.42% 8.26% 53.86%;
  }
}
@media (min-width: 1280px) {
  .banner-stack {
    --banner-lap: 40px;
    --banner-air: 40px;
  }
}

/* ── Demo primitives ────────────────────────────────────────────────────── */
.demo {
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 390px;
  user-select: none;
}
/* enter styles: element is hidden until it gets .is-on */
.pop {
  opacity: 0;
  translate: 0 8px;
  scale: 0.95;
  transition: opacity var(--dur-pop) var(--ease-pop), translate var(--dur-pop) var(--ease-pop),
    scale var(--dur-pop) var(--ease-pop);
}
.pop--right {
  transform-origin: right;
}
.pop--tl {
  transform-origin: top left;
}
.pop.is-on {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}
.slide {
  opacity: 0;
  translate: -8px 0;
  transition: opacity 0.38s var(--ease-out-strong), translate 0.38s var(--ease-out-strong);
}
.slide.is-on {
  opacity: 1;
  translate: 0 0;
}
.zoom {
  opacity: 0;
  scale: 0.5;
  transition: scale 0.42s var(--ease-pop), opacity 0.42s var(--ease-pop);
}
.zoom.is-on {
  opacity: 1;
  scale: 1;
}
.rise {
  opacity: 0;
  translate: 0 14px;
  transition: opacity var(--dur-pop) var(--ease-out-strong), translate var(--dur-pop) var(--ease-out-strong);
}
.rise.is-on {
  opacity: 1;
  translate: 0 0;
  transition-delay: var(--d, 0ms);
}
.fadeup {
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.42s var(--ease-out-strong), translate 0.42s var(--ease-out-strong);
}
.fadeup.is-on {
  opacity: 1;
  translate: 0 0;
}
.fade {
  opacity: 0;
  transition: opacity 0.3s;
}
.fade.is-on {
  opacity: 1;
}
.beat {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.beat.is-on {
  opacity: 1;
  transform: none;
}

/* ── Demo 1 · AI tutor ──────────────────────────────────────────────────── */
.demo-tutor {
  height: 400px;
}
.demo-tutor__clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.demo-tutor__col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  padding-top: 20px;
  transition: transform 0.6s var(--ease-out-strong);
}
.demo-tutor__thumb {
  align-self: flex-end;
  width: 132px;
  height: 99px;
  border-radius: 14px;
  overflow: hidden;
}
.demo-tutor__thumb svg,
.demo-tutor__camphoto {
  width: 100%;
  height: 100%;
}
.demo-tutor__ask {
  align-self: flex-end;
  border-radius: 9999px;
}
.demo-tutor__dots {
  position: absolute;
  left: 0;
  top: 0;
}
.demo-tutor__steps {
  padding: 12px 14px;
}
.demo-tutor__intro {
  font-size: 12.5px;
  line-height: 21px;
  color: var(--gray-700);
}
.demo-tutor__intro b {
  font-weight: 600;
  color: var(--gray-900);
}
.demo-tutor__steps ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.demo-tutor__steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.demo-tutor__steps li > span:first-child {
  flex: none;
  width: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  color: var(--gray-500);
}
.demo-tutor__steps li > span:last-child {
  font-size: 12.5px;
  line-height: 18px;
  color: var(--gray-900);
}
.demo-tutor__answer {
  margin-bottom: 4px;
  padding: 8px 12px 8px 14px;
  font-size: 13px;
  line-height: 20px;
  color: var(--gray-900);
}
.demo-tutor__answer b {
  font-size: 15px;
}
.demo-tutor__cam {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.demo-tutor__cam.is-on {
  opacity: 1;
}
.demo-tutor__camphoto {
  position: absolute;
  inset: 0;
}
.demo-tutor__hud {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.demo-tutor__hud.is-on {
  opacity: 1;
}
.demo-tutor__hud > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.demo-tutor__hint {
  position: absolute;
  left: 50%;
  top: 16px;
  translate: -50% 0;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgb(0 0 0 / 0.6);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
}
.demo-tutor__shutter {
  position: absolute;
  left: 50%;
  bottom: 20px;
  translate: -50% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 9999px;
  border: 3px solid var(--white);
}
.demo-tutor__shutter span {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--white);
  transition: scale 0.2s;
}
.demo-tutor[data-step="2"] .demo-tutor__shutter span {
  scale: 0.75;
}
.demo-tutor__flash {
  position: absolute;
  inset: 0;
  background: var(--white);
  opacity: 0;
  transition: opacity 0.3s;
}
.demo-tutor__flash.is-on {
  opacity: 1;
  transition: none;
}

/* ── Demo 2 · Past paper quiz ───────────────────────────────────────────── */
.demo-quiz {
  height: 300px;
  overflow: hidden;
}
.demo-quiz__q {
  position: absolute;
  left: 77px;
  top: 14px;
  width: 236px;
}
.q-item {
  opacity: 0;
  translate: 0 14px;
  transition: opacity var(--dur-pop) var(--ease-out-strong), translate var(--dur-pop) var(--ease-out-strong);
}
.demo-quiz[data-phase="ask"] .q-item {
  opacity: 1;
  translate: 0 0;
  transition-delay: calc(var(--i) * 70ms);
}
.demo-quiz[data-phase="left"] .q-item {
  opacity: 0;
  translate: -36px 0;
}
.demo-quiz__ask {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding-inline: 10px;
}
.demo-quiz__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1.5px solid var(--ui-edge);
  border-bottom-width: 3px;
  color: var(--ui-ink);
}
.demo-quiz__icon svg {
  width: 18px;
  height: 18px;
}
.demo-quiz__ask p {
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  color: var(--ui-ink);
}
.demo-quiz__q ol {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 7px;
}
.demo-quiz__opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36.5px;
  margin-bottom: 4.5px;
  padding: 0 8px 0 16px;
  border-radius: 17px;
  border: 1.5px solid var(--white);
  background: var(--white);
  box-shadow: 0 4.5px 0 var(--ui-edge);
  font-size: 14px;
  line-height: 20px;
  color: var(--gray-900);
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, scale 0.2s;
}
.demo-quiz[data-step="2"] .demo-quiz__opt.is-key {
  scale: 0.97;
}
.demo-quiz.is-picked .demo-quiz__opt.is-key {
  border-color: var(--success);
  background: var(--success-bg);
  box-shadow: 0 4.5px 0 var(--success-deep);
}
.demo-quiz__tick {
  width: 25px;
  height: 25px;
  scale: 0;
  transition: scale 0.42s var(--ease-pop);
}
.demo-quiz__tick svg {
  width: 14px;
  height: 14px;
}
.demo-quiz.is-checked .demo-quiz__tick {
  scale: 1;
}
.demo-quiz__ripple {
  position: absolute;
  left: 134px;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 9999px;
  background: rgb(0 0 0 / 0.1);
  opacity: 0;
  scale: 0.4;
  transition: opacity 0.5s var(--ease-out-strong), scale 0.5s var(--ease-out-strong);
}
.demo-quiz.is-tapped .demo-quiz__ripple {
  opacity: 1;
  scale: 1;
}
.demo-quiz.is-checked .demo-quiz__ripple {
  opacity: 0;
  scale: 2.2;
}
.demo-quiz__score,
.s-score__top {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100px;
  padding: 0 16px 0 12px;
}
.demo-quiz__score {
  position: absolute;
  left: 50px;
  top: 18px;
  width: 292px;
}
.demo-quiz__star {
  flex: none;
  width: 80px;
  height: 82px;
  color: var(--orange-300);
  opacity: 0;
  rotate: -40deg;
  scale: 0;
  transition: scale 0.52s var(--ease-pop), rotate 0.52s var(--ease-pop), opacity 0.52s var(--ease-pop);
}
.is-on > .demo-quiz__star,
.is-on .s-score__top .demo-quiz__star {
  opacity: 1;
  rotate: 0deg;
  scale: 1;
}
.demo-quiz__cheer {
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 18px;
  color: var(--ui-ink);
}
.demo-quiz__pct {
  font-size: 34px;
  font-weight: 700;
  line-height: 42px;
  color: var(--ui-ink);
  transform-origin: left;
  opacity: 0;
  scale: 0.6;
  transition: scale var(--dur-pop) var(--ease-pop), opacity var(--dur-pop) var(--ease-pop);
}
.demo-quiz__pct i {
  font-style: normal;
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-500);
}
.is-on .demo-quiz__pct {
  opacity: 1;
  scale: 1;
  transition-delay: 250ms;
}
.demo-quiz__list,
.s-score__list {
  padding: 14px 16px 0;
}
.demo-quiz__list {
  position: absolute;
  top: 130px;
  width: 140px;
  height: 156px;
}
.demo-quiz__list--a {
  left: 50px;
}
.demo-quiz__list--b {
  left: 202px;
}
.demo-quiz__list p,
.s-score__list p {
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
  color: var(--ui-ink);
}
.demo-quiz__list ol,
.s-score__list ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-left: 13px;
  list-style: decimal;
  font-size: 10.5px;
  line-height: 14px;
  color: var(--ui-ink-soft);
}

/* ── Demo 3 · Mock Speaking (card turn) ─────────────────────────────────── */
.demo-speak {
  height: 300px;
}
.demo-speak__deal {
  position: absolute;
  left: 55px;
  top: 20px;
  width: 280px;
  height: 255px;
  perspective: 900px;
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.5s var(--ease-out-strong), translate 0.5s var(--ease-out-strong);
}
.demo-speak__deal.is-on {
  opacity: 1;
  translate: 0 0;
}
.demo-speak__turn {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-flip);
}
.demo-speak.is-turned .demo-speak__turn {
  transform: rotateY(180deg);
}
.demo-speak__face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4.67px 0 0 var(--ui-edge);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.demo-speak__face--back {
  transform: rotateY(180deg);
}
.demo-speak__quote {
  position: absolute;
  width: 23px;
  height: 15px;
  color: var(--blue);
}
.demo-speak__quote--a {
  left: 19px;
  top: 22px;
}
.demo-speak__quote--b {
  right: 19px;
  top: 165px;
  rotate: 180deg;
}
.demo-speak__tag {
  position: absolute;
  left: 50%;
  top: 20px;
  translate: -50% 0;
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--orange-100);
  color: var(--orange-400);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}
.demo-speak__q {
  position: absolute;
  inset-inline: 30px;
  top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  line-height: 25px;
  color: var(--ui-ink);
}
.demo-speak__key {
  position: absolute;
  top: 199px;
  height: 36px;
}
.demo-speak__key--icon {
  left: 19px;
  width: 44px;
}
.demo-speak__key--icon svg {
  width: 18px;
  height: 18px;
}
.demo-speak__key--main {
  left: 104px;
  width: 158px;
  font-size: 14px;
  white-space: nowrap;
  transition: scale 0.2s;
}
.demo-speak[data-step="2"] .demo-speak__face:not(.demo-speak__face--back) .demo-speak__key--main {
  scale: 0.95;
}
.demo-speak__ripple {
  position: absolute;
  left: 167px;
  top: 201px;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: rgb(0 0 0 / 0.1);
  opacity: 0;
  scale: 0.4;
  transition: opacity 0.5s var(--ease-out-strong), scale 0.5s var(--ease-out-strong);
}
.demo-speak.is-tapped .demo-speak__ripple {
  opacity: 1;
  scale: 1;
}
.demo-speak.is-turned .demo-speak__ripple {
  opacity: 0;
  scale: 2.2;
}
.demo-speak__result {
  position: absolute;
  inset: 16px 22px auto;
  height: 172px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ui-ink);
  transition-duration: 0.46s;
}
.demo-speak__cap {
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  color: var(--ui-ink-soft);
}
.demo-speak__num {
  font-size: 34px;
  font-weight: 700;
  line-height: 40px;
}
.demo-speak__num i {
  font-style: normal;
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-500);
}
.demo-speak__result ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 8px;
  width: 100%;
  margin-top: 8px;
}
.demo-speak__result li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-radius: 10px;
  background: var(--gray-50);
  font-size: 11px;
  line-height: 16px;
  color: var(--ui-ink-soft);
}
.demo-speak__result li b {
  font-size: 13px;
  color: var(--ui-ink);
}

/* ── Demo 4 · Topic Insights ────────────────────────────────────────────── */
.demo-topics {
  height: 300px;
}
.demo-topics__stage {
  position: absolute;
  left: 45px;
  top: 0;
  width: 300px;
  height: 300px;
}
.demo-topics__chat {
  position: absolute;
  inset: 0;
  opacity: 0;
  translate: 0 -150px;
  transition: opacity 0.9s var(--ease-flip), translate 0.9s var(--ease-flip);
}
.demo-topics__chat.is-on {
  opacity: 1;
  translate: 0 0;
}
.demo-topics__ask {
  position: absolute;
  right: 0;
  top: 16px;
  max-width: 250px;
}
.demo-topics__dots {
  position: absolute;
  left: 0;
  top: 88px;
}
.demo-topics__dots > span {
  background: var(--ui-ink);
}
.demo-topics__reply {
  position: absolute;
  left: 0;
  top: 88px;
  width: 300px;
  padding: 10px 14px;
  border-radius: 18px;
  background: var(--white);
  font-size: 13px;
  line-height: 19px;
  color: var(--ui-ink);
  transition-duration: 0.2s;
}
.demo-topics__reply .w {
  opacity: 0;
  transition: opacity 0.25s ease-out;
}
.demo-topics__reply.is-on .w {
  opacity: 1;
  transition-delay: calc(var(--wi) * 45ms);
}
.demo-topics__center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.demo-topics__doc {
  position: relative;
  width: 300px;
  padding: 16px 20px;
  border-radius: 11px;
  border: 1px solid var(--ui-edge);
  background: var(--white);
  opacity: 0;
  translate: 0 170px;
  transition: opacity 0.9s var(--ease-flip), translate 0.9s var(--ease-flip);
}
.demo-topics__doc.is-on {
  opacity: 1;
  translate: 0 0;
}
.demo-topics__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 256px;
  height: 38px;
  padding-inline: 12px;
  border-radius: 14px;
  border: 1.8px solid var(--ui-edge);
  font-size: 11px;
  color: var(--ui-ink);
}
.demo-topics__bar svg {
  width: 14px;
  height: 14px;
}
.demo-topics__bar svg.mini {
  display: inline;
  width: 10px;
  height: 10px;
  vertical-align: -1px;
}
.demo-topics__bar i {
  width: 1px;
  height: 14px;
  background: #bfbfbf;
}
.demo-topics__doc h3 {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--gray-900);
}
.demo-topics__sub {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 15px;
  color: var(--gray-900);
}
.demo-topics__doc hr {
  height: 1px;
  margin-block: 10px;
  background: var(--ui-edge);
}
.demo-topics__doc ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.demo-topics__doc li,
.m-doc__page li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  column-gap: 6px;
  padding-bottom: 6px;
  font-size: 10.5px;
  line-height: 15px;
  color: var(--ui-ink);
}
.demo-topics__doc li b,
.m-doc__page li b {
  font-weight: 600;
  color: var(--orange-400);
}
.demo-topics__doc li em,
.m-doc__page li em {
  font-style: normal;
  font-weight: 600;
}
.demo-topics__doc li i,
.m-doc__page li i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 9999px;
  background: var(--gray-100);
  overflow: hidden;
}
.demo-topics__doc li i::after,
.m-doc__page li i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: var(--orange-300);
  transform-origin: left;
  scale: 0 1;
  transition: scale 0.8s var(--ease-out-strong) 0.25s;
}
.demo-topics__doc ul.is-on li i::after,
.m-doc.is-on li.is-on i::after {
  scale: 1 1;
}

/* ── Language section ───────────────────────────────────────────────────── */
.ease {
  gap: 28px;
  padding-block: var(--section-gap-half);
}
.ease__title {
  position: relative;
}
.ease__title h2 {
  max-width: 720px;
}
.ease__doodle {
  display: none;
  position: absolute;
  width: 46px;
  color: var(--orange-400);
  pointer-events: none;
  overflow: visible;
}
.ease__doodle--l {
  left: -62px;
  top: 12px;
  height: 40px;
}
.ease__doodle--r {
  right: -58px;
  top: -4px;
  height: 56px;
  rotate: 28deg;
  transform-origin: 0 100%;
  animation: sparkle 2.6s ease-in-out 1.3s infinite;
}
@media (min-width: 1024px) {
  .ease__title {
    max-width: 470px;
  }
  .ease__doodle {
    display: block;
  }
}
.ease__board {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 32px;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  border-radius: var(--radius-card);
  background: var(--white);
}
.ease__steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}
.ease-step {
  position: relative;
  display: flex;
  flex-direction: column;
}
.ease-step__line,
.ease-step__run {
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: -28px;
  width: 1px;
  translate: -50% 0;
  background: var(--orange-200);
}
.ease-step__run {
  display: none;
  background: var(--orange-400);
  transform-origin: top;
  animation: ease-run linear forwards;
  animation-duration: var(--run, 8200ms);
}
.ease-step.is-active.is-running .ease-step__run {
  display: block;
}
@keyframes ease-run {
  from {
    scale: 1 0;
  }
}
.ease-step > button {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  border-radius: 16px;
  text-align: left;
  outline-offset: 4px;
}
.ease-step.is-active > button {
  cursor: default;
}
.ease-step__n {
  position: relative;
  z-index: 1;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  border: 1px solid var(--orange-200);
  background: var(--white);
  color: var(--orange-400);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.ease-step:not(.is-active) > button:hover .ease-step__n {
  background: var(--orange-50);
}
.ease-step.is-active .ease-step__n {
  margin-bottom: -13px;
  border-color: var(--orange-400);
  background: var(--orange-400);
  color: var(--white);
}
.ease-step__t {
  display: flex;
  flex: 1;
  align-items: center;
  min-height: 40px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gray-900);
}
.ease-step.is-active .ease-step__t {
  align-items: flex-start;
  min-height: 0;
}
.ease-step__body,
.ease-step__chips,
.ease-step__slot {
  display: none;
}
.ease-step.is-active .ease-step__body {
  display: block;
  margin-top: 4px;
  padding-left: 56px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-700);
}
.ease-step.is-active .ease-step__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-left: 56px;
}
.ease-step.is-active .ease-step__slot:not(:empty) {
  display: block;
  margin-top: 20px;
}
.ease__panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 556px;
  margin-inline: auto;
  padding: 16px;
  overflow: hidden;
}
.ease__doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: fade-in 0.5s ease-out;
}
.ease__doodles svg {
  position: absolute;
  height: auto;
  max-width: none;
  overflow: visible;
  color: var(--orange-400);
  translate: -50% -50%;
}
.ease__stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
}
@media (min-width: 640px) {
  .ease-step.is-active .ease-step__chips {
    gap: 8px;
  }
  .ease-step.is-active .ease-step__slot:not(:empty) {
    padding-left: 56px;
  }
  .ease-step__slot > * {
    margin-inline: 0;
  }
  .ease__panel {
    aspect-ratio: 556 / 420;
    padding: 32px;
  }
}
@media (min-width: 1280px) {
  .ease__board {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: var(--page-content);
    padding-left: 40px;
  }
  .ease__steps {
    width: 460px;
    flex: none;
  }
  .ease__panel {
    flex: none;
    width: 556px;
    height: 420px;
    margin-inline: 0;
  }
}
@media (max-width: 639.98px) {
  .ease__doodles .wide {
    display: none;
  }
}

/* chat scene inside the panel — one looping 8.5 s CSS timeline */
.ease-scene {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 300px;
  height: 300px;
}
@media (min-width: 640px) {
  .ease-scene,
  .voice {
    scale: 1.2;
  }
}
.ease-photo,
.ease-ask,
.ease-dots,
.ease-intro,
.ease-card,
.ease-r1,
.ease-r2,
.ease-r3,
.ease-ans,
.ease-chk,
.ease-tick {
  animation-duration: 8.5s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}
.ease-photo {
  display: block;
  align-self: flex-end;
  width: 112px;
  height: 84px;
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  transform-origin: 100% 0;
  animation-name: ease-photo;
}
.ease-photo svg {
  width: 100%;
  height: 100%;
}
.ease-ask {
  align-self: flex-end;
  max-width: 240px;
  margin-top: 16px;
  padding: 9px 14px;
  border-radius: 18px;
  background: var(--gray-150);
  font-size: 13px;
  line-height: 20px;
  color: var(--gray-900);
  animation-name: ease-rise;
}
.ease-reply {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.ease-dots {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--white);
  animation-name: ease-dots;
}
.ease-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--ui-ink);
  animation: ease-bob 0.9s ease-in-out infinite;
}
.ease-dot:nth-child(2) {
  animation-delay: 0.15s;
}
.ease-dot:nth-child(3) {
  animation-delay: 0.3s;
}
.ease-intro {
  font-size: 13px;
  line-height: 18px;
  color: var(--ui-ink);
  animation-name: ease-intro;
}
.ease-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  animation-name: ease-card;
}
.ease-card li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.ease-card li > span:first-child {
  flex: none;
  width: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
}
.ease-card li > span:last-child {
  font-size: 13px;
  line-height: 19px;
  color: var(--gray-900);
}
.ease-r1 {
  animation-name: ease-r1;
}
.ease-r2 {
  animation-name: ease-r2;
}
.ease-r3 {
  animation-name: ease-r3;
}
.ease-ans {
  padding: 7px 12px 7px 14px;
  border-bottom-width: 4px;
  border-bottom-color: var(--success-deep);
  box-shadow: none;
  font-size: 14px;
  line-height: 20px;
  color: var(--gray-900);
  animation-name: ease-ans;
}
.ease-ans b {
  font-size: 15px;
}
.ease-chk {
  width: 22px;
  height: 22px;
  flex: none;
  transform-origin: 50%;
  transform-box: fill-box;
  animation-name: ease-chk;
}
.ease-tick {
  stroke-dasharray: 1;
  animation-name: ease-tick;
}
@keyframes ease-photo {
  0%, 2.35% { opacity: 0; transform: translateY(16px) scale(0.92); }
  8.24%, 91.76% { opacity: 1; transform: none; }
  96.47%, 100% { opacity: 0; transform: none; }
}
@keyframes ease-rise {
  0%, 3.53% { opacity: 0; transform: translateY(10px); }
  8.24%, 91.76% { opacity: 1; transform: none; }
  96.47%, 100% { opacity: 0; transform: none; }
}
@keyframes ease-intro {
  0%, 23.53% { opacity: 0; transform: translateY(10px); }
  28.24%, 91.76% { opacity: 1; transform: none; }
  96.47%, 100% { opacity: 0; transform: none; }
}
@keyframes ease-card {
  0%, 27.06% { opacity: 0; transform: translateY(10px); }
  31.76%, 91.76% { opacity: 1; transform: none; }
  96.47%, 100% { opacity: 0; transform: none; }
}
@keyframes ease-dots {
  0%, 11.76% { opacity: 0; }
  13.53%, 22.35% { opacity: 1; }
  23.53%, 100% { opacity: 0; }
}
@keyframes ease-bob {
  0%, 60%, 100% { opacity: 0.35; transform: none; }
  30% { opacity: 1; transform: translateY(-4px); }
}
@keyframes ease-r1 {
  0%, 30% { opacity: 0; transform: translate(-8px); }
  34.71%, 91.76% { opacity: 1; transform: none; }
  96.47%, 100% { opacity: 0; transform: none; }
}
@keyframes ease-r2 {
  0%, 34.12% { opacity: 0; transform: translate(-8px); }
  38.82%, 91.76% { opacity: 1; transform: none; }
  96.47%, 100% { opacity: 0; transform: none; }
}
@keyframes ease-r3 {
  0%, 38.24% { opacity: 0; transform: translate(-8px); }
  42.94%, 91.76% { opacity: 1; transform: none; }
  96.47%, 100% { opacity: 0; transform: none; }
}
@keyframes ease-ans {
  0%, 44.71% { opacity: 0; transform: scale(0.9); }
  48.82%, 91.76% { opacity: 1; transform: none; }
  96.47%, 100% { opacity: 0; transform: none; }
}
@keyframes ease-chk {
  0%, 47.06% { transform: scale(0); }
  49.41% { transform: scale(1.18); }
  51.18%, 100% { transform: scale(1); }
}
@keyframes ease-tick {
  0%, 48.82% { stroke-dashoffset: 1px; }
  52.35%, 100% { stroke-dashoffset: 0; }
}

/* voice player */
.voice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  min-height: 300px;
}
@media (min-width: 640px) {
  .voice {
    min-height: 0;
  }
}
.voice__text {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  line-height: 31px;
  color: var(--gray-900);
  animation: voice-rise-12 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.voice__text span {
  transition: color 0.2s linear;
}
.voice__text span.is-now {
  color: var(--orange-400);
  transition-duration: 75ms;
}
.voice__control {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin-top: 26px;
  animation: voice-rise-8 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}
@keyframes voice-rise-12 {
  from { opacity: 0; transform: translateY(12px); }
}
@keyframes voice-rise-8 {
  from { opacity: 0; transform: translateY(8px); }
}
.voice__wave {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  translate: 0 -50%;
  pointer-events: none;
}
.voice__wave span {
  display: block;
  width: 3px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--orange-200) 50%, transparent);
  transition: background-color 0.3s;
}
.voice[data-on] .voice__wave span {
  background: var(--orange-200);
  animation: voice-bar ease-in-out infinite alternate;
}
@keyframes voice-bar {
  from { transform: scaleY(0.4); }
  to { transform: scaleY(1); }
}
.voice__btn {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 20px 0 6px;
  white-space: nowrap;
  border-radius: 9999px;
  border: 1.5px solid var(--ui-edge);
  border-bottom-width: 4.5px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  transition: transform 0.15s ease-out, border-color 0.15s ease-out;
}
.voice__btn:hover {
  border-color: var(--gray-200);
}
.voice__btn:active {
  transform: translateY(2px);
}
.voice__disc {
  position: relative;
  display: flex;
  flex: none;
  width: 38px;
  height: 38px;
}
.voice__ring {
  --ring-cycle: 2.4s;
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--orange-300);
  opacity: 0;
  pointer-events: none;
  animation: voice-ring var(--ring-cycle) cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
}
.voice__ring:nth-child(2) {
  animation-delay: calc(var(--ring-cycle) / -3);
}
.voice__ring:nth-child(3) {
  animation-delay: calc(var(--ring-cycle) / -1.5);
}
.voice[data-on] .voice__ring {
  --ring-cycle: 1.5s;
}
@keyframes voice-ring {
  from { opacity: 0.28; transform: scale(1); }
  to { opacity: 0; transform: scale(1.9); }
}
.voice__core {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: var(--orange-300);
}
.voice__bars {
  display: flex;
  align-items: center;
  gap: 2.5px;
}
.voice__bars span {
  display: block;
  width: 2px;
  border-radius: 9999px;
  background: var(--white);
}
.voice__stop {
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--white);
}
.voice[data-on] .voice__bars {
  display: none;
}
.voice[data-on] .voice__stop {
  display: block;
}
.voice__ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: rgb(23 23 23 / 0.14);
  pointer-events: none;
  animation: voice-ripple 0.45s ease-out forwards;
}
@keyframes voice-ripple {
  from { opacity: 1; transform: translate(-50%, -50%) scale(0.4); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(2.2); }
}

/* ── Floating notes ─────────────────────────────────────────────────────── */
.notes {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--page-content);
  margin-inline: auto;
  padding: 40px 24px 32px;
  overflow: hidden;
}
.notes__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: center;
}
.notes__head h2 {
  max-width: 600px;
  color: var(--gray-900);
}
.notes__head p {
  color: var(--gray-700);
}
.notes__field {
  position: relative;
  width: calc(100% + 32px);
  margin: 24px -16px 0;
  aspect-ratio: 311 / 475;
}
.notes__field > li {
  position: absolute;
}
.note--1 { left: 0; top: 0; width: 57.9%; }
.note--2 { left: 48.2%; top: 12.6%; width: 51.8%; }
.note--3 { left: 48.2%; top: 29.5%; width: 51.8%; }
.note--4 { left: 0; top: 24.8%; width: 51.4%; }
.note--5 { left: 0; top: 43.2%; width: 53.1%; }
.note--6 { left: 51.4%; top: 45.3%; width: 45%; }
.note--7 { left: 25.7%; top: 72.6%; width: 64.3%; }
@media (min-width: 640px) {
  .notes {
    padding: 48px 40px;
  }
  .notes__field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    margin: 40px 0 0;
    aspect-ratio: auto;
  }
  .notes__field > li {
    position: static;
    width: calc(50% - 12px);
    max-width: 280px;
  }
}
@media (min-width: 1024px) {
  .notes__field {
    max-width: 624px;
    margin-inline: auto;
  }
  .notes__field > li {
    width: 300px;
    max-width: none;
  }
}
@media (min-width: 1280px) {
  .notes {
    aspect-ratio: 1192 / 680;
    padding: 48px 0 0;
  }
  .notes__field {
    display: block;
    max-width: none;
    margin: 0;
    position: static;
  }
  .notes__field > li {
    position: absolute;
  }
  .note--1 { left: 4.32%; top: 34.56%; width: 23.15%; }
  .note--2 { left: 75.59%; top: 32.65%; width: 19.8%; }
  .note--3 { left: 52.18%; top: 37.94%; width: 21.22%; }
  .note--4 { left: 39.51%; top: 46.47%; width: 18.46%; }
  .note--5 { left: 15.27%; top: 45.74%; width: 26.85%; }
  .note--6 { left: 66.44%; top: 46.03%; width: 23.49%; }
  .note--7 { left: 39.93%; top: 58.97%; width: 29.2%; }
}
[data-arrive="pending"] .note-toss {
  opacity: 0;
  transform: translate3d(var(--toss-x, 0), var(--toss-y, 24px), 0) rotate(var(--toss-rot, -6deg)) scale(0.92);
}
[data-arrive="in"] .note-toss {
  opacity: 1;
  transform: translate(0, 0) rotate(0) scale(1);
  transition: opacity 0.42s var(--ease-out-gentle), transform 0.72s var(--ease-pop);
  transition-delay: calc(var(--toss-index, 0) * 0.11s);
}
.note-bob {
  display: block;
}
[data-arrive="in"] .note-bob {
  animation: float-bob var(--bob-dur, 5.6s) ease-in-out infinite;
  animation-delay: calc(var(--toss-index, 0) * 0.34s + 0.9s);
}
@media (max-width: 639px) {
  [data-arrive="in"] .note-bob {
    --bob-scale: 0.5;
    animation-duration: calc(var(--bob-dur, 5.6s) * 1.6);
  }
}
.note {
  position: relative;
  display: block;
  width: 100%;
  container-type: inline-size;
  --u: calc(100cqw / var(--w));
  font-weight: 500;
  text-align: center;
  transition: transform 0.22s var(--ease-out-strong);
}
@media (hover: hover) {
  .note-toss:hover .note {
    transform: translateY(-10px) scale(1.04);
  }
}
/* lined paper slip */
.note-slip__paper {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86%;
  height: 62%;
  padding: 0 calc(var(--u) * 20);
  translate: -50% -50%;
  rotate: var(--rot);
  color: var(--orange-400);
  background: repeating-linear-gradient(#fff 0 calc(var(--u) * 19), #c7dcf6 calc(var(--u) * 19) calc(var(--u) * 20.5)), #fff;
  box-shadow: 0 calc(var(--u) * 6) calc(var(--u) * 14) #40140814;
  clip-path: polygon(0 3%, 6% 0, 13% 4%, 22% 0, 31% 3%, 40% 0, 50% 4%, 60% 0, 69% 3%, 78% 0, 88% 4%, 95% 0, 100% 3%, 100% 100%, 0 100%);
}
/* speech bubbles */
.note-bubble__in {
  position: absolute;
  left: 50%;
  display: block;
  padding: calc(var(--u) * 12) calc(var(--u) * 18);
  border-radius: calc(var(--u) * 16);
  translate: -50% -50%;
  rotate: var(--rot);
  background: var(--orange-400);
  color: var(--white);
}
.note-bubble--white .note-bubble__in {
  padding: calc(var(--u) * 16) calc(var(--u) * 18);
  border-radius: calc(var(--u) * 26);
  background: var(--white);
  color: var(--orange-400);
  box-shadow: 0 calc(var(--u) * 6) calc(var(--u) * 16) #4014080f;
}
.note-bubble--white .note-bubble__in::after {
  content: "";
  position: absolute;
  left: calc(var(--u) * 26);
  bottom: calc(var(--u) * -9);
  width: calc(var(--u) * 22);
  height: calc(var(--u) * 20);
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 14% 100%);
}
/* phone note */
.note-phone__sticky {
  position: absolute;
  left: 4%;
  top: 9%;
  width: 22%;
  aspect-ratio: 1;
  rotate: -16deg;
  background: var(--pink);
  box-shadow: 0 calc(var(--u) * 5) calc(var(--u) * 8) #0000001f;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.note-phone__card {
  position: absolute;
  left: 52.8%;
  top: 55%;
  display: flex;
  flex-direction: column;
  width: 66%;
  height: 72%;
  translate: -50% -50%;
  rotate: var(--rot);
  border-radius: calc(var(--u) * 26);
  background: #f4f3f1;
  box-shadow: 0 calc(var(--u) * 10) calc(var(--u) * 24) #0000001f;
  overflow: hidden;
}
.note-phone__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--u) * 38);
  padding: 0 calc(var(--u) * 16);
  background: #ffcf2e;
  color: #4d3b00;
  font-size: calc(var(--u) * 10);
  font-weight: 600;
}
.note-phone__bar i {
  font-style: normal;
  padding: calc(var(--u) * 2) calc(var(--u) * 7);
  border-radius: calc(var(--u) * 5);
  background: #ffffff8c;
  font-size: calc(var(--u) * 8.5);
}
.note-phone__bar b {
  font-weight: 600;
}
.note-phone__text {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 0 calc(var(--u) * 10);
  color: var(--gray-900);
}
/* yellow sticky */
.note-sticky__paper {
  position: absolute;
  left: 50%;
  top: 56%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 82%;
  height: 80%;
  padding: calc(var(--u) * 14);
  translate: -50% -50%;
  rotate: var(--rot);
  background: linear-gradient(180deg, #ffe45c, #ffd93b);
  box-shadow: 0 calc(var(--u) * 10) calc(var(--u) * 18) #0000001f;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 86% 100%, 0 100%);
  color: var(--gray-900);
}
.note-sticky__math {
  width: 34%;
  margin-bottom: calc(var(--u) * 8);
  align-self: flex-start;
}
.note-sticky__pct {
  width: 26%;
  margin-top: calc(var(--u) * 8);
  align-self: flex-start;
}
.note-sticky__pencil {
  position: absolute;
  right: 4%;
  top: 0;
  width: 26%;
  filter: drop-shadow(0 calc(var(--u) * 3) calc(var(--u) * 4) #00000026);
}

/* ── Here to help: strips ───────────────────────────────────────────────── */
.help {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.help__head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.help__head h2 {
  color: var(--gray-900);
}
.help__head p {
  color: var(--gray-700);
}
.help__heart,
.help__sparks {
  position: absolute;
  color: var(--orange-400);
  pointer-events: none;
  overflow: visible;
}
.help__heart {
  left: -82px;
  top: 34px;
  width: 54px;
  height: 67px;
}
.help__sparks {
  left: calc(100% + 24px);
  top: 21px;
  width: 49px;
  height: 49px;
}
@media (max-width: 639.98px) {
  .help__heart,
  .help__sparks {
    display: none;
  }
}
.strips {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.9em 1.82em;
  margin-top: 53px;
  font-size: 18px;
}
@media (min-width: 640px) {
  .strips {
    row-gap: 2.6em;
    font-size: clamp(18px, calc((100vw - 80px) / 31), 22px);
  }
}
.strip {
  --strip-at: calc(0.15s + var(--help-i, 0) * 0.22s);
  position: relative;
  flex: none;
  width: calc(var(--sw) * 1em / 22);
  height: calc(89em / 22);
}
.strip-land {
  position: absolute;
  inset: 0;
  transform-origin: 6%;
}
[data-arrive="pending"] .strip-land {
  opacity: 0;
}
[data-arrive="in"] .strip-land {
  animation: strip-land 0.72s var(--ease-out-strong) var(--strip-at) both;
}
@keyframes strip-land {
  0% { opacity: 0; transform: translate(-18px, -30px) rotate(-7deg) scale(1.05); }
  55% { opacity: 1; transform: translateY(3px) rotate(1.2deg) scale(1); }
  78% { transform: translateY(-1px) rotate(-0.4deg); }
  100% { opacity: 1; transform: none; }
}
.strip-shadow {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  overflow: visible;
}
[data-arrive="pending"] .strip-shadow {
  opacity: 0;
}
[data-arrive="in"] .strip-shadow {
  animation: fade-in 0.32s ease-out calc(var(--strip-at) + 0.38s) both;
}
.strip-face {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--fw) * 1em / 22);
  height: calc(76em / 22);
  cursor: pointer;
  user-select: none;
  transform-origin: 6%;
  transition: transform 0.26s var(--ease-out-strong);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .strip-face:hover {
    transform: translate(-2px, -6px) rotate(var(--lean, 0deg));
  }
}
.strip-flap-host {
  height: 100%;
  transform-origin: 6%;
}
.strip-flap-host.strip-flap {
  animation: strip-flap 0.64s var(--ease-out-gentle);
}
@keyframes strip-flap {
  0% { transform: rotate(0); }
  20% { transform: rotate(-5deg); }
  45% { transform: rotate(3deg); }
  70% { transform: rotate(-1.4deg); }
  100% { transform: rotate(0); }
}
.strip-flutter {
  position: relative;
  height: 100%;
  transform-origin: 6%;
  animation: strip-flutter var(--flutter-dur, 5s) ease-in-out infinite;
}
@keyframes strip-flutter {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(var(--flutter-rot, 1deg)); }
}
.strip-flutter > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.strip-text {
  position: absolute;
  top: 50%;
  display: flex;
  justify-content: center;
  translate: -50% -50%;
  color: var(--white);
  font-weight: 500;
  line-height: 1.5;
}
.help-burst {
  position: absolute;
  left: 50%;
  top: 18%;
  pointer-events: none;
}
.help-burst span {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 9999px;
  background: var(--help-fill);
  opacity: 0;
  animation: help-spark 0.64s var(--ease-out-strong) both;
}
.help-burst span:nth-child(2n) {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--yellow);
}
@keyframes help-spark {
  0% { opacity: 1; transform: rotate(var(--spark-angle)) translateX(6px) scale(1); }
  100% { opacity: 0; transform: rotate(var(--spark-angle)) translateX(var(--spark-far, 40px)) scale(0.3); }
}
.doodle-in {
  position: absolute;
  pointer-events: none;
}
[data-arrive="pending"] .doodle-in {
  opacity: 0;
}
[data-arrive="in"] .doodle-in {
  animation: doodle-drop 0.62s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--strip-at) + 0.52s) both;
}
@keyframes doodle-drop {
  0% { opacity: 0; transform: translateY(-26px) scale(0.7) rotate(-10deg); }
  100% { opacity: 1; transform: none; }
}
.doodle-poke-host,
.doodle-poke-host svg {
  display: block;
  width: 100%;
  height: 100%;
}
.doodle-books svg {
  transform-origin: 50% 100%;
  animation: books-wobble 5s ease-in-out 1.5s infinite;
}
@keyframes books-wobble {
  0%, 78%, 94%, 100% { transform: rotate(0); }
  82% { transform: rotate(-6deg); }
  86% { transform: rotate(4deg); }
  90% { transform: rotate(-2deg); }
}
.doodle-bulb svg {
  transform-origin: 40% 100%;
  animation: bulb-glow 2.8s ease-in-out infinite alternate;
}
@keyframes bulb-glow {
  0% { filter: drop-shadow(0 0 0 #fee45c00); transform: rotate(-3deg); }
  100% { filter: drop-shadow(0 0 10px #fee45ce6); transform: rotate(3deg); }
}
.doodle-books .doodle-poke {
  transform-origin: 50% 100%;
  animation: books-hop 0.6s var(--ease-out-gentle);
}
@keyframes books-hop {
  0% { transform: translateY(0); }
  35% { transform: translateY(-16px) rotate(-8deg); }
  65% { transform: translateY(0) scale(1.08, 0.9); }
  100% { transform: none; }
}
.doodle-bulb .doodle-poke {
  transform-origin: 40% 100%;
  animation: bulb-flash 0.7s var(--ease-out-gentle);
}
@keyframes bulb-flash {
  0%, 100% { filter: none; transform: none; }
  30% { filter: brightness(1.25) drop-shadow(0 0 16px #fee45c); transform: scale(1.18); }
}

/* ── Built for the syllabus: pinned notes ───────────────────────────────── */
.syllabus {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  background: var(--peach);
}
.syllabus h2 {
  text-align: center;
  color: var(--gray-900);
}
.syllabus > p {
  margin-top: 16px;
  text-align: center;
  color: var(--gray-700);
}
@media (min-width: 640px) {
  .syllabus {
    padding-block: 80px;
  }
}
.pins {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin-top: 40px;
}
@media (min-width: 1024px) {
  .pins {
    gap: 45.6px;
  }
}
.pin-note {
  --note-w: 249.365px;
  position: relative;
  flex: none;
  width: 100%;
  max-width: var(--note-w);
  aspect-ratio: 249.365 / 140;
}
@media (min-width: 640px) {
  .pin-note {
    width: min(var(--note-w), calc(50% - 12px));
  }
}
.pin-swing {
  position: absolute;
  inset: 0;
  transform-origin: 52.13% 32.86%;
  animation: pin-swing var(--swing-dur, 5s) ease-in-out infinite;
  animation-delay: var(--swing-delay, 0s);
  will-change: transform;
}
@keyframes pin-swing {
  0%, 100% { rotate: var(--swing-rest, 0deg); }
  28% { rotate: calc(var(--swing-rest, 0deg) + var(--swing-angle, 1.5deg)); }
  54% { rotate: var(--swing-rest, 0deg); }
  78% { rotate: calc(var(--swing-rest, 0deg) - var(--swing-angle, 1.5deg) * 0.82); }
}
.pin-note__shadow {
  position: absolute;
  left: 1.688%;
  top: 20.794%;
  width: 98.325%;
  height: 79.198%;
  background: #40140826;
  filter: blur(3px);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 84% 100%, 0 100%);
  transform: skewX(-3deg) translate(3px, 3px);
}
.pin-note__paper {
  position: absolute;
  left: 0.016%;
  top: 18.929%;
  width: 97.249%;
  height: 75.414%;
  background: var(--tone);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 85% 100%, 0 100%);
}
.pin-note__curl {
  position: absolute;
  left: 79.702%;
  top: 34.764%;
  width: 17.391%;
  height: 59.581%;
  background: linear-gradient(135deg, var(--tone-curl) 0%, #fff 130%);
  clip-path: polygon(20% 100%, 100% 52%, 62% 46%);
  filter: drop-shadow(-2px 2px 2px #0003);
}
.pin-note__label {
  position: absolute;
  left: 0;
  top: calc(48.6% + 15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 85.42%;
  padding-inline: 8px;
  translate: 0 -50%;
  text-align: center;
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}
.pin-note__label small {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.pin-note__pin {
  position: absolute;
  left: 38.016%;
  top: 0;
  width: 15.017%;
  height: 33.114%;
  overflow: visible;
  filter: drop-shadow(3px 4px 2px #00000033);
}

/* ── Learning moments ───────────────────────────────────────────────────── */
.moments {
  gap: 28px;
}
.moments__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.moment {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
}
@media (max-width: 1023.98px) {
  .moment > .art {
    order: -1;
  }
}
.moment__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}
.moment__copy-in {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 480px;
}
.moment__copy-in > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.moment__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gray-900);
}
@media (min-width: 640px) {
  .moment__title {
    white-space: pre-line;
  }
}
@media (min-width: 1024px) {
  .moment {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .moment--flip {
    flex-direction: row-reverse;
  }
  .moment__copy {
    padding-inline: 40px;
  }
}
.art__ribbons {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.art--textured {
  background: radial-gradient(120% 120% at 20% 0%, #ff7a2b 0%, var(--orange-300) 55%, #f25800 100%);
}
.demo-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--u) * 30);
  height: calc(var(--u) * 34);
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.22));
  transition: translate 0.52s var(--ease-out-strong), scale 0.15s var(--ease-out-strong), opacity 0.24s linear;
  pointer-events: none;
}

/* moment 1 — white "screen" with a step-by-step answer */
.m-screen {
  position: absolute;
  left: calc(var(--u) * 112);
  top: calc(var(--u) * 112);
  right: 0;
  bottom: 0;
  overflow: hidden;
  border-top-left-radius: calc(var(--u) * 26);
  background: var(--white);
}
.m-screen__in {
  display: flex;
  flex-direction: column;
  padding: calc(var(--u) * 23) calc(var(--u) * 36) calc(var(--u) * 24) calc(var(--u) * 28);
  transition: transform 0.7s var(--ease-out-strong);
}
.m-photo {
  display: block;
  align-self: flex-end;
  flex: none;
  width: calc(var(--u) * 240);
  height: calc(var(--u) * 180);
  overflow: hidden;
  border: calc(var(--u) * 1) solid var(--gray-150);
  border-radius: calc(var(--u) * 16);
  box-shadow: 0 calc(var(--u) * 2) calc(var(--u) * 8) rgb(0 0 0 / 0.08);
  transform-origin: 100% 100%;
  transition: opacity 0.5s var(--ease-out-strong), transform 0.5s var(--ease-out-strong);
}
.m-photo svg {
  width: 100%;
  height: 100%;
}
.art[data-phase="reset"] .m-photo {
  opacity: 0;
  transform: translateY(calc(var(--u) * 10)) scale(0.96);
}
.m-lines {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 4);
  margin-top: calc(var(--u) * 28);
}
.m-line {
  font-size: calc(var(--u) * 15);
  line-height: calc(var(--u) * 22);
  color: var(--gray-900);
  transition: opacity 0.5s var(--ease-out-strong), transform 0.5s var(--ease-out-strong);
}
.art.is-live .m-line:not(.is-on) {
  opacity: 0;
  transform: translateY(calc(var(--u) * 8));
}
.m-line--step {
  margin-top: calc(var(--u) * 8);
  font-weight: 600;
}
.m-line--text {
  font-size: calc(var(--u) * 14);
  line-height: calc(var(--u) * 21);
  color: var(--gray-700);
}
.m-line--sum {
  padding-left: calc(var(--u) * 14);
  font-weight: 500;
}
.m-line--result {
  margin-top: calc(var(--u) * 10);
  font-size: calc(var(--u) * 22);
  line-height: calc(var(--u) * 30);
}
.m-line--result strong {
  font-weight: 600;
}

/* moment 2 — a paper question being marked */
.m-paper {
  position: absolute;
  left: calc(var(--u) * 92);
  top: calc(var(--u) * 34);
  width: calc(var(--u) * 372);
  padding: calc(var(--u) * 16) calc(var(--u) * 18) calc(var(--u) * 18);
  border-radius: calc(var(--u) * 20);
  background: var(--white);
  box-shadow: 0 calc(var(--u) * 6) 0 var(--ui-edge);
  color: var(--ui-ink);
  opacity: 0;
  translate: 0 calc(var(--u) * 14);
  transition: opacity 0.5s var(--ease-out-strong), translate 0.5s var(--ease-out-strong);
}
.art.s1 .m-paper {
  opacity: 1;
  translate: 0 0;
}
.m-paper__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: calc(var(--u) * 11.5);
  font-weight: 600;
  color: var(--ui-ink-soft);
}
.m-paper__bar b {
  padding: calc(var(--u) * 2) calc(var(--u) * 9);
  border-radius: 9999px;
  background: var(--orange-100);
  color: var(--orange-400);
  font-weight: 600;
}
.m-paper__prog {
  height: calc(var(--u) * 5);
  margin-top: calc(var(--u) * 8);
  border-radius: 9999px;
  background: var(--gray-100);
  overflow: hidden;
}
.m-paper__prog span {
  display: block;
  width: 57.5%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange-300);
  transition: width 0.6s var(--ease-out-strong);
}
.art.s4 .m-paper__prog span {
  width: 60%;
}
.m-paper__n {
  margin-top: calc(var(--u) * 12);
  font-size: calc(var(--u) * 11);
  font-weight: 600;
  color: var(--orange-400);
}
.m-paper__q {
  margin-top: calc(var(--u) * 3);
  font-size: calc(var(--u) * 15);
  font-weight: 600;
  line-height: calc(var(--u) * 21);
}
.m-paper ol {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 9);
  margin-top: calc(var(--u) * 12);
}
.m-paper li {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  height: calc(var(--u) * 36);
  padding: 0 calc(var(--u) * 8) 0 calc(var(--u) * 12);
  border-radius: calc(var(--u) * 14);
  border: calc(var(--u) * 1.5) solid var(--ui-edge);
  border-bottom-width: calc(var(--u) * 4);
  font-size: calc(var(--u) * 13);
  transition: background-color 0.2s, border-color 0.2s, scale 0.15s;
}
.m-paper li i {
  font-style: normal;
  font-weight: 600;
  color: var(--gray-500);
}
.m-paper li .ui-tick {
  width: calc(var(--u) * 22);
  height: calc(var(--u) * 22);
  margin-left: auto;
  scale: 0;
  transition: scale 0.42s var(--ease-pop);
}
.m-paper li .ui-tick svg {
  width: 60%;
  height: 60%;
}
.art[data-step="3"] .m-paper li.is-key {
  scale: 0.97;
}
.art.s4 .m-paper li.is-key {
  border-color: var(--success);
  border-bottom-color: var(--success-deep);
  background: var(--success-bg);
}
.art.s4 .m-paper li.is-key .ui-tick {
  scale: 1;
}
.m-paper__why {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  font-size: calc(var(--u) * 12);
  line-height: calc(var(--u) * 18);
  color: var(--ui-ink);
  transition: max-height 0.5s var(--ease-out-strong), opacity 0.4s, margin-top 0.5s var(--ease-out-strong);
}
.m-paper__why b {
  font-weight: 600;
  color: var(--success-deep);
}
.art.s6 .m-paper__why {
  max-height: calc(var(--u) * 60);
  margin-top: calc(var(--u) * 12);
  opacity: 1;
}
.m-toast {
  position: absolute;
  right: calc(var(--u) * 16);
  top: calc(var(--u) * 6);
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  padding: calc(var(--u) * 8) calc(var(--u) * 14) calc(var(--u) * 8) calc(var(--u) * 9);
  border-radius: calc(var(--u) * 16);
  border: 1.5px solid var(--success);
  background: var(--success-bg);
  box-shadow: 0 calc(var(--u) * 4) 0 var(--success-deep);
  font-size: calc(var(--u) * 13);
  color: var(--gray-900);
  rotate: 5deg;
  opacity: 0;
  scale: 0.8;
  translate: 0 calc(var(--u) * 8);
  transition: opacity var(--dur-pop) var(--ease-pop), scale var(--dur-pop) var(--ease-pop), translate var(--dur-pop) var(--ease-pop);
}
.m-toast .ui-tick {
  width: calc(var(--u) * 22);
  height: calc(var(--u) * 22);
}
.m-toast .ui-tick svg {
  width: 60%;
  height: 60%;
}
.art.s5 .m-toast {
  opacity: 1;
  scale: 1;
  translate: 0 0;
}
.m-toast--b {
  top: auto;
  bottom: calc(var(--u) * 30);
  right: calc(var(--u) * 40);
  rotate: -4deg;
}

/* shared flip deck (moment 3 + step 2) */
.flash-deck {
  position: absolute;
  left: calc(var(--u) * 110);
  top: calc(var(--u) * 50);
  width: calc(var(--u) * 336);
  height: calc(var(--u) * 310);
  perspective: calc(var(--u) * 1000);
  opacity: 0;
}
.flash-deck.is-in {
  opacity: 1;
  animation: pop-in 0.42s cubic-bezier(0.22, 1.8, 0.64, 1) both;
}
.flash-turn {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.flash-deck[data-face="back"] .flash-turn {
  transform: rotateY(180deg);
}
.flash-deck[data-turn="to-back"] .flash-turn {
  animation: flash-to-back 0.25s ease-out forwards;
}
@keyframes flash-to-back {
  from { transform: rotateY(0); }
  to { transform: rotateY(180deg); }
}
.flash-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: calc(var(--u) * 20) calc(var(--u) * 22) calc(var(--u) * 16);
  border-radius: calc(var(--u) * 20);
  background: var(--white);
  box-shadow: 0 calc(var(--u) * 6) 0 var(--ui-edge);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  color: var(--ui-ink);
}
.flash-face[data-side="back"] {
  transform: rotateY(180deg);
}
.flash-tag {
  align-self: center;
  padding: calc(var(--u) * 4) calc(var(--u) * 12);
  border-radius: 9999px;
  background: var(--orange-100);
  color: var(--orange-400);
  font-size: calc(var(--u) * 12);
  font-weight: 600;
}
.flash-q {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 0 calc(var(--u) * 10);
  text-align: center;
  font-size: calc(var(--u) * 22);
  font-weight: 600;
  line-height: calc(var(--u) * 30);
}
.flash-q--lg {
  font-size: calc(var(--u) * 24);
  line-height: calc(var(--u) * 32);
}
.flash-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 4);
  height: calc(var(--u) * 34);
  margin-bottom: calc(var(--u) * 18);
}
.flash-wave span {
  display: block;
  width: calc(var(--u) * 4);
  border-radius: 9999px;
  background: var(--orange-300);
  animation: voice-bar ease-in-out infinite alternate;
}
.flash-foot {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--u) * 34);
}
.flash-key {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: 9999px;
  border: calc(var(--u) * 1.5) solid var(--ui-edge);
  background: var(--white);
  box-shadow: 0 calc(var(--u) * 3) 0 var(--ui-edge);
  font-size: calc(var(--u) * 12);
  font-weight: 500;
  transition: translate 0.15s var(--ease-out-strong), box-shadow 0.15s var(--ease-out-strong);
}
.flash-key--icon {
  width: calc(var(--u) * 38);
}
.flash-key--icon svg {
  width: calc(var(--u) * 16);
  height: calc(var(--u) * 16);
}
.flash-key--main {
  width: calc(var(--u) * 162);
}
.flash-deck.is-pressed [data-side="front"] .flash-key--main {
  translate: 0 calc(var(--u) * 3);
  box-shadow: none;
}
.flash-quote {
  position: absolute;
  width: calc(var(--u) * 28);
  height: calc(var(--u) * 18);
  color: var(--blue);
}
.flash-score {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.flash-score__cap {
  font-size: calc(var(--u) * 13);
  font-weight: 600;
  color: var(--ui-ink-soft);
}
.flash-score__num {
  font-size: calc(var(--u) * 46);
  font-weight: 700;
  line-height: 1.15;
}
.flash-score__num i {
  font-style: normal;
  font-size: 0.5em;
  font-weight: 600;
  color: var(--gray-500);
}
.flash-score ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--u) * 6) calc(var(--u) * 10);
  width: 100%;
  margin-top: calc(var(--u) * 12);
}
.flash-score li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--u) * 7) calc(var(--u) * 12);
  border-radius: calc(var(--u) * 12);
  background: var(--gray-50);
  font-size: calc(var(--u) * 12.5);
  color: var(--ui-ink-soft);
}
.flash-score li b {
  font-size: calc(var(--u) * 15);
  color: var(--ui-ink);
}
.flash-ans {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 10);
  padding: calc(var(--u) * 28) calc(var(--u) * 14) calc(var(--u) * 20);
  text-align: center;
}
.flash-ans__name {
  font-size: calc(var(--u) * 24);
  font-weight: 600;
  line-height: calc(var(--u) * 30);
}
.flash-ans__body {
  font-size: calc(var(--u) * 15);
  font-weight: 500;
  line-height: calc(var(--u) * 23);
}

/* moment 4 — topic list document */
.m-doc {
  position: absolute;
  left: calc(var(--u) * 56);
  top: calc(var(--u) * 40);
  right: 0;
  bottom: 0;
}
.m-doc__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 12);
  width: calc(var(--u) * 430);
  height: calc(var(--u) * 52);
  padding: 0 calc(var(--u) * 20);
  border-radius: calc(var(--u) * 20);
  background: var(--white);
  box-shadow: 0 calc(var(--u) * 5) 0 var(--ui-edge), 0 calc(var(--u) * 12) calc(var(--u) * 24) #40140826;
  font-size: calc(var(--u) * 14);
  color: var(--ui-ink);
  opacity: 0;
  translate: 0 calc(var(--u) * -10);
  transition: opacity 0.5s var(--ease-out-strong), translate 0.5s var(--ease-out-strong);
}
.m-doc.is-on .m-doc__bar {
  opacity: 1;
  translate: 0 0;
}
.m-doc__bar svg {
  flex: none;
  width: calc(var(--u) * 18);
  height: calc(var(--u) * 18);
}
.m-doc__bar span {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 4);
  white-space: nowrap;
}
.m-doc__bar span svg {
  width: calc(var(--u) * 12);
  height: calc(var(--u) * 12);
}
.m-doc__bar i {
  flex: none;
  width: 1px;
  height: calc(var(--u) * 20);
  background: #bfbfbf;
}
.m-doc__bar b {
  margin-left: auto;
  padding: calc(var(--u) * 3) calc(var(--u) * 10);
  border-radius: 9999px;
  background: var(--orange-100);
  color: var(--orange-400);
  font-size: calc(var(--u) * 12);
  font-weight: 600;
  white-space: nowrap;
}
.m-doc__page {
  position: absolute;
  left: calc(var(--u) * 40);
  top: calc(var(--u) * 26);
  right: 0;
  bottom: 0;
  padding: calc(var(--u) * 52) calc(var(--u) * 36) 0 calc(var(--u) * 32);
  border-top-left-radius: calc(var(--u) * 20);
  background: var(--white);
  color: var(--ui-ink);
  opacity: 0;
  translate: 0 calc(var(--u) * 40);
  transition: opacity 0.6s var(--ease-out-strong), translate 0.6s var(--ease-out-strong);
}
.m-doc.is-on .m-doc__page {
  opacity: 1;
  translate: 0 0;
}
.m-doc__page h4 {
  font-size: calc(var(--u) * 22);
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-900);
}
.m-doc__sub {
  margin-top: calc(var(--u) * 4);
  padding-bottom: calc(var(--u) * 14);
  border-bottom: 1px solid var(--ui-edge);
  font-size: calc(var(--u) * 13);
  color: var(--ui-ink-soft);
}
.m-doc__page ul {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 12);
  margin-top: calc(var(--u) * 16);
}
.m-doc__page li {
  column-gap: calc(var(--u) * 10);
  padding-bottom: calc(var(--u) * 9);
  font-size: calc(var(--u) * 13.5);
  line-height: calc(var(--u) * 19);
  opacity: 0;
  translate: calc(var(--u) * -10) 0;
  transition: opacity 0.45s var(--ease-out-strong), translate 0.45s var(--ease-out-strong);
}
.m-doc__page li.is-on {
  opacity: 1;
  translate: 0 0;
}
.m-doc__page li i {
  height: calc(var(--u) * 4);
}

/* moment 5 — mistakes list */
.m-miss {
  position: absolute;
  left: calc(var(--u) * 92);
  top: calc(var(--u) * 40);
  width: calc(var(--u) * 372);
  opacity: 0;
  translate: 0 calc(var(--u) * 14);
  transition: opacity 0.5s var(--ease-out-strong), translate 0.5s var(--ease-out-strong);
}
.art.s1 .m-miss {
  opacity: 1;
  translate: 0 0;
}
.m-miss__head {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  margin-bottom: calc(var(--u) * 12);
  color: var(--white);
  font-size: calc(var(--u) * 20);
  font-weight: 600;
}
.m-miss__count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: calc(var(--u) * 28);
  height: calc(var(--u) * 28);
  padding: 0 calc(var(--u) * 8);
  border-radius: 9999px;
  background: var(--white);
  color: var(--orange-400);
  font-size: calc(var(--u) * 15);
  font-weight: 700;
}
.m-miss__count.is-bump {
  animation: m-bump 0.45s var(--ease-pop);
}
@keyframes m-bump {
  40% { scale: 1.35; }
}
.m-miss ul {
  position: relative;
  display: flex;
  flex-direction: column;
}
.m-miss__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: calc(var(--u) * 12);
  height: calc(var(--u) * 82);
  margin-bottom: calc(var(--u) * 12);
  padding: 0 calc(var(--u) * 16);
  border-radius: calc(var(--u) * 18);
  background: var(--white);
  border-bottom: calc(var(--u) * 5) solid var(--ui-edge);
  color: var(--ui-ink);
  transition: height 0.5s var(--ease-out-strong), margin 0.5s var(--ease-out-strong), opacity 0.35s,
    translate 0.5s var(--ease-out-strong), background-color 0.2s, border-color 0.2s, scale 0.15s;
}
.m-miss__sub {
  grid-column: 1;
  align-self: end;
  font-size: calc(var(--u) * 11);
  font-weight: 600;
  color: var(--orange-400);
}
.m-miss__item p {
  grid-column: 1;
  align-self: start;
  font-size: calc(var(--u) * 14);
  font-weight: 600;
  line-height: calc(var(--u) * 20);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-miss__btn,
.m-miss__item .ui-tick {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.m-miss__btn {
  padding: calc(var(--u) * 6) calc(var(--u) * 14);
  border-radius: 9999px;
  border: calc(var(--u) * 1.5) solid var(--ui-edge);
  border-bottom-width: calc(var(--u) * 3.5);
  font-size: calc(var(--u) * 12);
  font-weight: 600;
  transition: scale 0.15s;
}
.m-miss__item .ui-tick {
  position: absolute;
  right: calc(var(--u) * 20);
  top: 50%;
  width: calc(var(--u) * 28);
  height: calc(var(--u) * 28);
  translate: 0 -50%;
  scale: 0;
  transition: scale 0.42s var(--ease-pop);
}
.m-miss__item .ui-tick svg {
  width: 60%;
  height: 60%;
}
.art[data-step="3"] .m-miss__item.is-key .m-miss__btn {
  scale: 0.92;
}
.art.s4 .m-miss__item.is-key {
  background: var(--success-bg);
  border-color: var(--success-deep);
}
.art.s4 .m-miss__item.is-key .m-miss__btn {
  opacity: 0;
}
.art.s4 .m-miss__item.is-key .ui-tick {
  scale: 1;
}
.art.s5 .m-miss__item.is-key {
  height: 0;
  margin-bottom: 0;
  border-bottom-width: 0;
  opacity: 0;
  translate: calc(var(--u) * 80) 0;
  overflow: hidden;
}
.art.s6 .m-toast--b {
  opacity: 1;
  scale: 1;
  translate: 0 0;
}

/* ── Three steps ────────────────────────────────────────────────────────── */
.steps3 {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 48px 16px;
  overflow: hidden;
}
.steps3__star {
  position: absolute;
  z-index: -1;
  height: auto;
  aspect-ratio: 1;
  pointer-events: none;
}
.steps3__star--face { left: -40px; top: -40px; width: 96px; rotate: -12deg; }
.s-a { right: 10%; top: 24px; width: 28px; }
.s-b { right: 4%; top: 80px; width: 20px; rotate: 12deg; display: none; }
.s-c { left: 16%; top: 32px; width: 20px; rotate: -12deg; display: none; }
.s-d { left: 12px; top: 46%; width: 24px; rotate: 12deg; display: none; }
.s-e { right: 12px; top: 58%; width: 24px; rotate: -6deg; display: none; }
.s-f { left: 8%; bottom: 20px; width: 24px; }
.s-g { left: 46%; bottom: 24px; width: 20px; rotate: 6deg; display: none; }
.steps3__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.steps3__head h2 {
  max-width: 760px;
  text-wrap: balance;
  color: var(--gray-900);
}
.steps3__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  color: var(--gray-700);
}
.steps3__flow i {
  margin-right: 8px;
  font-style: normal;
  color: var(--orange-400);
}
.steps3__list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 40px;
  width: 100%;
}
.steps3__list > li {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
}
.steps3__demo-wrap {
  width: 100%;
}
.steps3__demo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 260px;
  padding: 20px;
  overflow: hidden;
  border-radius: var(--radius-card);
}
.steps3__txt {
  display: flex;
  gap: 14px;
  padding-inline: 4px;
}
.steps3__txt > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.steps3__txt h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.375;
  color: var(--gray-900);
}
.steps3__txt p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-700);
}
@media (min-width: 640px) {
  .steps3 {
    gap: 40px;
    padding: 64px 32px;
  }
  .steps3__star--face { left: -32px; top: -32px; width: 128px; }
  .s-a { top: 32px; }
  .s-b, .s-g { display: block; }
  .s-f { width: 28px; }
  .steps3__list { gap: 48px; }
  .steps3__demo { padding: 24px; }
  .steps3__flow span { white-space: nowrap; }
}
@media (min-width: 768px) {
  .s-c { display: block; }
  .steps3__list { gap: 40px; }
}
@media (min-width: 768px) and (max-width: 1279.98px) {
  .steps3__list > li {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  .steps3__demo-wrap {
    flex: none;
    width: 50%;
  }
}
@media (min-width: 1024px) {
  .steps3 { padding-inline: 40px; }
  .steps3__star--face { width: 144px; }
  .s-a { width: 36px; }
  .s-b { top: 96px; }
  .s-c { top: 40px; }
  .s-d, .s-e { display: block; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .steps3__list > li { gap: 32px; }
  .steps3__demo-wrap { width: 55%; }
}
@media (min-width: 1280px) {
  .steps3__list {
    flex-direction: row;
    gap: 32px;
  }
}
/* step 1 demo */
.s-create {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
}
.s-create__prompt {
  align-self: flex-end;
  max-width: 220px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 18px;
  background: var(--white);
  font-size: 13px;
  line-height: 20px;
  color: var(--gray-900);
  opacity: 0;
  transition: opacity 0.3s;
}
.s-create__prompt span {
  opacity: 0;
  transition: opacity 75ms;
}
.s-create.b1 .s-create__prompt,
.s-create.b1 .s-create__prompt span {
  opacity: 1;
}
.s-create__status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.s-create.b2 .s-create__status,
.s-create.b3 .s-create__card-wrap {
  opacity: 1;
  transform: none;
}
.s-create__done {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: var(--orange-400);
  color: var(--white);
}
.s-create__done svg {
  width: 12px;
  height: 12px;
}
.s-create__msg {
  font-size: 12px;
  font-weight: 500;
}
.s-create.b7 .spinner {
  display: none;
}
.s-create.b7 .s-create__done {
  display: flex;
}
.s-create.b7 .s-create__msg {
  animation: none;
  background: none;
  color: var(--orange-400);
}
.s-create__card-wrap {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.s-create__card {
  padding: 10px 14px;
  transition: box-shadow 0.5s;
}
.s-create.b7 .s-create__card {
  box-shadow: 0 0 0 2px var(--orange-200), 0 6px 18px -6px var(--orange-300);
}
.s-create__card > p {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
}
.s-create__card > p svg {
  width: 14px;
  height: 14px;
  color: var(--orange-300);
}
.s-create__card ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.s-create__card li {
  position: relative;
  display: flex;
  align-items: center;
  height: 18px;
}
.s-create__card .shimmer-bar {
  position: absolute;
  inset: 5px auto 5px 0;
  border-radius: 9999px;
  transition: opacity 0.3s;
}
.s-create__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-700);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s, transform 0.3s;
}
.s-create__row i {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--orange-300);
}
.s-create.b4 li:nth-child(1) .shimmer-bar,
.s-create.b5 li:nth-child(2) .shimmer-bar,
.s-create.b6 li:nth-child(3) .shimmer-bar {
  opacity: 0;
}
.s-create.b4 li:nth-child(1) .s-create__row,
.s-create.b5 li:nth-child(2) .s-create__row,
.s-create.b6 li:nth-child(3) .s-create__row {
  opacity: 1;
  transform: none;
}
.s-create__prog {
  display: block;
  height: 4px;
  margin-top: 10px;
  border-radius: 9999px;
  background: var(--gray-100);
  overflow: hidden;
}
.s-create__prog span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--orange-300);
  transition: width 0.5s ease-out;
}
/* step 2 demo */
.steps3__deck {
  position: absolute;
  left: 50%;
  top: 50.55%;
  height: 115%;
  aspect-ratio: 556 / 420;
  translate: -50% -50%;
  container-type: inline-size;
  --u: calc(100cqw / 556);
}
/* step 3 demo */
.s-score {
  flex: none;
  width: 292px;
  scale: 0.9;
}
@media (min-width: 640px) {
  .s-score {
    scale: 1;
  }
}
.s-score__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.s-score__list {
  height: 100%;
  padding-bottom: 14px;
}

/* ── Answers: scatter field ─────────────────────────────────────────────── */
.answers {
  position: relative;
  padding: 48px 24px;
}
.answers__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.answers__head h2 {
  color: var(--gray-900);
}
.answers__head p {
  color: var(--gray-700);
}
.answers__brace {
  display: none;
  position: absolute;
  max-width: none;
  color: var(--orange-400);
  pointer-events: none;
  overflow: visible;
}
.badge-field {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.badge-scatter {
  --rot: 0deg;
  --cx: 0px;
  --cy: 0px;
}
@media (max-width: 1023.98px) {
  .badge-scatter {
    --rot: calc(var(--tilt, 0deg) * 0.6);
  }
  .badge-field > :nth-child(odd) {
    --cx: -10px;
  }
  .badge-field > :nth-child(2n) {
    --cx: 10px;
  }
}
@media (min-width: 1280px) {
  .answers {
    height: 550px;
    padding: 0;
  }
  .answers__head {
    position: absolute;
    left: 50%;
    top: 60px;
    translate: -50% 0;
  }
  .answers__brace {
    display: block;
  }
  .answers__brace--l {
    left: 186px;
    top: 238px;
    width: 68px;
    height: 222px;
    rotate: -8deg;
  }
  .answers__brace--r {
    left: 955px;
    top: 228px;
    width: 58px;
    height: 229px;
    rotate: 4deg;
    scale: -1 1;
  }
  .badge-field {
    display: block;
    margin-top: 0;
  }
  .badge-scatter {
    position: absolute;
    left: var(--x);
    top: var(--y);
    --rot: var(--tilt, 0deg);
    --cx: -50%;
    --cy: -50%;
  }
  .badge-scatter span {
    white-space: nowrap;
  }
}

/* ── v2 AI Tutor demo: chat window + KSSM syllabus match ────────────────── */
.tt {
  position: absolute;
  left: calc(var(--u) * 36);
  right: calc(var(--u) * 36);
  top: calc(var(--u) * 30);
  bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: calc(var(--u) * 22) calc(var(--u) * 22) 0 0;
  background: var(--white);
  box-shadow: 0 calc(var(--u) * 12) calc(var(--u) * 30) #40140833;
}
.tt__av {
  position: relative;
  display: block;
  flex: none;
  width: calc(var(--u) * 36);
  height: calc(var(--u) * 36);
  overflow: hidden;
  border-radius: 9999px;
  background: #e7f8ff;
  box-shadow: 0 0 0 calc(var(--u) * 2) var(--white), 0 0 0 calc(var(--u) * 3.5) var(--orange-200);
}
.tt__av img {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 180%;
  max-width: none;
  height: auto;
  translate: -50% -50%;
  transition: opacity 0.35s var(--ease-out-strong);
}
.tt__body {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.tt__col {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 10);
  padding: calc(var(--u) * 20) calc(var(--u) * 18) calc(var(--u) * 20);
  transition: transform 0.6s var(--ease-out-strong);
}
.tt__me {
  display: block;
  align-self: flex-end;
  width: calc(var(--u) * 220);
  height: calc(var(--u) * 152);
  overflow: hidden;
  border: 1px solid var(--gray-150);
  border-radius: calc(var(--u) * 14);
}
.tt__me svg {
  display: block;
  width: 100%;
  height: 100%;
}
.tt__bubble {
  align-self: flex-end;
  padding: calc(var(--u) * 9) calc(var(--u) * 14);
  border-radius: calc(var(--u) * 16) calc(var(--u) * 16) calc(var(--u) * 4) calc(var(--u) * 16);
  background: var(--orange-300);
  color: var(--white);
  font-size: calc(var(--u) * 13.5);
  line-height: 1.4;
}
.tt__ai {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--u) * 10);
  margin-top: calc(var(--u) * 4);
}
.tt__avwrap {
  position: relative;
  flex: none;
}
.tt__face--happy {
  opacity: 0;
}
.tt.is-happy .tt__face--happy {
  opacity: 1;
}
.tt.is-happy .tt__face--think {
  opacity: 0;
}
.tt__stack {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: calc(var(--u) * 8);
  min-width: 0;
}
.tt__card {
  padding: calc(var(--u) * 11) calc(var(--u) * 13);
  border: 1px solid var(--gray-150);
  border-radius: calc(var(--u) * 4) calc(var(--u) * 16) calc(var(--u) * 16) calc(var(--u) * 16);
  background: var(--gray-50);
}
.tt__card.tt__sync {
  padding: calc(var(--u) * 8) 0 calc(var(--u) * 2);
  border: 0;
  border-radius: 0;
  background: none;
}
.tt__status {
  display: grid;
}
.tt__status > * {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 7);
  font-size: calc(var(--u) * 12.5);
  font-weight: 600;
  white-space: nowrap;
}
.tt .spinner {
  width: calc(var(--u) * 14);
  height: calc(var(--u) * 14);
}
.tt__verified {
  color: var(--success-deep);
}
.tt__shield {
  flex: none;
  width: calc(var(--u) * 18);
  height: calc(var(--u) * 18);
}
.tt__tick {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.45s var(--ease-out-strong) 0.15s;
}
.tt__verified.is-on .tt__tick {
  stroke-dashoffset: 0;
}
.tt__verified.is-on .tt__shield {
  animation: tt-stamp 0.5s var(--ease-pop);
}
@keyframes tt-stamp {
  from { transform: scale(0.4) rotate(-20deg); }
}
.tt__chips {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--u) * 6);
  margin-top: calc(var(--u) * 9);
}
.tt__chip {
  padding: calc(var(--u) * 4) calc(var(--u) * 10);
  border-radius: 9999px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: calc(var(--u) * 11.5);
  font-weight: 500;
  white-space: nowrap;
}
.tt__answer {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 6);
  background: var(--white);
  font-size: calc(var(--u) * 13);
  line-height: 1.45;
  color: var(--gray-900);
}
.tt__answer b {
  margin-right: calc(var(--u) * 6);
  font-weight: 600;
  color: var(--orange-400);
}
.tt__result {
  margin-top: calc(var(--u) * 2);
  padding: calc(var(--u) * 7) calc(var(--u) * 8) calc(var(--u) * 7) calc(var(--u) * 12);
  font-size: calc(var(--u) * 14);
  font-weight: 600;
}
.tt__result .ui-tick {
  width: calc(var(--u) * 22);
  height: calc(var(--u) * 22);
}
.tt__result .ui-tick svg {
  width: 60%;
  height: 60%;
}
@media (prefers-reduced-motion: reduce) {
  .tt__verified.is-on .tt__shield {
    animation: none;
  }
}

/* ── v2 Past Papers demo: 3-question streak quiz (m-quiz) ─────────────────
   White "phone screen" bleeding off the bottom of the orange art. Options and
   buttons are pseudo-3D (thick bottom edge that collapses when pressed).
   States come from home.js: data-q, .is-ans, data-press, .is-sheet, data-party */
.pq {
  position: absolute;
  left: calc(var(--u) * 92);
  top: calc(var(--u) * 50);
  width: calc(var(--u) * 372);
  bottom: 0;
  color: var(--ui-ink);
}
.pq__top {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  height: calc(var(--u) * 50);
  padding: 0 calc(var(--u) * 16);
}
.pq__x {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 24);
  height: calc(var(--u) * 24);
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
}
.pq__x svg {
  width: 60%;
  height: 60%;
}
.pq__prog {
  flex: 1;
  height: calc(var(--u) * 8);
  border-radius: 9999px;
  background: var(--gray-100);
  overflow: hidden;
}
.pq__prog i {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange-300);
  box-shadow: inset 0 calc(var(--u) * -2.5) 0 rgb(0 0 0 / 0.12);
  transition: width 0.6s var(--ease-out-strong);
}
.pq__timer {
  padding: calc(var(--u) * 2) calc(var(--u) * 9);
  border-radius: 9999px;
  background: var(--orange-100);
  color: var(--orange-400);
  font-size: calc(var(--u) * 11.5);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pq__stage {
  position: relative;
}
/* question change = hard slide to the left: old and new move together as one strip */
.pq__q {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  padding: 0 calc(var(--u) * 18);
  translate: 100% 0;
  transition: translate 0.34s cubic-bezier(0.25, 0.9, 0.3, 1);
}
.pq__q.is-cur {
  translate: 0 0;
}
.pq__q.is-past {
  translate: -100% 0;
}
.pq__q.is-snap {
  transition: none;
}
.pq__meta {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  font-size: calc(var(--u) * 10.5);
  font-weight: 500;
  color: var(--gray-500);
}
.pq__n {
  padding: calc(var(--u) * 2) calc(var(--u) * 7);
  border-radius: calc(var(--u) * 6);
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 600;
}
.pq__text {
  margin-top: calc(var(--u) * 8);
  font-size: calc(var(--u) * 14);
  font-weight: 600;
  line-height: calc(var(--u) * 20);
  color: var(--gray-900);
}
.pq__q ol {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 7);
  margin-top: calc(var(--u) * 12);
}
.pq__q li {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  height: calc(var(--u) * 34);
  padding: 0 calc(var(--u) * 8);
  border: calc(var(--u) * 1.5) solid var(--ui-edge);
  border-bottom-width: calc(var(--u) * 4);
  border-radius: calc(var(--u) * 12);
  background: var(--white);
  font-size: calc(var(--u) * 12);
  transition: background-color 0.2s, border-color 0.2s, opacity 0.3s, translate 0.12s, border-bottom-width 0.12s;
}
.pq__q li i {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 20);
  height: calc(var(--u) * 20);
  border: calc(var(--u) * 1.5) solid var(--gray-200);
  border-radius: 50%;
  font-size: calc(var(--u) * 10);
  font-style: normal;
  font-weight: 600;
  color: var(--gray-500);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.pq__q li span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pq__q li em {
  flex: none;
  padding: calc(var(--u) * 2) calc(var(--u) * 8);
  border-radius: 9999px;
  background: var(--success);
  color: var(--white);
  font-size: calc(var(--u) * 10);
  font-style: normal;
  font-weight: 600;
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.3s, scale var(--dur-pop) var(--ease-pop);
}
/* pressed: the thick bottom edge collapses */
.pq[data-press="opt"] .pq__q.is-cur li[data-key] {
  translate: 0 calc(var(--u) * 2.5);
  border-bottom-width: calc(var(--u) * 1.5);
}
.pq__q.is-ans li:not([data-key]) {
  opacity: 0.45;
}
.pq__q.is-ans li[data-key] {
  border-color: var(--success);
  border-bottom-color: var(--success-deep);
  background: var(--success-bg);
}
.pq__q.is-ans li[data-key] i {
  border-color: var(--success);
  background: var(--success);
  color: var(--white);
}
.pq__q.is-ans li[data-key] em {
  opacity: 1;
  scale: 1;
}
/* result sheet */
.pq__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 12);
  padding: calc(var(--u) * 14) calc(var(--u) * 16) calc(var(--u) * 18);
  border-top: calc(var(--u) * 1.5) solid #bfe8cd;
  background: #ecfbf1;
  translate: 0 105%;
}
/* slides up when answered; disappears at once when the question changes */
.pq.is-sheet .pq__sheet {
  translate: 0 0;
  transition: translate 0.45s var(--ease-out-strong);
}
.pq__res {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
}
.pq__res .ui-tick {
  width: calc(var(--u) * 28);
  height: calc(var(--u) * 28);
  box-shadow: 0 calc(var(--u) * 2.5) 0 var(--success-deep);
  scale: 0.4;
  transition: scale var(--dur-pop) var(--ease-pop) 0.12s;
}
.pq.is-sheet .pq__res .ui-tick {
  scale: 1;
}
.pq__res .ui-tick svg {
  width: 58%;
  height: 58%;
}
.pq__res > span:last-child {
  display: flex;
  flex-direction: column;
}
.pq__title {
  font-size: calc(var(--u) * 16);
  font-weight: 700;
  line-height: 1.2;
  color: var(--success-deep);
}
.pq__streak {
  font-size: calc(var(--u) * 11);
  color: var(--gray-600);
}
.pq__streak:empty {
  display: none;
}
.pq__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--u) * 38);
  border-radius: calc(var(--u) * 12);
  background: var(--success);
  box-shadow: 0 calc(var(--u) * 4) 0 var(--success-deep);
  color: var(--white);
  font-size: calc(var(--u) * 14);
  font-weight: 600;
  transition: translate 0.12s, box-shadow 0.12s;
}
.pq[data-press="btn"] .pq__btn {
  translate: 0 calc(var(--u) * 4);
  box-shadow: 0 0 0 var(--success-deep);
}
/* confetti pieces (spawned by home.js) */
.pq__bit {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--u) * 6);
  height: calc(var(--u) * 10);
  border-radius: calc(var(--u) * 1.5);
  pointer-events: none;
}
/* streak celebration — 4 frames swapped instantly, the box itself is moved by
   home.js (Web Animations) with its feet as the origin, same as the app */
.pq-party {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--u) * 50);
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}
.pq[data-party] .pq-party {
  visibility: visible;
}
.pq-party__box {
  position: absolute;
  left: 50%;
  bottom: calc(var(--u) * 30);
  width: 58%;
  aspect-ratio: 1;
  translate: -50% 0;
  transform: translateY(calc(var(--u) * 400));
  transform-origin: 50% 100%;
}
.pq-party__f {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.pq-party__f.is-on {
  opacity: 1;
}
.pq-party__word {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--u) * 28);
  text-align: center;
  font-size: calc(var(--u) * 34);
  font-weight: 700;
  color: #ec5f93;
  opacity: 0;
}

/* ── v2 Past Papers: 3-scene slider (Paper 1 / Paper 2 / Library) ──────────
   Scenes and library screens use the same hard left slide as the questions. */
.pq-tabs {
  position: absolute;
  top: calc(var(--u) * 11);
  left: 50%;
  z-index: 2;
  display: flex;
  gap: calc(var(--u) * 4);
  padding: calc(var(--u) * 4);
  border-radius: 9999px;
  background: rgb(64 20 8 / 0.18);
  translate: -50% 0;
}
.pq-tabs button {
  position: relative;
  overflow: hidden;
  height: calc(var(--u) * 26);
  padding: 0 calc(var(--u) * 14);
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: calc(var(--u) * 11.5);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.pq-tabs button:hover {
  background: rgb(255 255 255 / 0.14);
}
/* phones: the art shrinks to ~300px, so the tab bar keeps a real touch size
   and the box grows a little so the cards still sit below it */
@media (max-width: 599.98px) {
  .art:has(.pq-tabs) {
    box-sizing: content-box;
    aspect-ratio: 556 / 370;
    padding-top: 56px;
  }
  .pq-tabs {
    top: 8px;
    gap: 2px;
    padding: 3px;
  }
  .pq-tabs button {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
  }
  .art:has(.pq-tabs) .tg,
  .art:has(.pq-tabs) .pq {
    top: 56px;
  }
}
.pq-tabs button.is-on {
  background: var(--white);
  color: var(--orange-400);
}
.pq__scene,
.lib__screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  translate: 100% 0;
  transition: translate 0.34s cubic-bezier(0.25, 0.9, 0.3, 1);
}
/* each scene is its own white "phone"; switching tabs slides the whole card
   off the orange art and a new one in, so it reads as a different screen */
.pq__scene {
  border-radius: calc(var(--u) * 24) calc(var(--u) * 24) 0 0;
  background: var(--white);
  box-shadow: 0 calc(var(--u) * 10) calc(var(--u) * 30) rgb(64 20 8 / 0.18);
  translate: calc(100% + var(--u) * 110) 0;
  transition-duration: 0.5s;
}
.pq__scene.is-cur,
.lib__screen.is-cur {
  translate: 0 0;
}
.pq__scene.is-past {
  translate: calc(-100% - var(--u) * 110) 0;
}
.lib__screen.is-past {
  translate: -100% 0;
}
.pq__scene.is-snap,
.lib__screen.is-snap {
  transition: none;
}

/* scene 2 · Paper 2 answer marked by AI */
.p2 {
  padding: 0 calc(var(--u) * 18);
}
.p2__marks {
  font-size: calc(var(--u) * 11);
  font-weight: 500;
  color: var(--gray-500);
}
.p2__box {
  position: relative;
  height: calc(var(--u) * 122);
  margin-top: calc(var(--u) * 10);
  padding: calc(var(--u) * 10) calc(var(--u) * 12);
  border: calc(var(--u) * 1.5) solid var(--ui-edge);
  border-bottom-width: calc(var(--u) * 4);
  border-radius: calc(var(--u) * 12);
  font-size: calc(var(--u) * 12.5);
  line-height: calc(var(--u) * 18);
  transition: border-color 0.2s;
}
.p2s.is-focus .p2__box {
  border-color: var(--orange-200);
  border-bottom-color: var(--orange-300);
}
.p2__ph {
  position: absolute;
  left: calc(var(--u) * 12);
  top: calc(var(--u) * 10);
  color: var(--gray-400);
  transition: opacity 0.15s;
}
.p2s.is-focus .p2__ph {
  opacity: 0;
}
.p2__caret {
  display: inline-block;
  width: calc(var(--u) * 1.5);
  height: calc(var(--u) * 14);
  margin-left: 1px;
  vertical-align: calc(var(--u) * -2);
  background: var(--orange-300);
  opacity: 0;
}
.p2s.is-focus:not(.is-photo) .p2__caret {
  animation: p2-blink 1s steps(1) infinite;
}
@keyframes p2-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.p2__photo {
  position: absolute;
  left: calc(var(--u) * 12);
  bottom: calc(var(--u) * 10);
  width: calc(var(--u) * 150);
  height: calc(var(--u) * 58);
  overflow: hidden;
  border: calc(var(--u) * 1.5) solid var(--gray-150);
  border-radius: calc(var(--u) * 8);
  box-shadow: 0 calc(var(--u) * 3) calc(var(--u) * 8) rgb(0 0 0 / 0.1);
  opacity: 0;
  scale: 0.5;
  transform-origin: 0 100%;
  transition: opacity 0.2s, scale var(--dur-pop) var(--ease-pop);
}
.p2__photo svg {
  display: block;
  width: 100%;
  height: 100%;
}
.p2s.is-photo .p2__photo {
  opacity: 1;
  scale: 1;
}
.p2__actions {
  display: flex;
  gap: calc(var(--u) * 8);
  margin-top: calc(var(--u) * 12);
}
.p2__cam {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 46);
  height: calc(var(--u) * 38);
  border: calc(var(--u) * 1.5) solid var(--ui-edge);
  border-bottom-width: calc(var(--u) * 4);
  border-radius: calc(var(--u) * 12);
  color: var(--gray-700);
  transition: translate 0.12s, border-bottom-width 0.12s;
}
.p2__cam svg {
  width: calc(var(--u) * 20);
  height: calc(var(--u) * 20);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.p2s.is-press-cam .p2__cam {
  translate: 0 calc(var(--u) * 2.5);
  border-bottom-width: calc(var(--u) * 1.5);
}
.p2__submit {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: calc(var(--u) * 38);
  border-radius: calc(var(--u) * 12);
  background: var(--orange-300);
  box-shadow: 0 calc(var(--u) * 4) 0 var(--orange-400);
  color: var(--white);
  font-size: calc(var(--u) * 13.5);
  font-weight: 600;
  transition: translate 0.12s, box-shadow 0.12s;
}
.p2s.is-press-sub .p2__submit {
  translate: 0 calc(var(--u) * 4);
  box-shadow: 0 0 0 var(--orange-400);
}
.p2__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: calc(var(--u) * 16) calc(var(--u) * 16) calc(var(--u) * 18);
  border-top: calc(var(--u) * 1.5) solid var(--gray-150);
  border-radius: calc(var(--u) * 20) calc(var(--u) * 20) 0 0;
  background: var(--white);
  box-shadow: 0 calc(var(--u) * -8) calc(var(--u) * 24) rgb(0 0 0 / 0.08);
  translate: 0 105%;
}
.p2s.is-marking .p2__sheet {
  translate: 0 0;
  transition: translate 0.45s var(--ease-out-strong);
}
.p2__marking {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  font-size: calc(var(--u) * 12.5);
  font-weight: 600;
  color: var(--gray-600);
}
.p2__marking .spinner {
  width: calc(var(--u) * 15);
  height: calc(var(--u) * 15);
}
.p2s.is-result .p2__marking {
  display: none;
}
.p2__result {
  display: none;
  align-items: center;
  gap: calc(var(--u) * 12);
}
.p2s.is-result .p2__result {
  display: flex;
}
.p2__score {
  position: relative;
  flex: none;
  width: calc(var(--u) * 54);
  height: calc(var(--u) * 54);
}
.p2__score svg {
  width: 100%;
  height: 100%;
  rotate: -90deg;
  fill: none;
  stroke: var(--gray-100);
  stroke-width: 4;
}
.p2__score .p2__ring {
  stroke: var(--success);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.8s var(--ease-out-strong);
}
.p2s.is-result .p2__ring {
  stroke-dashoffset: 25;
}
.p2__score b {
  position: absolute;
  inset: 0;
  /* one line box as tall as the ring → number + "/max" sit dead centre on a shared baseline */
  display: block;
  font-size: calc(var(--u) * 19);
  font-weight: 700;
  line-height: calc(var(--u) * 54);
  text-align: center;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  font-variant-numeric: tabular-nums;
}
.es__result .p2__score b {
  font-size: calc(var(--u) * 21);
  line-height: calc(var(--u) * 64);
}
.p2__score small {
  font-size: calc(var(--u) * 10);
  color: var(--gray-500);
}
.p2__result > span:last-child {
  display: flex;
  flex-direction: column;
}
.p2__title {
  font-size: calc(var(--u) * 15);
  font-weight: 700;
  color: var(--gray-900);
}
.p2__result small {
  font-size: calc(var(--u) * 10.5);
  color: var(--gray-600);
}
.p2__rubric {
  display: none;
  flex-direction: column;
  gap: calc(var(--u) * 6);
  margin-top: calc(var(--u) * 12);
}
.p2s.is-result .p2__rubric {
  display: flex;
}
.p2__rubric li {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  font-size: calc(var(--u) * 11.5);
  line-height: calc(var(--u) * 16);
  opacity: 0;
  translate: 0 calc(var(--u) * 6);
  transition: opacity 0.3s, translate 0.4s var(--ease-out-strong);
}
.p2s.r1 .p2__rubric li:nth-child(1),
.p2s.r2 .p2__rubric li:nth-child(2),
.p2s.r3 .p2__rubric li:nth-child(3) {
  opacity: 1;
  translate: 0 0;
}
.p2__rubric .ui-tick {
  width: calc(var(--u) * 18);
  height: calc(var(--u) * 18);
}
.p2__rubric .ui-tick svg {
  width: 60%;
  height: 60%;
}
.p2__rubric li b {
  margin-left: auto;
  font-weight: 700;
  color: var(--success-deep);
}
.p2__tip {
  padding: calc(var(--u) * 6) calc(var(--u) * 8);
  border-radius: calc(var(--u) * 8);
  background: var(--orange-50);
  color: var(--orange-400);
}
.p2__bang {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 18);
  height: calc(var(--u) * 18);
  border-radius: 50%;
  background: var(--orange-300);
  color: var(--white);
  font-size: calc(var(--u) * 11);
  font-weight: 700;
}

/* scene 3 · paper library (grid of subjects → subject page, as in the app) */
.lib__screen {
  padding: calc(var(--u) * 14) calc(var(--u) * 14) 0;
}
.lib__head {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  height: calc(var(--u) * 30);
}
.lib__head b {
  font-size: calc(var(--u) * 14);
  font-weight: 700;
  color: var(--gray-900);
}
.lib__head > span {
  font-size: calc(var(--u) * 10.5);
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
}
.lib__search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 28);
  height: calc(var(--u) * 28);
  margin-left: auto;
  border-radius: 50%;
  background: var(--gray-100);
}
.lib__search svg,
.lib__back,
.lib__chev,
.lib__topic > svg,
.lib__dd svg {
  fill: none;
  stroke: var(--gray-700);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lib__search svg {
  width: 55%;
  height: 55%;
}
.lib__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--u) * 7);
  margin-top: calc(var(--u) * 8);
}
.lib__tile {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  min-width: 0;
  height: calc(var(--u) * 42);
  padding: 0 calc(var(--u) * 8);
  border: calc(var(--u) * 1.5) solid var(--ui-edge);
  border-bottom-width: calc(var(--u) * 4);
  border-radius: calc(var(--u) * 12);
  background: var(--white);
  opacity: 0;
  scale: 0.85;
  transition: opacity 0.25s, scale var(--dur-pop) var(--ease-pop), translate 0.12s, border-bottom-width 0.12s;
}
.lib__tile.is-on {
  opacity: 1;
  scale: 1;
}
.lib__tile.is-press {
  translate: 0 calc(var(--u) * 2.5);
  border-bottom-width: calc(var(--u) * 1.5);
}
.lib__ic {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 26);
  height: calc(var(--u) * 26);
  border-radius: calc(var(--u) * 8);
  background: var(--c);
  box-shadow: inset 0 calc(var(--u) * -3) 0 rgb(0 0 0 / 0.2);
  color: var(--white);
}
.lib__ic svg {
  width: 60%;
  height: 60%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lib__tile > span:last-child,
.lib__rows li > span:nth-child(2),
.lib__title > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lib__tile b,
.lib__rows b {
  overflow: hidden;
  font-size: calc(var(--u) * 11);
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-900);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lib__tile small,
.lib__rows small,
.lib__title small,
.lib__topic small,
.lib__year {
  font-size: calc(var(--u) * 9.5);
  color: var(--gray-500);
  white-space: nowrap;
}
/* subject page */
.lib__bar {
  height: calc(var(--u) * 20);
}
.lib__back {
  width: calc(var(--u) * 17);
  height: calc(var(--u) * 17);
  stroke: var(--gray-900);
}
.lib__title {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  margin-top: calc(var(--u) * 4);
}
.lib__ic--lg {
  width: calc(var(--u) * 40);
  height: calc(var(--u) * 40);
  border-radius: calc(var(--u) * 11);
  box-shadow: inset 0 calc(var(--u) * -4) 0 rgb(0 0 0 / 0.18);
}
.lib__title b {
  font-size: calc(var(--u) * 14.5);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--gray-900);
}
.lib__title small {
  margin-top: calc(var(--u) * 3);
}
.lib__title em {
  font-style: normal;
  font-weight: 600;
  color: var(--success-deep);
}
.lib__topic {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 7);
  height: calc(var(--u) * 32);
  margin-top: calc(var(--u) * 10);
  border-top: 1px solid var(--gray-150);
  border-bottom: 1px solid var(--gray-150);
}
.lib__topic > svg {
  flex: none;
  width: calc(var(--u) * 15);
  height: calc(var(--u) * 15);
  stroke: var(--orange-300);
  color: var(--orange-300);
}
.lib__topic b {
  font-size: calc(var(--u) * 11);
  font-weight: 600;
  color: var(--gray-900);
}
.lib__topic small {
  margin-left: auto;
}
.lib__filters {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 5);
  margin-top: calc(var(--u) * 9);
  white-space: nowrap;
}
.lib__seg {
  display: flex;
  flex: none;
  padding: calc(var(--u) * 2.5);
  border-radius: calc(var(--u) * 9);
  background: var(--gray-100);
}
.lib__seg span {
  padding: calc(var(--u) * 4) calc(var(--u) * 8);
  border-radius: calc(var(--u) * 7);
  font-size: calc(var(--u) * 10);
  font-weight: 600;
  color: var(--gray-600);
}
.lib__seg .is-on {
  background: var(--white);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
  color: var(--gray-900);
}
.lib__dd {
  display: flex;
  flex: none;
  align-items: center;
  gap: calc(var(--u) * 2);
  padding: calc(var(--u) * 6) calc(var(--u) * 7) calc(var(--u) * 6) calc(var(--u) * 9);
  border-radius: calc(var(--u) * 9);
  background: var(--gray-100);
  font-size: calc(var(--u) * 10);
  font-weight: 600;
  color: var(--gray-900);
}
.lib__dd svg {
  width: calc(var(--u) * 11);
  height: calc(var(--u) * 11);
}
.lib__year {
  margin-top: calc(var(--u) * 12);
}
.lib__year b {
  margin-right: calc(var(--u) * 3);
  font-size: calc(var(--u) * 12.5);
  font-weight: 700;
  color: var(--gray-900);
}
.lib__rows {
  margin-top: calc(var(--u) * 6);
}
.lib__rows li {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 9);
  height: calc(var(--u) * 42);
  border-top: 1px solid var(--gray-150);
  opacity: 0;
  translate: calc(var(--u) * 14) 0;
  transition: opacity 0.25s, translate 0.4s var(--ease-out-strong);
}
.lib__rows li.is-on {
  opacity: 1;
  translate: 0 0;
}
.lib__k {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 28);
  height: calc(var(--u) * 28);
  border-radius: calc(var(--u) * 8);
  background: var(--orange-100);
  color: var(--orange-400);
  font-size: calc(var(--u) * 9.5);
  font-weight: 700;
}
.lib__done {
  display: flex;
  flex: none;
  align-items: center;
  gap: calc(var(--u) * 3);
  margin-left: auto;
  padding: calc(var(--u) * 3) calc(var(--u) * 7);
  border-radius: 9999px;
  background: var(--orange-100);
  color: var(--orange-400);
  font-size: calc(var(--u) * 9.5);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.lib__done svg {
  width: calc(var(--u) * 7);
  height: calc(var(--u) * 7);
  fill: currentColor;
}
.lib__chev {
  flex: none;
  width: calc(var(--u) * 13);
  height: calc(var(--u) * 13);
  stroke: var(--gray-400);
}

/* ── v2 AI Tutor: tabbed cards (Ask AI / Flashcards / Quiz) ──────────────── */
.tg {
  position: absolute;
  left: calc(var(--u) * 36);
  right: calc(var(--u) * 36);
  top: calc(var(--u) * 50);
  bottom: 0;
}
.tg .tt {
  inset: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.gx__body {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.gx__col {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 12);
  padding: calc(var(--u) * 20) calc(var(--u) * 18);
  transition: transform 0.6s var(--ease-out-strong);
}
.gx__me {
  align-self: flex-end;
  margin: 0;
  padding: calc(var(--u) * 9) calc(var(--u) * 14);
  border-radius: calc(var(--u) * 16) calc(var(--u) * 16) calc(var(--u) * 4) calc(var(--u) * 16);
  background: var(--orange-300);
  color: var(--white);
  font-size: calc(var(--u) * 13);
  font-weight: 500;
  opacity: 0;
  scale: 0.85;
  transform-origin: 100% 100%;
  transition: opacity 0.2s, scale var(--dur-pop) var(--ease-pop);
}
.gx.s1 .gx__me {
  opacity: 1;
  scale: 1;
}
.gx__ai {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--u) * 10);
  opacity: 0;
  translate: 0 calc(var(--u) * 8);
  transition: opacity 0.3s, translate 0.45s var(--ease-out-strong);
}
.gx.s2 .gx__ai {
  opacity: 1;
  translate: 0 0;
}
.gx__stack {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: calc(var(--u) * 10);
  min-width: 0;
  padding-top: calc(var(--u) * 8);
}
.gx__status {
  position: relative;
  height: calc(var(--u) * 20);
  font-size: calc(var(--u) * 12.5);
  font-weight: 600;
}
.gx__status > span {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 7);
  white-space: nowrap;
  transition: opacity 0.25s;
}
.gx__gen {
  color: var(--gray-600);
}
.gx__gen .spinner {
  width: calc(var(--u) * 14);
  height: calc(var(--u) * 14);
}
.gx__done {
  color: var(--orange-400);
  opacity: 0;
}
.gx__done svg {
  width: calc(var(--u) * 14);
  height: calc(var(--u) * 14);
  fill: currentColor;
}
.gx.s3 .gx__gen {
  opacity: 0;
}
.gx.s3 .gx__done {
  opacity: 1;
}
/* generated study widget (same look as the app) */
.gw {
  overflow: hidden;
  border: calc(var(--u) * 1.5) solid var(--gray-200);
  border-radius: calc(var(--u) * 14);
  background: var(--white);
  opacity: 0;
  translate: 0 calc(var(--u) * 10);
  scale: 0.97;
  transition: opacity 0.3s, translate 0.5s var(--ease-out-strong), scale 0.5s var(--ease-out-strong);
}
.gx.s3 .gw {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}
.gw__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--u) * 8);
  padding: calc(var(--u) * 7) calc(var(--u) * 8) calc(var(--u) * 7) calc(var(--u) * 12);
  border-bottom: 1px solid var(--gray-150);
}
.gw__head b {
  font-size: calc(var(--u) * 11.5);
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
}
.gw__seg {
  display: flex;
  flex: none;
  padding: calc(var(--u) * 2.5);
  border-radius: 9999px;
  background: var(--gray-100);
}
.gw__seg span {
  padding: calc(var(--u) * 3) calc(var(--u) * 9);
  border-radius: 9999px;
  font-size: calc(var(--u) * 10);
  font-weight: 600;
  color: var(--gray-500);
}
.gw__seg .is-on {
  background: var(--white);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
  color: var(--gray-900);
}
.gw__body {
  padding: calc(var(--u) * 12);
}
.gw__flip {
  position: relative;
  height: calc(var(--u) * 118);
  perspective: calc(var(--u) * 900);
  transition: scale 0.12s;
}
.gx.s4 .gw__flip {
  scale: 0.97;
}
.gw__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 4);
  padding: calc(var(--u) * 14) calc(var(--u) * 22);
  border-radius: calc(var(--u) * 12);
  font-size: calc(var(--u) * 13);
  font-weight: 600;
  line-height: calc(var(--u) * 19);
  text-align: center;
  backface-visibility: hidden;
  transition: transform 0.6s var(--ease-out-strong);
}
.gw__front {
  background: #fdecef;
  color: var(--gray-900);
}
.gw__back {
  background: var(--success-bg);
  color: var(--success-deep);
  transform: rotateY(180deg);
}
.gw__back small {
  font-size: calc(var(--u) * 10);
  font-weight: 500;
  color: var(--gray-500);
}
.gx.s5 .gw__front {
  transform: rotateY(-180deg);
}
.gx.s5 .gw__back {
  transform: rotateY(0deg);
}
.gw__q {
  margin: 0 0 calc(var(--u) * 10);
  font-size: calc(var(--u) * 12.5);
  font-weight: 600;
  line-height: calc(var(--u) * 17);
  color: var(--gray-900);
}
.gw__opts {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 6);
}
.gw__opts li {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  height: calc(var(--u) * 30);
  padding: 0 calc(var(--u) * 8) 0 calc(var(--u) * 10);
  border: calc(var(--u) * 1.5) solid var(--gray-150);
  border-radius: calc(var(--u) * 9);
  font-size: calc(var(--u) * 11.5);
  color: var(--gray-700);
  transition: background-color 0.2s, border-color 0.2s, opacity 0.3s, scale 0.12s;
}
.gw__opts i {
  flex: none;
  width: calc(var(--u) * 12);
  height: calc(var(--u) * 12);
  border: calc(var(--u) * 1.5) solid var(--gray-300);
  border-radius: 50%;
}
.gw__opts span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gw__opts em {
  flex: none;
  padding: calc(var(--u) * 2) calc(var(--u) * 7);
  border-radius: 9999px;
  font-size: calc(var(--u) * 9.5);
  font-style: normal;
  font-weight: 600;
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.25s, scale var(--dur-pop) var(--ease-pop);
}
.gx.s4 .gw__opts li[data-wrong] {
  scale: 0.98;
}
.gx.s5 .gw__opts li {
  opacity: 0.5;
}
.gx.s5 .gw__opts li[data-wrong],
.gx.s5 .gw__opts li[data-key] {
  opacity: 1;
}
.gx.s5 .gw__opts li[data-wrong] {
  border-color: #e57373;
  background: #fdeeee;
}
.gx.s5 .gw__opts li[data-key] {
  border-color: var(--success);
  background: var(--success-bg);
}
.gx.s5 .gw__opts li[data-wrong] i {
  border-color: #e14c4c;
  background: #e14c4c;
  box-shadow: inset 0 0 0 calc(var(--u) * 2) var(--white);
}
.gx.s5 .gw__opts li[data-key] i {
  border-color: var(--success);
  background: var(--success);
  box-shadow: inset 0 0 0 calc(var(--u) * 2) var(--white);
}
.gx.s5 .gw__opts em {
  opacity: 1;
  scale: 1;
}
.gw__opts li[data-wrong] em {
  background: #f9d4d4;
  color: #c03a3a;
}
.gw__opts li[data-key] em {
  background: #cfeedd;
  color: var(--success-deep);
}
.gw__fb {
  max-height: 0;
  margin-top: 0;
  padding: 0 calc(var(--u) * 10);
  overflow: hidden;
  border-radius: calc(var(--u) * 9);
  background: var(--gray-100);
  font-size: calc(var(--u) * 11);
  line-height: calc(var(--u) * 16);
  color: var(--gray-700);
  opacity: 0;
  transition: max-height 0.45s var(--ease-out-strong), margin-top 0.45s var(--ease-out-strong), padding 0.45s var(--ease-out-strong), opacity 0.3s;
}
.gw__fb b {
  display: block;
  font-weight: 600;
  color: var(--gray-900);
}
.gx.s5 .gw__fb {
  max-height: calc(var(--u) * 60);
  margin-top: calc(var(--u) * 10);
  padding: calc(var(--u) * 8) calc(var(--u) * 10);
  opacity: 1;
}
.gw__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(var(--u) * 12) calc(var(--u) * 12);
  font-size: calc(var(--u) * 10.5);
  color: var(--gray-500);
}
.gw__next {
  padding: calc(var(--u) * 6) calc(var(--u) * 14);
  border-radius: calc(var(--u) * 9);
  background: var(--gray-900);
  color: var(--white);
  font-size: calc(var(--u) * 11);
  font-weight: 600;
}

/* ── v2 Essay: Marking / Improve / Plan (cards in .tg, states s1…s6 on the scene) ── */
.es {
  padding: calc(var(--u) * 18) calc(var(--u) * 20) 0;
  color: var(--gray-900);
}
.es__head {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
}
.es__head b {
  font-size: calc(var(--u) * 14);
  font-weight: 700;
}
.es__head small {
  margin-left: auto;
  font-size: calc(var(--u) * 10.5);
  color: var(--gray-500);
}
.es__tag {
  padding: calc(var(--u) * 3) calc(var(--u) * 9);
  border-radius: 9999px;
  background: var(--orange-100);
  color: var(--orange-400);
  font-size: calc(var(--u) * 10.5);
  font-weight: 600;
}
.es__tag--b {
  background: #e6f0fb;
  color: var(--blue);
}
.es__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--u) * 36);
  padding: 0 calc(var(--u) * 18);
  border-radius: calc(var(--u) * 12);
  background: var(--orange-300);
  box-shadow: 0 calc(var(--u) * 4) 0 var(--orange-400);
  color: var(--white);
  font-size: calc(var(--u) * 13);
  font-weight: 600;
  white-space: nowrap;
  transition: translate 0.12s, box-shadow 0.12s;
}
.es.is-press .es__btn {
  translate: 0 calc(var(--u) * 4);
  box-shadow: 0 0 0 var(--orange-400);
}

/* marking */
.es__paper {
  margin-top: calc(var(--u) * 12);
  padding: calc(var(--u) * 12) calc(var(--u) * 14);
  border: calc(var(--u) * 1.5) solid var(--ui-edge);
  border-bottom-width: calc(var(--u) * 4);
  border-radius: calc(var(--u) * 12);
  background: #fffdf8;
  font-size: calc(var(--u) * 12.5);
  line-height: calc(var(--u) * 21);
  color: var(--gray-700);
}
.es__hl {
  border-radius: calc(var(--u) * 3);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 100%;
  transition: background-size 0.6s var(--ease-out-strong), color 0.3s;
}
.es__hl--g {
  background-image: linear-gradient(#d7f5e1, #d7f5e1);
}
.es__hl--r {
  background-image: linear-gradient(#fde0e0, #fde0e0);
  text-decoration: underline wavy transparent;
  text-underline-offset: calc(var(--u) * 3);
}
.esm.s2 .es__hl--g {
  background-size: 100% 100%;
  color: var(--success-deep);
}
.esm.s3 .es__hl--r {
  background-size: 100% 100%;
  color: #c03a3a;
  text-decoration-color: #e14c4c;
}
.es__notes {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 6);
  margin-top: calc(var(--u) * 10);
}
.es__note {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  margin: 0;
  padding: calc(var(--u) * 6) calc(var(--u) * 10);
  border-radius: calc(var(--u) * 10);
  font-size: calc(var(--u) * 11.5);
  opacity: 0;
  translate: 0 calc(var(--u) * 6);
  transition: opacity 0.3s, translate 0.4s var(--ease-out-strong);
}
.es__note--g {
  background: var(--success-bg);
  color: var(--success-deep);
}
.es__note--r {
  background: #fdeeee;
  color: #a83232;
}
.es__note .ui-tick,
.es__x {
  flex: none;
  width: calc(var(--u) * 18);
  height: calc(var(--u) * 18);
}
.es__note .ui-tick svg {
  width: 60%;
  height: 60%;
}
.es__x {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e14c4c;
  color: var(--white);
  font-size: calc(var(--u) * 11);
  font-weight: 700;
}
.esm.s2 .es__note--g,
.esm.s3 .es__note--r {
  opacity: 1;
  translate: 0 0;
}
.es__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: calc(var(--u) * 12);
}
.es__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: calc(var(--u) * 16) calc(var(--u) * 20) calc(var(--u) * 20);
  border-top: calc(var(--u) * 1.5) solid var(--gray-150);
  border-radius: calc(var(--u) * 20) calc(var(--u) * 20) 0 0;
  background: var(--white);
  box-shadow: 0 calc(var(--u) * -8) calc(var(--u) * 24) rgb(0 0 0 / 0.08);
  translate: 0 105%;
}
.esm.s1 .es__sheet {
  translate: 0 0;
  transition: translate 0.45s var(--ease-out-strong);
}
.esm.s2 .es__sheet,
.esm.s3 .es__sheet {
  translate: 0 105%;
  transition: translate 0.35s var(--ease-out-strong);
}
.esm.s4 .es__sheet {
  translate: 0 0;
  transition: translate 0.45s var(--ease-out-strong);
}
.es__marking {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  font-size: calc(var(--u) * 12.5);
  font-weight: 600;
  color: var(--gray-600);
}
.es__marking .spinner,
.es__planning .spinner {
  width: calc(var(--u) * 15);
  height: calc(var(--u) * 15);
}
.esm.s4 .es__marking {
  display: none;
}
.es__result {
  display: none;
  align-items: center;
  gap: calc(var(--u) * 16);
}
.esm.s4 .es__result {
  display: flex;
}
.es__ring {
  stroke: var(--success);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.9s var(--ease-out-strong);
}
.esm.s4 .es__ring {
  stroke-dashoffset: 24;
}
.es__result .p2__score {
  width: calc(var(--u) * 64);
  height: calc(var(--u) * 64);
}
.es__bars {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: calc(var(--u) * 7);
}
.es__bars li {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  font-size: calc(var(--u) * 11);
}
.es__bars span {
  width: calc(var(--u) * 76);
  color: var(--gray-600);
}
.es__bars i {
  flex: 1;
  height: calc(var(--u) * 7);
  border-radius: 9999px;
  background: var(--gray-100);
  overflow: hidden;
}
.es__bars i b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--orange-300);
  transition: width 0.8s var(--ease-out-strong) 0.15s;
}
.esm.s4 .es__bars i b {
  width: var(--w);
}
.es__bars em {
  width: calc(var(--u) * 34);
  font-style: normal;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* improve */
.es__rewrite {
  margin-top: calc(var(--u) * 12);
  padding: calc(var(--u) * 10) calc(var(--u) * 12);
  border: calc(var(--u) * 1.5) solid var(--ui-edge);
  border-bottom-width: calc(var(--u) * 4);
  border-radius: calc(var(--u) * 12);
  font-size: calc(var(--u) * 12.5);
  line-height: calc(var(--u) * 19);
}
.es__before {
  margin: 0;
  color: var(--gray-700);
}
.es__before span {
  background: linear-gradient(#e14c4c, #e14c4c) no-repeat 0 55% / 0% calc(var(--u) * 1.5);
  transition: background-size 0.5s var(--ease-out-strong), color 0.3s;
}
.esi.s1 .es__before span {
  background-size: 100% calc(var(--u) * 1.5);
  color: var(--gray-400);
}
.es__after {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--gray-900);
  transition: max-height 0.5s var(--ease-out-strong), margin-top 0.5s var(--ease-out-strong), opacity 0.3s;
}
.es__after b {
  border-radius: calc(var(--u) * 3);
  background: var(--success-bg);
  color: var(--success-deep);
  font-weight: 600;
}
.esi.s2 .es__after {
  max-height: calc(var(--u) * 40);
  margin-top: calc(var(--u) * 6);
  opacity: 1;
}
.es__label {
  margin: calc(var(--u) * 12) 0 calc(var(--u) * 6);
  font-size: calc(var(--u) * 10.5);
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.3s;
}
.es__chips {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--u) * 6);
}
.es__chips span {
  padding: calc(var(--u) * 4) calc(var(--u) * 11);
  border: calc(var(--u) * 1.5) solid #cfe0f5;
  border-bottom-width: calc(var(--u) * 3);
  border-radius: 9999px;
  background: #f1f7fe;
  color: var(--blue);
  font-size: calc(var(--u) * 11.5);
  font-weight: 600;
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.2s, scale var(--dur-pop) var(--ease-pop);
}
.esi.s3 .es__label:nth-of-type(1),
.esi.s4 .es__label:nth-of-type(2) {
  opacity: 1;
}
.esi.s3 .es__chips span {
  opacity: 1;
  scale: 1;
}
.es__chips span:nth-child(2) { transition-delay: 0.08s; }
.es__chips span:nth-child(3) { transition-delay: 0.16s; }
.es__chips span:nth-child(4) { transition-delay: 0.24s; }
.es__chips span:nth-child(5) { transition-delay: 0.32s; }
.es__peri {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 6);
}
.es__peri li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(var(--u) * 10);
  padding: calc(var(--u) * 7) calc(var(--u) * 11);
  border-radius: calc(var(--u) * 10);
  background: var(--yellow-soft);
  font-size: calc(var(--u) * 11.5);
  opacity: 0;
  translate: calc(var(--u) * 12) 0;
  transition: opacity 0.3s, translate 0.4s var(--ease-out-strong);
}
.es__peri li:nth-child(2) {
  transition-delay: 0.15s;
}
.es__peri b {
  font-weight: 600;
  color: #7a5200;
}
.es__peri span {
  font-size: calc(var(--u) * 10.5);
  color: var(--gray-600);
  white-space: nowrap;
}
.esi.s4 .es__peri li {
  opacity: 1;
  translate: 0 0;
}
.es__tip {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 7);
  margin: calc(var(--u) * 12) 0 0;
  font-size: calc(var(--u) * 11.5);
  font-weight: 600;
  color: var(--orange-400);
  opacity: 0;
  translate: 0 calc(var(--u) * 6);
  transition: opacity 0.3s, translate 0.4s var(--ease-out-strong);
}
.es__tip svg {
  flex: none;
  width: calc(var(--u) * 14);
  height: calc(var(--u) * 14);
  fill: currentColor;
}
.esi.s5 .es__tip {
  opacity: 1;
  translate: 0 0;
}

/* plan */
.es__ask {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
}
.es__field {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  height: calc(var(--u) * 44);
  padding: 0 calc(var(--u) * 12);
  border: calc(var(--u) * 1.5) solid var(--ui-edge);
  border-bottom-width: calc(var(--u) * 4);
  border-radius: calc(var(--u) * 12);
}
.es__field small {
  font-size: calc(var(--u) * 9.5);
  color: var(--gray-500);
}
.es__field b {
  font-size: calc(var(--u) * 13);
  font-weight: 600;
}
.es__planning {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  height: 0;
  overflow: hidden;
  font-size: calc(var(--u) * 12.5);
  font-weight: 600;
  color: var(--gray-600);
  opacity: 0;
  transition: height 0.3s, opacity 0.2s, margin 0.3s;
}
.esp.s1:not(.s2) .es__planning {
  height: calc(var(--u) * 20);
  margin-top: calc(var(--u) * 14);
  opacity: 1;
}
.es__outline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 8);
  margin-top: calc(var(--u) * 14);
}
.es__outline::before {
  content: "";
  position: absolute;
  left: calc(var(--u) * 13);
  top: calc(var(--u) * 14);
  bottom: calc(var(--u) * 14);
  width: calc(var(--u) * 2);
  background: var(--orange-100);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 1.4s var(--ease-out-strong);
}
.esp.s2 .es__outline::before {
  transform: scaleY(1);
}
.es__outline li {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  opacity: 0;
  translate: calc(var(--u) * 12) 0;
  transition: opacity 0.3s, translate 0.4s var(--ease-out-strong);
}
.es__outline li.is-on {
  opacity: 1;
  translate: 0 0;
}
.es__dot {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 28);
  height: calc(var(--u) * 28);
  border-radius: 50%;
  background: var(--orange-300);
  box-shadow: inset 0 calc(var(--u) * -3) 0 rgb(0 0 0 / 0.18);
  color: var(--white);
  font-size: calc(var(--u) * 11);
  font-weight: 700;
}
.es__outline li:first-child .es__dot,
.es__outline li:last-child .es__dot {
  background: var(--gray-900);
}
.es__outline li > span:last-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: calc(var(--u) * 6) calc(var(--u) * 10);
  border: calc(var(--u) * 1.5) solid var(--ui-edge);
  border-bottom-width: calc(var(--u) * 3);
  border-radius: calc(var(--u) * 10);
}
.es__outline small {
  font-size: calc(var(--u) * 9.5);
  font-weight: 600;
  color: var(--orange-400);
}
.es__outline b {
  overflow: hidden;
  font-size: calc(var(--u) * 11.5);
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.es__outline i {
  position: absolute;
  right: calc(var(--u) * 10);
  top: 50%;
  translate: 0 -50%;
  padding: calc(var(--u) * 2) calc(var(--u) * 7);
  border-radius: 9999px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: calc(var(--u) * 9.5);
  font-style: normal;
}

/* ── v2 Mock Speaking: big centred orb + captions → showcase results ───────── */
@property --ex-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.ex-cards {
  position: absolute;
  left: calc(var(--u) * 56);
  right: calc(var(--u) * 56);
  top: calc(var(--u) * 30);
  bottom: 0;
}
.ex {
  padding: calc(var(--u) * 18) calc(var(--u) * 24) 0;
  color: var(--gray-900);
}
.ex__top {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  font-size: calc(var(--u) * 11);
}
.ex__part {
  flex: none;
  padding: calc(var(--u) * 3) calc(var(--u) * 9);
  border-radius: 9999px;
  background: #ddf5ee;
  color: #1f7a63;
  font-weight: 600;
}
.ex__prog {
  flex: 1;
  height: calc(var(--u) * 5);
  border-radius: 9999px;
  background: var(--gray-100);
  overflow: hidden;
}
.ex__prog i {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: #8fdcc7;
}
.ex__top > b {
  margin-left: auto;
  font-weight: 600;
  color: var(--gray-600);
}
.ex__done {
  color: var(--gray-900) !important;
}

/* exam: the orb is the speaker — iridescent for the examiner, warm orange for you */
.ex__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: calc(var(--u) * 16);
}
.ex__orb {
  position: relative;
  width: calc(var(--u) * 104);
  height: calc(var(--u) * 104);
  overflow: hidden;
  border-radius: 50%;
  background: #f3eefe;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.6);
}
.ex__orb::before,
.ex__orb::after {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  filter: blur(calc(var(--u) * 7));
  animation: ex-spin 6s linear infinite;
  transition: opacity 0.6s;
}
.ex__orb::before {
  background:
    radial-gradient(circle at 36% 30%, rgb(255 255 255 / 0.95) 0 9%, rgb(255 255 255 / 0) 36%),
    conic-gradient(from var(--ex-a), #ffc8e4, #d4c6ff, #b9ecf2, #c9f3d9, #fff1b8, #ffc8e4);
}
.ex__orb::after {
  background:
    radial-gradient(circle at 36% 30%, rgb(255 255 255 / 0.9) 0 9%, rgb(255 255 255 / 0) 36%),
    conic-gradient(from var(--ex-a), #ffb27a, #ff8a3d, #ffd29a, #ffa0b4, #ffb27a);
  opacity: 0;
}
.ex.you-on .ex__orb::after {
  opacity: 1;
}
.ex__orb.is-talk {
  animation: ex-talk 0.9s ease-in-out infinite;
}
.ex__orb.is-talk::before,
.ex__orb.is-talk::after {
  animation-duration: 1.8s;
}
@keyframes ex-spin {
  to { --ex-a: 360deg; }
}
@keyframes ex-talk {
  0%, 100% { scale: 1; }
  50% { scale: 1.07; }
}
.ex__who {
  position: relative;
  height: calc(var(--u) * 16);
  margin: calc(var(--u) * 12) 0 0;
  font-size: calc(var(--u) * 11.5);
  color: var(--gray-500);
}
.ex__who > span {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 4);
  white-space: nowrap;
  transition: opacity 0.3s;
}
.ex__who-you {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% 0;
  opacity: 0;
}
.ex.you-on .ex__who-ex {
  opacity: 0;
}
.ex.you-on .ex__who-you {
  opacity: 1;
}
.ex__who b {
  font-weight: 600;
  color: var(--gray-900);
}
.ex__who-you i {
  width: calc(var(--u) * 6);
  height: calc(var(--u) * 6);
  border-radius: 50%;
  background: #e14c4c;
  animation: ex-rec 1s steps(1) infinite;
}
.ex__who-you em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
@keyframes ex-rec {
  50% { opacity: 0.2; }
}
.ex__caption {
  margin-top: calc(var(--u) * 12);
  text-align: center;
  transition: opacity 0.4s;
}
.ex.you-on .ex__caption {
  opacity: 0.45;
}
.ex__line {
  margin: 0;
  font-size: calc(var(--u) * 16);
  font-weight: 600;
  line-height: calc(var(--u) * 23);
  letter-spacing: -0.01em;
}
.ex__w {
  border-radius: calc(var(--u) * 4);
  color: var(--gray-300);
  transition: color 0.15s, background-color 0.15s;
}
.ex__w.is-said {
  color: var(--gray-900);
}
.ex__w.is-now {
  background: var(--orange-100);
  box-shadow: 0 0 0 calc(var(--u) * 2) var(--orange-100);
}
.ex__you {
  margin-top: calc(var(--u) * 10);
  text-align: center;
  opacity: 0;
  translate: 0 calc(var(--u) * 8);
  transition: opacity 0.3s, translate 0.4s var(--ease-out-strong);
}
.ex.you-on .ex__you {
  opacity: 1;
  translate: 0 0;
}
.ex__line--you {
  font-size: calc(var(--u) * 13);
  font-weight: 500;
  line-height: calc(var(--u) * 20);
}
.ex__line--you .ex__w.is-said {
  color: var(--gray-700);
}
.ex__line--you .ex__w--fill.is-said {
  color: var(--orange-400);
  text-decoration: underline wavy var(--orange-300);
  text-underline-offset: calc(var(--u) * 3);
}
.ex__btn {
  position: absolute;
  left: calc(var(--u) * 24);
  right: calc(var(--u) * 24);
  bottom: calc(var(--u) * 18);
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--u) * 38);
  border-radius: calc(var(--u) * 12);
  background: var(--gray-900);
  box-shadow: 0 calc(var(--u) * 4) 0 #000;
  color: var(--white);
  font-size: calc(var(--u) * 13.5);
  font-weight: 600;
  opacity: 0;
  translate: 0 calc(var(--u) * 10);
  transition: opacity 0.3s, translate 0.4s var(--ease-out-strong), box-shadow 0.12s;
}
.ex.btn-on .ex__btn {
  opacity: 1;
  translate: 0 0;
}
.ex.is-press .ex__btn {
  translate: 0 calc(var(--u) * 4);
  box-shadow: 0 0 0 #000;
}

/* results: one big number, four stat tiles, fillers, tips */
.ex__big {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: calc(var(--u) * 10);
}
.ex__big small {
  font-size: calc(var(--u) * 11.5);
  font-weight: 500;
  color: var(--gray-500);
}
.ex__big b {
  font-size: calc(var(--u) * 54);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.ex__big i {
  margin-left: calc(var(--u) * 2);
  font-size: calc(var(--u) * 22);
  font-style: normal;
  letter-spacing: 0;
  color: var(--gray-400);
}
.ex__crit {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(var(--u) * 7);
  margin-top: calc(var(--u) * 12);
}
.ex__crit li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--u) * 8) calc(var(--u) * 4) calc(var(--u) * 7);
  border: calc(var(--u) * 1.5) solid var(--ui-edge);
  border-bottom-width: calc(var(--u) * 4);
  border-radius: calc(var(--u) * 12);
  opacity: 0;
  scale: 0.85;
  transition: opacity 0.25s, scale var(--dur-pop) var(--ease-pop);
}
.ex__crit b {
  font-size: calc(var(--u) * 22);
  font-weight: 700;
  line-height: 1.1;
}
.ex__crit span {
  font-size: calc(var(--u) * 10);
  color: var(--gray-500);
  white-space: nowrap;
}
.ex__fill {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  margin-top: calc(var(--u) * 10);
  padding: calc(var(--u) * 8) calc(var(--u) * 14);
  border-radius: calc(var(--u) * 14);
  background: var(--orange-50);
  opacity: 0;
  translate: 0 calc(var(--u) * 6);
  transition: opacity 0.3s, translate 0.4s var(--ease-out-strong);
}
.ex__fbig {
  font-size: calc(var(--u) * 34);
  font-weight: 700;
  line-height: 1;
  color: var(--orange-300);
  font-variant-numeric: tabular-nums;
}
.ex__ftext {
  display: flex;
  flex-direction: column;
}
.ex__ftext b {
  font-size: calc(var(--u) * 13);
  font-weight: 700;
  color: var(--orange-400);
}
.ex__ftext small {
  font-size: calc(var(--u) * 10);
  color: var(--gray-500);
}
.ex__fchips {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: calc(var(--u) * 4);
  margin-left: auto;
}
.ex__fchip {
  padding: calc(var(--u) * 2) calc(var(--u) * 9);
  border-radius: 9999px;
  background: var(--white);
  color: var(--orange-400);
  font-size: calc(var(--u) * 11);
  font-weight: 600;
}
.ex__tiphead {
  margin: calc(var(--u) * 10) 0 calc(var(--u) * 6);
  font-size: calc(var(--u) * 12);
  font-weight: 700;
  color: var(--gray-900);
  opacity: 0;
  transition: opacity 0.3s;
}
.ex__tips {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 6);
}
.ex__tips li {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 9);
  font-size: calc(var(--u) * 12.5);
  color: var(--gray-700);
  opacity: 0;
  translate: calc(var(--u) * 10) 0;
  transition: opacity 0.3s, translate 0.4s var(--ease-out-strong);
}
.ex__tips span {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 20);
  height: calc(var(--u) * 20);
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success-deep);
  font-size: calc(var(--u) * 10.5);
  font-weight: 700;
}
.ex--score.r1 .ex__crit li { opacity: 1; scale: 1; }
.ex__crit li:nth-child(2) { transition-delay: 0.08s; }
.ex__crit li:nth-child(3) { transition-delay: 0.16s; }
.ex__crit li:nth-child(4) { transition-delay: 0.24s; }
.ex--score.r2 .ex__fill { opacity: 1; translate: 0 0; }
.ex--score.r3 .ex__tiphead { opacity: 1; }
.ex--score.r3 .ex__tips li { opacity: 1; translate: 0 0; }
.ex__tips li:nth-child(2) { transition-delay: 0.15s; }
.ex__tips li:nth-child(3) { transition-delay: 0.3s; }

/* sound switch, bottom-right of the art */
.ex-sound {
  position: absolute;
  right: calc(var(--u) * 12);
  bottom: calc(var(--u) * 12);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max(calc(var(--u) * 38), 34px);
  height: max(calc(var(--u) * 38), 34px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 calc(var(--u) * 4) calc(var(--u) * 12) rgb(64 20 8 / 0.25);
  color: var(--gray-800, #262626);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, scale 0.12s;
}
.ex-sound:active {
  scale: 0.92;
}
.ex-sound svg {
  width: 52%;
  height: 52%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ex-sound__on,
.ex-sound[aria-pressed="true"] .ex-sound__off {
  display: none;
}
.ex-sound[aria-pressed="true"] .ex-sound__on {
  display: block;
}
.ex-sound[aria-pressed="true"] {
  background: var(--gray-900);
  color: var(--white);
}
@media (prefers-reduced-motion: reduce) {
  .ex__orb::before,
  .ex__orb::after,
  .ex__orb.is-talk,
  .ex__who-you i {
    animation: none;
  }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .showcase__scene *,
  .ease-scene,
  .ease-scene *,
  .voice__text,
  .voice__control,
  .voice__wave span,
  .voice__ring,
  .pin-swing,
  .strip-flutter,
  .doodle-books svg,
  .doodle-bulb svg,
  .ease__doodle--r,
  .flash-wave span {
    animation: none !important;
  }
  .ease-scene .ease-dots {
    display: none;
  }
  .ease-scene .ease-tick {
    stroke-dashoffset: 0;
  }
  [data-arrive] .note-toss,
  [data-arrive] .strip-land,
  [data-arrive] .strip-shadow,
  [data-arrive] .doodle-in {
    opacity: 1;
    transform: none;
    animation: none;
  }
  [data-arrive="in"] .note-bob {
    animation: none;
  }
  .demo *,
  .art * {
    transition-duration: 0.01ms !important;
  }
}
