/* Vigilo — vigilo.tiwizix.com
   The app's own brand (app_colors.dart / app_palette.dart): the navy every brand
   surface is painted in (#0A1A3C, the same in both appearances, like the splash and
   the onboarding hero), the headlight gold the i-dots drop in, cream for the light
   page. Sora is the wordmark's face and sets the headings; Literata, the app's text
   face, sets the reading. */

@font-face { font-family: "Thmanyah Sans"; src: url(/fonts/thmanyahsans-Regular.otf) format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url(/fonts/thmanyahsans-Bold.otf) format("opentype"); font-weight: 700 800; font-display: swap; }

:root {
  --navy: #0A1A3C;
  --navy-2: #12244A;
  --navy-deep: #06112A;
  --lift: #1B2F5E;
  --on-navy: #ECF0FB;
  --on-navy-2: #A3AEC4;
  --shade: #C7D2FE;
  --gold: #DCAC22;
  --gold-hi: #F0C44A;
  --red: #C62828;
  --orange: #E06A00;
  --amber: #BE8C00;
  --band-g: #52C46B;
  --band-o: #EDB755;
  --band-r: #E8635A;

  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --text: #1F2A33;
  --text-2: #56636F;
  --border: #E5DED4;
  --action: #2C5F7C;
  --glow: rgba(220, 172, 34, .20);
  --shadow: 10, 26, 60; /* the navy, as a shadow tint */

  --ease: cubic-bezier(.22, 1, .36, 1);       /* easeOutCubic, the app's curve */
  --spring: cubic-bezier(.16, 1, .3, 1);      /* ease-out-expo: fast, then settles */
  --display: "Sora", system-ui, sans-serif;
  --font: "Literata", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1A3C; --surface: #12244A; --text: #ECF0FB; --text-2: #A3AEC4;
    --border: #2B3D62; --action: #7CBEE8; --glow: rgba(220, 172, 34, .14); --shadow: 2, 8, 22;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1A3C; --surface: #12244A; --text: #ECF0FB; --text-2: #A3AEC4;
  --border: #2B3D62; --action: #7CBEE8; --glow: rgba(220, 172, 34, .14); --shadow: 2, 8, 22;
  color-scheme: dark;
}
:lang(ar) { --font: "Thmanyah Sans", "Segoe UI", Tahoma, sans-serif; --display: var(--font); }

*, *::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: 400 17px/1.65 var(--font); -webkit-tap-highlight-color: transparent; overflow-x: clip; }
:lang(ar) body { font-size: 18px; line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--action); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.025em; text-wrap: balance; }
p { text-wrap: pretty; }
:lang(ar) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 600; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 40; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ── Scroll progress: a gold line along the top, where the browser can drive it ── */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 30; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
[dir="rtl"] .progress { transform-origin: 100% 50%; }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ── Navigation: rides over the hero, turns solid once it scrolls ── */
.nav { position: sticky; top: 0; z-index: 20; color: var(--on-navy); padding-top: env(safe-area-inset-top); background: transparent; transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.nav.scrolled { background: rgba(10, 26, 60, .82); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: inset 0 -1px rgba(199, 210, 254, .1); }
.page-home .nav { margin-bottom: -72px; }
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: block; border-radius: 8px; }
.brand img { height: 46px; width: auto; transition: opacity .3s, transform .3s var(--spring); }
.brand:hover img { transform: translateY(-1px) scale(1.03); }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav-links a, .langs a { color: var(--on-navy-2); text-decoration: none; font: 500 .95rem var(--display); transition: color .2s; position: relative; }
:lang(ar) :is(.nav-links a, .langs a) { font-family: var(--font); }
.nav-links a::after { content: ""; position: absolute; inset: auto 0 -6px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--on-navy); }
.nav-links a:hover::after { transform: scaleX(1); }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(236, 240, 251, .06); box-shadow: inset 0 0 0 1px rgba(236, 240, 251, .08); }
.langs a { padding: 5px 11px; border-radius: 999px; font-size: .85rem; transition: color .2s, background-color .2s; }
.langs a:hover { color: var(--on-navy); }
.langs a[aria-current] { background: rgba(236, 240, 251, .14); color: var(--on-navy); }
.js .page-home .nav:not(.scrolled) .brand img { opacity: 0; }  /* the hero draws the name itself */
body:not(.page-home) .nav { background: var(--navy); }
/* A phone keeps the one link a visitor needs off the home page: Help */
@media (max-width: 760px) {
  .nav-in { gap: 14px; }
  .nav-links a:not(:last-child) { display: none; }
  .brand img { height: 38px; }
  .langs a { padding: 5px 8px; font-size: .8rem; }
}

