/* Wisp landing — tokens mirror QalamThemePreset.default (DESIGN.md §2).
   Coral is a fill/icon colour; text-size coral uses --wisp-primary-text.
   White on coral only for bold ≥17px labels. */
:root {
  --wisp-background: #FFF9F2;   /* Cream */
  --wisp-surface: #FFFFFF;
  --wisp-elevated: #F5EBDF;     /* composer */
  --wisp-divider: #EFE3D6;
  --wisp-border: #E7D8C8;       /* outline */
  --wisp-text: #40322E;         /* Cocoa */
  --wisp-text-secondary: #756760;
  --wisp-text-muted: #9C8C84;
  --wisp-primary: #D97757;      /* Coral */
  --wisp-primary-text: #A64F35; /* Terracotta: coral at text size */
  --wisp-primary-strong: #A64F35;
  --wisp-primary-soft: rgba(217, 119, 87, .14);
  --wisp-secondary: #5B7D6E;
  --wisp-glow: #FFCD92;         /* app-icon peach */
  --wisp-night: #191715;
  --wisp-night-surface: #211E1B;
  --wisp-night-elevated: #2B2724;
  --wisp-night-border: #3A342F;
  --wisp-night-text: #F6EEE5;
  --wisp-night-text-secondary: #B5A89E;
  --wisp-live: #2BD96B;
  --wisp-like: #F4212E;
  --wisp-gold: #E0B354;

  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --shadow-soft: 0 1px 2px rgba(64, 50, 46, .06), 0 8px 24px -8px rgba(64, 50, 46, .14);
  --shadow-float: 0 2px 6px rgba(64, 50, 46, .08), 0 18px 40px -12px rgba(64, 50, 46, .22);
  --shadow-phone: 0 40px 80px -30px rgba(64, 50, 46, .45), 0 16px 32px -16px rgba(64, 50, 46, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: 16px;
  --wrap: 1180px;
  --nav-h: 64px;
  color-scheme: light;
}
:root[lang="ar"] {
  --font-display: ui-rounded, -apple-system, BlinkMacSystemFont, "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--wisp-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  /* Soft grain, scrolls with the page (no fixed layer to repaint). */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .2 0 0 0 0 .18 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--wisp-background);
}
:root[lang="ar"] body { line-height: 1.75; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
svg.hi { flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 3px solid var(--wisp-primary-text); outline-offset: 3px; border-radius: 10px; }
.skip {
  position: fixed; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--wisp-text); color: var(--wisp-background); padding: 10px 16px; border-radius: 12px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 3.6vw + 1rem, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h2--sm { font-size: clamp(1.8rem, 2.4vw + 1rem, 2.6rem); }
:root[lang="ar"] .h2 { letter-spacing: 0; line-height: 1.25; font-weight: 700; }
.lead { margin-top: 16px; font-size: clamp(1.1rem, .4vw + 1rem, 1.3rem); color: var(--wisp-text-secondary); max-width: 34ch; text-wrap: pretty; }
.body { margin-top: 14px; color: var(--wisp-text-secondary); max-width: 44ch; text-wrap: pretty; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
  color: var(--wisp-primary-text); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wisp-primary); }
:root[lang="ar"] .kicker { letter-spacing: 0; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .25s var(--ease), border-color .2s;
}
.btn:hover { transform: translateY(-1px) scale(1.02); }
.btn:active { transform: scale(.97); }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 17px; }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 15px; }
.btn--primary { background: var(--wisp-primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(217, 119, 87, .7); }
.btn--primary:hover { background: #CF6B4B; }
/* Small coral text fails contrast: small CTAs are monochrome (DESIGN.md §2.4). */
.btn--sm.btn--primary { background: var(--wisp-text); color: var(--wisp-background); box-shadow: none; }
.btn--sm.btn--primary:hover { background: #2E2320; }
.btn--ghost { background: rgba(255, 255, 255, .7); border-color: var(--wisp-border); color: var(--wisp-text); }
.btn--ghost:hover { background: #fff; border-color: #D9C6B2; }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 18px; border-radius: 16px;
  background: #000; color: #fff; text-decoration: none;
  transition: transform .25s var(--ease);
}
.store-badge:hover { transform: translateY(-1px) scale(1.02); }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.store-badge small { font-size: 12px; opacity: .85; }
.store-badge strong { font-size: 21px; font-weight: 600; letter-spacing: -.01em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.store-badge--block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; }
.nav__inner {
  pointer-events: auto;
  max-width: 1120px; margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 10px 0 14px;
  border-radius: 22px;
  background: rgba(255, 249, 242, .62);
  border: 1px solid rgba(231, 216, 200, .55);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  transition: height .3s var(--ease), background-color .3s, box-shadow .3s, border-color .3s;
}
[dir="rtl"] .nav__inner { padding: 0 14px 0 10px; }
.nav.is-scrolled .nav__inner {
  --nav-h: 56px;
  background: rgba(255, 249, 242, .86);
  border-color: rgba(231, 216, 200, .9);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 10px 30px -18px rgba(64, 50, 46, .35);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; text-decoration: none; font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 2px 8px -2px rgba(217, 119, 87, .5); }
.nav__links { flex: 1; display: flex; justify-content: center; }
.nav__links ul { display: flex; gap: 4px; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  text-decoration: none; font-size: 15px; font-weight: 600; color: var(--wisp-text-secondary);
  transition: background-color .2s, color .2s;
}
.nav__links a:hover { color: var(--wisp-text); background: rgba(64, 50, 46, .06); }
.nav__actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.nav__lang {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  text-decoration: none; font-size: 14px; font-weight: 600; color: var(--wisp-text-secondary);
}
.nav__lang:hover { color: var(--wisp-text); background: rgba(64, 50, 46, .06); }
.nav__menu {
  display: none; width: 44px; height: 44px; border-radius: 14px; border: 0; background: transparent;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav__menu:hover { background: rgba(64, 50, 46, .06); }
.nav__cta-short { display: none; }
@media (max-width: 960px) {
  .nav__links, .nav__lang { display: none; }
  .nav__menu { display: inline-flex; }
  .nav__cta-long { display: none; }
  .nav__cta-short { display: inline; }
}
@media (max-width: 360px) { .brand span { display: none; } }

.sheet {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  padding: 12px calc(var(--gutter) + 10px) calc(24px + env(safe-area-inset-bottom));
  background: var(--wisp-background); overflow: hidden;
}
.sheet[hidden] { display: none; }
.sheet__top { display: flex; align-items: center; justify-content: space-between; height: calc(var(--nav-h) + 12px); }
.sheet__top .nav__menu { display: inline-flex; }
.sheet__links { margin-top: 24px; display: grid; gap: 4px; }
.sheet__links a {
  display: block; padding: 10px 0; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -.02em;
}
:root[lang="ar"] .sheet__links a { letter-spacing: 0; font-weight: 700; }
.sheet__bottom { margin-top: auto; display: grid; gap: 14px; position: relative; z-index: 1; }
.sheet__lang { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-weight: 600; text-decoration: none; color: var(--wisp-text-secondary); }
.sheet__mascot { position: absolute; width: 140px; inset-inline-end: 10px; top: 46%; opacity: .95; }
.sheet.is-open { animation: sheet-in .35s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Phone ---------- */
.phone {
  --w: 300px;
  margin: 0; width: var(--w); flex: none;
  padding: calc(var(--w) * .028);
  border-radius: calc(var(--w) * .165);
  background: linear-gradient(160deg, #3A302B, #15110F 40%, #2A221E);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, .08);
  position: relative;
}
.phone img { width: 100%; aspect-ratio: 420 / 913; object-fit: cover; object-position: top; border-radius: calc(var(--w) * .14); background: var(--wisp-elevated); }
.phone--lg { --w: min(320px, 70vw); }
.phone--night { box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .08); }

/* ---------- Floating UI ---------- */
.float { animation: float 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
.float-slow { animation: float 9s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 20px;
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(231, 216, 200, .8);
  box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  white-space: nowrap;
}
.chip__text { display: flex; flex-direction: column; line-height: 1.2; }
.chip__text strong { font-size: 15px; }
.chip__text small, .chip small { font-size: 13px; color: var(--wisp-text-secondary); }
.chip__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--wisp-primary-soft); color: var(--wisp-primary-text); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wisp-live); box-shadow: 0 0 0 4px rgba(43, 217, 107, .22); flex: none; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(43, 217, 107, .08); } }

.stack { display: inline-flex; }
.stack .avatar + .avatar { margin-inline-start: -10px; }

.avatar {
  width: var(--s, 48px); height: var(--s, 48px);
  display: inline-block; overflow: hidden; flex: none;
  border-radius: 50%; background: var(--wisp-elevated);
  border: 2px solid #fff;
}
/* Preset art is full-body: crop to head + shoulders like the app does. */
.avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.55) translateY(13%); }
/* Warm-shifted preset backgrounds (DESIGN.md §14.3 target). */
.avatar--cat { background: #FFE2A3; }
.avatar--bunny { background: #E4D6FB; }
.avatar--fox { background: #CFE3F5; }
.avatar--panda { background: #DDEFC6; }
.avatar--bear { background: #CBEDE7; }
.avatar--tiger { background: #DCDAF7; }
.avatar--sheep { background: #FFD4C6; }
.avatar--wisp { background: #FFE3C7; }
.avatar--ring { box-shadow: 0 0 0 3px var(--wisp-primary); }

.bubble {
  display: inline-block; max-width: 240px; padding: 10px 16px; border-radius: 20px;
  font-size: 16px; line-height: 1.35; box-shadow: var(--shadow-float);
}
.bubble--out { background: var(--wisp-primary-strong); color: #fff; }
.bubble--in { background: var(--wisp-elevated); color: var(--wisp-text); border: 1px solid rgba(231, 216, 200, .7); }
.bubble--typing { display: inline-flex; gap: 5px; padding: 14px 16px; background: var(--wisp-elevated); }
.bubble--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--wisp-text-muted); animation: typing 1.2s infinite; }
.bubble--typing i:nth-child(2) { animation-delay: .15s; }
.bubble--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.wave i { width: 3px; height: 100%; border-radius: 3px; background: var(--wisp-primary); transform-origin: center; animation: wave 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -.17s); }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; background: var(--wisp-elevated); color: var(--wisp-text-secondary);
}
.pill--live { background: rgba(43, 217, 107, .14); color: #1D7A43; }
.pill--gold { background: rgba(224, 179, 84, .16); color: var(--wisp-gold); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.chips--start { justify-content: flex-start; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--wisp-surface); border: 1px solid var(--wisp-border); font-size: 15px; font-weight: 600; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--stagger, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .split__visual.reveal .phone, .js .games__stage.reveal .phone, .js .identity__stage.reveal .phone { transform: scale(.95) rotate(var(--rot, 0deg)); transition: transform 1s var(--ease); }
.js .split__visual.reveal.is-in .phone, .js .games__stage.reveal.is-in .phone, .js .identity__stage.reveal.is-in .phone { transform: rotate(var(--rot, 0deg)); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(80px, 10vw, 140px); overflow-x: clip; }
.split { display: grid; gap: 48px; align-items: center; }
.split__copy { max-width: 520px; }
.split__visual { position: relative; display: grid; place-items: center; min-height: 520px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .split--rev .split__copy { order: 2; }
}
@media (max-width: 899px) {
  .split__copy { text-align: center; margin-inline: auto; }
  .split__copy .lead, .split__copy .body { margin-inline: auto; }
  .split__copy .kicker { justify-content: center; }
  .chips--start { justify-content: center; }
  .split__visual { min-height: 0; }
}
.center-head { text-align: center; display: grid; justify-items: center; }
.center-head .lead { max-width: 40ch; }
.center-cta { display: grid; justify-items: center; gap: 22px; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + 72px); overflow: clip; }
.hero__glow {
  position: absolute; inset: -10% -20% auto; height: 1100px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 40% at 50% 62%, rgba(255, 205, 146, .75), transparent 70%),
    radial-gradient(30% 30% at 18% 30%, rgba(217, 119, 87, .14), transparent 70%),
    radial-gradient(30% 30% at 84% 26%, rgba(255, 205, 146, .4), transparent 70%);
}
.hero__copy { text-align: center; display: grid; justify-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .75); border: 1px solid var(--wisp-border);
  font-size: 14px; font-weight: 600; color: var(--wisp-text-secondary);
}
.hero__title {
  margin-top: 22px;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.6rem, 6.4vw + .6rem, 5rem);
  line-height: .98; letter-spacing: -.035em; max-width: 13ch; text-wrap: balance;
}
.hero__title span { display: inline; }
.hero__title span:nth-child(2) { color: var(--wisp-primary-text); }
:root[lang="ar"] .hero__title { letter-spacing: 0; line-height: 1.2; font-weight: 800; }
.hero__sub { margin-top: 20px; font-size: clamp(1.08rem, .5vw + 1rem, 1.3rem); color: var(--wisp-text-secondary); max-width: 40ch; text-wrap: pretty; }
.hero__ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.stage { position: relative; margin-top: 56px; height: clamp(560px, 62vw, 720px); perspective: 1600px; }
.stage__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.stage__phone { position: absolute; left: 50%; top: 0; }
.stage__phone--center { --w: 310px; z-index: 2; transform: translateX(-50%); }
.stage__phone--left, .stage__phone--right { --w: 250px; z-index: 1; top: 90px; }
.stage__phone--left { transform: translateX(calc(-50% - 290px)) rotate(-7deg); }
.stage__phone--right { transform: translateX(calc(-50% + 290px)) rotate(7deg); }
.stage__mascot { position: absolute; z-index: 4; width: 220px; left: calc(50% - 300px); top: 440px; filter: drop-shadow(0 18px 24px rgba(64, 50, 46, .22)); }
.chip--cube { left: calc(50% - 560px); top: 60px; }
.chip--game { left: calc(50% + 330px); top: 30px; }
.chip--ask { left: calc(50% + 360px); top: 500px; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 16px; }
.chip--ask small { display: inline-flex; align-items: center; gap: 4px; }
.chip--heart { left: calc(50% + 120px); top: 150px; gap: 6px; color: var(--wisp-like); font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.chip--heart span { color: var(--wisp-text); font-size: 15px; }
.chip--reply { position: absolute; z-index: 3; left: calc(50% - 470px); top: 520px; }
.stage__avatar { position: absolute; z-index: 3; }
.stage__avatar--a { width: 56px; height: 56px; left: calc(50% + 470px); top: 300px; }
.stage__avatar--b { width: 48px; height: 48px; left: calc(50% - 470px); top: 400px; }
@media (max-width: 1100px) {
  .stage__phone--left, .stage__phone--right { --w: 230px; }
  .stage__phone--left { transform: translateX(calc(-50% - 245px)) rotate(-7deg); }
  .stage__phone--right { transform: translateX(calc(-50% + 245px)) rotate(7deg); }
  .chip--cube { left: max(12px, calc(50% - 470px)); }
  .chip--game { left: auto; right: max(12px, calc(50% - 470px)); top: 0; }
  .stage__avatar--a, .stage__avatar--b { display: none; }
  .chip--ask { left: calc(50% + 200px); top: 560px; }
  .chip--reply { left: max(12px, calc(50% - 400px)); }
}
@media (max-width: 760px) {
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .stage { height: 600px; margin-top: 40px; }
  .stage__phone--center { --w: min(250px, 64vw); }
  .stage__phone--left, .stage__phone--right { --w: min(190px, 46vw); top: 70px; }
  .stage__phone--left { transform: translateX(calc(-50% - min(190px, 40vw))) rotate(-7deg); }
  .stage__phone--right { transform: translateX(calc(-50% + min(190px, 40vw))) rotate(7deg); }
  .stage__mascot { width: 130px; left: calc(50% - min(200px, 46vw)); top: 380px; }
  .chip--cube { left: auto; right: calc(50% - min(170px, 46vw)); top: 410px; }
  .chip--game { left: calc(50% - min(180px, 46vw)); top: 500px; }
  .chip--ask, .chip--heart, .chip--reply { display: none; }
  .chip--cube { right: 2%; top: -14px; }
  .chip { padding: 8px 12px; }
  .chip__icon { width: 30px; height: 30px; }
  .chip__text strong { font-size: 14px; }
  .chip__text small { font-size: 12px; }
}

/* ---------- Feed (orbit labels) ---------- */
.orbit { min-height: 640px; }
.orbit__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; fill: none; stroke: var(--wisp-border); stroke-width: 1.5; stroke-dasharray: 4 6; }
.orbit .phone { z-index: 1; }
.orbit__labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.label {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--wisp-border);
  box-shadow: var(--shadow-soft); font-weight: 700; font-size: 15px;
  animation: float 8s ease-in-out infinite; animation-delay: calc(var(--i) * -1.2s);
}
.label svg { color: var(--wisp-primary); }
.label--0 { inset-inline-start: 2%; top: 14%; }
.label--1 { inset-inline-start: 0; top: 46%; }
.label--2 { inset-inline-start: 4%; top: 78%; }
.label--3 { inset-inline-end: 2%; top: 14%; }
.label--4 { inset-inline-end: 0; top: 46%; }
.label--5 { inset-inline-end: 4%; top: 78%; }
@media (max-width: 899px) {
  .orbit { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 24px; }
  .orbit__lines { display: none; }
  .orbit__labels { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 420px; }
  .label { position: static; animation: none; }
}

/* ---------- Cubes (night) ---------- */
.night { background: var(--wisp-night); color: var(--wisp-night-text); overflow: clip; isolation: isolate; }
.night .lead, .night .body { color: var(--wisp-night-text-secondary); }
.night .kicker { color: #E3876A; }
.night__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 70% 50%, rgba(217, 119, 87, .28), transparent 70%),
    radial-gradient(30% 40% at 20% 20%, rgba(255, 205, 146, .08), transparent 70%);
}
[dir="rtl"] .night__glow { transform: scaleX(-1); }
.ticks { margin-top: 24px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: center; color: var(--wisp-night-text); font-weight: 500; }
.ticks svg { color: var(--wisp-live); }
.night .btn { margin-top: 32px; }
@media (max-width: 899px) { .ticks { justify-items: center; } .ticks li { justify-content: center; } }
.cube-visual { min-height: 660px; }
.wave--bg { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); height: 280px; gap: 10px; opacity: .5; z-index: 0; }
.wave--bg i { width: 8px; background: linear-gradient(to top, rgba(217, 119, 87, .1), rgba(217, 119, 87, .9), rgba(217, 119, 87, .1)); animation-duration: 1.8s; animation-delay: calc(var(--i) * -.23s); }
.wave--sm { height: 18px; gap: 2px; }
.wave--sm i { width: 3px; }
.cube-visual .phone { z-index: 1; }
.live-card {
  position: absolute; z-index: 2; inset-inline-start: 0; bottom: 12%;
  padding: 16px 18px; border-radius: 22px; min-width: 230px;
  background: rgba(43, 39, 36, .88); border: 1px solid var(--wisp-night-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
}
.live-card__top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--wisp-live); }
.live-card__title { margin-top: 6px; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.live-card__row { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.live-card__row small { color: var(--wisp-night-text-secondary); font-size: 14px; }
.live-card .avatar { border-color: var(--wisp-night-elevated); }
.speaker-card {
  position: absolute; z-index: 2; inset-inline-end: 0; top: 30%;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px;
  background: rgba(43, 39, 36, .88); border: 1px solid var(--wisp-night-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.speaker-card .avatar { border-color: var(--wisp-night-elevated); }
.speaker-card strong { display: block; font-size: 14px; margin-bottom: 2px; }
.mic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--wisp-primary); color: #fff; }
@media (max-width: 899px) {
  .cube-visual { min-height: 0; padding-block: 40px; }
  .live-card { bottom: 0; inset-inline-start: max(0px, calc(50% - 230px)); }
  .speaker-card { top: 42%; inset-inline-end: max(0px, calc(50% - 220px)); }
}

/* ---------- Games ---------- */
.games__stage { position: relative; margin: 56px auto 0; height: 640px; max-width: 900px; }
.games__phone { position: absolute; top: 0; left: 50%; }
.games__phone--a { --w: 290px; --rot: -4deg; translate: calc(-50% - 150px) 0; z-index: 1; }
.games__phone--b { --w: 270px; --rot: 5deg; translate: calc(-50% + 160px) 50px; z-index: 2; }
.player {
  position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px;
}
.player .avatar { width: 52px; height: 52px; box-shadow: var(--shadow-float); }
.player span { padding: 2px 10px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-soft); }
.player--0 { left: 2%; top: 12%; }
.player--1 { left: 0; top: 62%; }
.player--2 { right: 0; top: 4%; }
.player--3 { right: 3%; top: 70%; }
.player__q {
  position: absolute; top: -10px; right: -12px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wisp-text); color: var(--wisp-background);
  font-size: 15px; font-family: var(--font-display); font-weight: 900; box-shadow: var(--shadow-soft);
}
@media (max-width: 760px) {
  .games__stage { height: 520px; }
  .games__phone--a { --w: min(230px, 58vw); translate: calc(-50% - min(90px, 22vw)) 0; }
  .games__phone--b { --w: min(210px, 52vw); translate: calc(-50% + min(100px, 24vw)) 50px; }
  .player--0 { left: 0; top: 2%; }
  .player--1 { left: 0; top: 76%; }
  .player--2 { right: 0; top: 0; }
  .player--3 { right: 0; top: 84%; }
  .player .avatar { width: 44px; height: 44px; }
}

.rail { margin-top: 56px; }
.rail__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 24px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: none; cursor: grab;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.game {
  flex: none; width: 280px; scroll-snap-align: start;
  border-radius: var(--r-lg); background: var(--wisp-surface); border: 1px solid var(--wisp-divider);
  box-shadow: var(--shadow-soft); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.game:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.game__art { height: 150px; display: grid; place-items: center; background: radial-gradient(70% 80% at 50% 100%, rgba(255, 205, 146, .55), var(--wisp-elevated)); }
.game__art .mascot { width: 120px; height: 120px; margin-top: 18px; -webkit-user-drag: none; }
.game:not(.game--live) .game__art { filter: saturate(.75); }
.game__body { padding: 18px 20px 20px; }
.game h3 { margin-top: 10px; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.01em; }
.game p { margin-top: 6px; font-size: 15px; color: var(--wisp-text-secondary); line-height: 1.45; }
.game .game__meta { display: flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 13px; color: var(--wisp-text-muted); }
.game--live { border-color: rgba(217, 119, 87, .4); box-shadow: 0 0 0 3px var(--wisp-primary-soft), var(--shadow-soft); }
.rail__hint { display: none; align-items: center; gap: 6px; font-size: 14px; color: var(--wisp-text-muted); }
@media (hover: none) { .rail__hint { display: inline-flex; } }

/* ---------- Ask ---------- */
.ask-visual { min-height: 640px; }
.ask-card {
  position: absolute; z-index: 2; inset-inline-start: 0; bottom: 14%;
  width: min(320px, 86vw); padding: 18px; border-radius: 24px;
  background: var(--wisp-surface); border: 1px solid var(--wisp-border); box-shadow: var(--shadow-float);
}
.ask-card__label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--wisp-text-secondary); }
.ask-card__q { margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: var(--wisp-elevated); font-weight: 600; font-size: 17px; line-height: 1.4; }
.ask-card__actions { display: flex; gap: 8px; margin-top: 14px; }
.mini-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--wisp-border); font-weight: 700; font-size: 15px; }
.mini-btn--primary { background: var(--wisp-text); border-color: var(--wisp-text); color: var(--wisp-background); }
.ask-visual__mascot { position: absolute; z-index: 3; width: 120px; inset-inline-end: 4%; top: 6%; }
@media (max-width: 899px) {
  .ask-visual { min-height: 0; padding-bottom: 150px; }
  .ask-card { bottom: 0; inset-inline-start: 50%; transform: translateX(-50%); }
  [dir="rtl"] .ask-card { transform: translateX(50%); }
  .ask-visual__mascot { width: 90px; top: -10px; inset-inline-end: max(0px, calc(50% - 200px)); }
}

