/*
 * FLASH POS landing page — single stylesheet, no external fonts or libraries.
 * Visual identity: docs/BRAND.md ("Fire"). Layout uses logical properties
 * (inline-start/end) so dir="rtl" mirrors the page for Arabic.
 */

/* ---------- Tokens ---------- */
:root {
  --font: 'Segoe UI', Tahoma, system-ui, -apple-system, 'Noto Sans Arabic', 'Helvetica Neue', Arial, sans-serif;

  /* Brand — docs/BRAND.md (exact values). */
  --fire-orange: #FF6A1A;
  --fire-red: #E0242A;
  --fire: #DC341C;
  --fire-deep: #B3141F;
  --fire-soft: #FFEDE5;
  --on-fire-soft: #8A1F0E;
  --fire-on-dark: #FF8A4C;
  --on-fire-on-dark: #2B0A00;
  --flame: #FFB23F;
  --ember: #160C0A;
  --fire-gradient: linear-gradient(135deg, #FF6A1A 0%, #E0242A 100%);
  --fire-gradient-x: linear-gradient(90deg, #FF6A1A 0%, #E0242A 100%); /* buttons & bars: left → right */
  --fire-hero-gradient: linear-gradient(135deg, #FF7A1A 0%, #E0242A 45%, #7A0E12 100%);

  /* Neutrals stay neutral. */
  --bg: #ffffff;
  --bg-alt: #f5f5f6;
  --surface: #ffffff;
  --text: #141416;
  --text-muted: #52525b;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;

  /* Dark (ember) surfaces. */
  --ember-2: #221310;
  --ink-text: #f7f0ed;
  --ink-muted: #c9bcb7;
  --ink-border: rgba(255, 236, 228, 0.12);

  /* Meaningful colors keep their hue. */
  --success: #067647;
  --whatsapp: #15803d;
  --st-free: #2E7D32;
  --st-busy: #E65100;
  --st-bill: #7B1FA2;
  --st-wait: #1565C0;

  --focus: var(--fire);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 22, 0.06);
  --shadow: 0 18px 40px -24px rgba(20, 20, 22, 0.28);
  --shadow-fire: 0 24px 48px -26px rgba(179, 20, 31, 0.55);
  --header-h: 66px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="ar"] body { line-height: 1.8; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, p, figure { margin: 0; }

h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

h3 { font-size: 1.15rem; line-height: 1.35; font-weight: 700; }
h4 { font-size: 1rem; line-height: 1.4; font-weight: 700; }

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 { letter-spacing: 0; }
html[lang="ar"] h2 { line-height: 1.4; font-weight: 700; }
html[lang="ar"] h3 { line-height: 1.5; }

a { color: var(--fire); text-underline-offset: 3px; }
a:hover { color: var(--fire-deep); }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

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

/* Focus ring on dark and fire surfaces. */
.site-header,
.trust,
.stats,
.section-dark,
.walkie,
.bento-card-dark,
.plan-featured,
.site-footer,
.lightbox { --focus: var(--fire-on-dark); }
.hero,
.cta { --focus: #ffffff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

main:focus { outline: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* Primary: white text (700) on the fire gradient, left → right (BRAND.md). */
.btn-primary {
  background-color: var(--fire-red);
  background-image: var(--fire-gradient-x);
  color: #fff;
  text-shadow: 0 1px 1px rgba(110, 10, 14, 0.35);
  box-shadow: 0 10px 24px -12px rgba(224, 36, 42, 0.95);
}
.btn-primary:hover {
  background-image: linear-gradient(90deg, var(--fire-red) 0%, var(--fire-deep) 100%);
  color: #fff;
  box-shadow: 0 14px 28px -12px rgba(179, 20, 31, 0.95);
}
.btn-primary:active { background-image: none; background-color: var(--fire-deep); }

/* On fire / ember surfaces. */
.btn-light {
  background: #fff;
  color: var(--fire-deep);
  box-shadow: 0 16px 32px -16px rgba(60, 0, 0, 0.7);
}
.btn-light:hover { background: var(--fire-soft); color: var(--on-fire-soft); }

.btn-ghost-light { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: #fff; }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.btn-outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.06); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 10px 24px -12px rgba(21, 128, 61, 0.85); }
.btn-whatsapp:hover { background: #166534; color: #fff; }

.phone-num { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 12, 10, 0.9);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  color: var(--ink-text);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--ink-border); background: rgba(22, 12, 10, 0.96); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: #fff; }

.brand-logo { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo img { height: 38px; width: auto; }
.brand-footer .brand-logo img { height: 104px; }
.brand-logo .brand-tag-fallback { display: none; }
.brand-footer .img-missing .brand-tag-fallback { display: inline-block; }
.brand-wordmark {
  display: none;
  font-size: 1.35rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #fff;
}

/* "POS" pill, matching the brand lockup (white pill, heavy italic). */
.brand-tag {
  display: inline-block;
  padding: 1px 10px 2px;
  border-radius: 999px;
  background: #fff;
  color: var(--ember);
  font-size: 0.78rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

[data-img-fallback].img-missing img { display: none; }
[data-img-fallback].img-missing .brand-wordmark { display: inline; }

.site-nav { margin-inline-start: auto; }
.nav-list { display: flex; gap: 2px; }
.nav-list a {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: #ecdfda;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-list a::after {
  content: '';
  position: absolute;
  inset-inline: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--fire-gradient-x);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-list a:hover { color: #fff; }
.nav-list a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.lang-toggle .icon { width: 1.1em; height: 1.1em; color: var(--fire-on-dark); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.site-header.nav-open .nav-toggle .icon-open { display: none; }
.site-header.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1023px) {
  .js .nav-toggle { display: inline-flex; }
  .header-inner { gap: 12px; }
  .header-actions { margin-inline-start: auto; }
  .js .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ember);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--ink-border);
  }
  .js .site-header.nav-open .site-nav { display: block; }
  .js .nav-list { flex-direction: column; gap: 2px; }
  .js .nav-list a { padding: 12px; font-size: 1rem; }
  .js .nav-list a::after { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .site-nav { order: 3; width: 100%; overflow-x: auto; }
}

@media (max-width: 520px) {
  .header-cta { display: none; }
}

/* ---------- Hero ----------
   A big title, one supporting line and the two calls to action; the
   product mockup on the end side (below the copy under 1024 px). */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 88px);
  background: var(--fire-hero-gradient);
  color: #fff;
}
/* A deep-red shade behind the copy, so white text never sits on the bright
   orange corner of the gradient (BRAND.md: small text on the red/deep part). */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(72% 95% at 12% 40%, rgba(84, 6, 10, 0.55) 0%, rgba(84, 6, 10, 0.3) 50%, rgba(84, 6, 10, 0) 82%);
}
[dir="rtl"] .hero::before {
  background: radial-gradient(72% 95% at 88% 40%, rgba(84, 6, 10, 0.55) 0%, rgba(84, 6, 10, 0.3) 50%, rgba(84, 6, 10, 0) 82%);
}
/* Faint dot texture behind the mockup. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(48% 62% at 76% 34%, #000 0%, transparent 78%);
  mask-image: radial-gradient(48% 62% at 76% 34%, #000 0%, transparent 78%);
}
[dir="rtl"] .hero::after {
  -webkit-mask-image: radial-gradient(48% 62% at 24% 34%, #000 0%, transparent 78%);
  mask-image: radial-gradient(48% 62% at 24% 34%, #000 0%, transparent 78%);
}

.hero .container { max-width: 1360px; }
.hero-inner {
  display: grid;
  gap: clamp(32px, 5vw, 48px);
}
.hero-copy { position: relative; z-index: 1; max-width: 640px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-block: 5px;
  padding-inline: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(22, 12, 10, 0.32);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.eyebrow .icon { width: 1.05em; height: 1.05em; color: var(--flame); fill: var(--flame); }

.hero-title {
  margin-top: 24px;
  font-size: clamp(3rem, 1.2rem + 4.4vw, 5.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}
html[lang="ar"] .hero-title { font-size: clamp(2.9rem, 1.4rem + 4.1vw, 4.9rem); font-weight: 700; line-height: 1.22; }
.hero-title-main,
.hero-title-hi { display: block; text-wrap: balance; }
.hero-title-hi { width: fit-content; max-width: 100%; }
/* Flame underline (amber is a highlight, never behind text). */
.hero-title-hi::after {
  content: '';
  display: block;
  height: 0.08em;
  margin-top: 0.1em;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--flame) 0%, var(--flame) 55%, rgba(255, 178, 63, 0) 100%);
}
[dir="rtl"] .hero-title-hi::after {
  background: linear-gradient(270deg, var(--flame) 0%, var(--flame) 55%, rgba(255, 178, 63, 0) 100%);
}

.hero-lead {
  max-width: 30ch;
  margin-top: 26px;
  color: #fff;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  font-weight: 500;
  line-height: 1.5;
}
html[lang="ar"] .hero-lead { max-width: 32ch; line-height: 1.75; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
@media (min-width: 1024px) and (max-width: 1365px) {
  .hero-ctas .btn-lg { padding-inline: 20px; }
}
@media (max-width: 1023px) {
  .hero::before,
  [dir="rtl"] .hero::before { background: linear-gradient(180deg, rgba(84, 6, 10, 0.52) 0%, rgba(84, 6, 10, 0.42) 45%, rgba(84, 6, 10, 0) 72%); }
  /* dots behind the mockup only, never behind the copy */
  .hero::after,
  [dir="rtl"] .hero::after {
    -webkit-mask-image: radial-gradient(75% 30% at 50% 82%, #000 0%, transparent 78%);
    mask-image: radial-gradient(75% 30% at 50% 82%, #000 0%, transparent 78%);
  }
}

/* ---------- Product mockup: the hero cover ----------
   <figure class="showcase"><picture class="showcase-frame"> holds one 3:2
   render per language (main.js swaps the files: data-lang-picture; see
   README "Product mockup"). No frame. From 1024 px it is the background of
   the hero's end side: bottom-aligned (the podium meets the strip below),
   as tall as the hero allows without reaching the copy column — so the
   devices never sit behind the text and none is cut — and height-bound on
   wide screens, where the hero gradient fills the rest. Its inner and top
   edges fade into the gradient; the fades stop before the first device.
   Below 1024 px it follows the copy, edge to edge, with a soft top fade. */
.showcase { margin: 0; }
.showcase-frame { display: block; }
.showcase-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.showcase.is-missing .showcase-img { visibility: hidden; }

@media (max-width: 1023px) {
  .hero { padding-bottom: 0; }
  .hero-showcase { margin-inline: calc(-1 * var(--gutter)); }
  .hero-showcase .showcase-img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%);
    mask-image: linear-gradient(180deg, transparent 0, #000 14%);
  }
}

@media (min-width: 1024px) {
  .hero {
    --copy-w: clamp(400px, 38vw, 560px);
    --mock-gap: clamp(36px, calc(112px - 4vw), 64px);
    display: flex;
    align-items: center;
    min-height: clamp(640px, 46vw, 720px);
  }
  .hero-inner { display: block; }
  .hero-copy { max-width: var(--copy-w); }
  .hero-showcase {
    position: absolute;
    z-index: 0;
    inset-block-end: 0;
    inset-inline-end: 0;
    /* (viewport − container start − copy column − gap) ÷ (1.5 × 0.9375):
       the tablet starts 6.25 % into the render, so it stays clear of the copy. */
    height: min(100%, calc((100vw - max(32px, 50vw - 648px) - var(--copy-w) - var(--mock-gap)) / 1.40625));
    aspect-ratio: 3 / 2;
  }
  .hero-showcase .showcase-frame,
  .hero-showcase .showcase-img { height: 100%; }
  .hero-showcase .showcase-img {
    /* inner edge, top edge, and a diagonal that reaches ~19 % in at the top
       and nothing at the bottom (no device in the upper inner corner) */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5.5%), linear-gradient(180deg, transparent 0, #000 11%), linear-gradient(110deg, transparent 0, #000 15%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 5.5%), linear-gradient(180deg, transparent 0, #000 11%), linear-gradient(110deg, transparent 0, #000 15%);
    mask-composite: intersect;
  }
  /* RTL: the render sits on the left; its right (inner) edge fades. The
     printer ends closer to that edge than the tablet does on the other side,
     and the Arabic buttons are wider: keep a larger gap. */
  [dir="rtl"] .hero { --mock-gap: clamp(64px, calc(140px - 4vw), 92px); }
  [dir="rtl"] .hero-showcase .showcase-img {
    -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 4.5%), linear-gradient(180deg, transparent 0, #000 11%), linear-gradient(250deg, transparent 0, #000 15%);
    mask-image: linear-gradient(270deg, transparent 0, #000 4.5%), linear-gradient(180deg, transparent 0, #000 11%), linear-gradient(250deg, transparent 0, #000 15%);
  }
}

/* ---------- Device frames (phone apps section) ----------
   <div class="devices devices--solo-tablet | devices--solo-phone"> holds a
   .devices-stage: a fixed aspect-ratio box and a size container, so the sizes
   inside are in cqw (1% of the stage width) and the drawing scales as one
   picture. A .device is a black bezel (.device-body) around a .device-screen
   (itself a size container), which holds a small HTML screen (.ui) or an
   <img class="device-img">. The drawing never mirrors (direction: ltr); the
   texts inside follow the page language. */
.devices { position: relative; margin: 0; }
.devices-stage {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 100 / 64;
  direction: ltr;
}
.devices-glow {
  position: absolute;
  inset: -6% -4% 6%;
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 54%, rgba(255, 178, 63, 0.5) 0%, rgba(255, 122, 26, 0.26) 42%, rgba(255, 106, 26, 0) 74%);
}
/* The podium: a dark disc with a glowing fire rim. The element is the side
   of the disc; ::after is its top surface. */
.devices-podium {
  position: absolute;
  left: 8%;
  width: 84%;
  top: 71%;
  height: 25%;
  border-radius: 50%;
  background: linear-gradient(180deg, #1f0e0b 0%, #0b0505 100%);
  box-shadow:
    0 0.35cqw 0 0 rgba(255, 122, 26, 0.7),
    0 0 1.6cqw 0.2cqw rgba(255, 106, 26, 0.45),
    0 3cqw 6cqw -1cqw rgba(50, 0, 0, 0.75);
}
.devices-podium::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -15%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(62% 60% at 50% 42%, #3d1e17 0%, #261310 52%, #170a08 100%);
  box-shadow:
    inset 0 0 0 0.24cqw rgba(255, 168, 110, 0.9),
    inset 0 -1.4cqw 2.6cqw rgba(255, 106, 26, 0.3),
    0 0 1.8cqw 0.25cqw rgba(255, 106, 26, 0.75);
}

.device { position: absolute; }
.device-body {
  position: relative;
  padding: var(--bezel, 1cqw);
  border-radius: var(--round, 2cqw);
  background: linear-gradient(150deg, #48484f 0%, #1c1c20 20%, #0d0d0f 58%, #050506 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1.6cqw 3.2cqw -1cqw rgba(40, 0, 0, 0.75),
    0 0.4cqw 0.9cqw rgba(40, 0, 0, 0.35);
}
.device-screen {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  aspect-ratio: var(--ratio, 16 / 10);
  border-radius: max(2px, calc(var(--round, 2cqw) - var(--bezel, 1cqw)));
  background: #f4f4f5;
}
/* Glass reflection. */
.device-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 26%, rgba(255, 255, 255, 0) 40%);
}
.device-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Tablet (FLASH Waiter): 16:10 on a swivel stand. */
.device--tablet { --ratio: 16 / 10; z-index: 2; }
.device-stand {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 100%;
  width: 4.6cqw;
  height: 5cqw;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #0b0b0d 0%, #393940 42%, #1b1b1f 68%, #0b0b0d 100%);
}
.device-stand::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 26cqw;
  height: 2cqw;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #4a4a52 0%, #1d1d21 40%, #0b0b0d 100%);
  box-shadow: 0 0.5cqw 1cqw rgba(30, 0, 0, 0.6);
}

/* Phone (FLASH Caller ID): 1080 x 2400 portrait. */
.device--phone { --ratio: 1080 / 2400; z-index: 4; }
.device-island {
  position: absolute;
  z-index: 3;
  top: 2%;
  left: 50%;
  width: 28%;
  height: 2.5%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050506;
}

.devices--solo-tablet .device--tablet { --bezel: 1.8cqw; --round: 3.2cqw; left: 13%; top: 6%; width: 74%; }
.devices--solo-phone .device--phone { --bezel: 1.1cqw; --round: 4cqw; left: 37%; top: 2%; width: 26%; }

/* Floating notifications. */
.devices-chip {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.65em;
  max-width: 38cqw;
  padding-block: 0.55em;
  padding-inline: 0.55em 1em;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  box-shadow: 0 14px 32px -14px rgba(60, 0, 0, 0.7), 0 0 0 1px rgba(20, 20, 22, 0.05);
  font-size: clamp(0.68rem, 1.6cqw, 0.86rem);
  line-height: 1.3;
  text-align: start;
  animation: chip-float 7s ease-in-out infinite;
}
[dir="rtl"] .devices-chip { direction: rtl; }
.chip-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5em;
  height: 2.5em;
  border-radius: 10px;
  background: var(--st-free);
  color: #fff;
}
.chip-icon .icon { width: 1.3em; height: 1.3em; }
.chip-text { display: grid; min-width: 0; }
.chip-text b { font-weight: 700; }
.chip-text span { color: var(--text-muted); font-size: 0.9em; }
.devices-chip--sent { right: 2%; bottom: 18%; }
.devices-chip--ring { right: 2%; top: 28%; max-width: 33cqw; animation-delay: -3.5s; }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.9cqw); }
}
@media (max-width: 599px) {
  .devices-chip { max-width: 44cqw; }
  .devices-chip--ring { max-width: 36cqw; }
  .chip-text span { display: none; }
}

