/* WATCHITV. One dark theme on purpose: the premise is "lights down", and
   every colour is sampled from the logo's ribbon and the hero's violet haze.
   docs/design-package.md is the source for these decisions. */

@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("/assets/fonts/noto-sans-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

:root {
  --canvas: #0b0716;
  --bg: var(--canvas);
  --bg-alt: #0f0a1d;
  --surface: #150e27;
  --surface-2: #1c1433;
  --line: rgba(196, 181, 253, .10);
  --line-strong: rgba(196, 181, 253, .24);
  --text: #f3effc;
  --muted: #b9b0d6;
  --faint: #8f86ad;
  /* The accent is magenta, in rare doses: the CTA, focus, and emphasis. */
  --accent: #e040fb;
  --accent-hover: #f06bff;
  --accent-muted: rgba(167, 139, 250, .22);
  /* Filled buttons: the logo's ribbon, darkened at both ends so white text
     stays above 4.5:1 across the whole gradient. */
  --brand-a: #b21fd0;
  --brand-b: #5b21b6;
  --pink: #f0abfc;
  --ok: #4ade80;
  --grad: linear-gradient(115deg, var(--brand-a), var(--brand-b));
  --grad-text: linear-gradient(100deg, #f5d0fe 0%, #e040fb 45%, #a78bfa 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  --wrap: 1180px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --tshadow: 0 1px 2px rgba(5, 3, 12, .95), 0 3px 12px rgba(5, 3, 12, .78), 0 10px 44px rgba(5, 3, 12, .8);
  /* The hero's own ink and scrim: white over the night footage, dark ink
     over the golden-hour footage in the cream theme. */
  --hero-text: #f3effc;
  --hero-sub: #e6e0f7;
  --scrim-rgb: 8, 5, 16;
  --chip-bg: rgba(10, 6, 20, .55);
  --chip-line: rgba(150, 130, 210, .3);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --env-a: rgba(124, 58, 237, .16);
  --env-b: rgba(224, 64, 251, .10);
  --ph-bg: rgba(250, 204, 21, .16);
  --ph-fg: #fde047;
  --ph-line: rgba(250, 204, 21, .6);
  --tint-1: rgba(255, 255, 255, .05);
  --tint-2: rgba(255, 255, 255, .10);
  --header-bg: rgba(11, 7, 22, .72);
  --nav-bg: rgba(13, 9, 26, .97);
  --glass: rgba(21, 14, 39, .6);
  --ok-bg: rgba(74, 222, 128, .1);
  --err-line: rgba(248, 113, 113, .5);
  --err-fg: #fecaca;
  --icon-a: rgba(192, 38, 211, .22);
  --icon-b: rgba(109, 40, 217, .22);
  --icon-line: rgba(192, 132, 252, .25);
  --icon-fg: #e9d5ff;
  color-scheme: dark;
}
/* Light: the warm cream the owner chose (#f2ece2), deep violet ink, and the
   same magenta in a darker shade so it holds 4.5:1 on cream. The scroll hero
   and the still hero keep the dark tokens above in both themes: that section
   is the lights going down, and the page coming up cream below it is the
   lights coming back on. */
:root[data-theme="light"] {
  --canvas: #f2ece2;
  --bg-alt: #ebe3d5;
  --surface: #faf6ef;
  --surface-2: #fffcf7;
  --line: rgba(46, 16, 101, .12);
  --line-strong: rgba(46, 16, 101, .24);
  --text: #1d1233;
  --muted: #554b6e;
  --faint: #6e6588;
  --accent: #a21caf;
  --accent-hover: #86198f;
  --pink: #9d1aa8;
  --ok: #166534;
  --env-a: rgba(124, 58, 237, .07);
  --env-b: rgba(224, 64, 251, .05);
  --ph-bg: #fef08a;
  --ph-fg: #713f12;
  --ph-line: #ca8a04;
  --tint-1: rgba(46, 16, 101, .05);
  --tint-2: rgba(46, 16, 101, .10);
  --header-bg: rgba(242, 236, 226, .82);
  --nav-bg: rgba(246, 241, 233, .98);
  --glass: rgba(255, 252, 247, .7);
  --ok-bg: rgba(22, 101, 52, .1);
  --err-line: rgba(185, 28, 28, .4);
  --err-fg: #991b1b;
  --icon-a: rgba(192, 38, 211, .12);
  --icon-b: rgba(109, 40, 217, .12);
  --icon-line: rgba(126, 34, 206, .25);
  --icon-fg: #6b21a8;
  --shadow: 0 20px 50px -24px rgba(46, 16, 101, .3);
  --tshadow: 0 1px 2px rgba(255, 250, 240, .9), 0 0 18px rgba(255, 246, 232, .95), 0 0 46px rgba(255, 244, 228, .9);
  --hero-text: #1d1233;
  --hero-sub: #3a2d55;
  --scrim-rgb: 250, 244, 234;
  --chip-bg: rgba(255, 250, 242, .75);
  --chip-line: rgba(46, 16, 101, .18);
  color-scheme: light;
}

:root:lang(ar) {
  --font: "Noto Sans Arabic", "Inter", system-ui, "Segoe UI", Tahoma, sans-serif;
  /* Unbounded has no Arabic: Arabic headlines use Noto Sans Arabic bold. */
  --display: "Noto Sans Arabic", system-ui, sans-serif;
  --mono: "Noto Sans Arabic", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: hidden; overflow-x: clip; }
/* One environment behind everything: a slow violet drift, so scrolling feels
   like moving through one dark room rather than past stacked sections. */
body::before {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 20% 30%, var(--env-a), transparent 70%),
    radial-gradient(35% 30% at 80% 70%, var(--env-b), transparent 70%);
  animation: env 90s ease-in-out -20s infinite alternate;
}
@keyframes env { to { transform: translate3d(4%, -3%, 0) rotate(6deg); } }
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.02em; font-family: var(--display); font-weight: 700; }
.mono { font-family: var(--mono); }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .i.arrow { transform: scaleX(-1); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* A fact nobody has given yet. Loud on purpose: it must not ship unnoticed. */
.ph {
  background: var(--ph-bg);
  color: var(--ph-fg);
  border: 1px dashed var(--ph-line);
  border-radius: 6px;
  padding: 0 .3em;
  font-weight: 600;
  white-space: nowrap;
}
.ph-inline { font-size: .45em; vertical-align: middle; letter-spacing: 0; }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(168, 85, 247, .7); }
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(168, 85, 247, .9); }
.btn-ghost { background: var(--tint-1); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--tint-2); }
.btn-light { background: #fff; color: #1a1033; }
.btn.is-disabled { opacity: .75; cursor: default; transform: none; }
.btn .i { width: 18px; height: 18px; }

/* ── header ──────────────────────────────────────────────────────────────── */
/* Laid out like the NexusERP site: full width, the logo pinned left, the
   links centred in the space between, the controls pinned right. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease-soft);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; height: 72px; padding-inline: clamp(14px, 4vw, 36px); }
.brand { display: flex; align-items: center; flex: 0 0 auto; transition: transform .4s var(--ease); }
.brand:hover { transform: translateY(-1px); }
.brand img { height: 40px; width: auto; }
/* The white-lettered logo on dark, the ink one on cream. */
.logo-on-light, [data-theme="light"] .logo-on-dark { display: none; }
[data-theme="light"] .logo-on-light { display: block; }
.nav { display: flex; gap: 30px; margin-inline: auto; }
.nav a {
  position: relative; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14.5px;
  transition: color .3s var(--ease), filter .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -7px; height: 1.5px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .4s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.header-end { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

/* Plans is gold FOIL, not gold paint, the same treatment as Nexus Go on the
   NexusERP site: a vertical ramp clipped into the letters (bright at the top,
   bronze at the foot, which is what makes metal read as metal), one band of
   light crossing it, and a warm glow. One gold link, not four: gold on the
   one thing worth pointing at is a highlight. On cream the golds are darker,
   chosen to stay readable, and the glow carries the shine. */
:root {
  --foil-1: #fff0bc; --foil-2: #f5c24e; --foil-3: #c28a2c;
  --foil-sheen: rgba(255, 252, 238, 1); --foil-glow: rgba(247, 190, 70, .72);
}
:root[data-theme="light"] {
  --foil-1: #8e6206; --foil-2: #74490a; --foil-3: #553300;   /* lightest stop 4.6:1 on cream */
  --foil-sheen: #ffd466; --foil-glow: rgba(240, 172, 32, .62);
}
/* The foil text is any link marked gold: the header's and the footer's Plans. */
a.gold { font-weight: 700; color: var(--foil-2); }
.footer-nav a.gold { justify-self: start; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  a.gold {
    background-image:
      linear-gradient(100deg, transparent 0%, transparent 41%, var(--foil-sheen) 50%, transparent 59%, transparent 100%),
      linear-gradient(180deg, var(--foil-1) 8%, var(--foil-2) 52%, var(--foil-3) 96%);
    background-size: 300% 100%, 100% 100%;
    background-position: 100% 0, 0 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 .14em var(--foil-glow)) drop-shadow(0 0 .5em var(--foil-glow)) drop-shadow(0 .06em .04em rgba(0, 0, 0, .16));
    animation: sheen 3.6s var(--ease-soft) infinite;
  }
  a.gold:hover { filter: drop-shadow(0 0 .18em var(--foil-glow)) drop-shadow(0 0 .75em var(--foil-glow)) drop-shadow(0 .06em .04em rgba(0, 0, 0, .16)) brightness(1.12); }
}
/* Its underline is always drawn: a short foil bar with its own glow. */
.nav a.gold::after {
  inset-inline: 22%; height: 2px; transform: scaleX(1);
  background: linear-gradient(90deg, transparent, var(--foil-2) 30%, var(--foil-1) 50%, var(--foil-2) 70%, transparent);
  box-shadow: 0 0 8px var(--foil-glow);
}
.nav a.gold:hover::after { inset-inline: 0; }
@keyframes sheen { from { background-position: 100% 0, 0 0; } to { background-position: 0% 0, 0 0; } }

/* Language: one bordered segmented box in the header, as on NexusERP. */
.lang { display: flex; align-items: center; flex: 0 0 auto; }
.lang:not(.lang-plain) { border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.lang a {
  font: 500 12px/1 var(--mono); letter-spacing: .04em; text-decoration: none; color: var(--muted);
  padding: 9px 10px; transition: background .3s var(--ease), color .3s var(--ease);
}
.lang a:hover { color: var(--text); background: var(--tint-1); }
.lang a[aria-current="page"] { color: var(--text); background: var(--accent-muted); }
.lang-plain { gap: 2px; color: var(--faint); }
.lang-plain .i { margin-inline-end: 4px; width: 16px; height: 16px; }
.lang-plain a { border-radius: 8px; padding: 6px 8px; font: 600 13px/1 var(--font); }
.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  background: var(--tint-1); border: 1px solid var(--line); color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn .i { width: 22px; height: 22px; }
/* A single round control; the icon shows where a click goes next. */
.theme-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: none; border: 1px solid var(--line-strong); color: var(--muted); flex: 0 0 auto;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.theme-btn:hover { color: var(--text); background: var(--tint-1); }
.theme-btn .i { width: 19px; height: 19px; }
.theme-btn .sun, [data-theme="light"] .theme-btn .moon { display: none; }
[data-theme="light"] .theme-btn .sun { display: block; }

/* ── scroll hero ─────────────────────────────────────────────────────────── */
/* A tall pinned section; scroll progress through it drives the video's time.
   Its five static-hero gates are below and must match app.js exactly. */
.hero { position: relative; height: 420vh; margin-top: -72px; }
/* The stage is opaque, so where it ended the page's ambient glow (body::before)
   started at a hard line: a lit rectangle below, the dust in a row above.
   Its foot now fades out onto that same glow instead. */
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--canvas);
  -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster { background: var(--canvas) center / cover no-repeat; }
.hero-video { opacity: 0; transition: opacity .8s var(--ease-soft); transform: translateZ(0); will-change: transform; }
.stage.video-ready .hero-video { opacity: 1; }
.stage.video-failed .hero-video { display: none; }
.scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, rgba(var(--scrim-rgb), 0) 35%, rgba(var(--scrim-rgb), .62) 100%),
    linear-gradient(rgba(var(--scrim-rgb), .55), transparent 22%, transparent 78%, var(--canvas));
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pink);
}
:lang(ar) .eyebrow { letter-spacing: 0; font: 600 14px/1.4 var(--font); }
.eyebrow .i { width: 16px; height: 16px; }

