:root {
  --ink: #202044;
  --coral: #ff684a;
  --coral-deep: #f2573a;
  --cream: #fff7e8;
  --paper: #fffdf8;
  --lav: #aea9ff;
  --lav-deep: #6f62c3;
  --muted: #6e6c8a;
  --line: #efe3cc;
  --radius: 28px;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Zain", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.02em; }
html[lang="en"] body { line-height: 1.6; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.nav, main, .foot { position: relative; z-index: 1; }

/* ------------------------------------------------------------ nav */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 20; transition: background 0.25s, box-shadow 0.25s; }
.nav.stuck { background: rgba(255, 247, 232, 0.82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; }
.brand > img { border-radius: 10px; display: block; }
.links { display: flex; gap: 6px; }
.links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; opacity: 0.72; transition: opacity 0.2s, background 0.2s; }
.links a:hover { opacity: 1; background: rgba(32, 32, 68, 0.06); }
.lang { font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 18px; cursor: pointer; transition: border-color 0.2s, transform 0.2s; }
.lang:hover { border-color: var(--coral); transform: translateY(-1px); }

/* ------------------------------------------------------------ hero */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 104px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 24px; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 14px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 22px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255, 104, 74, 0.2); }
h1 { margin: 0 0 20px; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.18; font-weight: 800; }
h1 .hl { position: relative; white-space: nowrap; color: var(--coral); }
h1 .hl::after { content: ""; position: absolute; inset-inline: -2%; bottom: 0.04em; height: 0.16em; border-radius: 999px; background: rgba(255, 104, 74, 0.22); z-index: -1; }
.lead { margin: 0 0 32px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 48ch; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores.center { justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 11px 22px 11px 18px; border-radius: 16px; background: var(--ink); color: #fff; cursor: default; user-select: none; box-shadow: 0 10px 24px -8px rgba(32, 32, 68, 0.45); }
.store svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: 0.7; line-height: 1.2; }
.store b { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; }
.store.light { background: #fff; color: var(--ink); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.35); }

.facts { display: flex; gap: clamp(20px, 3.5vw, 44px); margin: 38px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.facts div { min-width: 0; }
.facts dt { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.facts dd { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); font-weight: 500; }

.logo-fallback { position: absolute; inset: 8%; }
.logo-fallback img { position: absolute; inset: 0; width: 100%; height: 100%; }

.in-up { opacity: 0; transform: translateY(22px); animation: up 0.9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms + 120ms); }
@keyframes up { to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ ticker */
.ticker { background: var(--ink); padding: 18px 0; overflow: hidden; display: grid; gap: 12px; }
.row { display: flex; gap: 12px; width: max-content; animation: slide 55s linear infinite; }
.row.rev { animation-direction: reverse; animation-duration: 70s; }
.ticker:hover .row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: baseline; gap: 12px; white-space: nowrap; padding: 10px 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; font-size: 17px; }
.chip b { font-weight: 600; direction: ltr; }
.chip span { color: var(--lav); font-size: 15px; }
.chip.hot { background: var(--coral); border-color: transparent; }
.chip.hot span { color: #fff; opacity: 0.9; }

/* ------------------------------------------------------------ sections */
section:not(.hero):not(.ticker) { padding: clamp(72px, 10vw, 136px) 0; background: var(--cream); }
.sec-head { max-width: 640px; margin-bottom: clamp(36px, 6vw, 72px); }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; color: var(--coral); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: 14px; }
.sec-head h2 { margin: 0 0 14px; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.2; font-weight: 800; }
.sec-head p { margin: 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); max-width: 52ch; }
.sec-head.light h2 { color: #fff; }
.sec-head.light p { color: #b8b8c3; }

/* ------------------------------------------------------------ showcase */
.show-grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 7vw, 110px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 0; opacity: 0.38; transition: opacity 0.4s; }
.step.on { opacity: 1; }
.step .num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--paper); border: 1.5px solid var(--line); font-weight: 800; font-size: 15px; color: var(--coral); margin-bottom: 18px; font-variant-numeric: tabular-nums; align-self: flex-start; }
.step.on .num { background: var(--coral); border-color: var(--coral); color: #fff; }
.step h3 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 36px); line-height: 1.25; font-weight: 800; }
.step p { margin: 0; color: var(--muted); font-size: 17px; max-width: 44ch; }
.step .phone.small { display: none; }

