/* ==========================================================================
   Home page (body.page-home). Everything here is scoped to this page.
   Mockups reproduce the app's own dark-green UI (#111a16); the site keeps its
   paper / night / iris / lime palette around them.
   ========================================================================== */

.page-home {
  --app-bg: #111a16;
  --app-deep: #0c1310;
  --app-panel: #1d2b23;
  --app-panel-hi: #243429;
  --app-border: #334439;
  --app-text: #f5f7ef;
  --app-muted: #a4b4a8;
  --app-faint: #7f9285; /* 5.4:1 on --app-bg (was #6e8174, 4.3:1) */
  --app-leaf: #7ddd43;
  --app-leaf-light: #95e85e;
  --app-leaf-bg: #1f3a1b;
  --app-amber: #f2b544;
  --app-red: #f07b6c;
  --dirx: 1;
}
[dir="rtl"] .page-home { --dirx: -1; }

/* ---------- shared bits ---------- */
.page-home .phone .app-card { font-size: calc(var(--pw) * 0.0533); }
.page-home .phone .app-card__body { padding: 0.8em 0.95em 0.95em; gap: 0.32em; }
.page-home .phone .app-card__word .en-word { font-size: 1.42em; }
.page-home .phone .app-card__meaning { font-size: 1em; }
.page-home .phone .app-card__ctx { font-size: 0.8em; }
.page-home .phone .app-card__tr { font-size: 0.76em; }
.page-home .phone .app-card__level { font-size: 0.66em; }
.page-home .phone .app-card__add { height: 2.4em; font-size: 0.8em; position: relative; transition: background-color 0.4s, color 0.4s, box-shadow 0.4s; }
.page-home .app-card__add .lbl { display: inline-flex; align-items: center; gap: 6px; }
.page-home .app-card__add .lbl--added { display: none; }
.page-home .is-added .app-card__add { background: var(--app-leaf-bg); color: var(--app-leaf-light); box-shadow: inset 0 0 0 1.5px var(--app-leaf); }
.page-home .is-added .app-card__add > .icon:first-child,
.page-home .is-added .app-card__add .lbl--add { display: none; }
.page-home .is-added .app-card__add .lbl--added { display: inline-flex; animation: pop-in-soft 0.5s var(--ease-spring); }
@keyframes pop-in-soft { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }

.page-home .motion-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.7); color: var(--ink-2);
  font-size: var(--fs-small); font-weight: 600; transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.page-home .motion-toggle:hover { border-color: var(--ink-3); color: var(--ink); }
.page-home .motion-toggle__icon { width: 12px; height: 12px; flex: none; background: linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66%); }
.page-home .motion-toggle[data-state="paused"] .motion-toggle__icon { background: currentColor; clip-path: polygon(12% 0, 100% 50%, 12% 100%); }
.page-home .motion-toggle--night { background: rgba(255, 255, 255, 0.05); border-color: var(--night-line); color: var(--on-night-2); }
.page-home .motion-toggle--night:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.page-home .motion-toggle--round { width: 44px; height: 44px; padding: 0; justify-content: center; }

@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes wave-bar { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-ring { 0% { transform: scale(0.8); opacity: 0.7; } 100% { transform: scale(1.9); opacity: 0; } }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.page-home .hero { position: relative; isolation: isolate; overflow-x: clip; padding-block: clamp(20px, 4vw, 48px) clamp(48px, 6vw, 88px); }
.page-home .hero__bg { position: absolute; inset: calc(var(--header-h) * -1) 0 0; z-index: -1; overflow: hidden; pointer-events: none; }
.page-home .hero__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(22, 19, 45, 0.14) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 60% 40%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 65% at 60% 40%, #000 15%, transparent 72%);
}
.page-home .aurora { position: absolute; border-radius: 50%; will-change: transform; animation: aurora 28s var(--ease-in-out) infinite alternate; }
.page-home .aurora--iris { width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px; top: -30%; inset-inline-end: -14%; background: radial-gradient(closest-side, rgba(90, 69, 255, 0.24), rgba(90, 69, 255, 0.08) 55%, transparent); }
.page-home .aurora--lime { width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; top: 28%; inset-inline-start: -18%; background: radial-gradient(closest-side, rgba(132, 214, 69, 0.26), rgba(132, 214, 69, 0.06) 60%, transparent); animation-duration: 34s; animation-delay: -9s; }
.page-home .aurora--rose { width: 44vw; height: 44vw; max-width: 640px; max-height: 640px; bottom: -26%; inset-inline-end: 22%; background: radial-gradient(closest-side, rgba(255, 126, 182, 0.2), transparent); animation-duration: 40s; animation-delay: -18s; }
@keyframes aurora { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-5%, 7%, 0) scale(1.1); } 100% { transform: translate3d(6%, -4%, 0) scale(0.94); } }
.page-home .hero.is-off .aurora, .page-home .hero.is-off .hero__halo { animation-play-state: paused; }

.page-home .hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  min-height: min(760px, calc(100svh - var(--header-h) - 150px));
}
.page-home .hero__copy { max-width: 680px; }
.page-home .hero__title {
  margin-top: 22px; font-size: clamp(2.7rem, 1.1rem + 4vw, 4.75rem); line-height: 1; letter-spacing: var(--track-tight); font-weight: 760;
}
[data-script="arabic"] .page-home .hero__title, [data-script="devanagari"] .page-home .hero__title { line-height: 1.22; font-size: clamp(2.3rem, 1.1rem + 3.2vw, 4rem); }
[data-script="cjk"] .page-home .hero__title { line-height: 1.14; font-size: clamp(2.2rem, 1.1rem + 3.1vw, 3.9rem); }
.page-home .hero__title .hl { color: var(--iris); }
.page-home .hero__title .hl::after {
  content: ""; position: absolute; z-index: -1; inset-inline: -0.04em; bottom: 0.04em; height: 0.2em; border-radius: 0.1em;
  background: color-mix(in srgb, var(--lime) 70%, transparent); transform-origin: left center; transform: scaleX(0);
  animation: hl-draw 1.1s 0.7s var(--ease-out) forwards;
}
[dir="rtl"] .page-home .hero__title .hl::after { transform-origin: right center; }
@keyframes hl-draw { to { transform: scaleX(1); } }
.page-home .hero__lead { margin-top: 24px; max-width: 54ch; }
.page-home .hero__ctas { margin-top: 34px; }
.page-home .hero__ctas .btn--ghost { background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(8px); }

.js .page-home .hero__copy > * { animation: rise-in 0.95s var(--ease-out) both; }
.js .page-home .hero__copy > :nth-child(2) { animation-delay: 90ms; }
.js .page-home .hero__copy > :nth-child(3) { animation-delay: 180ms; }
.js .page-home .hero__copy > :nth-child(4) { animation-delay: 270ms; }
.js .page-home .hero__phone-wrap { animation: phone-in 1.3s 0.15s var(--ease-out) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(60px) scale(0.94); } to { opacity: 1; transform: none; } }

/* visual */
.page-home .hero__visual { position: relative; display: grid; place-items: center; min-height: 640px; }
.page-home .hero__halo {
  position: absolute; width: min(600px, 48vw); aspect-ratio: 1; border-radius: 50%; opacity: 0.75; will-change: transform;
  background: conic-gradient(from 20deg, rgba(90, 69, 255, 0), rgba(90, 69, 255, 0.42), rgba(132, 214, 69, 0.36), rgba(255, 126, 182, 0.34), rgba(56, 180, 239, 0.24), rgba(90, 69, 255, 0));
  filter: blur(54px); animation: spin 36s linear infinite;
}
.page-home .hero__phone-wrap { position: relative; z-index: 1; }
.page-home .hero__phone { --pw: clamp(256px, 21.5vw, 304px); }
.page-home .feed { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.page-home .feed__top {
  position: absolute; z-index: 4; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--pw) * 0.16) calc(var(--pw) * 0.06) 28px; font-size: calc(var(--pw) * 0.047); font-weight: 700; color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0.42), transparent); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); pointer-events: none;
}
.page-home .feed__card { position: absolute; inset: 0; transform: translate3d(0, 100%, 0); transition: transform 0.9s cubic-bezier(0.72, 0, 0.18, 1), opacity 0.9s; will-change: transform; }
.page-home .feed__card.is-current { z-index: 2; transform: translate3d(0, 0, 0); }
.page-home .feed__card.is-prev { z-index: 1; transform: translate3d(0, -100%, 0); opacity: 0.5; }
.page-home .feed__card.is-reset { transition: none; }
.page-home .feed .app-card__meaning, .page-home .feed .app-card__tr { transition: opacity 0.3s; }