.band {
  position: absolute; z-index: 2; opacity: 0; text-shadow: var(--tshadow); color: var(--hero-text);
  inset-inline-start: max(5vw, calc((100vw - var(--wrap)) / 2)); top: 50%; transform: translateY(-50%);
  max-width: min(560px, 44vw);
}
.band::before {
  content: ""; position: absolute; inset: -40% -30%; z-index: -1; pointer-events: none;
  opacity: calc(.25 + .75 * var(--k, 1));
  /* closest-side: the glow reaches zero exactly at its own box's edge. Sized
     in percentages of the box it ran past the sides and was cut off at 14%,
     which painted as a hard rectangle beside the caption. */
  background: radial-gradient(closest-side, rgba(var(--scrim-rgb), var(--peak, .66)) 0%, rgba(var(--scrim-rgb), calc(var(--peak, .66) * .68)) 60%, rgba(var(--scrim-rgb), 0) 100%);
}
.band .btn { text-shadow: none; }
/* Peak scrim per band, tuned against each band's worst frame. */
.band-1 { --peak: .72; }
.band-2 { --peak: .66; }
.band-3 { --peak: .72; }
/* Golden hour: dark ink on light footage has far more contrast to spare
   (measured 12:1 at the dark theme's peaks), so the cream scrims stay thin
   and the light in the footage shows through. */