/* ── Hero: the launch screen, then the app ── */
.hero { position: relative; overflow: hidden; color: var(--on-navy); padding: 112px 0 96px;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(27, 47, 94, .95), transparent 70%),
    radial-gradient(40% 40% at 12% 85%, rgba(220, 172, 34, .10), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); }
.hero::before { /* grain, so the navy is a surface and not a fill */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, rgba(6, 17, 42, .6)); pointer-events: none; }
.backdrop { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sweep { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.s1 { stroke: rgba(199, 210, 254, .10); stroke-width: 1.5; }
.s2 { stroke: rgba(220, 172, 34, .22); stroke-width: 1.5; }
.s3 { stroke: rgba(199, 210, 254, .06); stroke-width: 60; }
.js .sweep { stroke-dashoffset: 1; animation: draw 2.4s var(--ease) .3s forwards; }
.js .s2 { animation-delay: .7s; animation-duration: 2.8s; }
.js .s3 { animation-delay: .1s; animation-duration: 3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.intro { width: min(100%, 420px); height: auto; display: block; margin: 0 0 18px; direction: ltr; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
[dir="rtl"] .intro { margin-inline-start: auto; }
.i-dot { fill: var(--gold); filter: drop-shadow(0 0 3px rgba(220, 172, 34, .6)); }
.js .intro:not(.run) { visibility: hidden; }
.intro.landed .i-sheen { opacity: 1; animation: sheen 3.6s var(--ease) .2s infinite; }
@keyframes sheen { 0% { transform: translateX(0); } 30%, 100% { transform: translateX(300px); } }

.eyebrow, .kicker { font: 600 .8rem/1.4 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
:lang(ar) :is(.eyebrow, .kicker) { letter-spacing: 0; font-size: .95rem; text-transform: none; }
.hero h1 { max-width: 13ch; }
.lead { font-size: 1.16rem; color: var(--on-navy-2); max-width: 34em; }
.hero-free { color: var(--on-navy-2); font-size: .95rem; margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.hero-free::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--band-g); box-shadow: 0 0 0 4px rgba(82, 196, 107, .18); animation: live 2.4s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 7px rgba(82, 196, 107, 0); } }
.js .rise { opacity: 0; translate: 0 18px; animation: rise .8s var(--ease) calc(.25s + var(--d, 0) * .09s) forwards; }
@keyframes rise { to { opacity: 1; translate: 0 0; } }

/* The phone, leaning into the pointer, with three details of the app floating off it. */
.hero-art { --px: 0; --py: 0; position: relative; display: grid; place-items: center; min-height: 600px; }
.halo { position: absolute; width: 520px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(220, 172, 34, .22), rgba(27, 47, 94, .35) 55%, transparent); filter: blur(10px); }
.phone { position: relative; width: 290px; border-radius: 46px; padding: 9px; background: linear-gradient(145deg, #2a3a5c, #050b18 40%, #050b18 70%, #22314f);
  box-shadow: 0 50px 90px rgba(2, 8, 22, .6), 0 0 0 1px rgba(199, 210, 254, .12), inset 0 1px rgba(255, 255, 255, .12);
  transform: perspective(1200px) rotateY(calc(var(--px) * 10deg - 8deg)) rotateX(calc(var(--py) * -8deg + 2deg)) translate(calc(var(--px) * -10px), calc(var(--py) * -10px));
  transition: transform .5s var(--ease); }
[dir="rtl"] .phone { transform: perspective(1200px) rotateY(calc(var(--px) * 10deg + 8deg)) rotateX(calc(var(--py) * -8deg + 2deg)); }
.phone img { border-radius: 37px; }
.js .phone { animation: phone-in 1.1s var(--ease) .35s backwards; }
@keyframes phone-in { from { opacity: 0; translate: 0 60px; } }

.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; color: var(--on-navy); font: 600 .88rem/1.25 var(--display); white-space: nowrap;
  background: rgba(18, 36, 74, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(2, 8, 22, .45), inset 0 0 0 1px rgba(199, 210, 254, .14), inset 0 1px rgba(255, 255, 255, .1);
  translate: calc(var(--px) * var(--depth) * 1px) calc(var(--py) * var(--depth) * 1px); transition: translate .5s var(--ease); }
:lang(ar) .chip { font-family: var(--font); }
.chip > * { flex: none; }
.c-score { --depth: 46; top: 15%; inset-inline-start: -2%; padding: 10px 16px 10px 12px; }
.c-score .arc { width: 58px; }
.c-score .arc path { stroke-width: 12; }
.c-score span { display: grid; }
.c-score small { font-weight: 500; font-size: .72rem; color: var(--on-navy-2); }
.c-score b { font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.c-paper { --depth: 30; top: 52%; inset-inline-end: -4%; }
.c-oil { --depth: 60; bottom: 12%; inset-inline-start: 2%; }
.js .chip { opacity: 0; animation: pop .7s var(--spring) forwards, bob 6s ease-in-out infinite; }
.js .c-score { animation-delay: 1.1s, 1.8s; }
.js .c-paper { animation-delay: 1.3s, 2.6s; }
.js .c-oil { animation-delay: 1.5s, 3.2s; }
@keyframes pop { from { opacity: 0; transform: scale(.7) translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -8px; } }
.mini { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.b-gold { background: var(--gold); box-shadow: 0 0 10px rgba(220, 172, 34, .8); }

.tile { width: 30px; height: 30px; border-radius: 9px; flex: none; display: inline-block; }
.t-red { background: var(--red); } .t-orange { background: var(--orange); } .t-gold { background: var(--amber); }

/* The health arc: a 180° sweep filling from the reading edge (HealthArc in the app). */
.arc { width: 100%; overflow: visible; }
.arc path { fill: none; stroke-width: 10; stroke-linecap: round; }
.arc-bg { stroke: rgba(199, 210, 254, .16); }
.arc-fg { stroke: var(--band-g); stroke-dasharray: 100; stroke-dashoffset: var(--off); transition: stroke-dashoffset 1.4s var(--ease) .15s; filter: drop-shadow(0 0 6px rgba(82, 196, 107, .45)); }
.js [data-arc]:not(.in) .arc-fg, .js .c-score:not(.in) .arc-fg { stroke-dashoffset: 100; }
.c-score.in .arc-fg { transition-delay: 1.3s; }
.arc text { font: 700 26px var(--display); fill: currentColor; font-variant-numeric: tabular-nums; }
[dir="rtl"] .arc path { transform: scaleX(-1); transform-origin: 60px 0; }

@media (max-width: 900px) {
  .hero { padding: 96px 0 72px; }
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { max-width: none; }
  .hero-art { min-height: 0; padding: 30px 0 10px; }
  .halo { width: 380px; }
  .phone { width: 250px; }
  .c-score { inset-inline-start: 0; }
  .c-paper { inset-inline-end: 0; }
}
@media (max-width: 420px) { .chip { font-size: .78rem; padding: 8px 11px; } .c-score .arc { width: 44px; } .c-score b { font-size: 1.25rem; } }

/* ── Store buttons ── */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 168px; min-height: 56px; padding: 8px 18px; border-radius: 14px; background: #02050D; color: #fff; text-decoration: none; line-height: 1.15;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: transform .2s var(--spring), box-shadow .2s; }
.store small { font-size: .72rem; opacity: .8; }
.store b { font: 600 1.15rem system-ui, -apple-system, sans-serif; }
a.store:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--gold), 0 10px 24px rgba(220, 172, 34, .18); }
a.store:active { transform: scale(.97); }
.store.is-soon { cursor: default; }
.store.is-soon small:last-child { color: var(--gold); opacity: 1; }

/* ── Trust strip: overlaps the hero's edge ── */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -44px; position: relative; z-index: 2; }
.trust > div { background: var(--surface); border-radius: 20px; padding: 20px 20px 22px; display: grid; gap: 3px; align-content: start;
  box-shadow: 0 1px 0 rgba(var(--shadow), .04), 0 14px 34px rgba(var(--shadow), .09), inset 0 0 0 1px var(--border); transition: transform .3s var(--spring), box-shadow .3s; }
.trust > div:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(var(--shadow), .14), inset 0 0 0 1px var(--border); }
.trust svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.trust b { font: 600 1.02rem var(--display); }
:lang(ar) .trust b { font-family: var(--font); font-weight: 700; }
.trust span { color: var(--text-2); font-size: .92rem; line-height: 1.45; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .trust { gap: 10px; } .trust > div { padding: 16px 14px 18px; } .trust span { font-size: .85rem; } }

/* ── Feature bays: zig-zag, each with its own light ── */
.features { padding: 120px 0 40px; }
.section-title { text-align: center; max-width: 22ch; margin: 0 auto 64px; }
.bay { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 36px 0; }
.bay:nth-of-type(even) figure { order: 2; }
.bay figure { --rx: 0deg; --ry: 0deg; margin: 0; position: relative; display: grid; place-items: center; min-height: 480px; perspective: 1000px; }
.bay figure::before { content: ""; position: absolute; inset: 4% 8%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); }
.shot { position: relative; width: min(58%, 272px); border-radius: 36px; padding: 7px; background: linear-gradient(145deg, #2a3a5c, #050b18 40%, #050b18 70%, #22314f); box-shadow: 0 30px 60px rgba(var(--shadow), .26), inset 0 1px rgba(255, 255, 255, .1);
  rotate: -3deg; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), translate .8s var(--ease), opacity .8s var(--ease); }
