/* TAAVR — one stylesheet for every page.
   Light by default; dark follows the device unless a page pins it. */

@font-face {
  font-family: 'Riyal';
  src: url('../fonts/SaudiRiyal-Regular.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+20C1;
}
@font-face {
  font-family: 'Riyal';
  src: url('../fonts/SaudiRiyal-Bold.woff2') format('woff2');
  font-weight: 700 900;
  font-display: swap;
  unicode-range: U+20C1;
}

:root {
  --purple: #5841b8;
  --purple-600: #4a35a3;
  --purple-50: #f3f0ff;
  --purple-100: #e7e1ff;
  --navy: #2e2856;
  --violet: #9b59b6;
  --yellow: #ffd15b;
  --pink: #ff6b93;
  --orange: #ff9f43;
  --green: #4bc0c0;
  --cyan: #00e5ff;

  --bg: #fbfaff;
  --bg-alt: #f3f0ff;
  --surface: #ffffff;
  --surface-2: #f7f5ff;
  --text: #2b2840;
  --text-muted: #625e78;
  --border: #e4dff5;
  --border-strong: #cfc6f0;
  --link: #5841b8;
  --accent: #5841b8;
  --accent-text: #ffffff;
  --success: #1f8f62;
  --success-bg: #e3f7ee;
  --danger: #c2334d;
  --danger-bg: #fdebef;
  --shadow-sm: 0 1px 2px rgba(46, 40, 86, .06), 0 2px 8px rgba(46, 40, 86, .06);
  --shadow: 0 2px 6px rgba(46, 40, 86, .06), 0 12px 32px rgba(46, 40, 86, .10);
  --shadow-lg: 0 24px 60px rgba(46, 40, 86, .18);
  --header-bg: #2e2856;
  --header-text: #ffffff;
  --focus: #ff6b93;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --gutter: 16px;
  --maxw: 1180px;

  --font-ar: 'Riyal', 'Baloo Bhaijaan 2', 'Quicksand', system-ui, sans-serif;
  --font-en: 'Riyal', 'Quicksand', 'Baloo Bhaijaan 2', system-ui, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15122b;
    --bg-alt: #1c1838;
    --surface: #221d44;
    --surface-2: #2a2452;
    --text: #f1eefc;
    --text-muted: #bdb6dc;
    --border: #3a3366;
    --border-strong: #514884;
    --link: #b9a9ff;
    --accent: #6f57dc;
    --purple-50: #2a2452;
    --purple-100: #352d66;
    --success: #5fd3a2;
    --success-bg: #173a2f;
    --danger: #ff8fa6;
    --danger-bg: #43202b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    --header-bg: #100d24;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15122b;
  --bg-alt: #1c1838;
  --surface: #221d44;
  --surface-2: #2a2452;
  --text: #f1eefc;
  --text-muted: #bdb6dc;
  --border: #3a3366;
  --border-strong: #514884;
  --link: #b9a9ff;
  --accent: #6f57dc;
  --purple-50: #2a2452;
  --purple-100: #352d66;
  --success: #5fd3a2;
  --success-bg: #173a2f;
  --danger: #ff8fa6;
  --danger-bg: #43202b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  --header-bg: #100d24;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Left-to-right languages use the Latin font first; Bengali, Chinese and
   Cyrillic fall back to the system font, which has those letters */
html[dir="ltr"] body { font-family: var(--font-en); line-height: 1.6; }
html[lang="bn"] body, html[lang="zh"] body { line-height: 1.7; }
/* English visitors: hold the first paint until the words are swapped, but
   never longer than a moment, even if the script never runs. */
html.i18n-pending body { animation: reveal-body 0s linear 1.2s forwards; visibility: hidden; }
@keyframes reveal-body { to { visibility: visible; } }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
.num, .money, .price, .tnum { font-variant-numeric: tabular-nums lining-nums; }
.money { white-space: nowrap; unicode-bidi: isolate; direction: ltr; display: inline-block; }
.cur { font-size: .82em; margin-inline-end: .12em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--yellow); color: #2e2856; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 24px; } }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .6em 1.4em;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
/* Jelly: a slow idle wobble like the page's shapes, one squishy wobble when
   pointed at, a soft squash when pressed */
@keyframes btn-wobble {
  25% { transform: scale(1.02, .985) rotate(.6deg); }
  50% { transform: scale(.988, 1.015) rotate(-.5deg); }
  75% { transform: scale(1.01, .992) rotate(.3deg); }
}
.btn:not([disabled]):not(.is-busy), .chip-btn { animation: btn-wobble 6s ease-in-out infinite; }
.header-actions > :nth-child(2), .pkg-card:nth-child(3) .btn { animation-delay: -2s; }
.header-actions > :nth-child(3), .offer-card .btn, .pkg-card:nth-child(2) .btn { animation-delay: -4s; }
.pkg-card:nth-child(4) .btn { animation-delay: -1s; }
@keyframes btn-jelly {
  30% { transform: scale(1.06, .94); }
  45% { transform: scale(.96, 1.04); }
  60% { transform: scale(1.025, .975); }
  75% { transform: scale(.99, 1.01); }
  100% { transform: none; }
}
@media (hover: hover) {
  .btn:not([disabled]):not(.is-busy):hover, .chip-btn:hover { animation: btn-jelly .6s ease-out; }
}
.btn:not([disabled]):not(.is-busy):active, .chip-btn:active { animation: none; transform: scale(1.04, .94); transition-duration: .08s; }
.chip-btn { transition: transform .15s ease, background-color .15s ease; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(88, 65, 184, .3); }
.btn-primary:hover { background: var(--purple-600); }
.btn-yellow { background: var(--yellow); color: #2e2856; box-shadow: 0 6px 18px rgba(255, 209, 91, .35); }
.btn-yellow:hover { background: #ffc633; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--link); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .65; cursor: progress; }
.btn.is-busy .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); color: var(--header-text);
}
/* The navbar's bottom edge is a wave like the sections', hanging down,
   drifting sideways and gently rising and falling */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px;
  background: inherit; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1200V20C1000 40 800 40 600 20S200 0 0 20Z'/%3E%3C/svg%3E") repeat-x 0 0 / 1200px 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1200V20C1000 40 800 40 600 20S200 0 0 20Z'/%3E%3C/svg%3E") repeat-x 0 0 / 1200px 100%;
  transform-origin: top;
  filter: drop-shadow(0 6px 8px rgba(20, 16, 50, .25));
  animation: wave-drift 24s linear infinite reverse, wave-bob 6s ease-in-out infinite;
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; flex: none; padding: 4px 0; border-radius: 8px; }
.brand img { height: 40px; width: auto; }
@media (min-width: 768px) { .brand img { height: 46px; } }
.main-nav { display: none; margin-inline-start: 12px; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: #e9e5ff; text-decoration: none; font-weight: 600; border-radius: 999px;
}
.main-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
/* Navbar jelly: the logo and links wobble slowly like the buttons, wobble
   once when pointed at, and squash when pressed */
.brand, .main-nav a { animation: btn-wobble 6s ease-in-out infinite; }
.main-nav li:nth-child(2) a { animation-delay: -1.2s; }
.main-nav li:nth-child(3) a { animation-delay: -2.4s; }
.main-nav li:nth-child(4) a { animation-delay: -3.6s; }
.main-nav li:nth-child(5) a { animation-delay: -4.8s; }
@media (hover: hover) { .brand:hover, .main-nav a:hover { animation: btn-jelly .6s ease-out; } }
.brand:active, .main-nav a:active { animation: none; transform: scale(1.04, .94); }
@media (min-width: 1024px) { .main-nav { display: block; } }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

.chip-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; min-width: 44px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .06); color: #fff;
  font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
}
.chip-btn:hover { background: rgba(255, 255, 255, .14); }
.chip-btn--yellow { background: var(--yellow); border-color: var(--yellow); color: #2e2856; }
.chip-btn--yellow:hover { background: #ffc633; }
/* Language button and menu */
.lang-btn { gap: 6px; }
.lang-btn .icon { width: 18px; height: 18px; flex: none; }
.lang-btn-label { unicode-bidi: isolate; }
html.lang-open { overflow: hidden; }
.lang-dialog {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 16px;
  background: rgba(20, 16, 50, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: lang-in .2s ease-out;
}
.lang-dialog[hidden] { display: none; }
@keyframes lang-in { from { opacity: 0; } }
.lang-panel {
  width: min(620px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding: 20px 20px 22px; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); border: 1.5px solid var(--border); box-shadow: var(--shadow-lg);
  animation: pop .25s ease-out;
}
.lang-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lang-title { margin: 0; font-size: 1.25rem; font-weight: 800; }
.lang-close {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--border); color: var(--text-muted); cursor: pointer;
}
.lang-close:hover { color: var(--text); border-color: var(--accent); }
.lang-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lang-option {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 68px; padding: 10px 8px; border-radius: 14px; cursor: pointer; text-align: center;
  background: transparent; border: 1.5px solid var(--border); color: var(--text);
  transition: border-color .15s ease, background-color .15s ease;
}
.lang-option:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.lang-option[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.lang-option[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: 6px; inset-inline-start: 10px; font-size: .8rem; font-weight: 800; color: var(--link);
}
.lang-native { font: 700 1.05rem/1.35 var(--font-ar); unicode-bidi: isolate; }
.lang-native:lang(bn), .lang-native:lang(zh), .lang-native:lang(ru) { font-family: system-ui, sans-serif; }
.lang-native:lang(en), .lang-native:lang(id), .lang-native:lang(ms), .lang-native:lang(tr), .lang-native:lang(fr),
.lang-native:lang(so), .lang-native:lang(ha), .lang-native:lang(uz) { font-family: var(--font-en); }
.lang-en { font: 600 .75rem/1.2 var(--font-en); color: var(--text-muted); }

@media (max-width: 599px) {
  .hide-sm { display: none; }
}
.menu-btn { display: inline-flex; }
@media (min-width: 1024px) { .menu-btn { display: none; } }
.mobile-nav {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 8px 0 16px;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mobile-nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 12px;
  color: #fff; text-decoration: none; font-weight: 600; border-radius: 12px;
}
.mobile-nav a:hover { background: rgba(255, 255, 255, .08); }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(255, 209, 91, .35), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(255, 107, 147, .18), transparent 60%),
    radial-gradient(70% 80% at 0% 0%, rgba(88, 65, 184, .16), transparent 60%),
    var(--bg);
  padding: 40px 0 56px;
}
.hero-grid { display: grid; gap: 28px; align-items: center; position: relative; z-index: 1; }
/* Background keywords: big faint rows drifting sideways, fading at the edges */
.hero-words {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; user-select: none;
  display: flex; flex-direction: column; justify-content: space-around; padding-block: 2%;
  direction: ltr; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.hw-row { white-space: nowrap; transform: rotate(-4deg); }
.hw-track { display: inline-flex; animation: hw-drift 190s linear infinite; will-change: transform; }
.hw-track span {
  font-family: var(--font-ar); font-weight: 800; line-height: 1.1;
  font-size: clamp(2.2rem, 6vw, 4.6rem); padding-inline: .45em; unicode-bidi: isolate;
  color: var(--text); opacity: .045;
}
/* Outline rows: the word drawn 16 times in a small circle (text-shadow) with a
   background-coloured word on top. Gives a round outer edge only: no inner
   lines where joined Arabic letters overlap, and no spikes at sharp corners
   (which -webkit-text-stroke draws and cannot round) */
.hw-row:nth-child(even) .hw-track span {
  color: var(--bg); opacity: .07;
  text-shadow: 1.60px 0 0 var(--text), 1.48px 0.61px 0 var(--text), 1.13px 1.13px 0 var(--text), 0.61px 1.48px 0 var(--text),
    0 1.60px 0 var(--text), -0.61px 1.48px 0 var(--text), -1.13px 1.13px 0 var(--text), -1.48px 0.61px 0 var(--text),
    -1.60px 0 0 var(--text), -1.48px -0.61px 0 var(--text), -1.13px -1.13px 0 var(--text), -0.61px -1.48px 0 var(--text),
    0 -1.60px 0 var(--text), 0.61px -1.48px 0 var(--text), 1.13px -1.13px 0 var(--text), 1.48px -0.61px 0 var(--text);
}
.hw-row--2 .hw-track { animation-direction: reverse; animation-duration: 230s; }
.hw-row--3 .hw-track { animation-duration: 255s; }
.hw-row--4 .hw-track { animation-direction: reverse; animation-duration: 225s; }
@keyframes hw-drift { to { transform: translateX(-50%); } }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
}
.hero h1 { font-size: clamp(1.9rem, 6.4vw, 3.4rem); font-weight: 800; color: var(--text); margin-bottom: 16px; }
.hero h1 .hl {
  --hl-from: var(--purple); --hl-to: var(--pink);
  color: var(--purple);
  background: linear-gradient(100deg, var(--hl-from) 10%, var(--hl-to) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  text-decoration: underline var(--yellow); text-decoration-thickness: .07em;
  text-underline-offset: .32em; text-decoration-skip-ink: none;
}
:root[data-theme="dark"] .hero h1 .hl { --hl-from: #cfc3ff; --hl-to: #ff9ab6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 .hl { --hl-from: #cfc3ff; --hl-to: #ff9ab6; } }
.hero-lead { font-size: clamp(1.15rem, 2.8vw, 1.4rem); color: var(--text-muted); max-width: 36em; margin: 0; }

/* Hero show: the headline, then each offer, popping in like jelly */
.hs-stage { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-copy { min-width: 0; }
.hs-slide { grid-area: 1 / 1; align-self: center; }
/* Each part of a slide rises in one after another, from a soft blur with a
   little jelly overshoot; the slide leaving lifts away and blurs out */
.is-live .hs-slide { visibility: hidden; }
.is-live .hs-slide.is-on, .is-live .hs-slide.is-leaving { visibility: visible; }
.is-live .hs-slide.is-on > * { animation: hs-rise .75s cubic-bezier(.2, .9, .3, 1.25) both; }
.is-live .hs-slide.is-on > :nth-child(2) { animation-delay: .08s; }
.is-live .hs-slide.is-on > :nth-child(3) { animation-delay: .16s; }
.is-live .hs-slide.is-on > :nth-child(4) { animation-delay: .24s; }
.is-live .hs-slide.is-on > :nth-child(5) { animation-delay: .32s; }
.is-live .hs-slide.is-leaving > * { animation: hs-leave .4s ease-in both; }
.is-live .hs-slide.is-leaving > :nth-child(2) { animation-delay: .03s; }
.is-live .hs-slide.is-leaving > :nth-child(3) { animation-delay: .06s; }
.is-live .hs-slide.is-leaving > :nth-child(4) { animation-delay: .09s; }
.is-live .hs-slide.is-leaving > :nth-child(5) { animation-delay: .12s; }
@keyframes hs-rise {
  0% { opacity: 0; transform: translateY(22px) scale(.96, 1.04); filter: blur(8px); }
  55% { opacity: 1; transform: translateY(-4px) scale(1.02, .98); filter: blur(0); }
  80% { transform: translateY(1px) scale(.995, 1.005); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes hs-leave {
  to { opacity: 0; transform: translateY(-18px) scale(.97); filter: blur(6px); }
}
/* The headset swings in with a small tilt, then floats */
.is-live .hs-slide.is-on .hs-headset { animation: hs-fly .9s cubic-bezier(.2, .9, .3, 1.3) .15s both, bob 4s ease-in-out 1.1s infinite; }
@keyframes hs-fly {
  0% { opacity: 0; transform: translateX(40px) rotate(-18deg) scale(.7); }
  100% { opacity: 1; transform: none; }
}
[dir="rtl"] .is-live .hs-slide.is-on .hs-headset { animation-name: hs-fly-rtl, bob; }
@keyframes hs-fly-rtl {
  0% { opacity: 0; transform: translateX(-40px) rotate(18deg) scale(.7); }
  100% { opacity: 1; transform: none; }
}
/* The save tag pops once it has landed */
.is-live .hs-slide.is-on .hs-save { animation: hs-pop .5s cubic-bezier(.2, .9, .3, 1.6) .75s both; }
@keyframes hs-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.hs-slide:not(.hs-slide--intro) {
  /* Mixed with the text colour: lighter on the dark theme, darker on the
     light one, so the package name reads on both */
  --tier-hi: color-mix(in srgb, var(--tier, var(--yellow)) 55%, var(--text));
  --tier-lo: color-mix(in srgb, var(--tier, var(--yellow)) 82%, var(--text));
}
.hs-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--pink); font-weight: 800; font-size: 1rem; }
.hs-best { background: var(--pink); color: #fff; border-radius: 999px; padding: 2px 12px; font-size: .82rem; }
.hs-title { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; font-size: clamp(1.9rem, 6.4vw, 3.4rem); font-weight: 800; line-height: 1.2; }
.hs-name {
  background: linear-gradient(100deg, var(--tier-hi) 10%, var(--tier-lo) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hs-headset { width: clamp(70px, 12vw, 110px); height: auto; flex: none; filter: drop-shadow(0 10px 18px rgba(10, 6, 40, .4)); animation: bob 4s ease-in-out infinite; }
.hs-line { margin: 0 0 14px; color: var(--text-muted); font-size: clamp(1.1rem, 2.6vw, 1.35rem); font-weight: 600; }
.hs-line b { color: var(--text); font-size: 1.5em; }
.hs-points { margin-inline-start: 10px; font-size: .85em; opacity: .85; }
.hs-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 20px; }
.hs-price { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; line-height: 1; color: var(--text); }
.hs-was { color: var(--text-muted); font-weight: 600; font-size: 1.05rem; }
.hs-save { background: color-mix(in srgb, var(--pink) 18%, transparent); color: var(--pink); font-weight: 800; border-radius: 999px; padding: 3px 12px; font-size: .95rem; }
.hs-save:empty, .hs-was:empty { display: none; }
.hs-badge {
  display: inline-block; background: var(--yellow); color: #2e2856; font-weight: 800; font-size: 1rem;
  border-radius: 999px; padding: 6px 18px; box-shadow: var(--shadow-sm);
}
.hs-slide--soon .hs-line { margin-bottom: 18px; }
.hs-slide--soon .hs-title { font-size: clamp(1.8rem, 5vw, 3rem); }
.hs-slide--soon .hs-name { text-wrap: balance; }
.is-live .hp-dots { margin-top: 22px; }
.hp-dots { display: flex; gap: 2px; margin-top: 10px; }
.hp-dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hp-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--text) 28%, transparent); transition: width .3s ease, background-color .3s ease;
}
.hp-dot[aria-current="true"] { width: 34px; }
.hp-dot[aria-current="true"]::before { width: 26px; background: var(--accent); }
/* While it runs, the current dot fills up until the next offer */
.is-running .hp-dot[aria-current="true"]::before {
  background: linear-gradient(90deg, var(--accent) 50%, color-mix(in srgb, var(--text) 28%, transparent) 50%) 100% 0 / 200% 100%;
  animation: hp-fill var(--hs-time, 4.5s) linear forwards;
}
[dir="rtl"] .is-running .hp-dot[aria-current="true"]::before {
  background: linear-gradient(90deg, color-mix(in srgb, var(--text) 28%, transparent) 50%, var(--accent) 50%) 0 0 / 200% 100%;
  animation-name: hp-fill-rtl;
}
@keyframes hp-fill { to { background-position: 0 0; } }
@keyframes hp-fill-rtl { to { background-position: 100% 0; } }
.hero-visual { position: relative; justify-self: center; width: min(100%, 460px); }
.hero-visual .blob {
  position: absolute; inset: 8% 4% 4% 4%; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: linear-gradient(140deg, var(--purple) 0%, var(--violet) 55%, var(--pink) 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: jelly-edge 12s ease-in-out infinite;
}
/* While an offer shows, the shape glows in its colour. The colour is a
   registered <color> so it blends from one offer to the next instead of
   jumping (browsers without @property simply switch it). */
@property --show-tint { syntax: '<color>'; inherits: true; initial-value: transparent; }
.hero { transition: --show-tint 1.1s ease; }
.hero-visual .blob::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 30% 20%, var(--show-tint, transparent) 0%, transparent 75%);
  opacity: 0; transition: opacity 1.1s ease;
}
.hero.is-tinted .hero-visual .blob::before { opacity: .75; }
/* The hero shape only morphs its outline (no squash or tilt), so the body
   inside it stays lined up with the head on top */
@keyframes jelly-edge {
  25% { border-radius: 58% 42% 50% 50% / 42% 58% 44% 56%; }
  50% { border-radius: 38% 62% 58% 42% / 60% 40% 60% 40%; }
  75% { border-radius: 54% 46% 34% 66% / 45% 60% 40% 55%; }
}
/* .blob sits at inset 8% 4% 4% 4%, so the body copy is shifted back to line up */
.hero-visual .kid-body img { position: absolute; left: -4.348%; top: -9.091%; width: 108.696%; max-width: none; }
.hero-visual .kid-head img {
  -webkit-mask-image: linear-gradient(#000 55%, transparent 62%); mask-image: linear-gradient(#000 55%, transparent 62%);
}
@keyframes jelly {
  25% { border-radius: 56% 44% 48% 52% / 44% 56% 46% 54%; transform: scale(1.025, .982) rotate(1.4deg); }
  50% { border-radius: 40% 60% 56% 44% / 58% 42% 58% 42%; transform: scale(.985, 1.022) rotate(-1deg); }
  75% { border-radius: 52% 48% 36% 64% / 47% 58% 42% 53%; transform: scale(1.015, .99) rotate(.8deg); }
}
.hero-visual .kid-head img { position: relative; width: 100%; filter: drop-shadow(0 18px 30px rgba(46, 40, 86, .25)); }
.float-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: .9rem;
  box-shadow: var(--shadow);
  animation: bob 5s ease-in-out infinite;
}
.float-chip--a { top: 12%; inset-inline-start: -2%; }
.float-chip--b { bottom: 14%; inset-inline-end: -2%; animation-delay: -2.5s; }
.float-chip .sw { width: 12px; height: 12px; border-radius: 4px; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; background: var(--bg); }
.section--alt { background: var(--bg-alt); }
/* Wavy section edges: each section (and the footer) grows a wave of its own
   colour up into the one above, drifting sideways and gently rising and falling */
.section, .site-footer { position: relative; }
.section::before, .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 36px;
  background: inherit; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20C200 0 400 0 600 20S1000 40 1200 20V40H0Z'/%3E%3C/svg%3E") repeat-x 0 100% / 1200px 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20C200 0 400 0 600 20S1000 40 1200 20V40H0Z'/%3E%3C/svg%3E") repeat-x 0 100% / 1200px 100%;
  transform-origin: bottom;
  animation: wave-drift 22s linear infinite, wave-bob 7s ease-in-out infinite;
}
.section:nth-of-type(even)::before { animation-direction: reverse, normal; animation-delay: 0s, -3s; }
.site-footer::before { animation-duration: 26s, 8s; }
#headset::before { display: none; }
@keyframes wave-drift { to { -webkit-mask-position: -1200px 100%; mask-position: -1200px 100%; } }
@keyframes wave-bob { 50% { transform: scaleY(1.45); } }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); font-weight: 800; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin: 0; }
.eyebrow {
  display: inline-block; color: var(--pink); font-weight: 800; letter-spacing: .02em;
  font-size: .95rem; margin-bottom: 6px;
}