/* ---------- Identity ---------- */
.identity__stage { position: relative; height: 680px; margin-top: 48px; }
.identity__phone { position: absolute; left: 50%; top: 0; }
.identity__phone--main { --w: 310px; translate: -50% 0; z-index: 2; }
.identity__phone--side { --w: 250px; --rot: 8deg; translate: calc(-50% + 230px) 70px; z-index: 1; }
[dir="rtl"] .identity__phone--side { --rot: -8deg; translate: calc(-50% - 230px) 70px; }
.identity__avatar { position: absolute; z-index: 3; width: 64px; height: 64px; box-shadow: var(--shadow-float); border-width: 3px; }
.identity__avatar--0 { left: calc(50% - 360px); top: 40px; }
.identity__avatar--1 { left: calc(50% - 440px); top: 250px; width: 76px; height: 76px; }
.identity__avatar--2 { left: calc(50% - 330px); top: 470px; }
.identity__avatar--3 { left: calc(50% + 400px); top: 30px; width: 56px; height: 56px; }
.identity__avatar--4 { left: calc(50% + 430px); top: 300px; width: 72px; height: 72px; }
.identity__avatar--5 { left: calc(50% + 330px); top: 560px; }
.identity__avatar--6 { left: calc(50% - 210px); top: 600px; width: 52px; height: 52px; }
@media (max-width: 960px) {
  .identity__avatar--1, .identity__avatar--4 { display: none; }
  .identity__avatar--0 { left: calc(50% - 250px); }
  .identity__avatar--2 { left: calc(50% - 240px); }
  .identity__avatar--3 { left: calc(50% + 200px); top: 0; }
  .identity__avatar--5 { left: calc(50% + 190px); }
}
@media (max-width: 640px) {
  .identity__stage { height: 560px; }
  .identity__phone--main { --w: min(250px, 64vw); }
  .identity__phone--side { --w: min(200px, 50vw); translate: calc(-50% + min(120px, 28vw)) 60px; }
  [dir="rtl"] .identity__phone--side { translate: calc(-50% - min(120px, 28vw)) 60px; }
  .identity__avatar { width: 48px; height: 48px; }
  .identity__avatar--0 { left: 0; top: 30px; }
  .identity__avatar--2 { left: 4px; top: 330px; }
  .identity__avatar--3 { left: auto; right: 0; top: 0; }
  .identity__avatar--5 { left: auto; right: 4px; top: 490px; }
  .identity__avatar--6 { left: 10%; top: 500px; }
}