.bay:nth-of-type(even) .shot { rotate: 3deg; }
.shot img { border-radius: 29px; }
.card-shot { position: relative; width: min(78%, 360px); border-radius: 22px; box-shadow: 0 22px 44px rgba(var(--shadow), .22); z-index: 1; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), translate .8s var(--ease) .12s, opacity .8s var(--ease) .12s; }
.shot + .card-shot { position: absolute; bottom: 6%; inset-inline-start: 2%; width: min(48%, 230px); rotate: 2deg; }
.mascot { position: absolute; width: 50%; max-width: 260px; bottom: -4%; inset-inline-end: -2%; z-index: 2; transition: translate .5s var(--ease); }
/* The scan lion sits at a desk drawn edge to edge: fade its ends so the slab reads as a desk, not a cut */
.mascot.desk { -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.bay figure:hover .mascot { translate: 0 -6px; }
.bay figure:has(> .card-shot:first-child) { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.card-shot:first-child + .mascot { position: relative; width: min(70%, 340px); max-width: none; inset: auto; margin-top: -20px; }
.solo .mascot { position: relative; width: min(100%, 440px); max-width: none; inset: auto; }
.bay > div { position: relative; }
.bay p:not(.kicker) { color: var(--text-2); font-size: 1.08rem; max-width: 32em; }
.tiers { display: flex; gap: 8px; }
.js .tiers .tile { transform: scale(0); transition: transform .5s var(--spring); }
.js .in .tiers .tile { transform: none; }
.js .in .tiers .tile:nth-child(2) { transition-delay: .1s; } .js .in .tiers .tile:nth-child(3) { transition-delay: .2s; }

/* The step number: an outline that fills as its bay arrives. */
.num { display: block; font: 700 clamp(3.6rem, 7vw, 5.6rem)/.9 var(--display); letter-spacing: -.04em; margin-bottom: 14px; color: transparent; -webkit-text-stroke: 1.5px var(--gold); transition: color .9s var(--ease) .25s; }
:lang(ar) .num { font-family: "Sora", system-ui, sans-serif; }
.in .num, html:not(.js) .num { color: var(--gold); }
@media (max-width: 760px) {
  .bay { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .bay:nth-of-type(even) figure { order: 0; }
  .bay figure { min-height: 0; padding-bottom: 24px; }
  .solo .mascot { width: min(78%, 360px); }
}

/* ── Score band ── */
.score { position: relative; overflow: hidden; background: radial-gradient(50% 80% at 20% 50%, rgba(27, 47, 94, .9), transparent 70%), var(--navy); color: var(--on-navy); padding: 110px 0; margin-top: 72px; }
.score-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.score p:not(.kicker) { color: var(--on-navy-2); font-size: 1.08rem; }
.arc-big { max-width: 380px; justify-self: center; }
.arc-big .arc-bg { stroke: rgba(199, 210, 254, .1); }
.arc-big text { font-size: 30px; }
.bands { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; color: var(--on-navy); }
.bands li { padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(236, 240, 251, .06); box-shadow: inset 0 0 0 1px rgba(236, 240, 251, .1); font-size: .95rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 8px; vertical-align: middle; }
.b-g { background: var(--band-g); } .b-o { background: var(--band-o); } .b-r { background: var(--band-r); }
@media (max-width: 760px) { .score-in { grid-template-columns: 1fr; gap: 28px; } .arc-big { max-width: 260px; } }

/* ── Plans: the Pro card lights where the pointer is ── */
.plans { padding: 120px 0 40px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1180px; margin-inline: auto; align-items: start; }
.plan { --mx: 50%; --my: 0%; background: var(--surface); border-radius: 26px; padding: 32px; position: relative; isolation: isolate;
  box-shadow: 0 14px 34px rgba(var(--shadow), .07), inset 0 0 0 1px var(--border); transition: transform .35s var(--spring), box-shadow .35s; }
.plan::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx) var(--my), var(--glow), transparent 60%); }
.plan:hover { transform: translateY(-4px); }
.plan:hover::before { opacity: 1; }
.plan-top { box-shadow: 0 24px 50px var(--glow), inset 0 0 0 2px var(--gold); }
.plan h3 { margin-bottom: 6px; }
.price { margin: 0; color: var(--text-2); }
.price b { font: 700 2.4rem var(--display); color: var(--text); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 11px; }
.plan li { padding-inline-start: 30px; position: relative; }
.plan li::before { content: ""; position: absolute; inset-inline-start: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--band-g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan-pro li::before { background-color: var(--gold); }
.js .plan li { opacity: 0; translate: -8px 0; transition: opacity .4s var(--ease), translate .4s var(--ease); }
[dir="rtl"].js .plan li { translate: 8px 0; }
.js .plan.in li { opacity: 1; translate: 0 0; }
.js .plan.in li:nth-child(2) { transition-delay: .08s; } .js .plan.in li:nth-child(3) { transition-delay: .16s; } .js .plan.in li:nth-child(4) { transition-delay: .24s; }
.crown { position: absolute; width: 112px; top: -72px; inset-inline-end: 12px; transition: transform .4s var(--spring); }
.plan-top:hover .crown { transform: rotate(-6deg) translateY(-6px); }
.plans-note { text-align: center; color: var(--text-2); max-width: 40em; margin: 30px auto 0; font-size: .95rem; }
@media (max-width: 980px) { .plan-grid { grid-template-columns: 1fr; max-width: 520px; } .plan-top { margin-top: 56px; } }

/* ── FAQ: the answer slides open where the browser can size it ── */
.faq { padding: 90px 0; max-width: 780px; }
details { border-bottom: 1px solid var(--border); interpolate-size: allow-keywords; }
summary { cursor: pointer; list-style: none; padding: 22px 0; font: 600 1.1rem/1.4 var(--display); display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color .2s; }
:lang(ar) summary { font-family: var(--font); font-weight: 700; }
summary:hover { color: var(--action); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--gold); font-size: 1.3rem; line-height: 1; box-shadow: inset 0 0 0 1px var(--border); transition: rotate .3s var(--ease), background-color .2s; }
details[open] summary::after { rotate: 45deg; background: var(--glow); }
details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
details[open]::details-content { block-size: auto; }
details p { margin: 0 0 22px; color: var(--text-2); max-width: 60ch; }

