@font-face { font-family: "Outfit"; src: url("/fonts/outfit-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/fonts/tajawal-arabic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+2010-2011, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; src: url("/fonts/tajawal-arabic-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+2010-2011, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; src: url("/fonts/tajawal-arabic-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+2010-2011, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; src: url("/fonts/tajawal-arabic-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+2010-2011, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; src: url("/fonts/tajawal-arabic-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+2010-2011, U+FB50-FDFF, U+FE70-FEFF; }

/* AcadAI website — the same look as the app's onboarding: deep navy, glowing
   blobs, floating maths, white glowing buttons, glass cards. */
:root {
  --navy-deep: #0b1247;
  --navy: #1a237e;
  --indigo: #3949ab;
  --bright: #5c6bff;
  --ink: #22242a;
  --muted: #8a90a0;
  --green: #2fb36e;
  --mint: #7cf0b0;
  --amber: #ffb020;
  --gold: #ffd36e;
  --cyan: #3fd0ff;
  --pink: #ff7ab6;
  --red: #e5484d;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-line: rgba(255, 255, 255, 0.16);
  --radius: 26px;
  --font: "Outfit", "Tajawal", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}
html[lang="ar"] { --font: "Tajawal", "Outfit", system-ui, sans-serif; }
html[lang="hi"] { --font: "Outfit", "Kohinoor Devanagari", "Devanagari Sangam MN", "Nirmala UI", "Noto Sans Devanagari", system-ui, sans-serif; }
html[lang^="zh"] { --font: "Outfit", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: #fff;
  background: var(--navy-deep);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@supports (overflow-x: clip) { body { overflow-x: clip; } }

/* ------------------------------------------------------------------ backdrop */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--indigo) 100%);
}
.backdrop canvas { width: 100%; height: 100%; }

/* ------------------------------------------------------------------ header */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-head.scrolled {
  background: rgba(11, 18, 71, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--glass-line);
}
.head-row { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; font-family: "Outfit", var(--font); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; padding: 7px;
  background: linear-gradient(135deg, var(--bright), var(--navy));
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 18px rgba(92, 107, 255, .7);
}
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 15px; opacity: .82;
  padding: 8px 12px; border-radius: 12px; transition: opacity .2s, background .2s;
}
.nav a:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid var(--glass-line);
  border-radius: 14px; padding: 8px 12px; font-weight: 700; font-size: 14px;
}
.lang-btn svg { width: 18px; height: 18px; }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 170px;
  background: #fff; color: var(--navy); border-radius: 16px; padding: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35); list-style: none; margin: 0;
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: .18s;
}
.lang.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu button {
  width: 100%; text-align: start; border: 0; background: none; cursor: pointer;
  padding: 10px 12px; border-radius: 10px; font-weight: 700; color: var(--navy); font-size: 15px;
}
.lang-menu button:hover, .lang-menu button[aria-current="true"] { background: #eef0ff; }
.menu-btn { display: none; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --bg: linear-gradient(90deg, #fff, #e6eaff);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-weight: 800; font-size: 17px; color: var(--navy);
  padding: 15px 24px; border-radius: 18px; background: var(--bg);
  box-shadow: 0 0 24px rgba(255, 255, 255, .28);
  position: relative; overflow: hidden; transition: transform .15s, box-shadow .2s;
}
.btn::after { /* light sweeping across, like the app's buttons */
  content: ""; position: absolute; inset: 0 auto 0 -40%; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(92, 107, 255, .18), transparent);
  transform: skewX(-22deg); animation: shine 2.8s ease-in-out infinite;
}
@keyframes shine { 0% { left: -40%; } 55%, 100% { left: 130%; } }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(255, 255, 255, .4); }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn.small { font-size: 15px; padding: 10px 16px; border-radius: 14px; }
.btn.ghost {
  --bg: rgba(255, 255, 255, .1); color: #fff; box-shadow: none;
  border: 1px solid rgba(255, 255, 255, .28);
}
.btn.ghost::after { display: none; }
.btn.gold { --bg: linear-gradient(90deg, var(--gold), var(--amber)); box-shadow: 0 0 26px rgba(255, 176, 32, .45); }
.store {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 10px 18px 10px 14px; border-radius: 16px; min-width: 190px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3);
  transition: background .2s, transform .15s;
}
.store:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 11.5px; opacity: .8; font-weight: 600; line-height: 1.1; }
.store b { display: block; font-size: 18px; font-weight: 800; line-height: 1.2; }