/* Small HTML app screens (sizes in cqw of the screen, never under 6.5 px). */
.ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #f4f4f5;
  color: var(--text);
  line-height: 1.3;
  text-align: start;
}
[dir="rtl"] .ui { direction: rtl; }
.ui p { margin: 0; }
.ui-waiter { font-size: max(7px, 3.5cqw); }
.ui-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 3cqw 5cqw;
  background-image: var(--fire-gradient-x);
  color: #fff;
}
.ui-bar b { font-size: 1.15em; font-weight: 700; }
.ui-user { padding: 0.12em 0.8em; border-radius: 999px; background: rgba(255, 255, 255, 0.24); font-size: 0.85em; font-weight: 600; }
.ui-tiles {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: center;
  gap: 2.4cqw;
  padding: 2.6cqw 7cqw;
}
.ui-tiles .tile { border-radius: 2.6cqw; border-width: max(1px, 0.3cqw); font-size: 1em; }
.ui-tiles .tile i { font-size: 0.8em; }
.ui-tiles .tile .icon { width: 1.2em; height: 1.2em; }

.ui-caller { gap: 4.5cqw; padding: 13cqw 6cqw 6cqw; font-size: max(6.5px, 7cqw); }
.ui-card {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  padding: 6cqw 7cqw;
  border-radius: 6cqw;
  background-image: var(--fire-gradient);
  color: #fff;
  box-shadow: 0 3cqw 6cqw -3cqw rgba(179, 20, 31, 0.8);
}
.ui-live { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.8em; font-weight: 600; }
.ui-live i { width: 0.55em; height: 0.55em; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0.18em rgba(74, 222, 128, 0.35); }
.ui-card b { font-size: 1.15em; font-weight: 800; letter-spacing: 0.01em; }
.ui-heading { margin-top: 1cqw; color: var(--text-muted); font-size: 0.85em; font-weight: 700; }
.ui-calls { display: grid; gap: 3cqw; }
.ui-calls li {
  display: flex;
  align-items: center;
  gap: 3cqw;
  padding: 3cqw;
  border-radius: 4.5cqw;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 20, 22, 0.08);
}
.ui-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--fire-soft);
  color: var(--fire);
  font-size: 0.85em;
  font-weight: 800;
}
.ui-who { display: grid; flex: 1; min-width: 0; }
.ui-who b { overflow: hidden; font-size: 0.92em; text-overflow: ellipsis; white-space: nowrap; }
.ui-type {
  justify-self: start;
  padding: 0.02em 0.55em;
  border-radius: 999px;
  color: #fff;
  font-size: 0.7em;
  font-style: normal;
  font-weight: 700;
}
.ui-type--delivery { background: #3949AB; }
.ui-type--takeaway { background: #795548; }
.ui-time { flex-shrink: 0; color: var(--text-muted); font-size: 0.72em; font-variant-numeric: tabular-nums; }

/* ---------- Highlights strip ---------- */
.trust {
  position: relative;
  background: var(--ember);
  color: var(--ink-text);
}
.trust::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--fire-gradient-x);
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  padding-block: 24px;
}
.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f1e6e2;
  font-size: 0.95rem;
  font-weight: 600;
}
.trust-list .icon { color: var(--fire-on-dark); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--bg-alt); }
.section-dark {
  position: relative;
  background:
    radial-gradient(55% 70% at 100% 0%, rgba(224, 36, 42, 0.3), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(255, 106, 26, 0.14), transparent 70%),
    var(--ember);
  color: var(--ink-text);
}
[dir="rtl"] .section-dark {
  background:
    radial-gradient(55% 70% at 0% 0%, rgba(224, 36, 42, 0.3), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(255, 106, 26, 0.14), transparent 70%),
    var(--ember);
}