.stage { position: sticky; top: 96px; height: calc(100svh - 120px); display: grid; place-items: center; }
.phone { position: relative; margin: 0; width: min(100%, calc((100svh - 140px) * 0.46)); aspect-ratio: 660 / 1434; border-radius: 46px; padding: 9px; background: linear-gradient(145deg, #34345e, #14142e); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.12) inset, 0 40px 80px -24px rgba(32, 32, 68, 0.55), 0 12px 24px -12px rgba(32, 32, 68, 0.4); }
.phone img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); object-fit: cover; border-radius: 38px; opacity: 0; transform: scale(1.03); transition: opacity 0.55s var(--ease), transform 0.8s var(--ease); }
.phone img.on { opacity: 1; transform: none; }
.phone.small { width: min(300px, 100%); }
.phone.small img { opacity: 1; transform: none; }

/* ------------------------------------------------------------ levels */
.levels { background: var(--ink) !important; color: #fff; position: relative; overflow: hidden; }
.levels::before, .levels::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.levels::before { width: 520px; height: 520px; background: var(--coral); top: -220px; inset-inline-start: -160px; opacity: 0.32; }
.levels::after { width: 560px; height: 560px; background: var(--lav-deep); bottom: -260px; inset-inline-end: -140px; opacity: 0.45; }
.levels .wrap { position: relative; z-index: 1; }
.trophies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: start; }
.trophy { text-align: center; transition: transform 0.45s var(--ease); }
.trophy:nth-child(even) { transform: translateY(-34px); }
.trophy:hover { transform: translateY(-14px) scale(1.04); }
.trophy:nth-child(even):hover { transform: translateY(-48px) scale(1.04); }
.trophy .art { width: min(132px, 100%); margin: 0 auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35)); animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--i) * -0.8s); }
.trophy .art svg { display: block; width: 100%; height: auto; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.trophy .lvl { margin-top: 14px; font-weight: 800; font-size: 20px; }
.trophy .nm { font-size: 13.5px; color: #aaaab8; font-weight: 500; }

/* ------------------------------------------------------------ why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s; }
.why-card:hover { transform: translateY(-6px); border-color: var(--coral); box-shadow: 0 24px 40px -24px rgba(255, 104, 74, 0.5); }
.why-card svg { width: 50px; height: 50px; padding: 12px; border-radius: 16px; background: #ffe9df; fill: none; stroke: var(--coral); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why-card h3 { margin: 20px 0 8px; font-size: 19px; font-weight: 800; line-height: 1.35; }
.why-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------ cta */
.cta { padding-top: 0 !important; }
.cta-card { position: relative; overflow: hidden; text-align: center; border-radius: 40px; padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px); color: #fff; background: linear-gradient(135deg, #ff7a5c 0%, #f2573a 100%); box-shadow: 0 40px 80px -40px rgba(242, 87, 58, 0.7); }
.cta-card::before, .cta-card::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.12); pointer-events: none; }
.cta-card::before { width: 420px; height: 420px; top: -200px; inset-inline-start: -120px; }
.cta-card::after { width: 320px; height: 320px; bottom: -160px; inset-inline-end: -80px; }
.cta-card > * { position: relative; z-index: 1; }
.cta-logo { border-radius: 20px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.35); margin-bottom: 22px; }
.cta-card h2 { margin: 0 0 12px; font-size: clamp(30px, 4.6vw, 56px); line-height: 1.2; font-weight: 800; }
.cta-card p { margin: 0 auto 32px; max-width: 46ch; opacity: 0.92; font-size: clamp(16px, 1.5vw, 18px); }