/* ---------- Film ---------- */

/* ---------- Headset offer ---------- */
html.headset-off #headset { display: none; }
.offer-card {
  position: relative; overflow: hidden;
  display: grid; gap: 20px; align-items: center;
  border-radius: var(--radius-lg); padding: 28px 22px;
  background: linear-gradient(135deg, var(--purple) 0%, #6b4fd0 45%, var(--violet) 100%);
  color: #fff; box-shadow: var(--shadow-lg);
}
@media (min-width: 820px) { .offer-card { grid-template-columns: 1.1fr .9fr; padding: 44px; gap: 32px; } }
.offer-card::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 48% 52% 44% 56% / 54% 46% 54% 46%;
  background: radial-gradient(circle, rgba(255, 209, 91, .45), transparent 70%);
  inset-inline-end: -80px; top: -90px; pointer-events: none;
  animation: jelly 14s ease-in-out -5s infinite;
}
.offer-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow); color: #2e2856; font-weight: 800;
  border-radius: 999px; padding: 4px 12px; font-size: .9rem; margin-bottom: 12px;
}
.offer-title { font-size: clamp(1.6rem, 5vw, 2.5rem); font-weight: 800; margin-bottom: 8px; }
.offer-title .offer-title-hl { display: block; color: var(--yellow); }
.offer-text { color: #ece8ff; margin-bottom: 14px; }
.offer-gift {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .14); border: 1.5px dashed rgba(255, 255, 255, .45);
  border-radius: 14px; padding: 8px 14px; font-weight: 700; margin-bottom: 18px;
}
.offer-gift b { font-size: 1.3em; color: var(--yellow); }
.offer-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.offer-price { font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 800; line-height: 1; }
.offer-price small { display: block; font-size: .9rem; font-weight: 600; opacity: .85; margin-bottom: 6px; }
.offer-visual { position: relative; z-index: 1; justify-self: center; width: min(100%, 340px); }
.offer-visual::before {
  content: ""; position: absolute; z-index: -1; inset: 10%;
  border-radius: 54% 46% 50% 50% / 46% 54% 46% 54%;
  background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 107, 147, .22));
  animation: jelly 12s ease-in-out -3s infinite;
}
.offer-visual img { width: 100%; filter: drop-shadow(0 24px 30px rgba(10, 6, 40, .45)); }