.section-head {
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: clamp(36px, 5vw, 56px);
  text-align: center;
}
.section-head-start { margin-inline: 0; text-align: start; }
.section-head-split { max-width: none; text-align: start; display: grid; gap: 14px 56px; align-items: end; }
@media (min-width: 960px) {
  .section-head-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .section-head-split .section-lead { margin-top: 0; }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--fire-soft);
  color: var(--on-fire-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fire-gradient);
}
.section-dark .kicker,
.walkie .kicker { background: rgba(255, 138, 76, 0.14); color: var(--fire-on-dark); }
html[lang="ar"] .kicker { letter-spacing: 0; text-transform: none; font-size: 0.92rem; }

.section-lead {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.12rem;
}
.section-dark .section-lead { color: var(--ink-muted); }

/* Icon tiles. */
.feature-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--fire-soft);
  color: var(--fire);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature-icon-fire { background: var(--fire-gradient); color: #fff; box-shadow: 0 12px 24px -12px rgba(224, 36, 42, 0.9); }
.feature-icon-dark { background: rgba(255, 138, 76, 0.13); color: var(--fire-on-dark); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f3e9e5;
  font-size: 0.86rem;
  font-weight: 600;
}

/* ---------- Business types ---------- */
.biz-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 600px) { .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .biz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.biz-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.biz-card:hover { transform: translateY(-3px); border-color: rgba(220, 52, 28, 0.35); box-shadow: var(--shadow-fire); }
.biz-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background: var(--fire-gradient);
  color: #fff;
  box-shadow: 0 14px 26px -14px rgba(224, 36, 42, 0.95);
}
.biz-icon .icon { width: 28px; height: 28px; }
.biz-card h3 { margin-top: 18px; font-size: 1.22rem; }
.biz-card p { margin-top: 6px; max-width: 34ch; color: var(--text-muted); }
.biz-mark {
  position: absolute;
  z-index: -1;
  inset-block-start: 14px;
  inset-inline-end: 12px;
  width: 92px;
  height: 92px;
  fill: none;
  stroke: var(--fire-soft);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Stats band ---------- */
.stats {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 6vw, 84px);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(224, 36, 42, 0.3), transparent 70%),
    var(--ember);
  color: var(--ink-text);
}
.stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 860px) { .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1180px) { .stats-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 339px) { .stats-grid { grid-template-columns: minmax(0, 1fr); } }

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(20px, 2.4vw, 26px) clamp(10px, 1.6vw, 18px);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  text-align: center;
}
.stat-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--fire-gradient);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(224, 36, 42, 0.95);
}
.stat-icon .icon { width: 22px; height: 22px; }
.stat-value {
  margin-top: 14px;
  color: #fff;
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.1rem);
  font-weight: 700; /* Segoe UI Bold has tabular digits; 800+ maps to Black, which has none */
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* main.js reserves the final width (min-width) before counting; the digits
   hug the side of that box where the sign sits, so the sign never moves:
   the right in English and for a unit ("100%"), the left for an Arabic
   suffix ("+150"). */