.foot { background: var(--cream); padding: 8px 0 44px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.foot .brand { font-size: 17px; }
.copy { color: var(--muted); font-size: 14px; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .show-grid { grid-template-columns: 1fr; }
  .stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 36px 0; }
  .step .phone.small { display: block; margin: 28px auto 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .links { display: none; }
}
@media (max-width: 860px) {
  .hero { min-height: 0; padding: 88px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { order: -1; aspect-ratio: auto; height: min(78vw, 46svh); }
  .facts { margin-top: 30px; }
  .trophies { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .trophy:nth-child(even) { transform: none; }
  .trophy:nth-child(even):hover { transform: translateY(-14px) scale(1.04); }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .store { flex: 1 1 100%; justify-content: center; }
  .foot-in { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .row, .trophy .art { animation: none; }
  .in-up { animation: none; opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .phone img { transition: none; }
}

/* Zain draws small, so the Arabic copy gets a little more size. */
html[lang="ar"] .lead { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.75; }
html[lang="ar"] .step p, html[lang="ar"] .sec-head p, html[lang="ar"] .cta-card p { font-size: clamp(17px, 1.6vw, 20px); }
html[lang="ar"] .why-card h3 { font-size: 22px; }
html[lang="ar"] .why-card p { font-size: 17px; }
html[lang="ar"] .links a, html[lang="ar"] .lang { font-size: 16px; }
html[lang="ar"] .facts dd, html[lang="ar"] .trophy .nm { font-size: 15px; }
html[lang="ar"] .chip span, html[lang="ar"] .eyebrow { font-size: 16px; }
html[lang="ar"] .store small { font-size: 12.5px; }
html[lang="ar"] .kicker { font-size: 16px; }

/* ------------------------------------------------------------ problem: words light up as you scroll */
.problem { padding: 0 !important; height: 340svh; position: relative; }
.pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.problem .wrap { max-width: 980px; }
.big { margin: 0 0 clamp(14px, 2.2vh, 26px); font-size: clamp(26px, 4.8vw, 62px); line-height: 1.24; font-weight: 800; color: #cfc9bf; }
.big.answer { margin-top: clamp(22px, 4.5vh, 52px); margin-bottom: 0; font-size: clamp(24px, 3.8vw, 48px); }
.big .hl { position: relative; white-space: normal; }
.big .hl::after { content: ""; position: absolute; inset-inline: -1%; bottom: 0.02em; height: 0.14em; border-radius: 999px; background: rgba(255, 104, 74, 0.25); z-index: -1; opacity: var(--u, 0); }
.prog { position: absolute; top: 18%; bottom: 18%; inset-inline-start: clamp(10px, 2.4vw, 32px); width: 3px; border-radius: 3px; background: #e9dcc3; overflow: hidden; }
.prog::before { content: ""; position: absolute; inset: 0; background: var(--coral); transform-origin: top; transform: scaleY(var(--p, 0)); }

/* ------------------------------------------------------------ try a word */
.try { background: linear-gradient(180deg, var(--cream), #ffefd6) !important; }
.try-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 100px); align-items: center; }
.try-copy h2 { margin: 0 0 14px; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.2; font-weight: 800; }
.try-copy > p { margin: 0 0 28px; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); max-width: 44ch; }
html[lang="ar"] .try-copy > p { font-size: clamp(17px, 1.6vw, 20px); }
.try-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.btn { font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; border-radius: 999px; padding: 12px 24px; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; transition: background 0.2s, color 0.2s, transform 0.2s; }
.btn:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.hint { font-size: 14px; color: var(--muted); }

.try-stage { display: grid; place-items: center; perspective: 1100px; padding: 12px; }
.flip { --rx: 0deg; --ry: 0deg; width: min(340px, 100%); aspect-ratio: 340 / 430; cursor: pointer; outline: none; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.25s ease-out; transform-style: preserve-3d; }
.flip:focus-visible .face { box-shadow: 0 0 0 4px rgba(255, 104, 74, 0.45), 0 40px 70px -30px rgba(32, 32, 68, 0.5); }
.flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.7s var(--ease); }
.flip.on .flip-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; border-radius: 32px; padding: 28px; display: flex; flex-direction: column; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 40px 70px -30px rgba(32, 32, 68, 0.5), 0 10px 20px -10px rgba(32, 32, 68, 0.25); }
.face.front { background: var(--paper); border: 1.5px solid var(--line); align-items: flex-start; }
.face.back { background: var(--ink); color: #fff; transform: rotateY(180deg); }
.tag { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: #f2e7cf; color: var(--ink); font-size: 13px; font-weight: 600; }
.face.back .tag { background: rgba(255, 255, 255, 0.12); color: #fff; }
.term { margin-top: auto; font-size: clamp(40px, 6vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; direction: ltr; text-align: start; align-self: stretch; }
.say { margin-top: 18px; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: var(--coral); display: grid; place-items: center; box-shadow: 0 10px 20px -8px rgba(242, 87, 58, 0.8); transition: transform 0.2s; }
.say:hover { transform: scale(1.08); }
.say svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tap { margin-top: 22px; font-size: 14px; color: var(--muted); font-weight: 500; }
.mean { margin-top: 28px; font-size: clamp(26px, 4vw, 34px); line-height: 1.3; font-weight: 800; }
.face .sub { margin: 12px 0 0; color: #c1c1ca; font-size: 16px; line-height: 1.6; }
.ex { margin-top: auto; padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.08); }
.ex span { display: block; font-weight: 600; font-size: 16px; line-height: 1.5; text-align: left; }
.ex mark { background: none; color: var(--coral); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.ex em { display: block; margin-top: 8px; font-style: normal; color: #b3b3bf; font-size: 15px; }
.face [hidden] { display: none; }

/* ------------------------------------------------------------ faq */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
.faq .sec-head { margin-bottom: 0; }
.qa details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 800; font-size: clamp(18px, 2vw, 22px); line-height: 1.4; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--line); color: var(--coral); font-size: 22px; font-weight: 600; transition: transform 0.3s var(--ease), background 0.2s; }
.qa details[open] summary::after { transform: rotate(45deg); background: var(--coral); color: #fff; border-color: var(--coral); }
.qa details p { margin: 0 0 22px; color: var(--muted); font-size: 17px; max-width: 56ch; }
html[lang="ar"] .qa details p { font-size: 19px; }

@media (max-width: 860px) {
  .try-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-grid { gap: 4px; }
  .try-stage { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .flip, .flip-in { transition: none; }
  .problem { height: auto; padding: 96px 0 !important; }
  .pin { position: static; height: auto; }
  .prog { display: none; }
}

/* ------------------------------------------------------------ store icons */
.store .ico { width: 26px; height: 26px; stroke: none; flex: none; }
.store .ico.apple { fill: currentColor; }
.store .ico.play { width: 24px; height: 24px; }

/* ------------------------------------------------------------ the living logo */
.live-logo { --s: 34px; position: relative; display: inline-block; width: var(--s); height: var(--s); flex: none; border-radius: 27%; overflow: hidden; background: linear-gradient(135deg, #ff7a5c, #f2573a); box-shadow: 0 calc(var(--s) * 0.12) calc(var(--s) * 0.3) calc(var(--s) * -0.1) rgba(242, 87, 58, 0.7); transform: perspective(500px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--k, 1)); transition: box-shadow 0.3s; cursor: pointer; will-change: transform; }
.live-logo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; will-change: transform; user-select: none; -webkit-user-drag: none; }
.cta-logo { background: linear-gradient(135deg, #ff6a4b, #e0452a); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.92), 0 26px 44px -14px rgba(0, 0, 0, 0.5); margin-bottom: 26px; }
.cta-card .halo { position: absolute; width: 190px; height: 190px; left: 50%; top: 0; margin: clamp(48px, 8vw, 96px) 0 0 -95px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); animation: halo 3.6s ease-out infinite; pointer-events: none; z-index: 0; }
@keyframes halo { 0% { transform: scale(0.55); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cta-card .halo { animation: none; opacity: 0; } }

/* ------------------------------------------------------------ legal / support pages */
.doc-top { position: fixed; top: 0; inset-inline: 0; z-index: 20; background: rgba(255, 247, 232, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.doc-top .nav-in { height: 68px; }
.doc { position: relative; z-index: 1; padding: 128px 0 72px; min-height: 100svh; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.15; margin: 0 0 10px; }
.doc .meta { margin: 0 0 40px; color: var(--muted); font-size: 15px; }
.doc .summary { margin: 0 0 40px; padding: 22px 26px; border-radius: 22px; background: var(--paper); border: 1.5px solid var(--line); font-size: 18px; font-weight: 500; line-height: 1.7; }
.doc h2 { margin: 44px 0 10px; font-size: clamp(22px, 2.8vw, 28px); line-height: 1.3; font-weight: 800; }
.doc p, .doc li { font-size: 17px; color: #3c3b5c; }
html[lang="ar"] .doc p, html[lang="ar"] .doc li { font-size: 19px; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--coral-deep); text-underline-offset: 3px; }
.doc .contact { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; direction: ltr; }
.doc .contact:hover { background: #2b2b5a; }
.doc .contact svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-l] { display: none; }
html[lang="ar"] [data-l="ar"], html[lang="en"] [data-l="en"] { display: block; }
html[lang="ar"] span[data-l="ar"], html[lang="en"] span[data-l="en"] { display: inline; }
.doc-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.doc-links a { color: var(--muted); text-decoration: none; }
.doc-links a:hover { color: var(--coral-deep); }

.foot-links { display: flex; gap: 22px; font-size: 14px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--coral-deep); }
@media (max-width: 560px) { .foot-links { flex-wrap: wrap; justify-content: center; } }

/* ------------------------------------------------------------ the phrasebook section */
.pbook { background: linear-gradient(180deg, #ffefd6, var(--cream)) !important; }
.pb-search { position: relative; max-width: 640px; margin-bottom: 18px; }
.pb-search svg { position: absolute; inset-inline-start: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.pb-search input { width: 100%; height: 56px; padding: 0 20px; padding-inline-start: 52px; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.pb-search input:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255, 104, 74, 0.18); }
.pb-cats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 8px; scrollbar-width: thin; }
.pb-cat { flex: none; font: inherit; font-weight: 600; font-size: 15px; padding: 9px 20px; border-radius: 999px; cursor: pointer; color: var(--ink); background: transparent; border: 1.5px solid #e3d8c3; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.pb-cat:hover { border-color: var(--coral); }
.pb-cat.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.pb-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.pb-topics { list-style: none; margin: 0; padding: 6px; max-height: 640px; overflow-y: auto; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); scrollbar-width: thin; }
.pb-topic { width: 100%; display: flex; align-items: center; gap: 12px; text-align: start; font: inherit; font-weight: 600; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-radius: 18px; padding: 11px 12px; cursor: pointer; transition: background 0.2s; }
.pb-topic:hover { background: #fff1e6; }
.pb-topic.on { background: var(--ink); color: #fff; }
.pb-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: #ffe9df; color: var(--coral-deep); font-variant-numeric: tabular-nums; }
.pb-topic.on .pb-n { background: var(--coral); color: #fff; }

.pb-panel { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(32, 32, 68, 0.4); }
.pb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 22px 26px 14px; border-bottom: 1px solid var(--line); }
.pb-head h3 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.25; }
.pb-head span { flex: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.pb-list { max-height: 570px; overflow-y: auto; padding: 16px; display: grid; gap: 12px; scrollbar-width: thin; }
.pb-note { margin: 18px 10px; color: var(--muted); font-size: 16px; }
.pb-card { background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: 16px 18px; display: grid; gap: 6px; }
.pb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pb-level { background: #f2e7cf; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.pb-cap { flex: 1; text-align: center; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-say { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: #ffe9df; display: grid; place-items: center; transition: background 0.2s, transform 0.2s; }
.pb-say:hover { background: var(--coral); transform: scale(1.08); }
.pb-say svg { width: 18px; height: 18px; fill: none; stroke: var(--coral-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pb-say:hover svg { stroke: #fff; }
.pb-en { margin: 0; font-size: 21px; line-height: 1.35; font-weight: 800; text-align: left; }
.pb-ar { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); text-align: right; font-weight: 500; }
html[lang="ar"] .pb-ar { font-size: 20px; }
.pb-tip { margin: 2px 0 0; padding: 8px 12px; border-radius: 14px; background: #efeaff; color: var(--lav-deep); font-size: 15px; line-height: 1.55; text-align: right; }
html[lang="ar"] .pb-tip { font-size: 17px; }

@media (max-width: 900px) {
  .pb-grid { grid-template-columns: 1fr; }
  .pb-topics { display: flex; gap: 6px; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 8px; border-radius: 999px; }
  .pb-topics li { flex: none; }
  .pb-topic { white-space: nowrap; border-radius: 999px; padding: 9px 14px; }
  .pb-list { max-height: 520px; }
}