/* ── Closing: the car comes back and parks ── */
.closing { position: relative; overflow: hidden; color: var(--on-navy); padding: 96px 0;
  background: radial-gradient(50% 70% at 80% 60%, rgba(27, 47, 94, .9), transparent 70%), linear-gradient(180deg, var(--navy), var(--navy-deep)); }
.closing-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.closing h2 { max-width: 14ch; }
.closing-b { color: var(--on-navy-2); margin: 0; }
.road { position: relative; height: 240px; direction: ltr; }
.lane { position: absolute; inset: auto -8% 34px -8%; height: 3px; opacity: .5; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 72%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 72%, transparent);
  background: repeating-linear-gradient(90deg, rgba(199, 210, 254, .5) 0 34px, transparent 34px 70px); }
/* The ground: a soft pool of shadow under the car and a faint glow along the lane, both fading on every side, so the road has no edge */
.road::before { content: ""; position: absolute; inset: auto 4% 30px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(199, 210, 254, .10), transparent); }
.road::after { content: ""; position: absolute; inset: auto 0 6px 4%; height: 70px; border-radius: 50%; background: radial-gradient(closest-side, rgba(4, 11, 30, .55), transparent); }
.park-car { position: absolute; left: 6%; right: 2%; bottom: 46px; z-index: 1; }
.beam { position: absolute; left: -38%; top: 46%; width: 46%; height: 34%; border-radius: 50%; opacity: 0; transform: translateY(-50%);
  background: radial-gradient(farthest-side at 100% 50%, rgba(220, 172, 34, .55), transparent); filter: blur(4px); }