.stat-num { display: inline-block; text-align: right; }
[dir="rtl"] .stat-ltr:not(:last-child) .stat-num { text-align: left; }
.stat-unit,
.stat-suffix { color: var(--fire-on-dark); }
.stat-label {
  margin-top: 8px;
  max-width: 22ch;
  color: var(--ink-muted);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.45;
}
@media (max-width: 480px) {
  .stat-icon { width: 40px; height: 40px; border-radius: 12px; }
  .stat-icon .icon { width: 20px; height: 20px; }
  .stat-value { margin-top: 10px; }
  .stat-label { font-size: 0.9rem; }
}

/* ---------- Features ---------- */
.bento {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-orders,
  .bento-tables,
  .bento > :last-child { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento > * { grid-column: span 2; }
  .bento > .bento-orders,
  .bento > .bento-tables { grid-column: span 3; }
  .bento > :last-child { grid-column: span 2; }
}

.bento-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bento-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bento-card h3 { margin-top: 18px; font-size: 1.22rem; }
.bento-card p { margin-top: 8px; color: var(--text-muted); font-size: 0.98rem; }
.bento-orders h3,
.bento-tables h3 { font-size: 1.45rem; }

.bento-card-dark {
  border-color: transparent;
  background:
    radial-gradient(90% 110% at 100% 0%, rgba(224, 36, 42, 0.5), transparent 62%),
    linear-gradient(160deg, #2a1511 0%, var(--ember) 70%);
  color: var(--ink-text);
}
[dir="rtl"] .bento-card-dark {
  background:
    radial-gradient(90% 110% at 0% 0%, rgba(224, 36, 42, 0.5), transparent 62%),
    linear-gradient(200deg, #2a1511 0%, var(--ember) 70%);
}
.bento-card-dark p { color: var(--ink-muted); }
.bento-card-dark:hover { box-shadow: var(--shadow-fire); }

/* Mini table floor (status colors as in the POS and the Waiter App). */
.floor { margin-top: 22px; }
.floor-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 460px;
}
@media (max-width: 420px) { .floor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  aspect-ratio: 1;
  border: 1.5px solid transparent;
  border-radius: 14px;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.15;
}
.tile b { font-weight: 800; }
.tile i { font-style: normal; font-size: 0.76rem; font-weight: 700; }
.tile .icon { width: 17px; height: 17px; }
.tile-free { background: #fff; border-color: #b7dcb9; color: #1b5e20; }
.tile-busy { background: var(--st-busy); }
.tile-bill { background: var(--st-bill); animation: bill-ring 2.4s ease-in-out infinite; }
.tile-wait { background: var(--st-wait); }
@keyframes bill-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(123, 31, 162, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(123, 31, 162, 0); }
}
.floor-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.floor-legend li { display: inline-flex; align-items: center; gap: 7px; }
.floor-legend li::before { content: ''; width: 10px; height: 10px; border-radius: 3px; }
.lg-free::before { background: var(--st-free); }
.lg-busy::before { background: var(--st-busy); }
.lg-bill::before { background: var(--st-bill); }
.lg-wait::before { background: var(--st-wait); }

.more-title {
  margin-top: clamp(48px, 6vw, 72px);
  margin-bottom: 8px;
  font-size: 1.3rem;
  font-weight: 800;
}
.more-grid {
  display: grid;
  column-gap: 32px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.more-item {
  display: flex;
  gap: 14px;
  padding-block: 20px;
  border-bottom: 1px solid var(--border);
}
.more-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--fire-soft);
  color: var(--fire);
}
.more-icon .icon { width: 21px; height: 21px; }
.more-item p { margin-top: 4px; color: var(--text-muted); font-size: 0.94rem; }

/* ---------- Phone apps ---------- */
.app-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.app-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.app-visual {
  position: relative;
  overflow: hidden;
  padding: 18px 5% 0;
  background: var(--fire-hero-gradient);
}
.app-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.6px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.app-visual .devices { z-index: 1; max-width: 560px; margin-inline: auto; }
.app-body { padding: 26px clamp(22px, 3vw, 34px) 32px; }
.app-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--fire-soft);
  color: var(--on-fire-soft);
  font-size: 0.86rem;
  font-weight: 700;
}
.app-tag .icon { width: 1.05em; height: 1.05em; }
.app-body h3 { margin-top: 14px; font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; }
.app-desc { margin-top: 8px; color: var(--text-muted); }