/* floating chips */
.page-home .hchip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.74); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.95); color: var(--ink); font-size: 0.82rem; line-height: 1.25; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 6px rgba(22, 19, 45, 0.06), 0 22px 44px -18px rgba(22, 19, 45, 0.32);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.page-home .hchip .en-word { font-size: 0.95rem; }
.page-home .hchip__text { display: grid; gap: 2px; }
.page-home .hchip__meta { font-size: 0.7rem; font-weight: 600; color: var(--ink-3); }
.page-home .hchip__title { font-weight: 600; color: var(--ink-2); }
.page-home .hchip__title .en-word { color: var(--ink); margin-inline-end: 4px; }
.page-home .hchip__strong { font-weight: 700; }
.page-home .hchip__sub { font-size: 0.72rem; color: var(--ink-3); font-weight: 550; }
.page-home .hchip__app { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--night); flex: none; }
.page-home .hchip__app svg { width: 22px; height: 22px; }
.page-home .hchip__img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.page-home .hchip__play { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--iris); color: #fff; flex: none; }
.page-home .hchip__play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--iris); opacity: 0; }
.page-home .hchip--audio.is-live .hchip__play::after { animation: pulse-ring 1.4s var(--ease-out) infinite; }
.page-home .hchip__wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.page-home .hchip__wave i { width: 3px; height: 100%; border-radius: 3px; background: var(--iris); transform: scaleY(0.3); transform-origin: center; }
.page-home .hchip--audio.is-live .hchip__wave i { animation: wave-bar 0.8s ease-in-out infinite; }
.page-home .hchip__wave i:nth-child(2n) { animation-delay: -0.2s !important; }
.page-home .hchip__wave i:nth-child(3n) { animation-delay: -0.45s !important; }
.page-home .hchip__wave i:nth-child(4n) { animation-delay: -0.6s !important; }
.page-home .hchip__check { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #11240a; flex: none; }
.page-home .hchip__rungs { display: flex; gap: 3px; margin-top: 4px; }
.page-home .hchip__rungs i { width: 12px; height: 4px; border-radius: 4px; background: var(--line-2); }
.page-home .hchip__rungs i.on { background: var(--leaf); }
.page-home .hchip--lang { gap: 8px; color: var(--ink-2); font-weight: 600; }
.page-home .hchip--lang .icon { color: var(--iris); }
.page-home .hchip--lang b { color: var(--ink); display: inline-block; transition: opacity 0.25s, transform 0.25s var(--ease-out); }
.page-home .hchip--lang b.is-swap { opacity: 0; transform: translateY(6px); }

.page-home .hchip--notif { top: 5%; inset-inline-start: -2%; animation: float-y 7s ease-in-out infinite; }
.page-home .hchip--audio { top: 33%; inset-inline-end: -4%; }
.page-home .hchip--added { bottom: 20%; inset-inline-start: -6%; }
.page-home .hchip--lang { bottom: 15%; inset-inline-end: -6%; }
/* sequenced mode (JS): the toast only shows when the card is added */
.page-home .is-seq .hchip--added { opacity: 0; transform: translateY(14px) scale(0.94); }
.page-home .is-seq .hchip--added.is-show { opacity: 1; transform: none; }
.page-home .hero__pause { position: absolute; z-index: 4; bottom: 0; inset-inline-start: 4%; background: rgba(255, 255, 255, 0.8); }

/* facts */
.page-home .hero__facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(28px, 4vw, 56px); padding: 8px; border-radius: 24px;
  background: rgba(255, 255, 255, 0.66); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.page-home .hero__fact { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-weight: 620; font-size: 0.95rem; line-height: 1.3; color: var(--ink-2); }
.page-home .hero__fact + .hero__fact { border-inline-start: 1px solid var(--line); }
.page-home .hero__fact-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--iris-100); color: var(--iris-600); }
.page-home .hero__fact:nth-child(2) .hero__fact-icon { background: var(--rose-100); color: #c8317a; }
.page-home .hero__fact:nth-child(3) .hero__fact-icon { background: var(--lime-100); color: var(--leaf-700); }
.page-home .hero__fact:nth-child(4) .hero__fact-icon { background: var(--sky-100); color: #087fb6; }

/* ==========================================================================
   2. MEANING BAND
   ========================================================================== */
.page-home .band { overflow: hidden; isolation: isolate; padding-bottom: clamp(40px, 5vw, 72px); }
.page-home .band__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 46% at 50% 62%, rgba(90, 69, 255, 0.42), transparent 72%),
    radial-gradient(26% 34% at 84% 18%, rgba(132, 214, 69, 0.14), transparent 70%),
    radial-gradient(24% 30% at 12% 82%, rgba(255, 126, 182, 0.12), transparent 70%);
}
.page-home .band__head { margin-bottom: 0; }
.page-home .band__stage { position: relative; display: grid; gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(36px, 5vw, 64px); }
.page-home .band__row { --gap: 12px; }
.page-home .band.is-paused .marquee__track { animation-play-state: paused; }
.page-home .band__row .marquee__track { transition: opacity 0.45s var(--ease-out); }
.page-home .band__row.is-swap .marquee__track { opacity: 0; }
.page-home .mpill {
  display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 20px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--night-line); color: var(--on-night);
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.3rem); font-weight: 600; line-height: 1.3;
}
.page-home .mpill__lang { font-size: 0.68em; font-weight: 600; color: var(--on-night-3); }
.page-home .band__row:nth-child(3) .mpill { background: transparent; }
.page-home .band__center { position: relative; display: grid; justify-items: center; gap: 10px; padding-block: clamp(4px, 1vw, 12px); }
.page-home .band__wordwrap { position: relative; display: inline-block; }
.page-home .band__word { font-size: clamp(3.6rem, 0.6rem + 13.5vw, 13.5rem); line-height: 1.05; letter-spacing: -0.045em; font-weight: 700; white-space: nowrap; padding-inline: 0.04em; }
.page-home .band__word .ch {
  display: inline-block; background: linear-gradient(180deg, #ffffff 32%, #b6abff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform 0.75s var(--ease-out), opacity 0.55s var(--ease-out); transition-delay: calc(var(--i) * 38ms);
}
.page-home .band__word.is-out .ch { transform: translateY(-0.32em) rotate(-5deg); opacity: 0; }
.page-home .band__word.is-in .ch { transform: translateY(0.36em) rotate(4deg); opacity: 0; transition: none; }
.page-home .band__art {
  position: absolute; top: -6%; inset-inline-end: -10%; width: clamp(64px, 8.5vw, 136px); aspect-ratio: 1; border-radius: 26%;
  overflow: hidden; rotate: 9deg; border: 3px solid rgba(255, 255, 255, 0.9); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.6);
  transition: opacity 0.4s, transform 0.6s var(--ease-spring);
}
.page-home .band__art img { width: 100%; height: 100%; object-fit: cover; }
.page-home .band__art.is-swap { opacity: 0; transform: scale(0.7); }
.page-home .band__dots { display: flex; gap: 6px; }
.page-home .band__dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.2); transition: background-color 0.4s, transform 0.4s; }
.page-home .band__dots i.is-on { background: var(--lime); transform: scale(1.3); }
.page-home .band__foot { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }

/* ==========================================================================
   3. HOW IT WORKS
   ========================================================================== */