/* ---------- Messages ---------- */
.msg-visual { min-height: 660px; }
.msg-visual .phone { z-index: 1; }
.bubbles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.bubbles .bubble { position: absolute; }
.bubbles .bubble:nth-child(1) { inset-inline-start: 0; top: 16%; }
.bubbles .bubble:nth-child(2) { inset-inline-end: 0; top: 40%; }
.bubbles .bubble:nth-child(3) { inset-inline-start: 6%; top: 66%; }
.bubbles .bubble:nth-child(4) { inset-inline-end: 12%; top: 80%; }
.react {
  position: absolute; bottom: -14px; inset-inline-end: 10px;
  padding: 2px 8px; border-radius: 999px; font-size: 13px; color: var(--wisp-text);
  background: var(--wisp-surface); border: 1px solid var(--wisp-background); box-shadow: var(--shadow-soft);
}
@media (max-width: 899px) {
  .msg-visual { min-height: 0; }
  .bubbles .bubble:nth-child(1) { inset-inline-start: max(0px, calc(50% - 220px)); top: 8%; }
  .bubbles .bubble:nth-child(2) { inset-inline-end: max(0px, calc(50% - 220px)); }
  .bubbles .bubble:nth-child(3) { inset-inline-start: max(0px, calc(50% - 210px)); top: 70%; }
  .bubbles .bubble:nth-child(4) { inset-inline-end: max(8px, calc(50% - 200px)); top: 86%; }
  .bubble { font-size: 15px; padding: 8px 14px; }
}

