/* iFleet design system: brand tokens, type, components, sections. */
:root {
  --violet: #3f0679;
  --violet-700: #2c0457;
  --violet-900: #1a0038;
  --violet-100: #efe7f8;
  --violet-50: #f7f2fc;
  --yellow: #ffcd00;
  --yellow-600: #e6b800;
  --ink: #160a26;
  --text: #2a2038;
  --muted: #625775;
  --line: #e7e0ee;
  --paper: #fbf9f6;
  --white: #fff;
  --ok: #16a34a;
  --danger: #ef4444;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 10, 38, 0.06), 0 12px 32px -12px rgba(63, 6, 121, 0.22);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  /* Light-mode values for the block library (dark values live under data-theme='dark'). */
  --surface: #fff;
  --surface-solid: #fff;
  --glow-y: rgba(255, 205, 0, .2);
  --glow-p: rgba(63, 6, 121, .08);
  --cell: #fff;
  --band: #f3ecfa;
  --mq-ink: rgba(63, 6, 121, .13);
  --pi: #5b1a9e;
  --acc: #3f0679;
  --kick: #625775;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html[lang='ar'] body { font-family: var(--font-ar); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.08; margin: 0; letter-spacing: -0.025em; }
html[lang='ar'] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); margin-bottom: 16px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 2px; background: var(--yellow); }
html[lang='ar'] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 15px; }
.h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; max-width: 18ch; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 54ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; border: 2px solid transparent; }
.btn:hover { transform: translateY(-2px); }
.btn-wa { background: var(--yellow); color: var(--violet-900); box-shadow: 0 10px 24px -10px rgba(230, 184, 0, 0.9); }
.btn-wa:hover { background: #ffd633; }
.btn-ghost { border-color: var(--line); color: var(--violet); background: var(--white); }
.btn-ghost:hover { border-color: var(--violet); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 18px; }
.i-wa { width: 22px; height: 22px; flex: none; }
.btn-sm .i-wa { width: 18px; height: 18px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 246, 0.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-inline-start: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text); }
.nav-links a:hover { color: var(--violet); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); position: relative; }
.menu-btn span:not(.sr) { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .2s; }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded='true'] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 104px); background:
  radial-gradient(900px 500px at 85% 10%, rgba(63, 6, 121, 0.08), transparent 60%),
  radial-gradient(600px 400px at 0% 100%, rgba(255, 205, 0, 0.12), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; letter-spacing: -0.035em; }