.page-home .how { --how-pw: clamp(250px, 21vw, 292px); }
.page-home .how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 80px); position: relative; }
.page-home .how__steps { position: relative; padding-inline-start: 76px; }
.page-home .how__rail { position: absolute; top: 24px; bottom: 24px; inset-inline-start: 23px; width: 2px; border-radius: 2px; background: var(--line); }
.page-home .how__rail-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(var(--iris), var(--lime)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.page-home .how__step { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 68vh; padding-block: 24px; opacity: 0.42; transition: opacity 0.5s var(--ease-out); }
.page-home .how__step:first-child { min-height: 52vh; justify-content: flex-start; padding-top: 0; }
.page-home .how__step.is-active { opacity: 1; }
.page-home .how__num {
  position: absolute; inset-inline-start: -76px; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line-2); font-weight: 700; font-size: 0.9rem; color: var(--ink-3); font-variant-numeric: tabular-nums;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.page-home .how__step:first-child .how__num { top: 0; translate: 0 0; }
.page-home .how__step.is-active .how__num { background: var(--iris); color: #fff; border-color: var(--iris); box-shadow: 0 0 0 6px var(--iris-100); }
.page-home .how__step .h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -0.02em; }
.page-home .how__body { margin-top: 12px; color: var(--ink-2); font-size: 1.08rem; max-width: 46ch; }
.page-home .how__try { margin-top: 22px; }
.page-home .how__audio { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.page-home .audio-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 18px 6px 7px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); font-weight: 600; text-align: start;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.page-home .audio-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.page-home .audio-pill > .icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--iris-100); color: var(--iris-700); flex: none; box-sizing: border-box; }
.page-home .audio-pill .en-word { font-size: 1.05rem; }
.page-home .audio-pill__wave { display: none; align-items: center; gap: 2px; height: 14px; }
.page-home .audio-pill__wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--iris); animation: wave-bar 0.9s ease-in-out infinite; }
.page-home .audio-pill__wave i:nth-child(2) { animation-delay: 0.15s; } .page-home .audio-pill__wave i:nth-child(3) { animation-delay: 0.3s; }
.page-home .audio-pill.is-playing { border-color: var(--iris); box-shadow: 0 0 0 4px var(--iris-100); }
.page-home .audio-pill.is-playing > .icon { background: var(--iris); color: #fff; }
.page-home .audio-pill.is-playing .audio-pill__wave { display: inline-flex; }
.page-home .how__games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; max-width: 520px; }
.page-home .how__games li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 0.94rem; line-height: 1.25; }
.page-home .how__game-n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--lime-100); color: var(--leaf-700); flex: none; }
.page-home .how__games li:nth-child(4) .how__game-n { background: var(--iris-100); color: var(--iris-700); }
.page-home .how__mini { display: none; }

.page-home .how__device { position: relative; }
.page-home .how__sticky { position: sticky; top: max(calc(var(--header-h) + 16px), calc(50vh - var(--how-pw) * 1.0667 + var(--header-h) / 2)); display: grid; justify-items: center; gap: 18px; }
.page-home .how__sticky::before {
  content: ""; position: absolute; z-index: -1; top: 8%; width: calc(var(--how-pw) * 1.9); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 69, 255, 0.18), rgba(132, 214, 69, 0.1) 60%, transparent);
}
.page-home .how__phone { --pw: var(--how-pw); }
.page-home .how__dots { display: flex; gap: 8px; }
.page-home .how__dots i { width: 8px; height: 8px; border-radius: 8px; background: var(--line-2); transition: width 0.4s var(--ease-out), background-color 0.4s; }
.page-home .how__dots i.is-on { width: 26px; background: var(--iris); }

.page-home .scr-stack { position: absolute; inset: 0; }
.page-home .scr { position: absolute; inset: 0; opacity: 0; transform: scale(1.035); transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out); }
.page-home .scr.is-active { opacity: 1; transform: none; }
.page-home .scr__peek { position: absolute; inset: 0; }
.page-home .scr--feed.is-active .scr__peek { animation: nudge 2.8s var(--ease-in-out) infinite; }
@keyframes nudge { 0%, 18%, 100% { transform: none; } 45% { transform: translateY(-9%); } 62% { transform: translateY(0.5%); } }
.page-home .touch { position: absolute; left: 50%; top: 52%; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.18); opacity: 0; z-index: 3; }
.page-home .scr--feed.is-active .touch { animation: touch-swipe 2.8s var(--ease-in-out) infinite; }
@keyframes touch-swipe { 0% { opacity: 0; transform: translateY(40px) scale(0.7); } 14% { opacity: 1; transform: translateY(40px) scale(1); } 45% { opacity: 0.9; transform: translateY(-80px) scale(0.95); } 58%, 100% { opacity: 0; transform: translateY(-110px) scale(0.8); } }
.page-home .scr__sound { position: absolute; left: 50%; top: 27%; width: 86px; height: 86px; margin: -43px 0 0 -43px; display: grid; place-items: center; border-radius: 50%; background: rgba(17, 26, 22, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.page-home .scr__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--app-leaf); opacity: 0; }
.page-home .scr--audio.is-active .scr__ring { animation: pulse-ring 1.8s var(--ease-out) infinite; }
.page-home .scr--audio.is-active .scr__ring--2 { animation-delay: 0.9s; }
.page-home .scr__bars { display: flex; align-items: center; gap: 4px; height: 30px; }
.page-home .scr__bars i { width: 4px; height: 100%; border-radius: 4px; background: var(--app-leaf); transform: scaleY(0.3); }
.page-home .scr--audio.is-active .scr__bars i { animation: wave-bar 0.85s ease-in-out infinite; }
.page-home .scr__bars i:nth-child(2) { animation-delay: -0.3s !important; } .page-home .scr__bars i:nth-child(3) { animation-delay: -0.55s !important; } .page-home .scr__bars i:nth-child(4) { animation-delay: -0.15s !important; }
.page-home .scr--audio .app-card__ctx { position: relative; color: #fff; }
.page-home .scr--audio .app-card__ctx::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--app-leaf); transform-origin: left; transform: scaleX(0); }
.page-home .scr--audio.is-active .app-card__ctx::after { animation: karaoke 2.6s linear infinite; }
@keyframes karaoke { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
.page-home .scr__burst { position: absolute; left: 50%; top: 27%; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; border-radius: 50%; background: var(--app-leaf); color: #0e1a0d; opacity: 0; box-shadow: 0 0 0 10px rgba(125, 221, 67, 0.2); }
.page-home .scr--added.is-active .scr__burst { animation: burst-pop 2.8s var(--ease-out) infinite; }
@keyframes burst-pop { 0% { opacity: 0; transform: scale(0.3); } 12% { opacity: 1; transform: scale(1.12); } 22% { transform: scale(1); } 55% { opacity: 1; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(0.9); } }
.page-home .scr__toast { position: absolute; z-index: 4; left: 8%; right: 8%; top: calc(var(--pw) * 0.17); display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--app-leaf); color: #0e1a0d; font-weight: 700; font-size: calc(var(--pw) * 0.043); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(-16px); transition: opacity 0.5s 0.35s var(--ease-out), transform 0.6s 0.35s var(--ease-spring); }
.page-home .scr--added.is-active .scr__toast { opacity: 1; transform: none; }
.page-home .rv { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: calc(var(--pw) * 0.04); padding: calc(var(--pw) * 0.17) calc(var(--pw) * 0.055) calc(var(--pw) * 0.06); background: var(--app-bg); color: var(--app-text); font-size: calc(var(--pw) * 0.05); }
.page-home .rv__bar { width: 100%; display: flex; align-items: center; gap: 10px; color: var(--app-muted); }
.page-home .rv__progress { flex: 1; height: 6px; border-radius: 6px; background: var(--app-panel-hi); overflow: hidden; }
.page-home .rv__progress i { display: block; height: 100%; width: 40%; border-radius: inherit; background: var(--app-leaf); transform-origin: left; }
.page-home .scr--review.is-active .rv__progress i { animation: grow-x 1s 0.3s var(--ease-out) both; }
@keyframes grow-x { from { transform: scaleX(0.4); } to { transform: scaleX(1); } }
.page-home .rv__title { font-weight: 700; font-size: 1em; text-align: center; }
.page-home .rv__speaker { position: relative; width: 3.6em; height: 3.6em; border-radius: 50%; display: grid; place-items: center; background: var(--app-leaf); color: #0e1a0d; box-shadow: 0 0 0 0.5em rgba(125, 221, 67, 0.16); }
.page-home .rv__grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.page-home .rv__pic { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.page-home .rv__pic img { width: 100%; height: 100%; object-fit: cover; }
.page-home .rv__pic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--app-border); }
.page-home .rv__pic.is-right::after { box-shadow: inset 0 0 0 3px var(--app-leaf); }
.page-home .scr--review.is-active .rv__pic.is-right { animation: pop-in-soft 0.6s 0.9s var(--ease-spring) both; }
.page-home .rv__tick { position: absolute; z-index: 1; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--app-leaf); color: #0e1a0d; }
.page-home .rv__ok { margin-top: auto; width: 100%; display: flex; align-items: center; gap: 8px; padding: 0.7em 0.9em; border-radius: 14px; background: var(--app-leaf-bg); color: var(--app-leaf-light); font-weight: 700; font-size: 0.9em; }
.page-home .rv__ok span { unicode-bidi: plaintext; }
.page-home .scr--review.is-active .rv__ok { animation: rise-in 0.6s 1.2s var(--ease-out) both; }

/* ==========================================================================
   4. TRY IT
   ========================================================================== */
.page-home .try { overflow: hidden; isolation: isolate; }
.page-home .try__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(40% 50% at 78% 50%, rgba(132, 214, 69, 0.18), transparent 70%), radial-gradient(40% 60% at 10% 10%, rgba(90, 69, 255, 0.12), transparent 70%); }
.page-home .try__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.page-home .try__games { display: grid; gap: 10px; margin-top: 30px; }
.page-home .try__games li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); font-weight: 620; line-height: 1.3; }
.page-home .try__games li.is-app { background: transparent; border-style: dashed; color: var(--ink-2); }
.page-home .try__gi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--lime-100); color: var(--leaf-700); }
.page-home .try__games li.is-app .try__gi { background: var(--iris-100); color: var(--iris-700); }
.page-home .try__gtag { margin-inline-start: auto; padding: 4px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; background: var(--lime-100); color: var(--leaf-700); }
.page-home .try__games li.is-app .try__gtag { background: var(--iris-50); color: var(--iris-700); }
.page-home .try__note { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; }
.page-home .try__note .icon { flex: none; margin-top: 2px; color: var(--iris); }