/* ---------- Launch offer bar ---------- */
html.offer-ended .offer-only { display: none !important; }
html:not(.offer-ended) .after-offer-only { display: none !important; }
.launch-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px;
  text-align: center; margin: 0 auto 28px; max-width: 860px;
  background: linear-gradient(90deg, rgba(255, 107, 147, .12), rgba(255, 159, 67, .14));
  border: 1.5px solid rgba(255, 107, 147, .35);
  border-radius: var(--radius); padding: 14px 18px;
}
.launch-badge { background: var(--pink); color: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .9rem; }
.launch-text { margin: 0; font-weight: 600; }
.countdown { display: inline-flex; gap: 6px; direction: ltr; font-variant-numeric: tabular-nums; }
.countdown span { background: var(--surface); border-radius: 10px; padding: 4px 8px; min-width: 2.6em; font-weight: 800; box-shadow: var(--shadow-sm); }
.countdown small { display: block; font-size: .65rem; font-weight: 600; color: var(--text-muted); }

/* ---------- Package cards ---------- */
.pkg-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .pkg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pkg-grid { grid-template-columns: repeat(4, 1fr); } }
.pkg-card {
  --tier: var(--purple);
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 20px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pkg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--tier); }
.pkg-card--bronze { --tier: var(--orange); }
.pkg-card--silver { --tier: var(--green); }
.pkg-card--gold { --tier: #e7a800; }
.pkg-card--diamond { --tier: var(--purple); }
.pkg-card.is-best { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(88, 65, 184, .14), var(--shadow); }
.pkg-ribbon {
  position: absolute; top: -12px; inset-inline-end: 18px;
  background: var(--pink); color: #fff; border-radius: 999px; padding: 3px 12px;
  font-size: .82rem; font-weight: 800; box-shadow: var(--shadow-sm);
}
.pkg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pkg-gem {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--tier) 16%, transparent); color: var(--tier);
}
.pkg-card--gold .pkg-gem { color: #b98500; }
.pkg-name { font-size: 1.15rem; font-weight: 800; margin: 0; }
.pkg-views { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 4px; }
.pkg-views b { font-size: 2.6rem; line-height: 1; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.pkg-views span { color: var(--text-muted); font-weight: 700; }
.pkg-gift {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: .88rem; font-weight: 700; margin: 0 0 8px;
  color: var(--success); background: var(--success-bg); border-radius: 999px; padding: 2px 10px; align-self: flex-start;
}
.pkg-points { color: var(--text-muted); font-size: .9rem; margin: 0 0 14px; }
.pkg-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border); }
.pkg-price { font-size: 1.7rem; font-weight: 800; }
.pkg-was { color: var(--text-muted); font-size: .95rem; }
.pkg-save { color: var(--pink); font-weight: 800; font-size: .9rem; }
.pkg-per { color: var(--text-muted); font-size: .85rem; margin: 2px 0 14px; width: 100%; }