/* ---------- Meet Wisp ---------- */
.meet { overflow: clip; }
.meet__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 45% at 50% 40%, rgba(255, 205, 146, .7), transparent 70%); }
.meet__inner { position: relative; display: grid; justify-items: center; text-align: center; }
.meet__hero { width: min(320px, 70vw); height: auto; filter: drop-shadow(0 30px 40px rgba(64, 50, 46, .2)); }
.meet__copy { margin-top: 12px; display: grid; justify-items: center; }
.meet__copy .kicker { justify-content: center; }
.meet__ring { position: absolute; inset: 0 0 auto; height: min(420px, 90vw); pointer-events: none; }
.meet__mini { position: absolute; width: 116px; }
.meet__mini .mascot { width: 100%; height: auto; }
.meet__mini--0 { left: calc(50% - 330px); top: 10px; }
.meet__mini--1 { left: calc(50% + 230px); top: 0; }
.meet__mini--2 { left: calc(50% - 400px); top: 200px; }
.meet__mini--3 { left: calc(50% + 300px); top: 210px; }
.meet__mini--4 { left: calc(50% - 260px); top: 320px; width: 92px; }
.meet__mini--5 { left: calc(50% + 170px); top: 320px; width: 92px; }
@media (max-width: 760px) {
  .meet__mini { width: 64px; }
  .meet__mini--0 { left: 2%; top: 0; }
  .meet__mini--1 { left: auto; right: 2%; top: 10px; }
  .meet__mini--2 { left: 0; top: 170px; }
  .meet__mini--3 { left: auto; right: 0; top: 180px; }
  .meet__mini--4, .meet__mini--5 { display: none; }
}