[data-theme="light"] .band-1, [data-theme="light"] .band-3 { --peak: .62; }
[data-theme="light"] .band-2 { --peak: .58; }
[data-theme="light"] .scrim { opacity: .45; }
.band-t { font: 700 clamp(38px, 5.2vw, 76px)/1.06 var(--display); letter-spacing: -.02em; }
:lang(ar) .band-t { letter-spacing: 0; line-height: 1.3; }
.band-s { margin-top: 18px; font-size: clamp(17px, 1.5vw, 21px); color: var(--hero-sub); max-width: 30ch; }
.band-3 {
  inset-inline: 0; top: 22%; transform: none; max-width: none; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.band-3 .band-t { max-width: 16ch; }
.band-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* Word entrances, scrubbed off each band's --k (0 to 1). Transform and
   opacity only; every one reverses when the visitor scrolls back up. */
.w { display: inline-block; white-space: pre; }
.band[data-entrance="drift"] .w {
  --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.8, 1);
  opacity: var(--kc); transform: translateY(calc((1 - var(--kc)) * -28px));
}
.band[data-entrance="rise"] .w {
  --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 3, 1);
  opacity: var(--kc); transform: translateY(calc((1 - var(--kc)) * 34px));
}
.band[data-entrance="blur"] .band-t { position: relative; }
.band[data-entrance="blur"] .soft {
  position: absolute; inset: 0; filter: blur(10px); opacity: calc(1 - var(--k, 0)); pointer-events: none;
}
.band[data-entrance="blur"] .sharp { opacity: var(--k, 0); }
/* Golden hour: the headlines are gold foil, from deep gold at the cap line
   to bronze at the baseline, with a slow sheen crossing them. The lightest
   stop (#6e4706) measures 6.9:1 on the cream and over 3:1 on the caption
   glow's worst gold frame, which is the large-text floor. A text-shadow
   would paint over clipped letters, so the cream halo is a drop-shadow. */