.check-list { display: grid; gap: 10px; margin-top: 18px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; }
.check-list .icon { width: 1.15em; height: 1.15em; margin-top: 0.2em; color: var(--fire); stroke-width: 2.6; }

.walkie {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 22px;
  padding: clamp(26px, 4vw, 48px);
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(55% 90% at 82% 50%, rgba(224, 36, 42, 0.42), transparent 70%),
    var(--ember);
  color: var(--ink-text);
}
[dir="rtl"] .walkie {
  background:
    radial-gradient(55% 90% at 18% 50%, rgba(224, 36, 42, 0.42), transparent 70%),
    var(--ember);
}
@media (min-width: 900px) { .walkie { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.walkie h3 { font-size: clamp(1.55rem, 1.1rem + 1.3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.walkie p { max-width: 580px; margin-top: 10px; color: var(--ink-muted); }
.walkie-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 12px; }
.walkie-dial { position: relative; display: grid; place-items: center; width: 132px; height: 132px; }
.walkie-btn {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--fire-gradient);
  color: #fff;
  box-shadow:
    0 0 0 10px rgba(255, 106, 26, 0.14),
    0 26px 50px -18px rgba(224, 36, 42, 0.95),
    inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.walkie-btn .icon { width: 52px; height: 52px; }
.walkie-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 138, 76, 0.6);
  border-radius: 50%;
  animation: walkie-ring 2.8s ease-out infinite;
}
.walkie-ring-2 { animation-delay: 1.4s; }
@keyframes walkie-ring {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(2); opacity: 0; }
}
.walkie-bars { display: flex; align-items: center; gap: 5px; height: 34px; margin-top: 24px; }
.walkie-bars i {
  width: 5px;
  height: 100%;
  border-radius: 3px;
  background: var(--fire-on-dark);
  transform-origin: center;
  animation: walkie-bar 1.1s ease-in-out infinite;
}
.walkie-bars i:nth-child(2) { animation-delay: -0.15s; }
.walkie-bars i:nth-child(3) { animation-delay: -0.45s; }
.walkie-bars i:nth-child(4) { animation-delay: -0.3s; }
.walkie-bars i:nth-child(5) { animation-delay: -0.6s; }
.walkie-bars i:nth-child(6) { animation-delay: -0.75s; }
.walkie-bars i:nth-child(7) { animation-delay: -0.9s; }
@keyframes walkie-bar {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}
.walkie-label { margin-top: 10px; color: var(--ink-text); font-size: 0.92rem; font-weight: 700; }