/* ---------- Why ---------- */
.why .h2 { text-align: center; }
.why__grid { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .why__grid { grid-template-columns: repeat(4, 1fr); } }
.card {
  padding: 26px 24px 28px; border-radius: var(--r-lg);
  background: var(--wisp-surface); border: 1px solid var(--wisp-divider); box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--wisp-primary-soft); color: var(--wisp-primary-text); }
.card h3 { margin-top: 18px; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.card p { margin-top: 6px; color: var(--wisp-text-secondary); }

/* ---------- Safety ---------- */
.safety__inner { display: grid; gap: 48px; }
@media (min-width: 960px) { .safety__inner { grid-template-columns: .9fr 1.4fr; align-items: start; } .safety__head { position: sticky; top: 120px; } }
.safety__head { display: grid; justify-items: start; }
.safety__head .btn { margin-top: 28px; }
.safety__mascot { width: 110px; margin-bottom: 12px; }
.safety__list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.safety__list li { display: flex; gap: 16px; padding: 20px; border-radius: var(--r-md); background: var(--wisp-surface); border: 1px solid var(--wisp-divider); }
.safety__icon { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--wisp-elevated); color: var(--wisp-text); }
.safety__list h3 { font-size: 17px; font-weight: 700; }
.safety__list p { margin-top: 4px; font-size: 15px; color: var(--wisp-text-secondary); }