[data-theme="light"] .band-t .w, [data-theme="light"] .band-t .sharp, [data-theme="light"] .band-t .soft, [data-theme="light"] .static-t {
  background-image:
    linear-gradient(100deg, transparent 0%, transparent 42%, rgba(255, 228, 150, .95) 50%, transparent 58%, transparent 100%),
    linear-gradient(180deg, #6e4706 6%, #553600 48%, #2e1c00 96%);
  background-size: 300% 100%, 100% 100%; background-position: 100% 0, 0 0; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: none; animation: sheen 5.5s var(--ease-soft) infinite;
}
[data-theme="light"] .band-t .w, [data-theme="light"] .band-t .sharp, [data-theme="light"] .static-t {
  filter: drop-shadow(0 1px 1px rgba(255, 250, 240, .9)) drop-shadow(0 0 16px rgba(255, 246, 228, .95));
}
[data-theme="light"] .band-t { text-shadow: none; }
.band[data-entrance] .band-s { opacity: clamp(0, (var(--k, 0) - .45) * 3, 1); }
.band[data-entrance="rise"] .band-ctas { opacity: clamp(0, (var(--k, 0) - .6) * 4, 1); transform: translateY(calc((1 - clamp(0, (var(--k, 0) - .6) * 4, 1)) * 16px)); }

.ring {
  position: absolute; z-index: 3; inset-inline-end: 28px; bottom: 28px; width: 40px; height: 40px;
  color: var(--accent); transform: rotate(-90deg); transition: opacity .6s var(--ease-soft);
}
.stage.video-ready .ring, .stage.video-failed .ring { opacity: 0; }
.chip {
  background: var(--chip-bg); border: 1px solid var(--chip-line); border-radius: 10px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-shadow: 0 1px 3px rgba(5, 3, 12, .85);
}
.cue {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 7px 12px;
  font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  transition: opacity .5s var(--ease-soft);
}
.cue-line { width: 1px; height: 14px; background: var(--muted); animation: cue 2.4s var(--ease) -1s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.stage.past-start .cue { opacity: 0; }
@media (max-height: 560px) { .cue, .ring { display: none; } }

/* The designed still hero: phones, portrait tablets, coarse pointers held
   upright, phones held sideways, reduced motion, or no video at all. */
.hero-static {
  display: none; position: relative; min-height: 100vh; min-height: 100svh; align-items: flex-start;
  padding: max(110px, 14svh) 0 30svh; margin-top: -72px; overflow: hidden;
  background: var(--canvas) var(--ending, none) center bottom / cover no-repeat;
}
[data-theme="light"] .hero-static { background-image: var(--ending-light, var(--ending, none)); }
.hero-static::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(var(--scrim-rgb), .6), rgba(var(--scrim-rgb), .4) 45%, rgba(var(--scrim-rgb), .08) 78%, rgba(var(--scrim-rgb), .5) 94%, var(--canvas));
}
.hero-static-copy { position: relative; }
.static-t { color: var(--hero-text); font: 700 clamp(36px, 9vw, 64px)/1.08 var(--display); letter-spacing: -.02em; margin: 16px 0 16px; max-width: 14ch; text-shadow: var(--tshadow); }
:lang(ar) .static-t { letter-spacing: 0; line-height: 1.3; }
.hero-static .lead { max-width: 34ch; color: var(--hero-sub); text-shadow: var(--tshadow); }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 38em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
html.no-scrub .hero { display: none; }
html.no-scrub .hero-static { display: flex; }
@media (max-width: 720px), (orientation: portrait) and (max-width: 1024px), (orientation: portrait) and (pointer: coarse), (orientation: landscape) and (pointer: coarse) and (max-height: 560px), (prefers-reduced-motion: reduce) {
  .hero { display: none; }
  .hero-static { display: flex; }
}