/* ------------------------------------------------------------------ type */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
html[lang="ar"] .kicker, html[lang^="zh"] .kicker, html[lang="hi"] .kicker { letter-spacing: 0; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 800; }
h1 { font-size: clamp(42px, 6.6vw, 82px); letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -.015em; }
h3 { font-size: clamp(22px, 2.2vw, 28px); }
html[lang="ar"] h1, html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.25; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .82); font-weight: 500; }
.center { text-align: center; }
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .lead { margin-top: 16px; }

/* words that build themselves (same as the app's kinetic titles) */
.kinetic .w { display: inline-block; opacity: 0; transform: translateY(.45em); }
.kinetic.in .w { animation: wordIn .6s cubic-bezier(.34, 1.56, .64, 1) forwards; animation-delay: calc(var(--i) * 55ms); }
@keyframes wordIn { to { opacity: 1; transform: none; } }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 110px 0 70px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.proof {
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 16px 7px 8px;
  border-radius: 40px; background: rgba(255, 255, 255, .1); border: 1px solid var(--glass-line);
  margin-bottom: 26px; font-weight: 700; font-size: 14px;
}
.avatars { display: flex; }
.avatars span {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 12px; color: #fff; border: 2px solid var(--navy-deep);
  margin-inline-start: -8px;
}
.avatars span:first-child { margin-inline-start: 0; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 14px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .glow { background: linear-gradient(90deg, #fff, var(--cyan) 60%, var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 560px; margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.web-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; opacity: .85; text-decoration: none; border-bottom: 1px dashed rgba(255, 255, 255, .5); padding-bottom: 2px; }
.web-link:hover { opacity: 1; }
.web-link svg { width: 18px; height: 18px; }

.orbit { position: relative; aspect-ratio: 1; width: min(520px, 100%); margin-inline: auto; will-change: transform; }
.orbit .ring {
  position: absolute; inset: 0; margin: auto; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .16);
}
.orbit .r1 { width: 46%; height: 46%; }
.orbit .r2 { width: 72%; height: 72%; border-style: dashed; animation: spin 60s linear infinite; }
.orbit .r3 { width: 98%; height: 98%; opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit .pulse { position: absolute; inset: 0; margin: auto; width: 34%; height: 34%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); animation: pulse 3s ease-out infinite; }
.orbit .pulse.p2 { animation-delay: 1.5s; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.4); opacity: 0; } }
.emblem {
  position: absolute; inset: 0; margin: auto; width: 30%; height: 30%; border-radius: 50%;
  padding: 5.5%; background: linear-gradient(135deg, var(--bright), var(--navy));
  border: 3px solid rgba(255, 255, 255, .92);
  box-shadow: 0 0 60px rgba(92, 107, 255, .8), inset 0 0 20px rgba(255, 255, 255, .15);
  animation: bob 6s ease-in-out infinite;
}
.emblem img { width: 100%; height: 100%; object-fit: contain; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--navy); border-radius: 18px; padding: 10px 14px 10px 10px;
  font-weight: 800; font-size: 15px; white-space: nowrap;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3), 0 0 26px rgba(255, 255, 255, .25);
  animation: float 7s ease-in-out infinite;
}
.chip i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-style: normal; font-size: 18px; }
.chip.c1 { top: 13%; inset-inline-start: 0; animation-delay: -1s; }
.chip.c2 { top: 16%; inset-inline-end: -2%; animation-delay: -3s; }
.chip.c3 { bottom: 16%; inset-inline-start: -3%; animation-delay: -5s; }
.chip.c4 { bottom: 12%; inset-inline-end: 2%; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.sticker {
  position: absolute; top: 33%; inset-inline-end: 18%; transform: rotate(10deg);
  background: var(--gold); color: var(--navy); font-weight: 900; font-size: 26px;
  border-radius: 14px; padding: 4px 12px; box-shadow: 0 10px 24px rgba(255, 176, 32, .5);
  animation: wiggle 4s ease-in-out infinite;
}
@keyframes wiggle { 50% { transform: rotate(-6deg) scale(1.06); } }
.scroll-cue { position: absolute; bottom: 24px; inset-inline: 0; margin: auto; width: max-content; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; opacity: .7; }
.scroll-cue span { width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(14px); } }