/* ---------- Pick your number ---------- */
.custom-row {
  margin-top: 20px; display: grid; gap: 16px; align-items: center;
  background: var(--surface); border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg); padding: 20px;
}
@media (min-width: 860px) { .custom-row { grid-template-columns: 1.4fr auto auto; padding: 22px 28px; } }
.custom-row h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.custom-row p { color: var(--text-muted); margin: 0; font-size: .95rem; }
.stepper-wrap { display: grid; gap: 4px; justify-items: center; }
.stepper-label { font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 6px; direction: ltr; }
.stepper button {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--border-strong);
  background: var(--surface-2); display: grid; place-items: center; color: var(--text);
}
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper input {
  width: 64px; height: 44px; text-align: center; border-radius: 12px;
  border: 1.5px solid var(--border-strong); background: var(--surface);
  font-weight: 800; font-size: 1.2rem; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.custom-math { font-size: .85rem; color: var(--text-muted); direction: ltr; font-variant-numeric: tabular-nums; }
.custom-buy { min-width: 150px; }

.notes { list-style: none; margin: 24px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.notes li {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: .9rem; color: var(--text-muted); font-weight: 600;
}
.notes .icon { color: var(--purple); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step {
  position: relative; background: var(--surface); border-radius: var(--radius-lg);
  padding: 24px 22px; border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
}
.step-num {
  width: 48px; height: 48px; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; display: grid; place-items: center;
  font-weight: 800; font-size: 1.3rem; margin-bottom: 14px; color: #2e2856;
  animation: jelly 10s ease-in-out infinite;
}
.step:nth-child(2) .step-num { animation-delay: -3.5s; }
.step:nth-child(3) .step-num { animation-delay: -7s; }
.step:nth-child(1) .step-num { background: var(--yellow); }
.step:nth-child(2) .step-num { background: var(--cyan); }
.step:nth-child(3) .step-num { background: var(--pink); color: #fff; }
.step h3 { font-size: 1.15rem; font-weight: 800; }
.step p { color: var(--text-muted); margin: 0; }

/* ---------- Devices ---------- */
.devices { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); max-width: 820px; margin-inline: auto; }
.device {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px 10px 16px; text-align: center; box-shadow: var(--shadow-sm);
  position: relative; isolation: isolate;
}
.device::before {
  content: ""; position: absolute; z-index: -1; top: 22px; left: 50%; translate: -50% 0;
  width: min(70%, 140px); aspect-ratio: 1;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: linear-gradient(140deg, var(--purple) 0%, var(--violet) 55%, var(--pink) 100%);
  opacity: .4;
  animation: jelly 12s ease-in-out infinite;
}
.device:nth-child(2)::before { animation-delay: -4s; }
.device:nth-child(3)::before { animation-delay: -8s; }
.device img { width: 100%; max-width: 180px; margin: 0 auto 8px; aspect-ratio: 1; object-fit: contain; }
.device span { font-weight: 800; font-size: .95rem; direction: ltr; display: block; }
@media (max-width: 420px) { .device span { font-size: .82rem; } }
.devices-note { text-align: center; color: var(--text-muted); margin: 20px auto 0; max-width: 40em; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 12px 18px; font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .2s ease; color: var(--purple); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 18px 16px; color: var(--text-muted); }
.faq .answer p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d8d3f3; padding: 48px 0 24px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { height: 52px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: #bdb6dc; max-width: 26em; }
.site-footer h2 { font-size: 1rem; color: #fff; font-weight: 800; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer a { color: #e9e5ff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.pay-marks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
/* Payment logos: four equal white cards, each logo fitted inside the same box */
.pay-mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 66px; height: 42px; padding: 0 9px; background: #fff; border-radius: 10px;
  box-shadow: 0 2px 6px rgba(20, 16, 50, .2);
}
.pay-mark img { display: block; width: auto; height: auto; max-width: 100%; max-height: 22px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; font-size: .88rem; color: #a9a2cc; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---------- Dialogs ---------- */
dialog.modal {
  width: min(100% - 24px, 460px); max-height: calc(100dvh - 24px);
  border: 0; padding: 0; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
  overflow: auto; overscroll-behavior: contain;
}
dialog.modal::backdrop { background: rgba(20, 16, 50, .6); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: pop .22s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.modal-inner { padding: 22px 20px 22px; }
@media (min-width: 480px) { .modal-inner { padding: 28px; } }
.modal-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.modal-top h2 { font-size: 1.35rem; font-weight: 800; margin: 0; flex: 1; }
.modal-top p { margin: 4px 0 0; color: var(--text-muted); font-size: .95rem; }
.modal-close {
  width: 44px; height: 44px; flex: none; margin: -6px; border-radius: 50%;
  border: 0; background: var(--surface-2); color: var(--text); display: grid; place-items: center;
}
.modal-close:hover { background: var(--purple-100); }
.summary {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 16px; display: grid; gap: 6px;
}
.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary-row strong { font-size: 1.05rem; }
.summary-price { font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.summary-sub { color: var(--text-muted); font-size: .92rem; }
.summary-free { color: var(--success); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.summary-note { color: var(--text-muted); font-size: .85rem; margin: 4px 0 0; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: .95rem; }
.field .opt { font-weight: 500; color: var(--text-muted); font-size: .85rem; }
.input {
  width: 100%; min-height: 50px; padding: 10px 14px;
  border-radius: 12px; border: 1.5px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 1rem;
}
.input:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 4px rgba(88, 65, 184, .18); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { border-radius: 12px; padding: 10px 14px; font-size: .93rem; font-weight: 600; margin: 0 0 14px; display: flex; gap: 8px; align-items: flex-start; }
.form-msg--error { background: var(--danger-bg); color: var(--danger); }
.form-msg--ok { background: var(--success-bg); color: var(--success); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-muted); font-size: .85rem; margin: 12px 0 0; }
.done { text-align: center; padding: 8px 0; }
.done .done-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; }
.done h3 { font-size: 1.3rem; font-weight: 800; }
.done p { color: var(--text-muted); }
.alt-link { display: flex; justify-content: center; margin-top: 10px; }

/* ---------- Simple pages (result, 404) ---------- */
.page-auth {
  min-height: 100dvh; display: flex; flex-direction: column;
  background:
    radial-gradient(50% 50% at 100% 0%, rgba(255, 209, 91, .3), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(88, 65, 184, .2), transparent 70%),
    var(--bg);
}
.slim-header { background: var(--header-bg); }
.slim-header .header-inner { min-height: 64px; }
.auth-main { flex: 1; display: grid; place-items: center; padding: 28px var(--gutter) 48px; }
/* ---------- Legal / result / 404 ---------- */
.legal-main { padding: 36px 0 64px; }
.legal { max-width: 820px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 20px; box-shadow: var(--shadow-sm); }
@media (min-width: 700px) { .legal { padding: 44px 48px; } }
.legal h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; }
.legal .updated { color: var(--text-muted); font-size: .92rem; }
.legal h2 { font-size: 1.25rem; font-weight: 800; margin-top: 1.8em; color: var(--link); }
.legal h3 { font-size: 1.05rem; font-weight: 800; margin-top: 1.2em; }
.legal ul { padding-inline-start: 1.3em; }
.legal li { margin-bottom: .4em; }
html:not([lang="ar"]) [data-lang="ar"], html[lang="ar"] [data-lang="en"] { display: none !important; }
/* Other languages read the English policy, with a note above it */
.legal-lang-note { display: none; }
html:not([lang="ar"]):not([lang="en"]) .legal-lang-note {
  display: block; max-width: 860px; margin: 0 auto 16px; padding: 12px 16px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); font-weight: 600; text-align: center;
}
.center-main { flex: 1; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter) 64px; }
.center-main .big-icon { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; }
.big-icon.ok { background: var(--success-bg); color: var(--success); }
.big-icon.bad { background: var(--danger-bg); color: var(--danger); }
.big-icon.wait { background: var(--purple-100); color: var(--link); }
.big-icon.wait svg { animation: spin 1.2s linear infinite; }
.center-main h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; }
.center-main p { color: var(--text-muted); max-width: 32em; margin-inline: auto; }
.ref { font-size: .9rem; color: var(--text-muted); }
.ref bdi { font-family: ui-monospace, monospace; word-break: break-all; }
.center-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.big-404 { font-size: clamp(5rem, 22vw, 9rem); font-weight: 800; line-height: 1; color: var(--purple); font-family: var(--font-en); margin-bottom: 8px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .float-chip, .hero-visual .blob, .offer-card::after, .offer-visual::before, .step-num, .device::before, .btn, .chip-btn, .hw-track, .section::before, .site-footer::before, .site-header::after, .brand, .main-nav a, .hs-slide, .hs-slide > *, .hs-headset, .hs-save { animation: none !important; }
  .btn:active, .chip-btn:active { transform: none; }
}
html.headset-off .headset-link { display: none; }
@media (max-width: 599px) {
  .brand img { height: 32px; }
  .header-actions { gap: 6px; }
  .chip-btn { padding: 0 10px; }
  .lang-btn { font-size: .85rem; }
}
.site-footer a { min-height: 44px; }
@media (max-width: 480px) {
  .float-chip--a { inset-inline-start: 0; }
  .float-chip--b { inset-inline-end: 0; }
}
.unavailable { text-align: center; padding: 6px 0 4px; }
.unavailable .gate-icon { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 10px; display: grid; place-items: center; background: var(--purple-100); color: var(--link); }
.unavailable h3 { font-size: 1.15rem; font-weight: 800; }
.unavailable p { color: var(--text-muted); font-size: .95rem; }
@media (max-width: 819px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-brand { grid-column: 1 / -1; }
}
.big-icon.note { background: var(--purple-100); color: var(--link); }
.summary-row { flex-wrap: wrap; }
.summary-free { white-space: nowrap; }