/* ---------- Wisp+ ---------- */
.plus {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 36px; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-xl);
  background: linear-gradient(150deg, #211E19, #0E0D0B 60%);
  color: #F5EEDF; box-shadow: 0 40px 80px -40px rgba(14, 13, 11, .8);
}
.plus::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 70%; height: 120%; z-index: -1; background: radial-gradient(closest-side, rgba(224, 179, 84, .22), transparent); }
@media (min-width: 900px) { .plus { grid-template-columns: 1fr 1.2fr; align-items: center; } }
.plus .h2 { margin-top: 14px; }
.plus .lead { color: #B8AC96; }
.plus__icons { display: flex; gap: 14px; margin-top: 28px; }
.plus__icons img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .7); }
.plus__icons img:nth-child(2) { transform: translateY(-8px) rotate(-3deg); }
.plus__perks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.plus__perks li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.plus__perks span { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(224, 179, 84, .14); color: var(--wisp-gold); }
.plus__perks strong { display: block; font-size: 16px; }
.plus__perks small { display: block; margin-top: 2px; font-size: 14px; color: #B8AC96; }

/* ---------- Built for ---------- */
.builtfor { padding-block: 40px 100px; text-align: center; overflow: clip; }
.marquee { margin-top: 32px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 50s linear infinite; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee__track li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--wisp-surface); border: 1px solid var(--wisp-divider); font-weight: 700; white-space: nowrap; }
[dir="rtl"] .marquee__track li { padding: 8px 8px 8px 18px; }
.marquee__track .avatar { width: 32px; height: 32px; border-width: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Final CTA ---------- */
.final { padding: 0 var(--gutter) clamp(60px, 8vw, 100px); }
.final__card {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 64px; border-radius: var(--r-xl);
  display: grid; justify-items: center; text-align: center;
  background: linear-gradient(180deg, #FFE9D2, #FFF4E8);
  border: 1px solid rgba(231, 216, 200, .7);
}
.final__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 55% at 50% 30%, rgba(255, 205, 146, .9), transparent 70%), radial-gradient(40% 40% at 90% 100%, rgba(217, 119, 87, .18), transparent 70%); }
.final__mascot { width: min(260px, 60vw); filter: drop-shadow(0 24px 30px rgba(166, 79, 53, .25)); }
.final__title { margin-top: 8px; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 4.6vw + 1rem, 4.2rem); line-height: 1.02; letter-spacing: -.03em; max-width: 14ch; text-wrap: balance; }
:root[lang="ar"] .final__title { letter-spacing: 0; line-height: 1.25; font-weight: 800; }
.final__sub { margin-top: 16px; font-size: 1.25rem; color: var(--wisp-text-secondary); font-weight: 600; }
.final__ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--wisp-divider); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer__brand p { margin-top: 6px; color: var(--wisp-text-secondary); font-size: 15px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--wisp-text-secondary); }
.footer__links a:hover { color: var(--wisp-text); background: rgba(64, 50, 46, .05); }
.footer__copy { margin-top: 20px; font-size: 14px; color: var(--wisp-text-muted); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .split__visual.reveal .phone, .js .games__stage.reveal .phone, .js .identity__stage.reveal .phone { transform: rotate(var(--rot, 0deg)); }
  .marquee { mask-image: none; }
  .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); }
  .marquee__track li:nth-child(n + 9) { display: none; }
  .btn:hover, .card:hover, .game:hover, .store-badge:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav__inner, .nav.is-scrolled .nav__inner, .chip, .live-card, .speaker-card { background: var(--wisp-background); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .live-card, .speaker-card { background: var(--wisp-night-elevated); }
}