/* ── facts strip ─────────────────────────────────────────────────────────── */
.facts { padding: 40px 0 8px; position: relative; }
/* Light theme: the dark hero hands over to cream through a fade, the lights
   coming back up, instead of a hard edge. */
.trust { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.trust li {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 500;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.trust-ic {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(140deg, var(--icon-a), var(--icon-b)); border: 1px solid var(--icon-line); color: var(--icon-fg);
}
.trust .i { width: 15px; height: 15px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; }
.stat {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon value" "icon label";
  column-gap: 16px; row-gap: 2px; align-items: center;
  padding: 22px 22px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s ease, box-shadow .4s var(--ease);
}
/* A thin line of light along the top edge, and a glow that wakes on hover. */
.stat::before {
  content: ""; position: absolute; inset-inline: 18%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 171, 252, .7), transparent);
}
.stat::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 0% 0%, rgba(224, 64, 251, .16), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.stat:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 40px -22px rgba(168, 85, 247, .6); }
.stat:hover::after { opacity: 1; }
.stat-icon {
  grid-area: icon; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(140deg, var(--icon-a), var(--icon-b)); border: 1px solid var(--icon-line); color: var(--icon-fg);
}
.stat-icon .i { width: 25px; height: 25px; }
.stat dt { grid-area: label; color: var(--muted); font-size: 14px; }
.stat dd {
  grid-area: value; margin: 0; font: 700 28px/1.15 var(--display); letter-spacing: -.02em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
:lang(ar) .stat dd { letter-spacing: 0; }
[data-theme="light"] .stat dd { background: linear-gradient(100deg, #6b21a8, #a21caf); -webkit-background-clip: text; background-clip: text; }
.stat dd .ph { font: 600 15px/1.4 var(--font); -webkit-text-fill-color: currentColor; color: var(--ph-fg); }


/* ── the light show, the drawn logo, and the cards that react ────────────── */
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease-soft); }
.fx.on { opacity: 1; }
.stage .fx { z-index: 1; }
.hero-static .fx { z-index: 0; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.hero-static::before { z-index: 1; }
.hero-static-copy { z-index: 2; }

.mark-anim { width: 76px; height: 76px; display: block; margin-bottom: 20px; overflow: visible;
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, .55)); }
.mark-anim > g path, .mark-anim > path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.5s var(--ease) .15s forwards;
}
.mark-anim > path { animation-delay: .9s; animation-duration: 1.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* The W is white on the dark ground; on cream it takes the wordmark's ink,
   the same swap brand/build-logo.py makes for logo-ink.svg. */
[data-theme="light"] .mark-anim #wtv-w stop:first-child { stop-color: #3b1d6e; }
[data-theme="light"] .mark-anim #wtv-w stop:last-child { stop-color: #2a1748; }
[data-theme="light"] .mark-anim { filter: drop-shadow(0 0 14px rgba(168, 85, 247, .3)); }

.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-120%); animation: sweep 6s var(--ease-soft) -2s infinite;
}
@keyframes sweep { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.plan {
  --mx: 50%; --my: 0%; --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .35s var(--ease), border-color .2s ease;
}
.plan::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(224, 64, 251, .16), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
}
.plan:hover::after { opacity: 1; }
.plan:hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-4px); }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.plan-best {
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    conic-gradient(from var(--ang), #4338ca, #7c3aed, #e040fb, #f0abfc, #7c3aed, #4338ca) border-box;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { --ang: 360deg; } }

/* ── entrances (only when JS runs and motion is allowed) ──────────────────── */
.js-motion .reveal > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .8s var(--ease), border-color .2s ease, background .2s ease;
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js-motion .reveal.in > * { opacity: 1; transform: none; }
.js-motion .reveal.settled > * { transition-delay: 0s !important; }

/* ── sections ────────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; margin: 12px 0 14px; }
.section-head .lead { margin-inline: auto; }

/* ── plans ───────────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 22px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease;
}
.plan:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.plan-best {
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 30px 70px -30px rgba(168, 85, 247, .7);
}
.plan-badge {
  position: absolute; top: -12px; inset-inline-start: 22px;
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: var(--surface-2); color: var(--pink); border: 1px solid var(--line-strong);
}
.plan-best .plan-badge { background: var(--grad); color: #fff; border-color: transparent; }
.plan-name { font-size: 18px; font-weight: 700; color: var(--muted); }
.plan-price { font-size: 42px; font-weight: 800; letter-spacing: -.03em; margin-top: 10px; }
:lang(ar) .plan-price { letter-spacing: 0; }
.plan-per { color: var(--muted); font-size: 14px; min-height: 1.6em; }
.plan-save {
  align-self: flex-start; margin-top: 12px; font-size: 13px; font-weight: 700;
  color: var(--ok); background: var(--ok-bg); padding: 3px 10px; border-radius: 999px;
}
.plan-save-empty { background: none; }
.plan-features { list-style: none; padding: 0; margin: 22px 0 24px; display: grid; gap: 11px; font-size: 14.5px; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.plan-features .i { color: var(--pink); width: 17px; height: 17px; margin-top: 3px; }
.plan-buy { margin-top: auto; min-height: 46px; }
.plan-buy .paypal-loading { color: var(--faint); font-size: 13px; text-align: center; padding: 12px 0; }
.plans-note {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  color: var(--faint); font-size: 14px; margin-top: 28px;
}
.plans-note .i { color: var(--ok); }
.pay-status {
  max-width: 560px; margin: 18px auto 0; text-align: center; font-size: 14px;
  padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
}
.pay-status.is-error { border-color: var(--err-line); color: var(--err-fg); }

/* ── devices ─────────────────────────────────────────────────────────────── */
.devices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.device {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.device-icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--icon-a), var(--icon-b));
  border: 1px solid var(--icon-line); color: var(--icon-fg);
}
.device-icon .i { width: 26px; height: 26px; }
.device strong { display: block; font-size: 16px; }
.device small { display: block; color: var(--muted); font-size: 14px; }