.park-car::before { content: ""; position: absolute; left: 2.6%; top: 46%; width: 4.5%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; opacity: 0; background: radial-gradient(var(--gold-hi), transparent 70%); }
.js .park-car { transform: translateX(120%); }
.js .road.in .park-car { animation: park 1.6s cubic-bezier(.16, .84, .3, 1) .2s forwards; }
.js .road.in .lane { animation: lane 1.6s cubic-bezier(.16, .84, .3, 1) .2s forwards; }
.js .road.in .beam, .js .road.in .park-car::before { animation: lights 1.2s linear 1.6s forwards; }
html:not(.js) .beam, html:not(.js) .park-car::before { opacity: 1; }
@keyframes park { 0% { transform: translateX(120%); } 82% { transform: translateX(-1.5%) rotate(-.8deg); } 92% { transform: translateX(.4%) rotate(.3deg); } 100% { transform: none; } }
@keyframes lane { from { background-position: 0 0; } to { background-position: 420px 0; } }
@keyframes lights { 0% { opacity: 0; } 8% { opacity: 1; } 16% { opacity: .3; } 26%, 100% { opacity: 1; } }
@media (max-width: 760px) { .closing-in { grid-template-columns: 1fr; } .road { height: 180px; } }

.foot { background: #040C20; color: var(--on-navy-2); padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot-logo { height: 54px; width: auto; margin-bottom: 6px; }
.foot-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 32px; align-content: start; }
.foot a { color: var(--on-navy); text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--gold); }
.foot-copy { font-size: .85rem; margin-top: 32px; opacity: .7; }
@media (max-width: 520px) { .foot-links { grid-template-columns: 1fr; } }