/* Looping animations pause while their section is off-screen (main.js sets --play). */
.float, .float-slow, .wave i, .label, .marquee__track, .live-dot, .bubble--typing i { animation-play-state: var(--play, running); }

/* ---------- Compact mobile lists ---------- */
@media (max-width: 480px) {
  .chip--game { display: none; }
  .why__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 18px 16px 20px; border-radius: 22px; }
  .card__icon { width: 44px; height: 44px; border-radius: 14px; }
  .card h3 { margin-top: 14px; font-size: 19px; }
  .card p { font-size: 15px; line-height: 1.45; }
  .safety__list { gap: 0; border-radius: var(--r-md); background: var(--wisp-surface); border: 1px solid var(--wisp-divider); overflow: hidden; }
  .safety__list li { border: 0; border-radius: 0; padding: 16px; }
  .safety__list li + li { border-top: 1px solid var(--wisp-divider); }
  .plus__perks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .plus__perks li { flex-direction: column; gap: 10px; padding: 14px; }
}

/* ---------- Document pages (privacy / terms / support) ---------- */
.doc { position: relative; padding: calc(var(--nav-h) + 72px) 0 100px; overflow-x: clip; }
.doc__glow { position: absolute; inset: 0 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, rgba(255, 205, 146, .55), transparent 70%); }
.doc__wrap { max-width: 1080px; display: grid; gap: 40px; }
@media (min-width: 960px) {
  .doc__wrap { grid-template-columns: 240px minmax(0, 1fr); column-gap: 64px; }
  .doc__head { grid-column: 1 / -1; }
  .doc__toc { position: sticky; top: 104px; align-self: start; }
  .doc--support .doc__body { grid-column: 1 / -1; }
}
.doc__head { max-width: 720px; }
.doc__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 4vw + 1rem, 3.8rem); line-height: 1.02; letter-spacing: -.03em; }
:root[lang="ar"] .doc__title { letter-spacing: 0; line-height: 1.25; font-weight: 800; }
.doc__updated { margin-top: 12px; font-size: 15px; color: var(--wisp-text-muted); }
.doc__intro { margin-top: 18px; font-size: 1.15rem; color: var(--wisp-text-secondary); text-wrap: pretty; }
.doc__intro a, .doc__body a { color: var(--wisp-primary-text); text-underline-offset: 3px; }
.doc__toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: toc; }
.doc__toc a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--wisp-text-secondary); }
.doc__toc a:hover { background: rgba(64, 50, 46, .05); color: var(--wisp-text); }
@media (max-width: 959px) {
  .doc__toc { padding: 12px; border-radius: var(--r-md); background: var(--wisp-surface); border: 1px solid var(--wisp-divider); }
  .doc__toc ol { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .doc__toc a { padding: 10px 12px; }
}
.doc__body { max-width: 720px; }
.doc__sec { padding-top: 8px; margin-bottom: 40px; scroll-margin-top: 100px; }
.doc__sec h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 1vw + 1.1rem, 1.75rem); letter-spacing: -.01em; margin-bottom: 14px; }
:root[lang="ar"] .doc__sec h2 { letter-spacing: 0; font-weight: 700; }
.doc__sec h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.doc__sec p { color: var(--wisp-text-secondary); margin-top: 10px; }
.doc__sec ul { list-style: disc; padding-inline-start: 22px; display: grid; gap: 10px; color: var(--wisp-text-secondary); }
.doc__sec li::marker { color: var(--wisp-primary); }
.doc__sec strong { color: var(--wisp-text); }
.contact-card {
  margin-top: 28px; display: flex; align-items: center; gap: 16px; max-width: 520px;
  padding: 18px 20px; border-radius: var(--r-lg); text-decoration: none;
  background: var(--wisp-surface); border: 1px solid var(--wisp-border); box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.contact-card > span:nth-child(2) { flex: 1; display: grid; }
.contact-card strong { font-size: 17px; }
.contact-card__mail { color: var(--wisp-primary-text); font-weight: 600; }
.contact-card small { color: var(--wisp-text-muted); font-size: 14px; }
.doc--support .doc__body { max-width: none; display: grid; gap: 24px; }
@media (min-width: 960px) { .doc--support .doc__body { grid-template-columns: 1fr 1fr; gap: 48px; } }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); background: var(--wisp-surface); border: 1px solid var(--wisp-divider); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--wisp-text-muted); transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 18px 16px; }
.tools { list-style: none !important; padding: 0 !important; gap: 10px !important; }
.tools li { display: flex; gap: 14px; padding: 16px; border-radius: var(--r-md); background: var(--wisp-surface); border: 1px solid var(--wisp-divider); }
.tools h3 { margin: 0 0 2px; font-size: 16px; }
.tools p { margin: 0; font-size: 15px; }
.doc__note { margin-top: 16px !important; font-size: 15px; }