/* ── steps ───────────────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ── hold to dim ─────────────────────────────────────────────────────────── */
#how { position: relative; --dim: 0; }
#how::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 80% at 50% 40%, rgba(4, 2, 10, .2), rgba(4, 2, 10, .75));
  opacity: var(--dim);
}
#how .wrap { position: relative; }
.step { position: relative; }
.step::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(224, 64, 251, .55);
  box-shadow: 0 0 40px -6px rgba(224, 64, 251, .55), inset 0 0 30px -12px rgba(224, 64, 251, .5);
  opacity: var(--on, 0);
}
.step:nth-child(1) { --on: clamp(0, var(--dim) * 3, 1); }
.step:nth-child(2) { --on: clamp(0, (var(--dim) - .33) * 3, 1); }
.step:nth-child(3) { --on: clamp(0, (var(--dim) - .66) * 3, 1); }
.hold-wrap { display: flex; justify-content: center; margin-top: 32px; }
.hold {
  --hp: 0; position: relative; overflow: hidden; isolation: isolate;
  min-height: 52px; padding: 0 28px; border-radius: 999px; cursor: pointer;
  font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text); background: var(--glass); border: 1px solid var(--line-strong);
  user-select: none; -webkit-user-select: none; touch-action: none;
}
:lang(ar) .hold { letter-spacing: 0; font: 600 15px/1 var(--font); text-transform: none; }
.hold-fill {
  position: absolute; inset: 0; z-index: -1; background: var(--grad);
  transform: scaleX(var(--hp)); transform-origin: left;
}
[dir="rtl"] .hold-fill { transform-origin: right; }
#how.lit .hold { border-color: transparent; cursor: default; }