.page-home .try__panel {
  position: relative; display: flex; flex-direction: column; min-height: 600px; padding: clamp(18px, 2.4vw, 30px); border-radius: 34px;
  background: radial-gradient(120% 60% at 50% 0%, #17241d, var(--app-bg) 60%); color: var(--app-text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 50px 100px -40px rgba(17, 26, 22, 0.7), 0 20px 40px -20px rgba(17, 26, 22, 0.3);
}
.page-home .try__panel :focus-visible { outline-color: var(--app-leaf-light); }
.page-home .try__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-home .try__round { font-weight: 700; font-size: 1.08rem; }
.page-home .try__dots { display: flex; gap: 6px; flex: none; }
.page-home .try__dots li { width: 30px; height: 6px; border-radius: 6px; background: var(--app-panel-hi); transition: background-color 0.4s; }
.page-home .try__dots li.is-on { background: var(--app-leaf); }
.page-home .try__dots li.is-done { background: #4c9421; }
.page-home .try__stage { flex: 1; display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.page-home .try__stage.is-enter { animation: rise-in 0.55s var(--ease-out); }
.page-home .try__prompt { color: var(--app-muted); }
.page-home .try__listen { display: flex; justify-content: center; }
.page-home .try__speaker { position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--app-leaf); color: #0e1a0d; box-shadow: 0 0 0 10px rgba(125, 221, 67, 0.14); transition: transform 0.3s var(--ease-spring), box-shadow 0.3s; }
.page-home .try__speaker:hover { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(125, 221, 67, 0.18); }
.page-home .try__speaker .audio-btn__wave { color: #0e1a0d; }
.page-home .try__speaker .audio-btn__wave i { width: 4px; height: 18px; }
.page-home .try__speaker.is-playing .icon { opacity: 0; }
.page-home .try__speaker.is-playing .audio-btn__wave { display: flex; }
.page-home .try__pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.page-home .try__pic { position: relative; aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; transition: transform 0.35s var(--ease-out); }
.page-home .try__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out), opacity 0.4s; }
.page-home .try__pic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1); transition: box-shadow 0.3s; }
.page-home .try__pic:not(:disabled):hover { transform: translateY(-3px); }
.page-home .try__pic:not(:disabled):hover img { transform: scale(1.05); }
.page-home .try__pic:disabled { cursor: default; }
.page-home .try__pic.is-right::after { box-shadow: inset 0 0 0 4px var(--app-leaf); }
.page-home .try__pic.is-right { box-shadow: 0 0 40px -8px rgba(125, 221, 67, 0.7); }
.page-home .try__pic.is-dim img { opacity: 0.35; }
.page-home .try__pic.is-wrong { animation: shake 0.45s; }
.page-home .try__pic.is-wrong::after { box-shadow: inset 0 0 0 4px var(--app-red); }
.page-home .try__tick { position: absolute; z-index: 1; top: 10px; inset-inline-end: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--app-leaf); color: #0e1a0d; animation: pop-in-soft 0.45s var(--ease-spring); }
.page-home .try__reveal { position: absolute; z-index: 1; inset-inline-start: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(12, 19, 16, 0.78); color: #fff; font-size: 0.9rem; animation: pop-in-soft 0.45s var(--ease-spring); }

.page-home .try__match { margin-block: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.page-home .try__col { display: grid; gap: 10px; align-content: start; }
.page-home .try__collabel { font-size: var(--fs-xs); font-weight: 700; color: var(--app-faint); }
.page-home .try__opt {
  position: relative; min-height: 58px; padding: 10px 14px; border-radius: 16px; background: var(--app-panel); border: 1.5px solid var(--app-border);
  color: var(--app-text); font-weight: 650; line-height: 1.25; text-align: center; transition: border-color 0.25s, background-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}
.page-home .try__opt .en-word { font-size: 1.08rem; }
.page-home .try__opt:not(:disabled):hover { border-color: var(--app-faint); transform: translateY(-1px); }
.page-home .try__opt[aria-pressed="true"] { border-color: #9db7f5; background: #1f2a44; box-shadow: 0 0 0 4px rgba(157, 183, 245, 0.16); }
.page-home .try__opt.is-matched { border-color: var(--app-leaf); background: var(--app-leaf-bg); color: var(--app-leaf-light); cursor: default; animation: pop-in-soft 0.4s var(--ease-spring); }
.page-home .try__opt.is-wrong { border-color: var(--app-red); animation: shake 0.45s; }
.page-home .try__sentence { margin-top: auto; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.75rem); font-weight: 650; line-height: 1.45; text-align: center; color: #fff; }
.page-home .try__gap { display: inline-block; min-width: 4.4em; padding-inline: 0.15em; border-bottom: 3px solid var(--app-leaf); color: var(--app-leaf-light); line-height: 1.1; }
.page-home .try__gap.is-filled { animation: pop-in-soft 0.45s var(--ease-spring); }
.page-home .try__tr { text-align: center; color: var(--app-muted); }
.page-home .try__say { position: relative; width: 40px; height: 40px; vertical-align: middle; margin-inline-start: 4px; background: var(--app-panel-hi); color: var(--app-leaf-light); animation: pop-in-soft 0.45s 0.2s var(--ease-spring) both; }
.page-home .try__say::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
.page-home .try__opt.is-dim { opacity: 0.4; }
.page-home .try__pic[aria-disabled="true"], .page-home .try__opt[aria-disabled="true"] { cursor: default; }
.page-home .try__choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: auto; }
.page-home .try__choices .try__opt { min-width: 130px; }
.page-home .try__live { flex: 1 1 120px; min-width: 0; text-align: start; font-weight: 700; color: var(--app-leaf-light); }
.page-home .try__live.is-wrong { color: var(--app-amber); }
.page-home .try__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-height: 48px; margin-top: 18px; }
.page-home .try__next { flex: none; margin-inline-start: auto; animation: rise-in 0.45s var(--ease-out); }
.page-home .try__done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.page-home .try__trophy { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--app-leaf); color: #0e1a0d; box-shadow: 0 0 0 12px rgba(125, 221, 67, 0.15), 0 0 80px rgba(125, 221, 67, 0.4); animation: pop-in-soft 0.7s var(--ease-spring); }
.page-home .try__done h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.02em; }
.page-home .try__done p { max-width: 38ch; color: var(--app-muted); }
.page-home .try__words { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-home .try__words span { padding: 6px 12px; border-radius: 999px; background: var(--app-panel-hi); color: var(--app-leaf-light); font-size: 0.95rem; }
.page-home .try__burst { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.page-home .try__burst i { position: absolute; left: 50%; top: 42%; width: 9px; height: 9px; border-radius: 2px; background: var(--c); opacity: 0; animation: burst 1.2s var(--ease-out) forwards; animation-delay: var(--dl, 0ms); }
@keyframes burst { 0% { opacity: 1; transform: translate(-50%, -50%) scale(0.4); } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1); } }

/* ==========================================================================
   5. MEMORY LADDER
   ========================================================================== */