/* ------------------------------------------------------------------ marquee */
.marquee { border-block: 1px solid var(--glass-line); background: rgba(255, 255, 255, .04); padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marquee 40s linear infinite; }
html[dir="rtl"] .marquee-track { animation-name: marqueeRtl; }
.marquee-track span { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; opacity: .85; white-space: nowrap; }
.marquee-track b { font-size: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marqueeRtl { to { transform: translateX(50%); } }

/* ------------------------------------------------------------------ story (scroll-driven) */
.story { height: 460vh; position: relative; }
.story-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.story-grid { display: grid; grid-template-columns: 1fr minmax(300px, 380px); gap: 70px; align-items: center; }
.story-texts { position: relative; min-height: 360px; }
.step-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.step-text.active { opacity: 1; transform: none; pointer-events: auto; }
.step-text .num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 20px; color: var(--navy); background: var(--gold); margin-bottom: 18px; box-shadow: 0 0 24px rgba(255, 211, 110, .55); }
.step-text h3 { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 16px; }
.step-text p { font-size: clamp(17px, 1.5vw, 20px); color: rgba(255, 255, 255, .82); max-width: 520px; margin: 0 0 20px; }
.helps { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 8px 14px; border-radius: 30px; background: rgba(47, 179, 110, .18); border: 1px solid rgba(124, 240, 176, .45); color: var(--mint); font-weight: 700; font-size: 14px; }
.story-dots { position: absolute; inset-inline-start: -46px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.story-dots i { width: 6px; height: 22px; border-radius: 4px; background: rgba(255, 255, 255, .22); transition: .3s; }
.story-dots i.on { background: var(--gold); height: 40px; }
.story-kicker { position: absolute; top: 96px; inset-inline: 0; text-align: center; }

/* the phone */
.phone {
  position: relative; width: 100%; aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 12px;
  background: linear-gradient(145deg, #2a2f5a, #0d1136);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45), 0 0 0 2px rgba(255, 255, 255, .12), 0 0 80px rgba(92, 107, 255, .35);
}
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 30%; height: 24px; margin-left: -15%; border-radius: 14px; background: #05071c; z-index: 3; }
.screen-wrap { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: linear-gradient(160deg, var(--navy), var(--navy-deep)); }
.screen { position: absolute; inset: 0; padding: 62px 18px 22px; display: flex; flex-direction: column; gap: 14px; opacity: 0; transform: scale(.96); transition: opacity .5s, transform .5s; }
.screen.active { opacity: 1; transform: none; }
.app-bar { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: #fff; }
.app-bar .mark { width: 24px; height: 24px; border-radius: 50%; padding: 4px; background: linear-gradient(135deg, var(--bright), var(--navy)); border: 1.5px solid #fff; }
.app-bar .mark img { width: 100%; height: 100%; }

/* screen 1: snap & solve */
.cam { position: relative; flex: none; height: 46%; border-radius: 22px; background: #c9cdd8; overflow: hidden; display: grid; place-items: center; }
.paper { width: 78%; background: #fbfbf8; border-radius: 6px; padding: 12px 14px 16px; transform: rotate(-4deg); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); color: #555; font-family: "Comic Sans MS", "Segoe Print", "Chalkboard SE", cursive; }
.paper small { display: block; font-size: 12px; opacity: .6; }
.paper div { font-size: 24px; text-align: center; letter-spacing: 1px; direction: ltr; }
.corner { position: absolute; width: 26px; height: 26px; border: 4px solid #fff; }
.corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.scanline { position: absolute; left: 8%; right: 8%; height: 3px; top: 12%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); border-radius: 2px; opacity: 0; }
.screen.active[data-stage="0"] .scanline, .screen.active[data-stage="1"] .scanline { opacity: 1; animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { to { top: 86%; } }
.sol { background: #fff; border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 8px; color: var(--navy); }
.sol-title { font-weight: 800; font-size: 13px; color: var(--muted); }
.sol-row { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; opacity: 0; transform: translateX(-12px); transition: .4s; direction: ltr; }
.sol-row b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #eef0ff; font-size: 12px; flex: none; }
.sol-row.ok b { background: var(--green); color: #fff; }
.sol-row.ok { color: var(--green); }
.screen[data-stage="1"] .sol-row:nth-child(2), .screen[data-stage="2"] .sol-row:nth-child(-n+3), .screen[data-stage="3"] .sol-row { opacity: 1; transform: none; }

/* screen 2: Sara on the whiteboard */
.wb { flex: 1; background: #fffef9; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.wb-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #16181d; color: #fff; font-weight: 800; font-size: 13px; }
.wb-head .sara { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--pink), var(--bright)); font-size: 12px; }
.wave { display: flex; gap: 3px; align-items: center; margin-inline-start: auto; height: 16px; }
.wave i { width: 3px; border-radius: 2px; background: var(--cyan); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(1) { height: 7px; } .wave i:nth-child(2) { height: 14px; animation-delay: .15s; } .wave i:nth-child(3) { height: 10px; animation-delay: .3s; } .wave i:nth-child(4) { height: 16px; animation-delay: .45s; } .wave i:nth-child(5) { height: 8px; animation-delay: .6s; }
@keyframes wave { 50% { transform: scaleY(.4); } }
.wb svg { flex: 1; width: 100%; }
.wb .ink { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wb text { font-family: "Comic Sans MS", "Segoe Print", "Chalkboard SE", cursive; }
.caption { margin: 0 10px 10px; padding: 8px 10px; border-radius: 12px; background: #23262d; color: #fff; font-size: 12.5px; font-weight: 700; text-align: center; opacity: 0; transition: opacity .4s; }
.screen[data-stage="3"] .caption { opacity: 1; }

/* screen 3: lecture -> notes */
.rec { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .1); border: 1px solid var(--glass-line); border-radius: 18px; padding: 12px 14px; }
.rec .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.rec b { font-size: 14px; }
.rec span { margin-inline-start: auto; font-size: 13px; opacity: .8; direction: ltr; }
.bars { display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 6px; }
.bars i { flex: 1; border-radius: 3px; background: linear-gradient(var(--pink), var(--bright)); height: calc(var(--h) * 1%); animation: bar 1.1s ease-in-out infinite; animation-delay: calc(var(--k) * -90ms); }
@keyframes bar { 50% { transform: scaleY(.35); } }
.notes { background: #fff; color: var(--navy); border-radius: 20px; padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 9px; transform: translateY(20px); opacity: 0; transition: .5s; }
.screen[data-stage="1"] .notes, .screen[data-stage="2"] .notes, .screen[data-stage="3"] .notes { transform: none; opacity: 1; }
.notes-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.notes-title i { font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: #fde7f1; color: #c2185b; }
.notes h5 { margin: 4px 0 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.nl { display: flex; align-items: center; gap: 8px; opacity: 0; transition: .4s; }
.nl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bright); flex: none; }
.nl span { height: 8px; border-radius: 4px; background: #e3e6f0; width: var(--w); }
.screen[data-stage="2"] .nl:nth-of-type(-n+3), .screen[data-stage="3"] .nl { opacity: 1; }
.notes .hl { margin-top: auto; padding: 8px 10px; border-radius: 12px; background: #fff7e0; color: #8a5a00; font-size: 12px; font-weight: 800; opacity: 0; transition: .4s; }
.screen[data-stage="3"] .notes .hl { opacity: 1; }

/* screen 4: flashcards & quiz */
.fc { perspective: 900px; height: 34%; flex: none; }
.fc-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.3, .5, 1); }
.screen[data-stage="1"] .fc-in, .screen[data-stage="2"] .fc-in, .screen[data-stage="3"] .fc-in { transform: rotateY(180deg); }
.fc-face { position: absolute; inset: 0; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; font-weight: 800; }
.fc-front { background: linear-gradient(135deg, var(--bright), #7c4dff); font-size: 22px; }
.fc-back { background: #fff; color: var(--navy); font-size: 17px; transform: rotateY(180deg); }
.fc-face small { position: absolute; top: 10px; inset-inline-start: 12px; font-size: 11px; opacity: .7; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .25); }
.fc-back small { background: #eef0ff; }
.quiz { background: #fff; color: var(--navy); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.quiz-top { display: flex; align-items: center; font-weight: 800; font-size: 18px; direction: ltr; }
.quiz-top .streak { margin-inline-start: auto; font-size: 13px; padding: 4px 9px; border-radius: 10px; background: #fff1e0; color: #e65100; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opts span { text-align: center; padding: 12px 0; border-radius: 14px; background: #f1f2f7; font-weight: 800; font-size: 18px; border: 2px solid transparent; transition: .3s; }
.screen[data-stage="3"] .opts .right { background: #e6f7ee; border-color: var(--green); color: var(--green); }
.screen[data-stage="3"] .opts .wrong-pick { background: #fff; }
.xp { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; color: var(--mint); opacity: 0; transition: .4s; }
.screen[data-stage="3"] .xp { opacity: 1; }

/* ------------------------------------------------------------------ forgetting curve */
.curve-card { background: #fff; color: var(--navy); border-radius: 28px; padding: 26px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.curve-legend { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.curve-legend span { display: flex; align-items: center; gap: 8px; }
.curve-legend i { width: 12px; height: 12px; border-radius: 50%; }
.curve-card svg { width: 100%; height: auto; overflow: visible; direction: ltr; }
.curve-card .axis { stroke: #c7cbe0; stroke-width: 2; }
.curve-card .grid { stroke: #e3e6f0; stroke-width: 1.5; stroke-dasharray: 6 6; }
.curve-card .lbl { fill: var(--muted); font-size: 14px; font-weight: 700; font-family: var(--font); }
.curve-card .note { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 4px; }
.curve-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }

/* ------------------------------------------------------------------ numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.num-card { text-align: center; padding: 30px 16px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-line); }
.num-card b { display: block; font-size: clamp(34px, 4vw, 52px); font-weight: 900; line-height: 1; background: linear-gradient(90deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: "Outfit", var(--font); direction: ltr; }
.num-card span { display: block; margin-top: 10px; font-weight: 700; opacity: .8; }

/* ------------------------------------------------------------------ reviews */
.rating-big { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; }
.rating-big b { font-size: 64px; font-weight: 900; line-height: 1; font-family: "Outfit", var(--font); }
.laurel { width: 44px; height: 80px; color: var(--gold); }
.laurel.r { transform: scaleX(-1); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: 0 24px 50px rgba(0, 0, 0, .3); display: flex; flex-direction: column; gap: 12px; }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-head .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 18px; flex: none; }
.review-head b { display: block; color: var(--navy); font-size: 16px; }
.review-head .stars { font-size: 13px; }
.review p { margin: 0; font-size: 15.5px; line-height: 1.55; color: #3a3d46; }
.review .q { margin-inline-start: auto; font-size: 44px; line-height: 1; color: rgba(57, 73, 171, .18); font-family: Georgia, serif; }

/* ------------------------------------------------------------------ languages */
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }
.lang-chip { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); cursor: pointer; color: #fff; font-weight: 800; font-size: 20px; transition: .2s; animation: float 6s ease-in-out infinite; }
.lang-chip:nth-child(2n) { animation-delay: -2s; } .lang-chip:nth-child(3n) { animation-delay: -4s; }
.lang-chip small { font-size: 13px; opacity: .7; font-weight: 700; }
.lang-chip:hover, .lang-chip[aria-pressed="true"] { background: #fff; color: var(--navy); }
.voice-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 10px 18px; border-radius: 30px; background: rgba(255, 122, 182, .16); border: 1px solid rgba(255, 122, 182, .5); font-weight: 700; }
.voice-pill .wave i { background: var(--pink); }

/* ------------------------------------------------------------------ creators */
.creators { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.earn { margin-top: 26px; display: inline-flex; align-items: baseline; gap: 10px; padding: 16px 22px; border-radius: 20px; background: linear-gradient(90deg, rgba(255, 211, 110, .2), rgba(255, 176, 32, .12)); border: 1px solid rgba(255, 211, 110, .5); }
.earn b { font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; color: var(--gold); font-family: "Outfit", var(--font); direction: ltr; unicode-bidi: isolate; }
.earn span { font-weight: 700; opacity: .9; }
.rules { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 26px; }
.rules h3 { font-size: 20px; margin-bottom: 14px; }
.rules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.rules li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; background: rgba(124, 240, 176, .2); color: var(--mint); margin-top: 1px; }
.creators .cta-row { margin-top: 26px; }

/* ------------------------------------------------------------------ download */
.download { position: relative; overflow: hidden; border-radius: 34px; padding: clamp(36px, 6vw, 70px); text-align: center; background: radial-gradient(circle at 20% 10%, rgba(63, 208, 255, .35), transparent 50%), radial-gradient(circle at 85% 90%, rgba(255, 122, 182, .3), transparent 55%), linear-gradient(135deg, var(--bright), var(--navy)); box-shadow: 0 40px 90px rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .25); }
.download .app-icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.download .cta-row { justify-content: center; margin-top: 30px; }

/* ------------------------------------------------------------------ contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.contact-info .lead { margin: 16px 0 28px; }
.info-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); text-decoration: none; margin-bottom: 12px; font-weight: 700; transition: background .2s; }
.info-row:hover { background: rgba(255, 255, 255, .14); }
.info-row i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font-style: normal; }
.info-row i svg { width: 20px; height: 20px; }
.info-row small { display: block; font-size: 12.5px; opacity: .7; font-weight: 600; }
.form { position: relative; background: rgba(255, 255, 255, .08); border: 1px solid var(--glass-line); border-radius: 30px; padding: clamp(22px, 3vw, 34px); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 14px; opacity: .9; }
.field input, .field select, .field textarea {
  width: 100%; color: #fff; background: rgba(255, 255, 255, .1); border: 1.4px solid rgba(255, 255, 255, .24);
  border-radius: 16px; padding: 14px 16px; font-size: 16px; font-weight: 600; outline: none; transition: border-color .2s, background .2s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-inline-end: 40px; }
html[dir="rtl"] .field select { background-position: left 16px center; }
.field select option { color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .45); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #fff; background: rgba(255, 255, 255, .14); }
.hp { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.form .btn { width: 100%; }
.form-status { margin-top: 14px; min-height: 22px; font-weight: 700; font-size: 15px; }
.form-status.ok { color: var(--mint); }
.form-status.err { color: #ffb3b3; }
.form.sent .field, .form.sent .form-row, .form.sent > .btn { display: none; }
.sent-view { display: none; text-align: center; padding: 30px 10px; }
.form.sent .sent-view { display: block; }
.sent-view .tick { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(47, 179, 110, .2); color: var(--mint); font-size: 40px; animation: pop .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

/* ------------------------------------------------------------------ footer */
.site-foot { border-top: 1px solid var(--glass-line); padding: 46px 0 34px; background: rgba(5, 8, 35, .35); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { text-decoration: none; opacity: .8; font-weight: 600; }
.foot-links a:hover { opacity: 1; text-decoration: underline; }
.foot-note { margin-top: 26px; font-size: 13.5px; opacity: .6; }
.tagline { opacity: .75; margin-top: 8px; font-weight: 600; }

/* ------------------------------------------------------------------ legal pages */
.legal { padding: 130px 0 90px; }
.legal-card { background: #fff; color: var(--ink); border-radius: 30px; padding: clamp(24px, 5vw, 60px); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); max-width: 880px; margin: 0 auto; direction: ltr; text-align: left; }
.legal-card h1 { color: var(--navy); font-size: clamp(32px, 4vw, 46px); margin-bottom: 18px; }
.legal-card h2, .legal-card h3, .legal-card h4 { color: var(--navy); margin: 28px 0 10px; line-height: 1.25; }
.legal-card h2 { font-size: 26px; } .legal-card h3 { font-size: 21px; } .legal-card h4 { font-size: 18px; }
.legal-card p, .legal-card li { font-size: 16.5px; line-height: 1.7; color: #3a3d46; }
.legal-card a { color: var(--indigo); font-weight: 700; }
.legal-card img { max-width: 100%; height: auto; border-radius: 16px; margin: 18px auto; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.legal-card ul, .legal-card ol { padding-left: 24px; }
.legal-card table { border-collapse: collapse; width: 100%; }
.legal-card td, .legal-card th { border: 1px solid #e3e6f0; padding: 8px; }
.legal-card .rtl { direction: rtl; text-align: right; }
.legal-card .rtl ul, .legal-card .rtl ol { padding-left: 0; padding-right: 24px; }
.legal-lang-note { max-width: 880px; margin: 0 auto 16px; font-weight: 600; opacity: .8; font-size: 14px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
  .menu-btn svg { width: 22px; height: 22px; }
  .site-head.menu-open .nav { display: flex; position: fixed; inset: 72px 0 auto 0; flex-direction: column; padding: 16px 20px 24px; background: rgba(11, 18, 71, .97); border-bottom: 1px solid var(--glass-line); }
  .site-head.menu-open .nav a { font-size: 19px; padding: 12px; }
  .head-row .btn.small { margin-inline-start: auto; }
  .hero-grid, .curve-grid, .creators, .contact { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
  .hero-grid { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .orbit { width: min(440px, 92%); }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .story-dots { display: none; }
}
@media (max-width: 860px) {
  .story { height: 520vh; }
  .story-stage { align-items: flex-start; padding-top: 84px; }
  .story-grid { grid-template-columns: 1fr; gap: 18px; justify-items: center; }
  .story-grid .phone-col { order: -1; width: min(240px, 58vw); }
  .story-texts { min-height: 230px; width: 100%; text-align: center; }
  .step-text { justify-content: flex-start; align-items: center; }
  .step-text .num { width: 36px; height: 36px; font-size: 16px; margin-bottom: 10px; }
  .step-text h3 { font-size: 26px; margin-bottom: 8px; }
  .step-text p { font-size: 15.5px; margin-bottom: 12px; }
  .helps { align-self: center; font-size: 13px; }
  .story-kicker { display: none; }
  .phone { border-radius: 34px; padding: 8px; }
  .phone::before { top: 15px; height: 16px; }
  .screen-wrap { border-radius: 27px; }
  .screen { padding: 40px 10px 12px; gap: 8px; }
  .sol-row { font-size: 13px; } .paper div { font-size: 17px; }
  .fc-front { font-size: 17px; } .fc-back { font-size: 13px; }
  .quiz-top { font-size: 14px; } .opts span { font-size: 14px; padding: 8px 0; }
  .app-bar { font-size: 12px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .head-row { height: 64px; gap: 10px; }
  .brand { font-size: 19px; } .brand-mark { width: 34px; height: 34px; }
  .head-row .btn.small span { display: none; }
  .head-row .btn.small { padding: 10px 12px; }
  .chip { font-size: 12.5px; padding: 7px 10px 7px 7px; gap: 7px; } .chip i { width: 26px; height: 26px; font-size: 14px; }
  .sticker { font-size: 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .store { min-width: 0; flex: 1 1 160px; }
  .rating-big b { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .kinetic .w, [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ additions */
.scroll-cue { text-decoration: none; color: #fff; }
.scroll-cue em { font-style: normal; }
.lang-short { display: none; }
.chip i svg { width: 20px; height: 20px; }
.helps svg { width: 16px; height: 16px; flex: none; }
.streak { display: inline-flex; align-items: center; gap: 4px; }
.streak svg { width: 14px; height: 14px; }
.xp svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.review-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.review-head > div { min-width: 0; }
.marquee-track b { color: var(--gold); }
.curve-grid .lead { margin: 18px 0 0; }
.creators .lead, .contact-info .lead { margin-top: 16px; }
.download h2 { margin-top: 4px; }
.download .lead { margin: 14px auto 0; max-width: 560px; }
.download .web-link { margin-top: 26px; }
.numbers-section { padding-top: 0; }
.form.sent .form-status { display: none; }
.wb .ink, .curve-card .cv { stroke-dasharray: 1; }
.wb .wbt { opacity: 0; transition: opacity .35s; }
.cv-dot { opacity: 0; transform: scale(.3); transform-box: fill-box; transform-origin: center; transition: opacity .3s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.cv-dot.on { opacity: 1; transform: none; }
.story-grid .phone-col { width: min(100%, calc((100vh - 170px) * .4865)); justify-self: center; }
.legal-lang-note:empty { display: none; }
.legal .back { text-align: center; margin-top: 30px; }
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 0 60px; }
.notfound .big { font-size: clamp(90px, 16vw, 170px); font-weight: 900; line-height: 1; background: linear-gradient(90deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: "Outfit", var(--font); }
.notfound .lead { margin: 14px auto 30px; max-width: 520px; }
@media (max-width: 1020px) {
  .head-row .lang { margin-inline-start: auto; }
  .head-row .btn.small { margin-inline-start: 0; }
  .scroll-cue { display: none; }
}
@media (max-width: 860px) {
  .story-grid .phone-col { width: min(240px, 58vw, calc((100vh - 360px) * .4865)); }
  @supports (height: 100svh) {
    .story-stage { height: 100svh; }
    .story-grid .phone-col { width: min(240px, 58vw, calc((100svh - 360px) * .4865)); }
  }
}
@media (max-width: 560px) {
  .lang-long { display: none; }
  .lang-short { display: inline; }
  .lang-btn { padding: 8px 10px; }
}
.store span { text-align: start; }
.form-status { margin: 12px 0 0; }
.prog { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 12px; color: rgba(255, 255, 255, .85); direction: ltr; }
.prog span { flex: 1; height: 8px; border-radius: 5px; background: rgba(255, 255, 255, .15); position: relative; overflow: hidden; }
.prog span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 55%); border-radius: 5px; background: linear-gradient(90deg, var(--mint), var(--cyan)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.screen[data-stage="3"] .prog span { --p: 62%; }
.earn b { white-space: nowrap; }
@media (max-width: 560px) {
  .store { padding: 10px 14px 10px 12px; gap: 10px; }
  .store b { font-size: 16px; white-space: nowrap; }
  .curve-card { padding: 18px; }
  .curve-card .lbl { font-size: 21px; }
}
.legal-card img { width: auto; max-height: min(70vh, 640px); }
.legal-card figure { margin: 18px 0; }

/* ------------------------------------------------------------------ FAQ */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.qa { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 22px; padding: 0 22px; transition: background .2s, border-color .2s; }
.qa[open] { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .26); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 0; font-weight: 800; font-size: clamp(17px, 1.6vw, 20px); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary span { flex: 1; }
.qa summary i { flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .12); position: relative; transition: transform .3s, background .2s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; margin: -1.25px 0 0 -6px; border-radius: 2px; background: #fff; transition: transform .3s, background .2s; }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i { background: var(--gold); transform: rotate(180deg); }
.qa[open] summary i::before, .qa[open] summary i::after { background: var(--navy); }
.qa[open] summary i::after { transform: rotate(0deg); }
.qa summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 10px; }
.qa p { margin: 0 0 20px; color: rgba(255, 255, 255, .86); font-size: 16.5px; line-height: 1.7; }
a.lang-chip { text-decoration: none; }
.lang-chip[aria-current="true"] { background: #fff; color: var(--navy); }

/* 8 language chips: two even rows of four on wide screens */
.langs { max-width: 740px; margin-left: auto; margin-right: auto; }
/* Languages that are in the app but have no page on this site */
.lang-chip.app-only { cursor: default; }
.lang-chip.app-only:hover { background: var(--glass); color: #fff; }

/* Number cards: all the same size, whatever the numbers say */
.numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) {
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
}
@media (max-width: 400px) {
  .num-card { padding-left: 10px; padding-right: 10px; }
  .num-card b { font-size: 32px; }
}
@media (max-width: 340px) {
  .num-card b { font-size: 28px; }
}