.apps-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}
.apps-note .icon { color: var(--fire); }

/* ---------- Gallery ---------- */
.gallery { max-width: 960px; margin-inline: auto; }
.gallery-tabs {
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
}
.gallery-tabs [role="tab"] {
  flex-shrink: 0;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.gallery-tabs [role="tab"]:hover { color: var(--text); background: #ebebed; }
.gallery-tabs [role="tab"][aria-selected="true"] {
  background-image: var(--fire-gradient-x);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(224, 36, 42, 0.95);
}

.gallery-panel { position: relative; isolation: isolate; }
.gallery-panel::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 6% 4% 16%;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(255, 106, 26, 0.38), rgba(224, 36, 42, 0.16) 60%, transparent);
  filter: blur(26px);
}

.window {
  overflow: hidden;
  border: 1px solid rgba(20, 20, 22, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 40px 80px -40px rgba(122, 14, 18, 0.6), 0 18px 40px -26px rgba(20, 20, 22, 0.45);
  text-align: start;
}
.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding-inline: 14px 6px;
  background: var(--ember);
  direction: ltr;
}
.window-title { color: #e8dcd7; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; }
.window-controls { display: flex; height: 100%; }
.window-controls i { position: relative; width: 40px; height: 100%; opacity: 0.75; }
.window-controls i::before,
.window-controls i::after { content: ''; position: absolute; inset-block-start: 50%; inset-inline-start: 50%; }
.window-controls i:nth-child(1)::before { width: 10px; height: 1px; background: #e8dcd7; transform: translate(-50%, -50%); }
.window-controls i:nth-child(2)::before { width: 9px; height: 9px; border: 1px solid #e8dcd7; transform: translate(-50%, -50%); }
.window-controls i:nth-child(3)::before,
.window-controls i:nth-child(3)::after { width: 12px; height: 1px; background: #e8dcd7; }
.window-controls i:nth-child(3)::before { transform: translate(-50%, -50%) rotate(45deg); }
.window-controls i:nth-child(3)::after { transform: translate(-50%, -50%) rotate(-45deg); }

.shot {
  --ph-a: #e7e7ea;
  --ph-b: #f0f0f2;
  --ph-accent: rgba(220, 52, 28, 0.28);
  --ph-bg: #fafafa;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--ph-bg);
  overflow: hidden;
}
.shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.shot.is-loaded .shot-img { opacity: 1; }
.shot.is-loaded .shot-ph { visibility: hidden; }
.shot.is-missing .shot-img { display: none; }

/* Styled placeholder shown until (or instead of) the real screenshot. */
.shot-ph {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 2.4%;
  padding: 2.4%;
}
.shot-ph i, .shot-ph b { display: block; border-radius: 6px; background: var(--ph-a); }
.ph-side { display: flex; flex-direction: column; gap: 5%; width: 17%; padding-top: 1%; }
.ph-side b { height: 7%; width: 70%; background: var(--ph-accent); }
.ph-side i { height: 4.5%; width: 90%; background: var(--ph-b); }
.ph-main { flex: 1; display: flex; flex-direction: column; gap: 4%; min-width: 0; }
.ph-top { display: flex; justify-content: space-between; height: 7%; }
.ph-top i { width: 32%; }
.ph-top i + i { width: 14%; }
.ph-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3%; height: 19%; }
.ph-cards i { border-radius: 10px; }
.ph-body { flex: 1; display: flex; gap: 3%; min-height: 0; }
.ph-chart {
  display: block;
  flex: 2;
  border-radius: 10px;
  background:
    linear-gradient(to top, var(--ph-accent) 0 38%, transparent 38%) 6% 100% / 7% 80% no-repeat,
    linear-gradient(to top, var(--ph-accent) 0 58%, transparent 58%) 19% 100% / 7% 80% no-repeat,
    linear-gradient(to top, var(--ph-accent) 0 46%, transparent 46%) 32% 100% / 7% 80% no-repeat,
    linear-gradient(to top, var(--ph-accent) 0 72%, transparent 72%) 45% 100% / 7% 80% no-repeat,
    linear-gradient(to top, var(--ph-accent) 0 62%, transparent 62%) 58% 100% / 7% 80% no-repeat,
    linear-gradient(to top, var(--ph-accent) 0 85%, transparent 85%) 71% 100% / 7% 80% no-repeat,
    linear-gradient(to top, var(--ph-accent) 0 70%, transparent 70%) 84% 100% / 7% 80% no-repeat,
    var(--ph-b);
}
.ph-list { flex: 1; display: flex; flex-direction: column; gap: 6%; }
.ph-list i { height: 12%; background: var(--ph-b); }
.ph-label {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(22, 12, 10, 0.78);
  color: #fff;
  font-size: clamp(0.72rem, 1.4vw, 0.9rem);
  font-weight: 600;
  white-space: nowrap;
}
[dir="rtl"] .ph-label { transform: translate(50%, -50%); }

.shot-button {
  padding: 0;
  border: 0;
  cursor: zoom-in;
  font: inherit;
  text-align: start;
}
.shot-button:focus-visible { outline-offset: -4px; border-radius: 0; }
.shot-zoom {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-image: var(--fire-gradient);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.shot-button:hover .shot-zoom,
.shot-button:focus-visible .shot-zoom { opacity: 1; }
@media (hover: none) { .shot-zoom { opacity: 1; } }

.gallery-caption {
  max-width: 720px;
  margin: 20px auto 0;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Steps ---------- */
.steps {
  position: relative;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Dashed track behind the cards, visible in the gaps. */
  .steps::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset-inline: 6%;
    top: 49px;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(220, 52, 28, 0.45) 0 8px, transparent 8px 15px);
  }
}
.step {
  position: relative;
  z-index: 1;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step-num {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 22px;
  background-image: var(--fire-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.85;
}
.step-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ember);
  color: #fff;
}
.step-icon .icon { width: 22px; height: 22px; }
.step:nth-child(3) .step-icon { background: var(--fire-gradient); }
.step h3 { margin-top: 18px; }
.step p { margin-top: 8px; color: var(--text-muted); font-size: 0.97rem; }

.steps-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}
.steps-note .icon { color: var(--fire); }

/* ---------- Runs locally ---------- */
.local-top { display: grid; gap: 32px; align-items: center; margin-bottom: clamp(36px, 5vw, 56px); }
@media (min-width: 1024px) {
  .local-top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
}
.local-top .section-head { margin-bottom: 0; }

.net {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
}
.net-row { display: flex; align-items: flex-start; gap: 6px; }
.net-node {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.net-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 138, 76, 0.35);
  border-radius: 18px;
  background: rgba(255, 138, 76, 0.12);
  color: var(--fire-on-dark);
}
.net-icon .icon { width: 28px; height: 28px; }
.net-node-hub .net-icon {
  border-color: transparent;
  background: var(--fire-gradient);
  color: #fff;
  box-shadow: 0 0 0 8px rgba(255, 106, 26, 0.12), 0 14px 30px -12px rgba(224, 36, 42, 0.95);
}
.net-label { color: var(--ink-text); font-size: 0.88rem; font-weight: 700; line-height: 1.35; text-wrap: balance; }
.net-link {
  position: relative;
  flex: 0 1 44px;
  min-width: 18px;
  height: 2px;
  margin-top: 29px;
  background: repeating-linear-gradient(90deg, rgba(255, 138, 76, 0.7) 0 6px, transparent 6px 11px);
}
.net-link i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 10px var(--flame);
  animation: net-dot 2.4s linear infinite;
}
.net-link + .net-node + .net-link i { animation-delay: -1.2s; }
@keyframes net-dot {
  from { left: 0; }
  to { left: calc(100% - 8px); }
}
/* Phones: the diagram stacks vertically. */
@media (max-width: 560px) {
  .net-row { flex-direction: column; align-items: center; gap: 0; }
  .net-node { flex: none; width: 100%; }
  .net-link {
    flex: none;
    width: 2px;
    min-width: 0;
    height: 30px;
    margin: 8px 0;
    background: repeating-linear-gradient(180deg, rgba(255, 138, 76, 0.7) 0 6px, transparent 6px 11px);
  }
  .net-link i { top: 0; left: 50%; margin-top: 0; margin-left: -4px; animation-name: net-dot-v; }
}
@keyframes net-dot-v {
  from { top: 0; }
  to { top: calc(100% - 8px); }
}
.net-internet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 24px auto 0;
  padding: 8px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: var(--ink-text);
  font-size: 0.9rem;
  font-weight: 700;
}
.net-internet .icon { color: var(--fire-on-dark); }