/* ── Inner pages: support, deletion, legal ── */
.sub { padding: 64px 0 96px; max-width: 820px; }
.sub-art { width: 180px; margin-bottom: 8px; }
.js .sub-art { animation: rise .8s var(--spring) .1s backwards; }
.sub .lead { color: var(--text-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 32px 0 56px; }
.card { background: var(--surface); border-radius: 22px; padding: 26px; box-shadow: 0 10px 28px rgba(var(--shadow), .06), inset 0 0 0 1px var(--border); }
.card h2 { font-size: 1.3rem; }
.card p, .card ol { color: var(--text-2); margin: 0 0 12px; }
.btn { display: inline-block; background: var(--gold); color: var(--navy); font: 600 1rem var(--display); padding: 12px 22px; border-radius: 999px; text-decoration: none; transition: transform .2s var(--spring), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px var(--glow); }
.btn:active { transform: scale(.97); }
/* The delete form: one card, one step at a time */
.dw { margin: 32px 0 0; box-shadow: 0 16px 36px rgba(var(--shadow), .1), inset 0 0 0 2px var(--gold); }
.dw + .cards { margin-top: 20px; }
.dw[hidden], .dw [hidden] { display: none; }
.dw label { display: block; font: 600 .95rem var(--display); margin: 4px 0 8px; }
.dw input { width: 100%; max-width: 360px; font: 1.05rem var(--font); color: var(--text); background: var(--bg); border: 0; border-radius: 14px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--border); }
.dw input:focus-visible, .dw button:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.dw-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 4px; }
.dw button.btn { border: 0; cursor: pointer; }
.dw button:disabled { opacity: .55; cursor: progress; transform: none; }
.btn-quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn-danger { background: var(--red); color: #fff; }
.btn-link { background: none; border: 0; padding: 12px 6px; color: var(--action); font: 600 1rem var(--display); cursor: pointer; }
.dw-note { font-size: .92rem; margin-top: 14px; }
.dw-error { color: var(--red); margin: 8px 0 0; }
.dw-error:empty { display: none; }
:root[data-theme="dark"] .dw-error { color: #FF8A80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dw-error { color: #FF8A80; } }
.sub .section-title { text-align: start; margin: 0 0 12px; max-width: none; }
.prose-p { color: var(--text-2); }
/* 404: navy in both appearances, like the hero, so the car outline reads */
.page-404 { background: var(--navy); color: var(--on-navy); min-height: 100dvh; }
.lost .lead { margin: 0 0 10px; color: var(--on-navy-2); }
.lost .lead a { color: var(--gold); font-weight: 600; }
.legal { max-width: 72ch; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--text-2); }
.legal strong { color: var(--text); }
.legal-note { font-size: .9rem; color: var(--text-2); background: var(--surface); border-radius: 12px; padding: 10px 14px; box-shadow: inset 0 0 0 1px var(--border); }

/* ── Scroll reveals: rise into place; each bay's light switches on ── */
.js [data-reveal] { opacity: 0; translate: 0 22px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
.js [data-reveal].in { opacity: 1; translate: 0 0; }
.trust > div:nth-child(2) { transition-delay: .07s; } .trust > div:nth-child(3) { transition-delay: .14s; } .trust > div:nth-child(4) { transition-delay: .21s; }
.trust > div:hover { transition-delay: 0s; }
.js [data-lamp]::before { opacity: .3; transform: scale(.8); transition: transform 1.2s var(--ease) .3s; }
.js [data-lamp] :is(.shot, .card-shot) { opacity: 0; translate: 0 40px; }
.js [data-lamp].in :is(.shot, .card-shot) { opacity: 1; translate: 0 0; }
.js [data-lamp] .mascot { opacity: 0; }
.js [data-lamp].in .mascot { animation: switch-on .9s linear .35s forwards; }
.js [data-lamp].in::before { transform: none; animation: glow-on 1.2s var(--ease) .35s forwards; }
@keyframes switch-on { 0% { opacity: 1; } 4% { opacity: .25; } 8% { opacity: .85; } 16% { opacity: .2; } 28% { opacity: 1; } 36% { opacity: .6; } 48%, 100% { opacity: 1; } }
@keyframes glow-on { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js :is([data-reveal], .rise, .chip, .plan li, [data-lamp] .mascot, [data-lamp] .shot, [data-lamp] .card-shot) { opacity: 1; translate: none; }
  .js .tiers .tile, .js .park-car { transform: none; }
  .js .beam, .js .park-car::before { opacity: 1; }
  .js .sweep { stroke-dashoffset: 0; }
  .js [data-arc]:not(.in) .arc-fg, .js .c-score:not(.in) .arc-fg { stroke-dashoffset: var(--off); }
  .progress { display: none; }
}
.intro.landed { -webkit-mask-image: none; mask-image: none; } /* the fade only hides where the car enters; in Arabic the name lands there */

/* Contact form (support page): the same pill buttons and cards as the rest of the site */
.contact-form { background: var(--surface); border-radius: 22px; padding: 28px; margin: 0 0 64px; box-shadow: 0 10px 28px rgba(var(--shadow), .06), inset 0 0 0 1px var(--border); max-width: 720px; }
.contact-form h2 { font-size: 1.5rem; margin: 0 0 8px; }
.contact-form .lead { margin: 0 0 24px; }
.contact-form form { display: grid; gap: 20px; }
.contact-form .field { display: grid; gap: 8px; }
.contact-form label { font: 600 .95rem var(--display); }
.contact-form input, .contact-form textarea { width: 100%; font: 400 1rem/1.5 var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--glow); }
.contact-form [aria-invalid="true"] { border-color: var(--red); }
.contact-form .help { margin: 0; font-size: .9rem; color: var(--text-2); }
.contact-form .err { margin: 0; font-size: .9rem; color: var(--red); }
.contact-form .hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button { justify-self: start; border: 0; cursor: pointer; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
.contact-form .status { margin: 0; min-height: 1.6em; font-weight: 600; }
.contact-form .status.ok { color: #2E7D32; }
.contact-form .status.bad { color: var(--red); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .contact-form .status.ok { color: #8FD3A8; } :root:not([data-theme="light"]) .contact-form .err, :root:not([data-theme="light"]) .contact-form .status.bad { color: #F2B8B5; } }
:root[data-theme="dark"] .contact-form .status.ok { color: #8FD3A8; }
:root[data-theme="dark"] .contact-form .err, :root[data-theme="dark"] .contact-form .status.bad { color: #F2B8B5; }