/* ── faq ─────────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq-grid .section-head { text-align: start; margin: 0; }
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: -4px;
  border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-item p { padding: 0 20px 18px; color: var(--muted); }

/* ── cta band ────────────────────────────────────────────────────────────── */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 44px 48px; border-radius: 24px; color: #fff;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, .18), transparent 60%),
    var(--grad);
}
.cta-band h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.cta-band p { margin-top: 8px; opacity: .92; max-width: 34em; }
.cta-band .btn-light .i { color: #16a34a; }
.cta-band .ph { color: #713f12; background: #fef08a; border-color: #ca8a04; }

/* ── footer ──────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-logo { height: 44px; width: auto; margin-bottom: 18px; }
.footer-nav { display: grid; gap: 10px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--text); }
.footer-end { display: grid; gap: 14px; justify-items: start; }
.footer-pay { display: inline-flex; gap: 8px; align-items: center; }
.footer-pay .i { color: var(--ok); }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; color: var(--faint); font-size: 13px; }

/* ── payment dialog ──────────────────────────────────────────────────────── */
.ok {
  width: min(100% - 32px, 460px); padding: 32px; border-radius: 22px; text-align: center;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8);
}
.ok::backdrop { background: rgba(4, 3, 10, .7); backdrop-filter: blur(4px); }
.ok-icon {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(74, 222, 128, .14); color: var(--ok);
}
.ok-icon .i { width: 30px; height: 30px; stroke-width: 2.4; }
.ok h2 { font-size: 24px; margin-bottom: 10px; }
.ok p { color: var(--muted); }
.ok-email { margin-top: 6px; font-size: 14px; }
.ok-actions { display: grid; gap: 10px; margin-top: 24px; }

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .nav { gap: 20px; }
}
@media (max-width: 920px) {
  .devices { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq-grid .section-head { text-align: center; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute; top: 72px; inset-inline: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--nav-bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .header-row { gap: 12px; }
  .header-end { margin-inline-start: auto; gap: 8px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .plans { grid-template-columns: 1fr; }
  .devices { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; text-align: center; justify-content: center; }
  .cta-band .btn { width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .brand img { height: 32px; }
  .lang a { padding: 8px 7px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat { grid-template-columns: 1fr; grid-template-areas: "icon" "value" "label"; row-gap: 6px; padding: 18px; }
  .stat-icon { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 6px; }
  .stat dd { font-size: 22px; }
  .trust li { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; transition-delay: 0s !important; }
  .js-motion .reveal > * { opacity: 1; transform: none; }
  .mark-anim > g path, .mark-anim > path { stroke-dashoffset: 0; }
  .plan { transform: none !important; }
}