.local-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .local-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .local-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.local-grid li {
  padding: 24px;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}
.local-grid h3 { margin-top: 16px; color: #fff; }
.local-grid p { margin-top: 8px; color: var(--ink-muted); font-size: 0.97rem; }

/* ---------- Licensing ---------- */
.license-inner { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .license-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
}
.license-help { margin-top: 28px; color: var(--text-muted); }
.license-help .contact-actions { margin-top: 14px; }
.license-list { display: grid; gap: 14px; }
.license-list li {
  display: flex;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.license-list p { margin-top: 6px; color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Plans ---------- */
.plans {
  display: grid;
  gap: 20px;
  max-width: 980px;
  margin-inline: auto;
}
@media (min-width: 820px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.plan-featured {
  border-color: rgba(255, 138, 76, 0.35);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(224, 36, 42, 0.5), transparent 70%),
    linear-gradient(170deg, #26130f 0%, var(--ember) 60%);
  color: var(--ink-text);
  box-shadow: 0 34px 70px -34px rgba(179, 20, 31, 0.8);
}
[dir="rtl"] .plan-featured {
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(224, 36, 42, 0.5), transparent 70%),
    linear-gradient(190deg, #26130f 0%, var(--ember) 60%);
}
.plan-featured::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: var(--fire-gradient-x);
}
.plan-badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--fire-soft);
  color: var(--on-fire-soft);
  font-size: 0.8rem;
  font-weight: 800;
}
.plan-featured .plan-badge { background: var(--fire-on-dark); color: var(--on-fire-on-dark); }
.plan-title { margin-top: 16px; font-size: 1.35rem; }
.plan-price { margin-top: 6px; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
html[lang="ar"] .plan-price { letter-spacing: 0; font-weight: 700; }
.plan-desc { margin-top: 6px; color: var(--text-muted); }
.plan-featured .plan-desc { color: var(--ink-muted); }

.plan-list { display: grid; gap: 12px; margin-block: 24px 28px; }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; }
.plan-list .icon { width: 1.15em; height: 1.15em; margin-top: 0.2em; color: var(--success); stroke-width: 2.6; }
.plan-featured .plan-list .icon { color: var(--fire-on-dark); }

.plan-actions { display: grid; gap: 10px; margin-top: auto; }
.plan-contact { margin-bottom: 6px; color: #ecdfda; font-size: 0.95rem; }
.plan-contact .contact-actions { margin-top: 12px; }

.dl-meta { margin-top: 12px; color: var(--text-muted); font-size: 0.88rem; text-align: center; }
.plan-featured .dl-meta { color: var(--ink-muted); }
.dl-contents { margin-top: 4px; color: var(--text-muted); font-size: 0.82rem; text-align: center; }
.plan-featured .dl-contents { color: var(--ink-muted); }
.dl-unavailable {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7e6;
  color: #7a4b00;
  font-size: 0.9rem;
  text-align: center;
}
.plan-featured .dl-unavailable { background: rgba(255, 196, 77, 0.12); color: #ffd98a; }
.plan-note { margin-top: 10px; color: var(--ink-muted); font-size: 0.88rem; text-align: center; }
.dl-login { margin-top: 10px; color: var(--text-muted); font-size: 0.88rem; text-align: center; }
.dl-login code {
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--fire-soft);
  color: var(--on-fire-soft);
  font-weight: 700;
}

/* ---------- Phone app downloads ---------- */
.apps-dl {
  max-width: 980px;
  margin: 20px auto 0;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.apps-dl-head { display: flex; flex-direction: column; }
.apps-dl-head h3 { margin-top: 16px; font-size: 1.35rem; }
.apps-dl-head > p:last-child { margin-top: 6px; color: var(--text-muted); }
.apps-dl-grid { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 820px) { .apps-dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.app-dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-alt);
}
.app-dl-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--fire-gradient);
  color: #fff;
}
.app-dl-icon .icon { width: 26px; height: 26px; }
.app-dl-text h4 { font-size: 1.08rem; }
.app-dl-text p { margin-top: 4px; color: var(--text-muted); font-size: 0.94rem; }
.app-dl-text .dl-meta { margin-top: 6px; text-align: start; }
.app-dl > .btn, .app-dl > .dl-unavailable, .app-dl > .dl-sha { grid-column: 1 / -1; margin-top: 0; }