.hero .hl { color: var(--violet); position: relative; }
.hero .lead { margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 15px; font-weight: 600; color: var(--text); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--violet-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%233F0679' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

.hero-map { margin: 0; position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--white); aspect-ratio: 5 / 4; }
.hero-map .map { width: 100%; height: 100%; color: var(--violet); }
.hero-map figcaption { position: absolute; inset-inline-end: 14px; bottom: 10px; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.map .land { fill: #fff; }
.map .coast { fill: none; stroke: #cbb9e3; stroke-width: 2; }
.map .roads path { fill: none; stroke: #d9cdea; stroke-width: 7; stroke-linecap: round; }
.map .roads path.minor { stroke-width: 4; }
.map .roads path::after { content: none; }
.map .cities circle { fill: var(--violet); stroke: #fff; stroke-width: 3; }
.map .cities text { font: 600 15px var(--font); fill: var(--ink); }
.map .sea-label { font: 500 14px var(--font); fill: #9d8bb8; letter-spacing: .2em; text-transform: uppercase; }
.map .veh { fill: var(--violet); stroke: #fff; stroke-width: 2.5; }
.map .veh.sel { fill: var(--yellow); stroke: var(--violet); stroke-width: 3; }
.map .trail { fill: none; stroke: var(--violet); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.map .ping { opacity: 0; }
.map .ping.on { animation: ping 1.6s ease-out 2; }
@keyframes ping { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.6); } }
.map .ping { transform-box: fill-box; transform-origin: center; }

.map-card, .map-alert { position: absolute; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.3; white-space: nowrap; }
.map-card { left: 0; top: 0; transform: translate(-50%, calc(-100% - 18px)); transition: transform .1s linear; will-change: left, top; }
.map-card strong, .map-alert strong { display: block; color: var(--ink); font-size: 14px; }
.map-card small, .map-alert small { color: var(--muted); }
.map-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.map-card-speed { text-align: end; padding-inline-start: 12px; border-inline-start: 1px solid var(--line); }
.map-card-speed em { display: block; font-style: normal; color: var(--ok); font-weight: 600; font-size: 12px; }
.map-card-speed b { color: var(--ink); }
.map-alert { inset-inline-start: 18px; bottom: 18px; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s; }
.map-alert.on { opacity: 1; transform: none; }
.alert-icon { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--yellow); color: var(--violet-900); font-weight: 800; }

/* Clients */
.clients { border-block: 1px solid var(--line); background: var(--white); }
.clients-row { display: flex; align-items: center; gap: 32px; padding-block: 28px; flex-wrap: wrap; }
.clients-row p { font-size: 14px; font-weight: 600; color: var(--muted); }
.clients-row ul { display: flex; flex-wrap: wrap; gap: 12px 40px; flex: 1; justify-content: space-around; }
.clients-row li { font-weight: 800; font-size: clamp(16px, 1.8vw, 21px); color: var(--violet-900); letter-spacing: -.01em; opacity: .85; }

/* Solutions */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6c8e7; }
.card-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--violet); display: grid; place-items: center; }
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 26px; font-weight: 800; margin-top: 6px; }
.card > p { color: var(--muted); }
.card ul { display: grid; gap: 8px; margin-block: 6px 10px; font-size: 15px; }
.card li { display: flex; gap: 10px; }
.card li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); margin-top: 10px; flex: none; }
.link-wa { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--violet); text-decoration: none; padding-top: 16px; border-top: 1px solid var(--line); }
.link-wa .i-wa { width: 20px; height: 20px; color: var(--ok); }
.link-wa:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Story (dark control room) */
.story { background: var(--violet-900); color: #d9cfe8; padding-block: clamp(72px, 10vw, 128px); position: relative; }
.story .h2 { color: #fff; }
.story .eyebrow { color: var(--yellow); }
.story-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: 48px; }
.stage-wrap { position: sticky; top: 96px; align-self: start; }
.stage { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #0f0420; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.stage-top { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.live { display: inline-flex; align-items: center; gap: 8px; background: rgba(15, 4, 32, .7); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.stage-dots { display: flex; gap: 6px; }
.stage-dots li { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); transition: background .3s, width .3s; }
.stage-dots li.on { background: var(--yellow); width: 34px; }
.layer { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease, transform .8s ease; transform: scale(1.03); }
.stage[data-step='0'] .layer-map, .stage[data-step='1'] .layer-road, .stage[data-step='2'] .layer-road, .stage[data-step='3'] .layer-review { opacity: 1; transform: none; }
.layer img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.layer-road .road { width: 100%; height: 100%; }
.road .lanes path { stroke: #cdbde6; stroke-width: 4; stroke-dasharray: 18 22; animation: lane .7s linear infinite; }
@keyframes lane { to { stroke-dashoffset: -40; } }
.road .brake { fill: #5a1a1a; transition: fill .2s; }
.road .lead-car { transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); transform-origin: 320px 210px; }
.stage[data-step='1'] .road .lead-car, .stage[data-step='2'] .road .lead-car { transform: scale(1.5) translateY(16px); }
.stage[data-step='1'] .road .brake, .stage[data-step='2'] .road .brake { fill: #ff3b3b; }
.road .bbox { fill: none; stroke: var(--yellow); stroke-width: 3; }
.road .bbox-label { font: 700 11px var(--font); fill: var(--yellow); }
.road .bbox-g { opacity: 0; transition: opacity .3s .5s, transform 1.2s cubic-bezier(.2, .8, .2, 1); transform-origin: 320px 210px; }
.stage[data-step='1'] .road .bbox-g { opacity: 1; transform: scale(1.5) translateY(16px); }
.road.thumb .lanes path { animation: none; }
.hud { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 10px 14px; font-size: 14px; line-height: 1.3; opacity: 0; transform: translateY(10px); transition: opacity .4s .3s, transform .4s .3s; }
.hud strong { display: block; color: #fff; }
.hud small { color: #d9cfe8; }
.hud.warn { left: 50%; bottom: 18px; transform: translate(-50%, 10px); background: rgba(239, 68, 68, .92); }
.hud.warn small { color: #ffe3e3; }
.hud.rec { inset-inline-end: 16px; top: 52px; background: rgba(0, 0, 0, .55); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .1em; padding: 6px 10px; }
.hud.rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); animation: blink 1s infinite; }
.hud.saved { inset-inline-start: 16px; bottom: 18px; background: rgba(15, 4, 32, .88); border: 1px solid rgba(255, 205, 0, .5); flex-direction: column; align-items: flex-start; gap: 2px; }
.hud.saved strong { color: var(--yellow); }
.hud.notify { inset-inline-end: 16px; top: 92px; background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.hud.notify .bell { color: var(--violet); }
.stage[data-step='1'] .hud.warn { opacity: 1; transform: translate(-50%, 0); }
.stage[data-step='1'] .hud.rec, .stage[data-step='2'] .hud.rec, .stage[data-step='2'] .hud.saved, .stage[data-step='2'] .hud.notify { opacity: 1; transform: none; }
.stage[data-step='2'] .hud.notify { transition-delay: .9s; }
.layer-review img { filter: brightness(.45) saturate(.8); }
.review-card { position: absolute; inset-inline-end: 5%; top: 50%; transform: translateY(-46%); width: min(300px, 62%); background: #fff; color: var(--text); border-radius: 18px; padding: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); font-size: 13px; }
.review-title { font-weight: 800; color: var(--ink); font-size: 15px; margin-bottom: 10px; }
.review-thumb { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
.review-thumb svg { width: 100%; height: 100%; }
.review-thumb span { position: absolute; inset: 0; margin: auto; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); color: var(--violet-900); display: grid; place-items: center; font-size: 13px; }
.review-card dl { margin: 12px 0; display: grid; gap: 6px; }
.review-card dl div { display: flex; justify-content: space-between; gap: 8px; }
.review-card dt { color: var(--muted); }
.review-card dd { margin: 0; font-weight: 700; color: var(--ink); }
.review-action { display: block; text-align: center; background: var(--violet-100); color: var(--violet); font-weight: 700; padding: 8px; border-radius: 10px; }
.stage-caption { margin-top: 14px; font-size: 13px; color: #9c8db6; }

.steps { display: grid; }
.step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-block: 24px; opacity: .35; transition: opacity .4s; }
.step:first-child { min-height: 55vh; justify-content: flex-start; padding-top: 40px; }
.step.on { opacity: 1; }
.step-tag { font-size: 13px; font-weight: 700; color: var(--yellow); letter-spacing: .08em; text-transform: uppercase; }
html[lang='ar'] .step-tag { letter-spacing: 0; }
.step h3 { color: #fff; font-size: clamp(28px, 3vw, 40px); font-weight: 800; }
.step p:last-child { font-size: 18px; max-width: 42ch; }
.story-cta { margin-top: 24px; display: flex; justify-content: center; }

/* Close / fleet size */
.close-box { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: var(--violet); color: #e7dcf5; border-radius: 32px; padding: clamp(32px, 6vw, 72px); position: relative; overflow: hidden; }
.close-box::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 205, 0, .22), transparent 65%); inset-inline-end: -120px; top: -160px; pointer-events: none; }
.close-box .h2 { color: #fff; }
.close-box .lead { color: #d9cbee; margin-top: 18px; }
.sizes { position: relative; z-index: 1; display: grid; gap: 20px; }
.sizes fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.size input { position: absolute; opacity: 0; }
.size span { display: grid; place-items: center; min-height: 56px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .25); font-weight: 700; color: #fff; cursor: pointer; transition: all .2s; }
.size input:checked + span { background: #fff; color: var(--violet); border-color: #fff; }
.size input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sizes .soft { color: #cbb9e3; opacity: 1; }
.sizes .soft a { color: #fff; }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding-top: 64px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; }
.site-footer h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
html[lang='ar'] .site-footer h2 { letter-spacing: 0; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--violet); text-decoration: underline; }
.footer-grid p + p { margin-top: 10px; }
.social { display: flex; gap: 16px; margin-top: 16px; font-weight: 600; color: var(--violet); }
.footer-base { border-top: 1px solid var(--line); margin-top: 48px; padding-block: 20px; font-size: 13px; color: var(--muted); }

.wa-float { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .35); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float .i-wa { width: 30px; height: 30px; }

/* Reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid, .story-grid, .close-box { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stage-wrap { top: 72px; z-index: 2; background: var(--violet-900); padding-block: 8px 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .stage-caption { display: none; }
  .step, .step:first-child { min-height: 62vh; padding-top: 24px; justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .btn-sm span { display: none; }
  .btn-sm { width: 44px; padding: 0; }
  .actions .btn { flex: 1 1 100%; }
  .hero-map { aspect-ratio: 1 / 1; }
  .map-card { font-size: 12px; padding: 8px 10px; }
  .map-card-speed { display: none; }
  .stage { aspect-ratio: 4 / 3; }
  .review-card { width: 72%; padding: 12px; font-size: 12px; }
  .review-thumb { display: none; }
  .hud { font-size: 12px; padding: 8px 10px; }
  .sizes fieldset { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .clients-row { gap: 14px; }
  .clients-row ul { justify-content: flex-start; gap: 8px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ===== Multi-page components ===== */
.h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; color: var(--ink); line-height: 1.2; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.soft { color: inherit; opacity: .8; }
.section-tight { padding-block: 8px clamp(48px, 7vw, 88px); }
.section.flush-top { padding-top: 0; }
.btn-outline { background: var(--white); color: var(--violet); border-color: var(--violet); box-shadow: none; }
.btn-outline:hover { background: var(--violet-50); }
.btn-block { width: 100%; }

/* Nav dropdowns + language */
.dd { position: relative; }
.dd-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; font-size: 15px; color: var(--text); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.dd-btn:hover, .dd-btn[aria-expanded='true'] { color: var(--violet); }
.chev { width: 16px; height: 16px; transition: transform .2s; }
.dd-btn[aria-expanded='true'] .chev { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 18px); inset-inline-start: -16px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 10px; min-width: 240px; display: none; z-index: 60; }
.dd-menu.open { display: grid; }
.dd-wide { width: 360px; }
.dd-cols { grid-template-columns: 1fr 1fr; width: 440px; }
.dd-menu a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 600; }
.dd-menu a:hover { background: var(--violet-50); color: var(--violet); }
.dd-menu small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.nav-links .lang { font-family: var(--font-ar); font-weight: 700; color: var(--violet); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
html[lang='ar'] .nav-links .lang { font-family: var(--font); }
.nav-links { gap: 22px; align-items: center; }

/* Breadcrumbs + page hero */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs li + li::before { content: '/'; margin-inline-end: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--violet); text-decoration: underline; }
.page-hero { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 72px); background: radial-gradient(800px 400px at 90% 0%, rgba(63, 6, 121, .07), transparent 60%); }
.page-hero h1 { font-size: clamp(36px, 5vw, 62px); font-weight: 800; letter-spacing: -.03em; max-width: 18ch; }
html[lang='ar'] .page-hero h1 { letter-spacing: 0; }
.page-hero .lead { margin-top: 20px; }
.page-hero-grid { display: grid; gap: 40px; }
.has-aside .page-hero-grid { grid-template-columns: 1.3fr 1fr; align-items: end; }
.hero-points { display: grid; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.hero-points svg, .cap-icon svg, .plan li svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--violet); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; background: var(--violet-100); border-radius: 50%; padding: 3px; }
.hero-points.big { background: none; border: 0; box-shadow: none; padding: 0; margin-top: 28px; font-size: 18px; }

/* Grids */
.three, .four { display: grid; gap: 20px; margin-top: 36px; }
.three { grid-template-columns: repeat(3, 1fr); }
.four { grid-template-columns: repeat(4, 1fr); }
.problem { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.problem h3, .problem .h3 { font-size: 20px; margin-bottom: 8px; }
.problem p { color: var(--muted); }
.problems .eyebrow + .three { margin-top: 8px; }
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; margin-top: 40px; }
.cap { display: flex; gap: 16px; }
.cap h3 { font-size: 19px; margin-bottom: 4px; }
.cap p { color: var(--muted); }
.shot { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white); position: relative; }
.shot img { width: 100%; }
.shot-narrow { max-width: 900px; }
.shot-dark { background: #0f0420; aspect-ratio: 16 / 8; border-color: transparent; }
.shot-dark .road { width: 100%; height: 100%; }
.shot-dark .bbox-g { opacity: 1; transform: scale(1.5) translateY(16px); }
.shot-dark .lead-car { transform: scale(1.5) translateY(16px); }
.shot-dark .brake { fill: #ff3b3b; }
.shot-dark .hud { opacity: 1; transform: none; }
.shot-dark .hud.warn { transform: translateX(-50%); }
.shot-dark figcaption { position: absolute; inset-inline-end: 14px; top: 12px; font-size: 11px; color: #b9a8d4; }

/* Cards (multi-page additions) */
.card-title { text-decoration: none; }
.card-title:hover { color: var(--violet); }
.card-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; }
.card-foot .link-wa { margin: 0; padding: 0; border: 0; }
.link-more { font-weight: 700; color: var(--ink); text-decoration: none; }
.link-more:hover { color: var(--violet); }
html[dir='rtl'] .link-more span, html[dir='rtl'] .tile i, html[dir='rtl'] .promo-link i { display: inline-block; transform: scaleX(-1); }

/* Industry tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 22px 44px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.tile b { color: var(--ink); font-size: 17px; }
.tile span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.tile i { position: absolute; bottom: 16px; inset-inline-start: 22px; font-style: normal; color: var(--violet); font-weight: 700; }
.tile:hover { border-color: var(--violet); transform: translateY(-3px); box-shadow: var(--shadow); }

/* Promo duo */
.duo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.promo { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 4vw, 44px); border-radius: 24px; text-decoration: none; overflow: hidden; transition: transform .25s; }
.promo:hover { transform: translateY(-4px); }
.promo h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; }
.promo-calc { background: var(--yellow); color: var(--violet-900); }
.promo-calc h2 { color: var(--violet-900); max-width: 18ch; }
.promo-price { background: var(--white); border: 1px solid var(--line); }
.promo-link { margin-top: auto; font-weight: 800; color: var(--violet); }
.promo-calc .promo-link { color: var(--violet-900); }
.promo-badge { position: absolute; inset-inline-end: 24px; top: 20px; font-weight: 800; font-size: 44px; opacity: .18; letter-spacing: -.04em; }

/* Install timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; counter-reset: s; }
.timeline li { position: relative; padding-top: 56px; }
.timeline li::before { content: ''; position: absolute; top: 20px; inset-inline: 44px -20px; height: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .num { position: absolute; top: 0; inset-inline-start: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: var(--yellow); font-weight: 800; }
.timeline h3 { font-size: 19px; margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--violet); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* CTA band */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; background: var(--violet-900); border-radius: 28px; padding: clamp(28px, 5vw, 56px); }
.cta-band .h2 { color: #fff; max-width: 22ch; font-size: clamp(26px, 3.2vw, 40px); }
.cta-band .lead { color: #cdbfe3; margin-top: 10px; }
.cta-band-wrap { padding-block: clamp(32px, 5vw, 56px); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px; }
.plan.featured { border: 2px solid var(--violet); box-shadow: var(--shadow); }
.plan-tag { align-self: flex-start; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; background: var(--violet-100); color: var(--violet); }
html[lang='ar'] .plan-tag { letter-spacing: 0; }
.plan.featured .plan-tag { background: var(--yellow); color: var(--violet-900); }
.plan h2 { font-size: 26px; font-weight: 800; }
.plan > p { color: var(--muted); }
.plan-price { font-weight: 800; color: var(--ink); font-size: 18px; padding-block: 10px; border-block: 1px solid var(--line); }
.plan ul { display: grid; gap: 10px; margin-bottom: 8px; }
.plan li { display: flex; gap: 10px; }
.plan-form { margin-top: auto; display: grid; gap: 12px; }
.plan-form label span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
select, input, textarea { font: inherit; color: var(--ink); width: 100%; min-height: 48px; border: 1px solid #d6cbe3; border-radius: 12px; padding: 10px 14px; background: var(--white); }
textarea { min-height: 96px; resize: vertical; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(63, 6, 121, .15); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; }
.field > span, .field legend { font-weight: 600; font-size: 15px; color: var(--ink); }
.field small { color: var(--muted); font-size: 13px; }
.calc-out { position: sticky; top: 96px; background: var(--violet-900); color: #d9cfe8; border-radius: 24px; padding: clamp(24px, 3vw, 32px); display: grid; gap: 16px; }
.calc-out h2 { color: #fff; font-size: 22px; }
.calc-out dl { margin: 0; display: grid; gap: 12px; }
.calc-out dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.calc-out dd { margin: 0; color: #fff; font-weight: 700; white-space: nowrap; }
.calc-out .total dt { color: #fff; font-weight: 700; }
.calc-out .total dd { color: var(--yellow); font-size: 28px; }
.how { display: grid; gap: 10px; margin-top: 16px; color: var(--muted); list-style: disc; padding-inline-start: 20px; }

/* Compliance */
.notice { background: #fff8db; border: 1px solid #f3e3a1; border-radius: 14px; padding: 14px 18px; font-size: 15px; color: #5c4a00; }
.rules { display: grid; gap: 16px; margin-top: 24px; }
.rule { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; border-inline-start: 5px solid var(--violet); }
.rule-auth { font-size: 13px; font-weight: 700; color: var(--violet); text-transform: uppercase; letter-spacing: .06em; }
html[lang='ar'] .rule-auth { letter-spacing: 0; }
.rule h2 { font-size: 22px; margin: 6px 0 8px; }
.rule p:last-child { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.contact-form { display: grid; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); }
.chips-in { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip-in input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chip-in span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid #d6cbe3; font-weight: 600; font-size: 14px; cursor: pointer; }
.chip-in input:checked + span { background: var(--violet); color: #fff; border-color: var(--violet); }
.chip-in input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.contact-side { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 16px; }
.channels { display: grid; gap: 14px; }
.channels li { display: grid; gap: 2px; }
.channels span { font-size: 13px; color: var(--muted); }
.channels a { font-weight: 700; color: var(--violet); text-decoration: none; font-size: 18px; }
.channels .link-wa { padding: 0; border: 0; margin: 0; }

.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; }

@media (max-width: 1020px) {
  .has-aside .page-hero-grid, .faq-grid, .calc, .contact-grid, .duo { grid-template-columns: 1fr; }
  .three, .plans { grid-template-columns: 1fr; }
  .four, .tiles, .timeline { grid-template-columns: 1fr 1fr; }
  .timeline li::before { display: none; }
  .calc-out { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .four, .tiles, .timeline, .cap-grid, .calc-form { grid-template-columns: 1fr; }
  .dd-cols { grid-template-columns: 1fr; }
  .cta-band .btn { width: 100%; }
  .shot-dark { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .menu-btn { display: block; }
  .nav-actions { margin-inline-start: auto; }
  .nav-links .dd { width: 100%; border-bottom: 1px solid var(--line); }
  .dd-btn { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 17px; }
  .dd-menu { position: static; box-shadow: none; border: 0; padding: 0 0 10px; width: auto; min-width: 0; }
  .dd-cols { grid-template-columns: 1fr 1fr; }
  .nav-links .lang { margin-top: 14px; align-self: flex-start; }
  .nav-links { max-height: calc(100vh - 72px); overflow-y: auto; }
}

/* =====================================================================
   Dark "control room" theme, brought back from the previous landing page
   (legacy/index.html): deep violet ground, yellow glow, glass surfaces.
   ===================================================================== */
html[data-theme='dark'],
html[data-theme='light'] :is(.vis, .story, .glow-card, .cta-band, .calc-out, .close-box) {
  --paper: #070312;
  --surface: rgba(21, 5, 48, .72);
  --surface-solid: #120428;
  --white: var(--surface);
  --ink: #ffffff;
  --text: #e9e3f4;
  --muted: #a596bf;
  --line: #2a1650;
  --violet-50: rgba(63, 6, 121, .28);
  --violet-100: rgba(63, 6, 121, .45);
  --glow-y: rgba(255, 205, 0, .12);
  --glow-p: rgba(63, 6, 121, .35);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --cell: rgba(7, 3, 18, .85);
  --band: rgba(21, 5, 48, .5);
  --mq-ink: rgba(240, 236, 248, .09);
  --pi: #c9a8ee;
  --acc: #ffcd00;
  --kick: rgba(240, 236, 248, .6);
}
html[data-theme='dark'] body { background: var(--paper); color: var(--text); }
html[data-theme='dark'] body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 45% at 70% 0%, rgba(255, 205, 0, .06), transparent 55%),
              radial-gradient(ellipse 90% 70% at 10% 30%, rgba(63, 6, 121, .45), transparent 60%),
              radial-gradient(ellipse 80% 60% at 90% 90%, rgba(63, 6, 121, .3), transparent 60%); }
html[data-theme='dark'] .eyebrow { color: var(--yellow); }
html[data-theme='dark'] .h2 { color: #fff; }
html[data-theme='dark'] .lead { color: var(--muted); }
html[data-theme='dark'] .site-header { background: rgba(7, 3, 18, .72); }
html[data-theme='dark'] .site-header.is-scrolled { border-color: var(--line); }
html[data-theme='dark'] .nav-links a, html[data-theme='dark'] .dd-btn { color: var(--text); }
html[data-theme='dark'] .nav-links a:hover, html[data-theme='dark'] .dd-btn:hover, html[data-theme='dark'] .dd-btn[aria-expanded='true'] { color: var(--yellow); }
html[data-theme='dark'] .dd-menu { background: var(--surface-solid); }
html[data-theme='dark'] .dd-menu a:hover { background: rgba(255, 255, 255, .05); color: var(--yellow); }
html[data-theme='dark'] .nav-links .lang { color: var(--yellow); }
html[data-theme='dark'] .menu-btn { background: transparent; }
html[data-theme='dark'] .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .22); }
html[data-theme='dark'] .btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
html[data-theme='dark'] .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 205, 0, .55); }
html[data-theme='dark'] .btn-outline:hover { background: rgba(255, 205, 0, .08); }
html[data-theme='dark'] .btn-wa { box-shadow: 0 10px 30px -8px rgba(255, 205, 0, .45); }
html[data-theme='dark'] .link-wa, html[data-theme='dark'] .link-more:hover, html[data-theme='dark'] .card-title:hover, html[data-theme='dark'] .tile i, html[data-theme='dark'] .promo-link, html[data-theme='dark'] .social, html[data-theme='dark'] .channels a, html[data-theme='dark'] .crumbs a:hover, html[data-theme='dark'] .site-footer a:hover { color: var(--yellow); }
html[data-theme='dark'] .link-more { color: #fff; }
html[data-theme='dark'] .card, html[data-theme='dark'] .tile, html[data-theme='dark'] .problem, html[data-theme='dark'] .faq details, html[data-theme='dark'] .plan, html[data-theme='dark'] .calc-form, html[data-theme='dark'] .contact-form, html[data-theme='dark'] .contact-side, html[data-theme='dark'] .rule, html[data-theme='dark'] .promo-price, html[data-theme='dark'] .hero-points { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
html[data-theme='dark'] .card:hover, html[data-theme='dark'] .tile:hover { border-color: rgba(255, 205, 0, .35); }
html[data-theme='dark'] .card-icon { background: rgba(255, 205, 0, .1); border: 1px solid rgba(255, 205, 0, .2); }
html[data-theme='dark'] .hero .hl, html[data-theme='dark'] .hl { color: var(--yellow); }
html[data-theme='dark'] .hero { background: none; }
html[data-theme='dark'] .hero-map { background: var(--surface-solid); }
html[data-theme='dark'] .map .land { fill: #2a1250; }
html[data-theme='dark'] .map .coast { stroke: #4a2a78; }
html[data-theme='dark'] .map .roads path { stroke: #3a1d63; }
html[data-theme='dark'] .map .cities circle { fill: var(--yellow); stroke: #1a0838; }
html[data-theme='dark'] .map .cities text { fill: #fff; }
html[data-theme='dark'] .map .veh { fill: #b895dc; stroke: #1a0838; }
html[data-theme='dark'] .map .trail { stroke: var(--yellow); }
html[data-theme='dark'] .map-card, html[data-theme='dark'] .map-alert { background: rgba(18, 4, 40, .94); }
html[data-theme='dark'] .ticks { color: var(--text); }
html[data-theme='dark'] .ticks li::before { background-color: rgba(255, 205, 0, .18); }
html[data-theme='dark'] .page-hero { background: none; }
html[data-theme='dark'] .story { background: transparent; border-block: 1px solid var(--line); }
html[data-theme='dark'] .close-box { background: linear-gradient(135deg, #3f0679, #1a0038); border: 1px solid rgba(255, 205, 0, .18); }
html[data-theme='dark'] .cta-band { background: linear-gradient(120deg, rgba(63, 6, 121, .9), rgba(26, 0, 56, .9)); border: 1px solid rgba(255, 205, 0, .2); position: relative; overflow: hidden; }
html[data-theme='dark'] .cta-band::after { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; inset-inline-end: -100px; top: -180px; background: radial-gradient(circle, rgba(255, 205, 0, .2), transparent 65%); pointer-events: none; }
html[data-theme='dark'] .cta-band > * { position: relative; z-index: 1; }
html[data-theme='dark'] .site-footer { background: rgba(7, 3, 18, .9); }
html[data-theme='dark'] .footer-logo, html[data-theme='dark'] .brand img { filter: none; }
html[data-theme='dark'] .plan.featured { border-color: var(--yellow); box-shadow: 0 0 0 1px rgba(255, 205, 0, .4), 0 30px 80px -30px rgba(255, 205, 0, .25); }
html[data-theme='dark'] .plan-tag { background: rgba(255, 255, 255, .08); color: #fff; }
html[data-theme='dark'] select, html[data-theme='dark'] input, html[data-theme='dark'] textarea { background: rgba(7, 3, 18, .6); color: #fff; border-color: #3a2266; }
html[data-theme='dark'] select option { background: #120428; }
html[data-theme='dark'] select:focus, html[data-theme='dark'] input:focus, html[data-theme='dark'] textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 205, 0, .18); }
html[data-theme='dark'] .chip-in span { border-color: #3a2266; }
html[data-theme='dark'] .chip-in input:checked + span { background: var(--yellow); color: var(--violet-900); border-color: var(--yellow); }
html[data-theme='dark'] .calc-out { background: linear-gradient(160deg, #2c0457, #12031f); border: 1px solid rgba(255, 205, 0, .2); }
html[data-theme='dark'] .notice { background: rgba(255, 205, 0, .08); border-color: rgba(255, 205, 0, .3); color: #ffe7a0; }
html[data-theme='dark'] .rule { border-inline-start-color: var(--yellow); }
html[data-theme='dark'] .rule-auth { color: var(--yellow); }
html[data-theme='dark'] .timeline .num { background: rgba(255, 205, 0, .12); border: 1px solid rgba(255, 205, 0, .35); color: var(--yellow); }
html[data-theme='dark'] .hero-points svg, html[data-theme='dark'] .cap-icon svg, html[data-theme='dark'] .plan li svg { stroke: var(--yellow); background: rgba(255, 205, 0, .12); }
html[data-theme='dark'] .faq summary::after { color: var(--yellow); }
html[data-theme='dark'] .promo-price { background: var(--surface); }
html[data-theme='dark'] .wa-float { box-shadow: 0 12px 30px rgba(37, 211, 102, .35); }

/* ---------- Block hero ---------- */
.bhero { position: relative; padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 104px); overflow: hidden; }
.bhero-glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 205, 0, .09), transparent 60%); pointer-events: none; }
html[dir='rtl'] .bhero-glow { inset: -20% auto auto -10%; }
.bhero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.bhero.has-vis .bhero-grid { grid-template-columns: 1.05fr 1fr; }
.bhero h1 { font-size: clamp(38px, 5.4vw, 68px); font-weight: 800; letter-spacing: -.035em; max-width: 17ch; color: var(--ink); }
html[lang='ar'] .bhero h1 { letter-spacing: 0; line-height: 1.25; }
.bhero .lead { margin-top: 22px; font-size: clamp(18px, 1.5vw, 20px); }
.bhero-note { margin-top: 18px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--kick); margin-bottom: 20px; }
html[lang='ar'] .kicker { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: 15px; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 14px 2px rgba(255, 205, 0, .6); }

/* ---------- Visuals ---------- */
.vis { margin: 0; position: relative; }
.v-phone { display: grid; place-items: center; padding-block: 12px; }
.phone { position: relative; width: min(300px, 70vw); aspect-ratio: 390 / 844; border-radius: 44px; padding: 10px; background: linear-gradient(160deg, #2a1650, #0c041a); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 120px -20px rgba(63, 6, 121, .9); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; border-radius: 12px; background: #050109; z-index: 2; }
.browser { border-radius: 16px; overflow: hidden; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: 0 30px 90px -30px rgba(0, 0, 0, .8), 0 0 80px -30px rgba(63, 6, 121, .8); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: rgba(15, 10, 30, .7); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.url { font-family: var(--mono); font-size: 11px; color: var(--muted); background: rgba(255, 255, 255, .04); padding: 4px 12px; border-radius: 6px; }
.browser img, .browser video { width: 100%; display: block; }
.browser video { aspect-ratio: 16 / 9; object-fit: cover; background: #070312; }
.trio { display: flex; justify-content: center; align-items: flex-end; gap: 14px; }
.trio .phone { width: min(170px, 28vw); border-radius: 30px; padding: 7px; }
.trio .phone img { border-radius: 24px; }
.trio .phone-notch { top: 12px; height: 14px; }
.trio .phone:nth-child(2) { transform: translateY(-24px); }
.screen { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: #0f0420; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.screen svg { width: 100%; height: 100%; }
.screen .road .bbox-g, .screen .cabin .bbox-g { opacity: 1; }
.is-fcw .road .lead-car, .is-fcw .road .bbox-g { transform: scale(1.5) translateY(16px); }
.is-fcw .road .brake { fill: #ff3b3b; }
.cabin .bbox { fill: none; stroke: var(--acc); stroke-width: 3; }
.cabin .bbox-label, .road .bbox-label { font: 700 13px var(--font); fill: var(--yellow); }
.lane-hit { animation: blink 1s infinite; }
.rec { position: absolute; top: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .55); color: var(--ink); font: 800 11px var(--font); letter-spacing: .1em; padding: 5px 9px; border-radius: 8px; }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: blink 1s infinite; }
.v-panel .panel-bg { aspect-ratio: 16 / 11; border-radius: 22px; border: 1px solid var(--line); background:
  linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 28px 28px,
  radial-gradient(circle at 30% 30%, rgba(63, 6, 121, .7), transparent 60%), #0d0419; position: relative; overflow: hidden; }
.panel-bg span { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 205, 0, .25); inset: 20%; animation: pulse 4s ease-out infinite; }
.panel-bg span:nth-child(2) { animation-delay: 1.3s; }
.panel-bg span:nth-child(3) { animation-delay: 2.6s; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* Floating HUD cards */
.hudc { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 16px; pointer-events: none; }
.v-phone .hudc, .v-panel .hudc { inset: 0; justify-content: center; }
.v-panel .hudc { align-items: center; }
.v-phone .hudc li:nth-child(odd) { margin-inline-start: auto; }
.hudc li { display: flex; align-items: center; gap: 10px; background: rgba(12, 4, 26, .9); border: 1px solid var(--line); border-radius: 14px; padding: 9px 13px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .9); backdrop-filter: blur(10px); max-width: 78%; animation: floaty 6s ease-in-out infinite; }
.hudc li:nth-child(2) { animation-delay: -2s; }
.hudc li:nth-child(3) { animation-delay: -4s; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
.hudc small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.hudc strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.3; }
.hudc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); flex: none; box-shadow: 0 0 10px rgba(255, 205, 0, .7); }
.hudc-i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: rgba(255, 205, 0, .14); color: var(--acc); }
.hudc-i svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hudc-ok .hudc-dot { background: #22c55e; box-shadow: 0 0 10px rgba(34, 197, 94, .7); }
.hudc-ok .hudc-i { background: rgba(34, 197, 94, .15); color: #4ade80; }
.hudc-alert { border-color: rgba(239, 68, 68, .5) !important; }
.hudc-alert .hudc-dot { background: var(--danger); box-shadow: 0 0 10px rgba(239, 68, 68, .8); }
.hudc-alert .hudc-i { background: rgba(239, 68, 68, .18); color: #fca5a5; }
.hudc-warn .hudc-i { background: rgba(255, 205, 0, .18); }
.hudc-info .hudc-i { background: rgba(184, 149, 220, .16); color: #d3bdf0; }

/* ---------- Marquee ---------- */
.mq { padding: 30px 0; border-block: 1px solid var(--line); overflow: hidden; background: var(--band); }
.mq-row { display: flex; width: max-content; white-space: nowrap; animation: mq 40s linear infinite; }
html[dir='rtl'] .mq-row { animation-direction: reverse; }
.mq-item { padding: 0 26px; font-size: clamp(22px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.02em; color: var(--mq-ink); text-transform: uppercase; }
html[lang='ar'] .mq-item { letter-spacing: 0; text-transform: none; }
.mq-sep { align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); opacity: .35; flex: none; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border-radius: 20px; overflow: hidden; margin: 28px 0 0; border: 1px solid var(--line); }
.stat-grid > div { background: var(--cell); padding: 34px 22px; text-align: center; display: flex; flex-direction: column-reverse; gap: 6px; }
.stat-grid dd { margin: 0; font-family: var(--mono); font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; color: var(--acc); letter-spacing: -.03em; }
.stat-grid dt { font-size: 14px; color: var(--ink); font-weight: 600; }
.stat-grid p { font-size: 13px; color: var(--muted); order: -1; }
.bstats-note { margin-top: 14px; text-align: center; }

/* ---------- Split ---------- */
.bsplit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.bsplit.rev .bsplit-copy { order: 2; }
.prose { display: grid; gap: 14px; margin-top: 20px; color: var(--text); font-size: 17px; max-width: 62ch; }
.prose strong { color: var(--ink); }
.prose a { color: var(--acc); }
.checks { display: grid; gap: 12px; margin-top: 22px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--acc); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; background: rgba(255, 205, 0, .12); border-radius: 50%; padding: 3px; margin-top: 2px; }
.checks.big { font-size: 18px; gap: 16px; }

/* ---------- Spotlight features ---------- */
.spot-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-top: 44px; }
.spot-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.spot-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.spot-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.spot { position: relative; overflow: hidden; background: var(--cell); padding: 34px 28px; }
.spot::before, .ucard::before, .plan::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 205, 0, .07), transparent 70%); }
.spot:hover::before, .ucard:hover::before, .plan:hover::before { opacity: 1; }
.spot-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; transition: transform .3s; }
.spot-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.spot-icon.yi { color: var(--acc); background: var(--glow-y); border: 1px solid rgba(255, 205, 0, .18); }
.spot-icon.pi { color: var(--pi); background: var(--glow-p); border: 1px solid rgba(115, 42, 186, .45); }
.spot:hover .spot-icon { transform: translateY(-3px); }
.spot h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.spot p { font-size: 15px; color: var(--muted); }

/* ---------- Day timeline ---------- */
.bday-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 5vw, 72px); }
.bday-head { position: sticky; top: 110px; align-self: start; }
.day { position: relative; display: grid; gap: 14px; }
.day::before { content: ''; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 62px; width: 1px; background: linear-gradient(var(--yellow), var(--line)); }
.day li { display: grid; grid-template-columns: 50px 1fr; gap: 28px; position: relative; }
.day time { font-family: var(--mono); font-size: 13px; color: var(--acc); padding-top: 22px; text-align: end; }
.day li > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; position: relative; }
.day li > div::before { content: ''; position: absolute; top: 26px; inset-inline-start: -20px; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 205, 0, .15); }
.day h3 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.day p { color: var(--muted); font-size: 15.5px; }
.day-tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pi); background: var(--glow-p); border-radius: 999px; padding: 3px 9px; margin-bottom: 8px; }
html[lang='ar'] .day-tag { letter-spacing: 0; }

/* ---------- Scenes (sticky scroll) ---------- */
.bscenes { padding-block: clamp(72px, 10vw, 128px); }
.scenes-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: 32px; }
.scenes-stage { position: sticky; top: 100px; align-self: start; display: grid; }
.scene-vis { grid-area: 1 / 1; opacity: 0; transform: scale(.97); transition: opacity .6s, transform .8s; pointer-events: none; }
.scene-vis.on { opacity: 1; transform: none; }
.scene { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; opacity: .3; transition: opacity .4s; }
.scene.on { opacity: 1; }
.scene h3 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; color: var(--ink); }
.scene p:last-child { font-size: 17.5px; max-width: 44ch; color: var(--text); }

/* ---------- Specs ---------- */
.spec-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; }
.spec h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; color: var(--acc); margin-bottom: 12px; }
html[lang='ar'] .spec h3 { letter-spacing: 0; font-size: 17px; }
.spec dl { margin: 0; display: grid; }
.spec dl div { display: flex; justify-content: space-between; gap: 18px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec dl div:last-child { border: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; color: var(--ink); font-weight: 600; text-align: end; }
.spec-note { margin-top: 16px; }

/* ---------- Compare ---------- */
.cmp-wrap { overflow-x: auto; margin-top: 36px; border: 1px solid var(--line); border-radius: 20px; }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15.5px; }
.cmp th, .cmp td { padding: 15px 18px; text-align: start; border-bottom: 1px solid var(--line); }
.cmp thead th { font-size: 14px; color: var(--muted); font-weight: 700; background: rgba(255, 255, 255, .02); }
.cmp tbody th { font-weight: 600; color: var(--ink); }
.cmp td { color: var(--text); }
.cmp .us { background: rgba(255, 205, 0, .05); color: var(--ink); }
.cmp thead .us { color: var(--acc); }
.cmp tr:last-child > * { border-bottom: 0; }
.cmp .yes svg { width: 22px; height: 22px; fill: none; stroke: var(--acc); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cmp .no { color: #6b5b85; }

/* ---------- Use-case cards ---------- */
.ucards { display: grid; gap: 18px; margin-top: 40px; }
.ucards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.ucards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ucards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.ucard { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; transition: border-color .25s, transform .25s; }
.ucard:hover { border-color: rgba(255, 205, 0, .3); transform: translateY(-3px); }
.ucard .spot-icon { margin-bottom: 6px; }
.ucard-tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--acc); border: 1px solid rgba(255, 205, 0, .25); border-radius: 999px; padding: 3px 10px; }
.ucard h3 { font-size: 19px; color: var(--ink); }
.ucard p { color: var(--muted); font-size: 15.5px; }
.ucard ul { display: grid; gap: 6px; margin-top: 4px; font-size: 14.5px; }
.ucard li { display: flex; gap: 9px; }
.ucard li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); margin-top: 9px; flex: none; }

/* ---------- Pricing + add-ons ---------- */
.plans { margin-top: 40px; }
.plans.cols-1 { grid-template-columns: minmax(0, 520px); justify-content: center; }
.plans.cols-2 { grid-template-columns: repeat(2, 1fr); }
.plans.cols-4 { grid-template-columns: repeat(4, 1fr); }
.plan { overflow: hidden; }
.plan h3 { font-size: 24px; font-weight: 800; color: var(--ink); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; border-block: 1px solid var(--line); padding-block: 14px; }
.plan-price small { width: 100%; font-size: 13px; color: var(--muted); font-weight: 600; }
.plan-price b { font-family: var(--mono); font-size: clamp(30px, 3vw, 40px); color: var(--acc); letter-spacing: -.03em; }
.plan-price span { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan-setup { font-size: 14px; color: var(--muted); margin-top: -4px; }
.plans-note { margin-top: 18px; }
.addon-list { display: grid; gap: 12px; margin-top: 36px; }
.addon { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
.addon .spot-icon { margin: 0; }
.addon h3 { font-size: 17px; color: var(--ink); }
.addon p { color: var(--muted); font-size: 15px; }
.addon-price { font-family: var(--mono); font-weight: 700; color: var(--acc); white-space: nowrap; text-align: end; }

/* ---------- Checklist / callout ---------- */
.bcheck-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.glow-card { position: relative; overflow: hidden; background: linear-gradient(150deg, rgba(63, 6, 121, .75), rgba(18, 4, 40, .9)); border: 1px solid rgba(255, 205, 0, .22); border-radius: 24px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; }
.glow-card::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; inset-inline-end: -90px; top: -130px; background: radial-gradient(circle, rgba(255, 205, 0, .18), transparent 65%); pointer-events: none; }
.glow-card > * { position: relative; z-index: 1; }
.glow-card h3, .glow-card .h3 { color: var(--ink); font-size: clamp(22px, 2.2vw, 28px); }
.glow-card p { color: #ddd0ef; }
.glow-card .btn { justify-self: start; }
.glow-card.wide .prose { max-width: 70ch; }

/* ---------- Platform ---------- */
.bplatform .h2.center { margin-inline: auto; }
.bplatform .eyebrow, .bplatform .lead { display: flex; justify-content: center; text-align: center; margin-inline: auto; }
.platform-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: center; margin-top: 44px; }

/* Contact side notes */
.side-note { border-top: 1px solid var(--line); padding-top: 14px; }
.side-note h3 { font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.side-note p { color: var(--muted); font-size: 15px; }

/* Rules additions */
.rule h3 { font-size: 22px; margin: 6px 0 8px; color: var(--ink); }
.rule .prose, .rule p { color: var(--muted); }
.rule .checks { font-size: 15.5px; color: var(--text); }
.rule-link { margin-top: 14px; }
.rule-link a { color: var(--acc); font-weight: 600; }

/* Reveal */
.js .vis[data-reveal], .js .glow-card[data-reveal] { transform: translateY(24px) scale(.985); }

@media (max-width: 1020px) {
  .bhero.has-vis .bhero-grid, .bsplit-grid, .bday-grid, .scenes-grid, .bcheck-grid, .platform-grid { grid-template-columns: 1fr; }
  .bsplit.rev .bsplit-copy { order: 0; }
  .bday-head { position: static; }
  .spot-grid.cols-3, .spot-grid.cols-4, .ucards.cols-3, .ucards.cols-4, .plans.cols-4 { grid-template-columns: 1fr 1fr; }
  .plans.cols-2 { grid-template-columns: 1fr; }
  .scenes-stage { top: 72px; z-index: 2; background: var(--paper); padding-block: 10px; }
  .scene { min-height: 55vh; justify-content: flex-start; padding-top: 16px; }
  .scenes-stage .phone { width: min(200px, 46vw); }
}
@media (max-width: 640px) {
  .spot-grid.cols-2, .spot-grid.cols-3, .spot-grid.cols-4, .ucards.cols-2, .ucards.cols-3, .ucards.cols-4, .plans.cols-4 { grid-template-columns: 1fr; }
  .addon { grid-template-columns: 1fr; gap: 10px; }
  .addon-price { text-align: start; }
  .day::before { inset-inline-start: 6px; }
  .day li { grid-template-columns: 1fr; gap: 6px; padding-inline-start: 26px; }
  .day time { text-align: start; padding-top: 0; }
  .day li > div::before { inset-inline-start: -25px; top: -16px; }
  .trio .phone { width: 30vw; }
  .hudc li { max-width: 92%; }
  .spec dl div { flex-direction: column; gap: 2px; }
  .spec dd { text-align: start; }
}
.vis, .bsplit-grid > *, .bhero-grid > *, .platform-grid > *, .scenes-grid > *, .bday-grid > *, .bcheck-grid > * { min-width: 0; }
@media (max-width: 640px) { .trio { gap: 8px; } .trio .phone { width: calc((100% - 16px) / 3); } }
.center-actions { justify-content: center; }
@media (max-width: 640px) {
  .cmp-wrap { border: 0; overflow: visible; }
  .cmp { min-width: 0; display: block; }
  .cmp thead { display: none; }
  .cmp tbody, .cmp tr { display: block; }
  .cmp tr { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; background: var(--surface); }
  .cmp tbody th { display: block; padding: 14px 16px 8px; border: 0; font-size: 16px; }
  .cmp td { display: flex; justify-content: space-between; gap: 14px; padding: 9px 16px; border: 0; border-top: 1px solid var(--line); }
  .cmp td::before { content: attr(data-label); color: var(--muted); font-size: 13.5px; }
  .cmp td.us::before { color: var(--acc); font-weight: 700; }
}
.mq-row { direction: ltr; }
.mq-item { unicode-bidi: isolate; }
html[dir='rtl'] .mq-row { animation: mq-rtl 40s linear infinite; }
@keyframes mq-rtl { to { transform: translateX(50%); } }


/* =====================================================================
   Light mode (default) touches for the block library. Visual "screens"
   (.vis, glow cards, CTA bands) keep their dark look in both modes.
   ===================================================================== */
html[data-theme='light'] :is(.vis, .story, .glow-card, .cta-band, .calc-out, .close-box) { color: var(--text); }
html[data-theme='light'] body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 45% at 75% 0%, rgba(255, 205, 0, .12), transparent 55%),
              radial-gradient(ellipse 80% 60% at 5% 25%, rgba(63, 6, 121, .07), transparent 60%); }
html[data-theme='light'] .hl { color: var(--violet); background: linear-gradient(transparent 62%, rgba(255, 205, 0, .55) 62%, rgba(255, 205, 0, .55) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html[data-theme='light'] :is(.glow-card, .cta-band, .close-box, .calc-out, .story) .hl { color: var(--yellow); background: none; }
html[data-theme='light'] .kicker i { box-shadow: 0 0 0 4px rgba(255, 205, 0, .25); }
html[data-theme='light'] :is(.stat-grid, .spot-grid) { box-shadow: var(--shadow); }
html[data-theme='light'] :is(.ucard, .spec, .addon, .day li > div, .cmp tr) { box-shadow: 0 1px 2px rgba(22, 10, 38, .04), 0 10px 28px -18px rgba(63, 6, 121, .25); }
html[data-theme='light'] .ucard:hover { border-color: rgba(63, 6, 121, .35); }
html[data-theme='light'] .ucard-tag { border-color: rgba(63, 6, 121, .25); background: var(--violet-50); }
html[data-theme='light'] .spot-icon.yi { color: var(--violet-900); border-color: rgba(230, 184, 0, .45); }
html[data-theme='light'] .spot-icon.pi { border-color: rgba(63, 6, 121, .18); }
html[data-theme='light'] .checks svg { background: rgba(255, 205, 0, .35); }
html[data-theme='light'] .cmp .us { background: rgba(255, 205, 0, .12); }
html[data-theme='light'] .cmp thead th { background: var(--violet-50); }
html[data-theme='light'] .cmp-wrap { background: #fff; }
html[data-theme='light'] .day-tag { background: var(--violet-50); }
html[data-theme='light'] .mq-sep { opacity: .8; }
html[data-theme='light'] .spot::before, html[data-theme='light'] .ucard::before { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(63, 6, 121, .06), transparent 70%); }

/* Logo per mode + theme toggle */
.logo-on-dark { display: none; }
html[data-theme='dark'] .logo-on-dark { display: block; }
html[data-theme='dark'] .logo-on-light { display: none; }
.theme-btn { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--white); color: var(--violet); cursor: pointer; transition: border-color .2s, transform .2s; }
.theme-btn:hover { border-color: var(--violet); transform: rotate(-12deg); }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }
html[data-theme='dark'] .theme-btn { color: var(--yellow); background: transparent; border-color: rgba(255, 255, 255, .18); }
html[data-theme='dark'] .theme-btn:hover { border-color: var(--yellow); }
html[data-theme='dark'] .theme-btn .i-sun { display: block; }
html[data-theme='dark'] .theme-btn .i-moon { display: none; }
html[data-theme='light'] .step-tag { color: var(--violet); }
html[data-theme='light'] .story .step-tag { color: var(--yellow); }
.plan-price b { font-size: clamp(24px, 2.4vw, 32px); }