.page-home .ladder__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.page-home .ladder__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); }
.page-home .ladder__status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.page-home .ladder__word { display: inline-flex; align-items: center; gap: 10px; margin-inline-end: auto; }
.page-home .ladder__word img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.page-home .ladder__word .en-word { font-size: 1.25rem; }
.page-home .ladder__rung { padding: 5px 12px; border-radius: 999px; background: var(--iris-50); color: var(--iris-700); font-weight: 700; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.page-home .ladder__learned { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--lime-100); color: var(--leaf-700); font-weight: 700; font-size: var(--fs-xs); opacity: 0; transform: scale(0.8); transition: opacity 0.35s, transform 0.45s var(--ease-spring); }
.page-home [data-ladder].is-learned .ladder__learned { opacity: 1; transform: none; }
.page-home .ladder__next { margin-top: 14px; min-height: 2.8em; font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem); font-weight: 650; line-height: 1.35; }
.page-home .ladder__stairs { --rise: 40px; --gap: 6px; position: relative; height: calc(var(--rise) * 8 + 40px); margin-top: 8px; }
.page-home .ladder__rungs { position: absolute; inset: auto 0 0; height: calc(var(--rise) * 8); display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.page-home .ladder__step { height: calc(var(--rise) * (var(--i) + 1)); }
.page-home .ladder__bar { position: relative; display: block; height: 100%; border-radius: 12px 12px 4px 4px; background: var(--iris-50); box-shadow: inset 0 0 0 1px var(--iris-100); transition: background-color 0.45s, box-shadow 0.45s; }
.page-home .ladder__step.is-passed .ladder__bar { background: linear-gradient(180deg, #7a68ff, var(--iris)); box-shadow: none; }
.page-home .ladder__step.is-learned.is-passed .ladder__bar { background: linear-gradient(180deg, #9be060, var(--leaf)); }
.page-home .ladder__label { position: absolute; top: 10px; inset-inline: 2px; text-align: center; font-size: 0.74rem; font-weight: 700; line-height: 1.15; color: var(--iris-700); white-space: nowrap; transition: color 0.4s; }
.page-home .ladder__step.is-passed .ladder__label { color: #fff; }
.page-home .ladder__step.is-learned.is-passed .ladder__label { color: #11240a; }
.page-home .ladder__token {
  position: absolute; z-index: 2; bottom: var(--rise); inset-inline-start: 0; width: calc((100% - var(--gap) * 7) / 8); height: var(--rise);
  display: flex; align-items: flex-end; justify-content: center; pointer-events: none;
  transform: translate(calc(var(--step) * (100% + var(--gap)) * var(--dirx)), calc(var(--step) * -100%));
  transition: transform 0.75s var(--ease-spring);
}
.page-home .ladder__token-in { width: 54px; height: 54px; margin-bottom: 6px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: 0 12px 24px -8px rgba(90, 69, 255, 0.65), 0 0 0 5px rgba(90, 69, 255, 0.16); }
.page-home .ladder__token-in img { width: 100%; height: 100%; object-fit: cover; }
.page-home [data-ladder].is-learned .ladder__token-in { box-shadow: 0 12px 24px -8px rgba(95, 175, 58, 0.7), 0 0 0 5px rgba(132, 214, 69, 0.3); }
.page-home [data-ladder].is-falling .ladder__token { transition: transform 0.7s cubic-bezier(0.55, 0, 0.75, 0.05); }
.page-home [data-ladder].is-bump .ladder__token-in { animation: shake 0.45s; }
.page-home .ladder__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.page-home .ladder__try { font-weight: 600; color: var(--ink-3); margin-inline-end: 4px; }
.page-home .ladder__points { display: grid; gap: 14px; }
.page-home .ladder__point { display: flex; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.page-home .ladder__point .icon-tile { flex: none; }
.page-home .ladder__ptitle { font-size: 1.12rem; font-weight: 680; letter-spacing: -0.01em; }
.page-home .ladder__point p { margin-top: 6px; color: var(--ink-2); font-size: var(--fs-small); }

/* ==========================================================================
   6. BENTO
   ========================================================================== */
.page-home .bento.is-off * { animation-play-state: paused !important; }
.page-home .bento__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.page-home .bento__tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.page-home .bento__tile--wotd { grid-column: span 2; grid-row: span 2; }
.page-home .bento__tile--collections { grid-column: span 2; }
.page-home .bento__visual { position: relative; flex: 1; display: grid; place-items: center; min-height: 200px; margin: 10px 10px 0; padding: 20px; border-radius: 20px; overflow: hidden; background: var(--mist); }
.page-home .bento__text { padding: 18px 24px 24px; }
.page-home .bento__title { font-size: 1.15rem; font-weight: 680; letter-spacing: -0.012em; line-height: 1.25; }
.page-home .bento__body { margin-top: 6px; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.55; }

/* word of the day */
.page-home .bento__tile--wotd .bento__visual { background: linear-gradient(155deg, #4b37f0 0%, #7c4dff 38%, #e86bb0 78%, #ffb36b 100%); padding: 28px; }
.page-home .bento__tile--wotd .bento__visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 10%, rgba(255, 255, 255, 0.25), transparent 70%); }
.page-home .wotd { position: relative; width: min(100%, 420px); display: grid; justify-items: center; gap: 22px; }
.page-home .wotd__clock { font-size: clamp(3rem, 2rem + 3vw, 4.6rem); font-weight: 300; letter-spacing: -0.04em; color: rgba(255, 255, 255, 0.92); line-height: 1; font-variant-numeric: tabular-nums; }
.page-home .wotd__note { width: 100%; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 24px 50px -20px rgba(22, 19, 45, 0.5); color: var(--ink); }
.page-home .bento__tile--wotd.is-in .wotd__note { animation: note-drop 1s 0.35s var(--ease-out) both; }
@keyframes note-drop { from { opacity: 0; transform: translateY(-30px) scale(0.96); } to { opacity: 1; transform: none; } }
.page-home .wotd__head { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; color: var(--ink-3); }
.page-home .wotd__app { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--night); }
.page-home .wotd__app svg { width: 15px; height: 15px; }
.page-home .wotd__time { margin-inline-start: auto; }
.page-home .wotd__word { margin-top: 8px; font-weight: 650; color: var(--ink-2); }
.page-home .wotd__word .en-word { font-size: 1.2rem; color: var(--ink); margin-inline-end: 6px; }
.page-home .wotd__pic { margin-top: 10px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; }
.page-home .wotd__pic img { width: 100%; height: 100%; object-fit: cover; }
.page-home .bento__tile--wotd.is-in .wotd__pic img { animation: ken 14s ease-in-out infinite alternate; }
@keyframes ken { from { transform: scale(1); } to { transform: scale(1.12) translateY(-3%); } }
.page-home .wotd__actions { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: 0.8rem; font-weight: 700; color: var(--iris-600); }

/* streak */
.page-home .bento__tile--streak .bento__visual { background: linear-gradient(160deg, var(--sun-100), #ffe4cf); }
.page-home .streak { display: grid; gap: 16px; justify-items: center; width: 100%; }
.page-home .streak__count { display: flex; align-items: center; gap: 10px; }
.page-home .streak__flame { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #ff9a3d; color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 120, 30, 0.8); }
.page-home .bento__tile--streak.is-in .streak__flame { animation: flicker 2.6s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(3deg) scale(1.06); } }
.page-home .streak__n { font-size: 2.6rem; font-weight: 760; letter-spacing: -0.04em; line-height: 1; color: #6b3a00; font-variant-numeric: tabular-nums; }
.page-home .streak__lbl { font-weight: 650; color: #8a5300; max-width: 9ch; line-height: 1.15; font-size: 0.9rem; }
.page-home .streak__cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.page-home .streak__cal i { width: 20px; height: 20px; border-radius: 7px; background: rgba(168, 109, 0, 0.12); }
.page-home .streak__cal i.on { background: #ff9a3d; }
.page-home .streak__cal i.today { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ff9a3d; }
.page-home .bento__tile--streak.is-in .streak__cal i.on { animation: cell-on 0.5s var(--ease-spring) both; animation-delay: calc(250ms + var(--i) * 70ms); }
@keyframes cell-on { from { transform: scale(0.3); background: rgba(168, 109, 0, 0.12); } to { transform: none; } }

/* voice */
.page-home .bento__visual--voice { place-items: stretch; align-content: start; gap: 10px; background: var(--iris-50); }
.page-home .voice__eq { display: flex; align-items: center; justify-content: center; gap: 4px; height: 34px; }
.page-home .voice__eq i { width: 4px; height: 100%; border-radius: 4px; background: linear-gradient(var(--iris), #a296ff); transform: scaleY(0.25); }
.page-home .bento__tile--voice.is-in .voice__eq i { animation: wave-bar 1.1s ease-in-out infinite; }
.page-home .voice__eq i:nth-child(3n) { animation-delay: -0.3s !important; } .page-home .voice__eq i:nth-child(3n+1) { animation-delay: -0.7s !important; } .page-home .voice__eq i:nth-child(4n) { animation-delay: -0.5s !important; }
.page-home .voice__list { display: grid; gap: 6px; }
.page-home .voice__list li { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); font-size: 0.86rem; line-height: 1.25; color: var(--ink-2); }
.page-home .voice__list li:first-child { font-size: 1rem; color: var(--ink); }
.page-home .voice__list .audio-btn { width: 44px; height: 44px; background: var(--iris); color: #fff; }

/* search */
.page-home .bento__tile--search .bento__visual { background: var(--sky-100); }
.page-home .search { width: 100%; display: grid; gap: 10px; }
.page-home .search__field { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); color: var(--ink-3); }
.page-home .search__q { color: var(--ink); font-weight: 600; white-space: nowrap; }
.page-home .search__caret { width: 2px; height: 20px; margin-inline-start: -8px; background: var(--iris); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.page-home .search__res { display: grid; gap: 6px; }
.page-home .search__row { display: none; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 14px; background: rgba(255, 255, 255, 0.85); font-size: 0.9rem; color: var(--ink-2); }
.page-home .search__row.is-on { display: flex; animation: rise-in 0.4s var(--ease-out); }
.page-home .search__row img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.page-home .search__row .en-word { color: var(--ink); }
.page-home .search__row > span:last-child { margin-inline-start: auto; text-align: end; }

/* collections */
.page-home .bento__tile--collections .bento__visual { background: linear-gradient(160deg, var(--lime-100), #f4fbe9); }
.page-home .colls { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: min(100%, 520px); padding-bottom: 46px; }
.page-home .coll { position: relative; display: grid; gap: 4px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.page-home .stackimg { display: flex; margin-bottom: 8px; }
.page-home .stackimg img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.page-home .stackimg img + img { margin-inline-start: -14px; }
.page-home .coll__name { font-weight: 700; }
.page-home .coll__n { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.page-home .coll__share { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf); color: #fff; }
.page-home .bento__tile--collections.is-in .coll__share { animation: tap 4.5s ease-in-out infinite; }
@keyframes tap { 0%, 30%, 100% { transform: none; } 34% { transform: scale(0.85); } 40% { transform: scale(1.06); } 46% { transform: none; } }
.page-home .colls__toast { position: absolute; left: 50%; bottom: 0; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.82rem; font-weight: 650; white-space: nowrap; opacity: 0; }
.page-home .bento__tile--collections.is-in .colls__toast { animation: toast 4.5s ease-in-out infinite; }
@keyframes toast { 0%, 38% { opacity: 0; transform: translateY(10px); } 46%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(6px); } }

/* offline */
.page-home .bento__tile--offline .bento__visual { background: var(--paper-2); align-content: center; gap: 12px; }
.page-home .offline { display: grid; gap: 12px; width: 100%; justify-items: center; }
.page-home .offline__pill { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 650; white-space: nowrap; }
.page-home .offline__pill--off { background: var(--ink); color: #fff; }
.page-home .offline__pill--on { background: var(--lime); color: #11240a; opacity: 0; }
.page-home .offline__q { display: grid; gap: 6px; width: 100%; }
.page-home .offline__q li { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.page-home .offline__q img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.page-home .offline__q .en-word { font-size: 0.92rem; }
.page-home .offline__st { position: relative; margin-inline-start: auto; width: 22px; height: 22px; display: grid; place-items: center; }
.page-home .offline__st .icon { grid-area: 1 / 1; }
.page-home .offline__st .st-wait { color: var(--ink-3); }
.page-home .offline__st .st-ok { color: var(--leaf); opacity: 0; }
.page-home .bento__tile--offline.is-in .offline__pill--off { animation: off-phase 6s ease-in-out infinite; }
.page-home .bento__tile--offline.is-in .offline__pill--on { animation: on-phase 6s ease-in-out infinite; }
.page-home .bento__tile--offline.is-in .st-wait { animation: off-phase 6s ease-in-out infinite; animation-delay: calc(var(--i) * 0.18s); }
.page-home .bento__tile--offline.is-in .st-ok { animation: on-phase 6s ease-in-out infinite; animation-delay: calc(var(--i) * 0.18s); }
@keyframes off-phase { 0%, 48% { opacity: 1; transform: none; } 54%, 94% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; transform: none; } }
@keyframes on-phase { 0%, 50% { opacity: 0; transform: scale(0.9); } 56%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

/* guest */
.page-home .bento__tile--guest .bento__visual { background: linear-gradient(160deg, var(--rose-100), #fff4f9); }
.page-home .guest { display: grid; justify-items: center; gap: 8px; width: 100%; }
.page-home .guest__avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #c8317a; box-shadow: var(--shadow-sm); }
.page-home .guest__label { font-weight: 700; margin-bottom: 4px; }
.page-home .guest__btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 260px; height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.82rem; font-weight: 650; white-space: nowrap; }
.page-home .guest__btn--g { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-home .guest__g { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: 0.72rem; font-weight: 800; }

/* data */
.page-home .bento__tile--data .bento__visual { background: linear-gradient(160deg, var(--iris-50), var(--mist)); }
.page-home .data { position: relative; display: grid; gap: 8px; width: 100%; max-width: 280px; }
.page-home .data__row { position: relative; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); font-size: 0.86rem; font-weight: 650; overflow: hidden; white-space: nowrap; }
.page-home .data__row--export .icon { color: var(--iris); }
.page-home .data__row--delete { color: #c0392b; }
.page-home .data__bar { position: absolute; inset: auto 0 0; height: 3px; background: var(--iris-100); }
.page-home .data__bar i { display: block; height: 100%; background: var(--iris); transform-origin: left; transform: scaleX(1); }
[dir="rtl"] .page-home .data__bar i { transform-origin: right; }
.page-home .bento__tile--data.is-in .data__bar i { animation: export 3.6s var(--ease-in-out) infinite; }
@keyframes export { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }
.page-home .data__badge { position: absolute; top: -14px; inset-inline-end: -10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf); color: #fff; box-shadow: 0 8px 18px -6px rgba(63, 127, 34, 0.6); }

/* ==========================================================================
   7. GALLERY
   ========================================================================== */
.page-home .gallery { overflow: hidden; }
.page-home .gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.page-home .gallery__head .section-head { margin-bottom: 0; }
.page-home .gallery__rows { display: grid; gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(32px, 4vw, 56px); }
.page-home .gallery__row { --gap: clamp(14px, 1.6vw, 22px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); padding-block: 6px; }
.page-home .gallery__row:focus-within .marquee__track, .page-home .gallery.is-paused .marquee__track { animation-play-state: paused; }
.page-home .gtile { --h: clamp(170px, 15vw, 270px); position: relative; flex: none; height: var(--h); aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-sm); }
.page-home .gtile--sq { aspect-ratio: 1; }
.page-home .gtile__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.page-home .gtile:hover .gtile__img, .page-home .gtile:focus-within .gtile__img { transform: scale(1.06); }
.page-home .gtile__shade { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(12, 10, 28, 0.78)); pointer-events: none; }
.page-home .gtile__cap { position: absolute; inset-inline: 16px 66px; bottom: 14px; display: grid; gap: 2px; color: #fff; transform: translateY(1.35em); transition: transform 0.45s var(--ease-out); }
.page-home .gtile__cap .en-word { font-size: clamp(1rem, 0.9rem + 0.4vw, 1.3rem); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); }
.page-home .gtile__m { font-size: 0.9rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity 0.35s; }
.page-home .gtile:hover .gtile__cap, .page-home .gtile:focus-within .gtile__cap { transform: none; }
.page-home .gtile:hover .gtile__m, .page-home .gtile:focus-within .gtile__m { opacity: 1; }
@media (hover: none) { .page-home .gtile__cap { transform: none; } .page-home .gtile__m { opacity: 1; } }
.page-home .gtile__play { position: absolute; bottom: 12px; inset-inline-end: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.9); color: var(--ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform 0.3s var(--ease-spring), background-color 0.2s; }
.page-home .gtile__play:hover { transform: scale(1.08); background: #fff; }
.page-home .gtile__play .audio-btn__wave { color: var(--iris); }
.page-home .gtile__play.is-playing .icon { opacity: 0; }
.page-home .gtile__play.is-playing .audio-btn__wave { display: flex; }

/* ==========================================================================
   8. LANGUAGES
   ========================================================================== */
.page-home .langs { overflow: hidden; }
.page-home .langs__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.page-home .langs__picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 540px; margin-top: 30px; }
.page-home .lpick { min-height: 44px; padding: 0 10px; white-space: nowrap; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; color: var(--ink-2); transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out); }
.page-home .lpick:hover { border-color: var(--ink-3); color: var(--ink); }
.page-home .lpick[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 8px 20px -8px rgba(22, 19, 45, 0.5); }
.page-home .langs__note { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.page-home .langs__note .icon { color: var(--iris); flex: none; }
.page-home .langs__show { position: relative; display: grid; justify-items: center; gap: 18px; }
.page-home .langs__show::before { content: ""; position: absolute; z-index: 0; top: 10%; width: 110%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(90, 69, 255, 0.16), transparent); pointer-events: none; }
.page-home .lcard { position: relative; width: min(100%, 440px); border-radius: 32px; overflow: hidden; background: var(--app-bg); color: var(--app-text); box-shadow: 0 50px 90px -40px rgba(17, 26, 22, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04) inset; }
.page-home .lcard__art { aspect-ratio: 16 / 10; overflow: hidden; }
.page-home .lcard__art img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s, transform 0.6s var(--ease-out); }
.page-home .lcard__body { display: grid; gap: 6px; padding: 20px 24px 6px; }
.page-home .lcard__word { display: flex; align-items: center; gap: 12px; }
.page-home .lcard__word .en-word { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); color: #fff; }
.page-home .lcard .audio-btn { width: 44px; height: 44px; background: var(--app-panel-hi); color: var(--app-leaf-light); }
.page-home .lcard__live { display: grid; gap: 2px; margin-top: 4px; }
.page-home .lcard__lname { font-size: 0.78rem; font-weight: 700; color: var(--app-faint); }
.page-home .lcard__meaning { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); font-weight: 700; line-height: 1.25; color: var(--app-leaf-light); }
.page-home .lcard__ctx { margin-top: 8px; color: var(--app-text); }
.page-home .lcard__tr { color: var(--app-muted); font-size: 0.95rem; }
.page-home .lcard [dir="rtl"] { text-align: right; }
.page-home .lcard__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; margin-top: 16px; padding: 12px 8px 14px; background: var(--app-deep); border-top: 1px solid var(--app-panel); }
.page-home .lcard__tabs span { display: grid; justify-items: center; gap: 4px; min-width: 0; color: var(--app-faint); }
.page-home .lcard__tabs b { max-width: 100%; font-size: 0.66rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-home .lcard__tabs span.is-on { color: var(--app-leaf-light); }
.page-home .lcard [data-l-m], .page-home .lcard [data-l-tr], .page-home .lcard [data-l-name], .page-home .lcard [data-l-tabs] b, .page-home .lcard [data-l-word], .page-home .lcard [data-l-ctx] { transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out); }
.page-home .lcard.is-swap [data-l-m], .page-home .lcard.is-swap [data-l-tr], .page-home .lcard.is-swap [data-l-name], .page-home .lcard.is-swap [data-l-tabs] b { opacity: 0; transform: translateY(8px); }
.page-home .lcard.is-word-swap [data-l-word], .page-home .lcard.is-word-swap [data-l-ctx], .page-home .lcard.is-word-swap .lcard__art img { opacity: 0; }
.page-home .lcard.is-word-swap .lcard__art img { transform: scale(1.06); }
.page-home .langs__another { position: relative; }

/* ==========================================================================
   9. FAQ
   ========================================================================== */
.page-home .faqs__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.page-home .faqs__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.page-home .faqs__intro .text-link { min-height: 44px; }

/* ==========================================================================
   10. FINAL CTA
   ========================================================================== */
.page-home .final { overflow: hidden; isolation: isolate; text-align: center; padding-block: clamp(96px, 12vw, 176px); margin-bottom: clamp(8px, 1.5vw, 20px); }
.page-home .final__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(40% 50% at 50% 50%, rgba(90, 69, 255, 0.45), transparent 72%), radial-gradient(30% 30% at 50% 100%, rgba(132, 214, 69, 0.2), transparent 70%); }
.page-home .final__inner { position: relative; z-index: 1; display: grid; justify-items: center; }
.page-home .final .btn { max-width: 100%; white-space: normal; text-align: center; }
.page-home .final__mark { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 22px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--night-line); box-shadow: 0 0 60px rgba(132, 214, 69, 0.25); }
.page-home .final__mark svg { width: 40px; height: 40px; }
.page-home .final__title { margin-top: 28px; max-width: 20ch; font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.5rem); line-height: 1.02; letter-spacing: var(--track-tight); font-weight: 760; color: #fff; }
[data-script="arabic"] .page-home .final__title, [data-script="devanagari"] .page-home .final__title, [data-script="cjk"] .page-home .final__title { line-height: 1.25; font-size: clamp(2.1rem, 1.1rem + 3.2vw, 4rem); }
.page-home .final__lead { margin: 22px auto 0; color: var(--on-night-2); }
.page-home .final__ctas { justify-content: center; margin-top: 36px; }
.page-home .final__ctas .btn--ghost { background: rgba(18, 15, 40, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.page-home .final .btn--lime .soon-dot { background: #11240a; }
.page-home .final .btn--lime .soon-dot::after { border-color: #11240a; }
.page-home .final__art { position: absolute; inset: 0; pointer-events: none; }
.page-home .final__tile { position: absolute; width: clamp(92px, 9.5vw, 150px); border-radius: 22px; overflow: hidden; background: var(--night-2); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7); animation: drift 12s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.7s); }
.page-home .final__tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.page-home .final__tile .en-word { display: block; padding: 7px 10px 9px; font-size: 0.78rem; color: var(--on-night); text-align: start; }
@keyframes drift { from { transform: translateY(-10px); } to { transform: translateY(12px); } }
.page-home .final__tile:nth-child(1) { top: 10%; inset-inline-start: 5%; rotate: -8deg; }
.page-home .final__tile:nth-child(2) { top: 7%; inset-inline-end: 7%; rotate: 7deg; }
.page-home .final__tile:nth-child(3) { top: 47%; inset-inline-start: 1.5%; rotate: 5deg; width: clamp(80px, 8vw, 124px); }
.page-home .final__tile:nth-child(4) { top: 50%; inset-inline-end: 2%; rotate: -6deg; width: clamp(80px, 8vw, 124px); }
.page-home .final__tile:nth-child(5) { bottom: -4%; inset-inline-start: 15%; rotate: 8deg; width: clamp(76px, 7vw, 112px); opacity: 0.9; }
.page-home .final__tile:nth-child(6) { bottom: -5%; inset-inline-end: 16%; rotate: -8deg; width: clamp(76px, 7vw, 112px); opacity: 0.9; }
.page-home .final__tile:nth-child(7) { top: 4%; inset-inline-start: 27%; rotate: 4deg; width: clamp(64px, 5.5vw, 92px); opacity: 0.55; }
.page-home .final__tile:nth-child(8) { bottom: -7%; inset-inline-end: 36%; rotate: -5deg; width: clamp(64px, 5.5vw, 92px); opacity: 0.5; }
.page-home .final.is-off .final__tile { animation-play-state: paused; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .page-home .hero__ctas .btn--lg { padding-inline: 20px; }
  .page-home .hchip--added { inset-inline-start: -2%; }
  .page-home .hchip--audio { inset-inline-end: -1%; }
}

@media (max-width: 1023px) {
  .page-home .hero__inner { grid-template-columns: 1fr; min-height: 0; text-align: center; }
  .page-home .hero__copy { margin-inline: auto; display: grid; justify-items: center; }
  .page-home .hero__lead { margin-inline: auto; }
  .page-home .hero__ctas { justify-content: center; }
  .page-home .hero__visual { min-height: 0; padding-block: 24px 40px; max-width: 560px; width: 100%; margin-inline: auto; text-align: start; }
  .page-home .hero__halo { width: min(520px, 90vw); }
  .page-home .hero__phone { --pw: clamp(240px, 46vw, 290px); }
  .page-home .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .hero__fact:nth-child(3) { border-inline-start: 0; }
  .page-home .hero__fact:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .page-home .how__grid { grid-template-columns: 1fr; }
  .page-home .how__device { display: none; }
  .page-home .how__step { min-height: 0; opacity: 1; padding-block: 0 48px; }
  .page-home .how__step:first-child { min-height: 0; }
  .page-home .how__step:last-child { padding-bottom: 0; }
  .page-home .how__num, .page-home .how__step:first-child .how__num { top: 0; translate: 0 0; }
  .page-home .how__mini { display: flex; margin-top: 20px; }
  .page-home .mini-card { align-items: center; gap: 14px; max-width: 420px; padding: 10px; border-radius: 20px; background: var(--app-bg); color: var(--app-text); box-shadow: var(--shadow); }
  .page-home .mini-card img { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; flex: none; }
  .page-home .mini-card__body { display: grid; gap: 2px; min-width: 0; }
  .page-home .mini-card__body .en-word { font-size: 1.2rem; color: #fff; }
  .page-home .mini-card__body > span:nth-child(2) { color: var(--app-leaf-light); font-weight: 650; }
  .page-home .mini-card__ctx { font-size: 0.85rem; color: var(--app-muted); }
  .page-home .mini-add { position: relative; display: grid; justify-items: start; }
  .page-home .mini-add > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; transition: opacity 0.4s 0.5s, transform 0.5s 0.5s var(--ease-spring); }
  .page-home .mini-add__btn { background: var(--app-leaf); color: #0e1a0d; }
  .page-home .mini-add__done { background: var(--app-leaf-bg); color: var(--app-leaf-light); box-shadow: inset 0 0 0 1.5px var(--app-leaf); opacity: 0; transform: scale(0.9); }
  .page-home .how__step.is-active .mini-add__btn { opacity: 0; transform: scale(0.9); }
  .page-home .how__step.is-active .mini-add__done { opacity: 1; transform: none; }

  .page-home .try__grid, .page-home .ladder__grid, .page-home .langs__grid, .page-home .faqs__grid { grid-template-columns: 1fr; }
  .page-home .try__panel { min-height: 0; }
  .page-home .faqs__intro { position: static; }
  .page-home .ladder__points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-home .ladder__point { flex-direction: column; }
  .page-home .bento__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .page-home .bento__tile--wotd { grid-row: auto; }
  .page-home .bento__tile--wotd .bento__visual { min-height: 380px; }
}

@media (max-width: 900px) {
  .page-home .final__tile:nth-child(n + 5) { display: none; }
  .page-home .final__tile { opacity: 0.55; }
  .page-home .final__tile:nth-child(1) { top: 4%; inset-inline-start: -2%; }
  .page-home .final__tile:nth-child(2) { top: 3%; inset-inline-end: -2%; }
  .page-home .final__tile:nth-child(3) { top: auto; bottom: 4%; inset-inline-start: -2%; }
  .page-home .final__tile:nth-child(4) { top: auto; bottom: 3%; inset-inline-end: -2%; }
}

@media (max-width: 720px) {
  .page-home .ladder__points { grid-template-columns: 1fr; }
  .page-home .ladder__point { flex-direction: row; }
  .page-home .bento__grid { grid-template-columns: 1fr; }
  .page-home .bento__tile--wotd, .page-home .bento__tile--collections { grid-column: auto; }
  .page-home .bento__tile--wotd .bento__visual { min-height: 0; padding: 22px 16px; }
  .page-home .gallery__head .motion-toggle { order: 2; }
}

@media (max-width: 640px) {
  .page-home .hero__title { font-size: clamp(2.35rem, 1rem + 7.2vw, 3.2rem); }
  [data-script="cjk"] .page-home .hero__title, [data-script="arabic"] .page-home .hero__title, [data-script="devanagari"] .page-home .hero__title { font-size: clamp(2rem, 1rem + 6vw, 2.8rem); }
  .page-home .hero__ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .page-home .hero__ctas .btn { width: 100%; }
  .page-home .hero__phone { --pw: 236px; }
  .page-home .hchip { font-size: 0.72rem; padding: 8px 10px; gap: 8px; border-radius: 14px; }
  .page-home .hchip .en-word { font-size: 0.84rem; }
  .page-home .hchip__play, .page-home .hchip__check { width: 26px; height: 26px; }
  .page-home .hchip__app { width: 28px; height: 28px; }
  .page-home .hchip__img { width: 34px; height: 34px; }
  .page-home .hchip--notif { top: 2%; inset-inline-start: 0; }
  .page-home .hchip--audio { top: 34%; inset-inline-end: 0; }
  .page-home .hchip--added { bottom: 22%; inset-inline-start: 0; }
  .page-home .hchip--lang { bottom: 8%; inset-inline-end: 0; }
  .page-home .hero__pause { bottom: 0; inset-inline-start: 0; }
  .page-home .hero__facts { grid-template-columns: 1fr 1fr; padding: 6px; }
  .page-home .band__art { width: 54px; top: -36%; inset-inline-end: -17%; border-width: 2px; }
  .page-home .hero__fact { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; font-size: 0.88rem; text-align: start; }

  .page-home .how__steps { padding-inline-start: 60px; }
  .page-home .how__rail { inset-inline-start: 19px; }
  .page-home .how__num { inset-inline-start: -60px; width: 40px; height: 40px; }
  .page-home .how__games { grid-template-columns: 1fr; }
  .page-home .audio-pill--sentence { width: 100%; }

  .page-home .try__panel { padding: 16px; border-radius: 26px; }
  .page-home .try__pics { gap: 8px; }
  .page-home .try__match { gap: 8px; }
  .page-home .try__opt { min-height: 52px; padding: 8px 10px; font-size: 0.92rem; }
  .page-home .try__top { flex-wrap: wrap; }

  .page-home .ladder__stairs { --rise: 44px; height: auto; padding-inline-start: 64px; }
  .page-home .ladder__rungs { position: relative; inset: auto; height: auto; display: flex; flex-direction: column-reverse; align-items: stretch; gap: 0; }
  .page-home .ladder__step { height: var(--rise); display: flex; align-items: center; }
  .page-home .ladder__bar { height: 34px; width: calc(34% + var(--i) * 9.4%); border-radius: 4px 12px 12px 4px; }
  [dir="rtl"] .page-home .ladder__bar { border-radius: 12px 4px 4px 12px; }
  .page-home .ladder__label { top: 50%; translate: 0 -50%; inset-inline: 12px auto; text-align: start; }
  .page-home .ladder__token { bottom: 0; width: 56px; height: var(--rise); align-items: center; transform: translateY(calc(var(--step) * -100%)); }
  .page-home .ladder__token-in { width: 44px; height: 44px; margin: 0; }
  .page-home .ladder__actions .btn { flex: 1 1 auto; }

  .page-home .stackimg img { width: 42px; height: 42px; }
  .page-home .coll__share { top: -8px; inset-inline-end: -8px; width: 34px; height: 34px; box-shadow: 0 0 0 3px #fff; }
  .page-home .lcard__body { padding: 18px 18px 4px; }
  .page-home .gtile { --h: 168px; border-radius: 18px; }
  .page-home .gtile__cap { inset-inline: 12px 58px; bottom: 12px; }
  .page-home .final__ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .page-home .final__tile { width: 72px; }
  .page-home .final__tile:nth-child(3), .page-home .final__tile:nth-child(4) { width: 72px; bottom: -58px; }
}

@media (max-width: 420px) {
  .page-home .langs__picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-home .hchip--notif, .page-home .hchip--lang { display: none; }
  .page-home .hero__phone { --pw: 228px; }
}

@media (min-width: 1600px) {
  .page-home .hero__phone { --pw: 316px; }
  .page-home .hero__inner { min-height: min(820px, calc(100svh - var(--header-h) - 150px)); }
}

/* ---------- reduced motion: complete static states ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .aurora, .page-home .hero__halo, .page-home .hchip--notif, .page-home .final__tile { animation: none; }
  .page-home .hero__title .hl::after { transform: scaleX(1); animation: none; }
  .page-home .feed__card, .page-home .scr { transition: none; }
}