.dl-sha { margin-top: 10px; font-size: 0.82rem; color: var(--text-muted); text-align: center; }
.plan-featured .dl-sha { color: var(--ink-muted); }
.dl-sha summary { cursor: pointer; }
.dl-sha code {
  display: block;
  margin-top: 6px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(127, 127, 127, 0.1);
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.78rem;
  word-break: break-all;
  direction: ltr;
  text-align: left;
}

/* ---------- Call / WhatsApp buttons ---------- */
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-actions .btn { flex: 1 1 auto; }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 880px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] { border-color: rgba(220, 52, 28, 0.4); box-shadow: 0 18px 36px -28px rgba(179, 20, 31, 0.55); }
.faq-item summary {
  position: relative;
  display: block;
  padding-block: 18px;
  padding-inline: 22px 66px;
  border-radius: 18px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  inset-inline-end: 18px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background:
    linear-gradient(var(--fire), var(--fire)) center / 12px 2px no-repeat,
    linear-gradient(var(--fire), var(--fire)) center / 2px 12px no-repeat,
    var(--fire-soft);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  background:
    linear-gradient(#fff, #fff) center / 12px 2px no-repeat,
    var(--fire-gradient);
  transform: rotate(180deg);
}
.faq-item summary:hover { color: var(--fire-deep); }
.faq-item p { padding: 0 22px 22px; color: var(--text-muted); max-width: 780px; }

/* ---------- Closing call to action ---------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--fire-hero-gradient);
  color: #fff;
  text-align: center;
}
/* Deep-red veil + centre shade: white text stays >= 4.5:1 even where it
   reaches the orange corner on narrow screens. */
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48% 110% at 50% 50%, rgba(84, 6, 10, 0.34), transparent 85%),
    linear-gradient(rgba(84, 6, 10, 0.32), rgba(84, 6, 10, 0.32));
}
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000, transparent 70%);
  mask-image: radial-gradient(70% 90% at 50% 0%, #000, transparent 70%);
}
.cta-inner { max-width: 820px; }
.cta h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); }
.cta-lead { margin-top: 14px; color: #fff; font-size: 1.15rem; font-weight: 600; }
.cta-actions { justify-content: center; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ember);
  color: var(--ink-muted);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  gap: 36px;
  padding-bottom: 40px;
}
@media (min-width: 760px) { .footer-inner { grid-template-columns: 2fr 1fr 1.3fr; } }
.footer-brand p { margin-top: 14px; max-width: 320px; }
.footer-col h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #e3d6d1; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-contact p { margin-bottom: 14px; }
.footer-contact .contact-actions { display: grid; max-width: 320px; }
.footer-col .contact-actions a,
.footer-col .contact-actions a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: 22px;
  /* divider aligned with the content, not the container padding */
  background: linear-gradient(var(--ink-border), var(--ink-border)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: 0.88rem;
}
.to-top { display: inline-flex; align-items: center; gap: 8px; color: #e3d6d1; text-decoration: none; }
.to-top:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(14, 7, 6, 0.98);
  color: #fff;
}
.lightbox::backdrop { background: rgba(14, 7, 6, 0.6); }
.lightbox-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px var(--gutter) 24px;
}
.lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lightbox-count { color: var(--ink-muted); font-size: 0.92rem; font-weight: 600; }
.lightbox-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.shot-lightbox {
  width: min(1280px, calc((100dvh - 180px) * 1.6), 100%);
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.shot-lightbox .shot-img { object-fit: contain; background: #121212; }
.lightbox-caption { margin-top: 14px; color: #e6dad5; text-align: center; min-height: 1.6em; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.14); }

@media (max-width: 719px) {
  .lightbox-stage { flex-wrap: wrap; align-content: center; }
  .shot-lightbox { order: -1; width: 100%; }
  .lightbox-nav { margin-top: 8px; }
}

html.lightbox-open { overflow: hidden; }

/* ---------- Responsive fine-tuning ---------- */
@media (max-width: 480px) {
  .hero-ctas .btn { width: 100%; }
  .trust-list { gap: 10px 20px; padding-block: 20px; }
  .biz-card, .bento-card, .step { padding: 22px; }
  .license-list li { flex-direction: column; gap: 14px; }
  .faq-item summary { padding-inline: 18px 60px; font-size: 1rem; }
  .faq-item p { padding: 0 18px 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .devices-chip,
  .tile-bill,
  .walkie-ring,
  .walkie-bars i,
  .net-link i { animation: none; }
  .walkie-ring { display: none; }
  .walkie-bars i:nth-child(odd) { transform: scaleY(0.55); }
  .net-link i { left: calc(50% - 4px); }
  .biz-card:hover,
  .bento-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 560px) {
  .net-link i { left: 50%; top: calc(50% - 4px); }
}
