/* =====================================================================================
   NADHA — website design system v2 (2026-11-21)
   One stylesheet for the Arabic (RTL) and English (LTR) pages and the privacy pages.
   Logical properties everywhere (inline = along the text line, start/end follow the text
   direction), so every rule works right-to-left and left-to-right.
   Fonts are self-hosted (assets/fonts, SIL OFL): no request to any other website.
   Colours: palette B "Nile Call" (B-02). Light + dark theme (follows the device, or the toggle).
   ===================================================================================== */

/* ---------- Fonts (served from this site) ---------- */
@font-face {
  font-family: "Cairo"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("fonts/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Cairo"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("fonts/cairo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/jakarta-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Smooth cross-page transition when switching Arabic <-> English (browsers that support it). */
@view-transition { navigation: auto; }

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light;
  --teal-950: #06232A; --teal-900: #082F37; --teal-800: #0A4651; --teal-700: #0B5D6B; --teal-600: #0E7486;
  --teal-500: #14889C; --teal-300: #7CC4CE; --teal-100: #D7ECEE; --teal-50: #EEF6F7;
  --orange: #C8471C; --orange-strong: #A93A15; --orange-soft: #FBE3D8; --yellow: #FFC857; --green: #17885C;

  --bg: #F3F8F8; --bg-2: #E8F2F3; --surface: #FFFFFF; --surface-2: #F7FBFB; --surface-glass: rgba(255,255,255,.72);
  --text: #102A30; --muted: #4D666C; --faint: #7B9195;
  --line: rgba(16,42,48,.10); --line-strong: rgba(16,42,48,.18);
  --primary: #0B5D6B; --primary-strong: #084A55; --on-primary: #FFFFFF;
  --accent: #C8471C; --accent-strong: #A93A15; --on-accent: #FFFFFF;
  --wordmark: #0B5D6B; --heading: #0A2B31; --link: #0B5D6B;
  --seat: #102A30; --table-a: #0E7486; --table-b: #0B5D6B; --cup: #FFFFFF;
  --glow-1: rgba(20,136,156,.22); --glow-2: rgba(200,71,28,.16); --dot: rgba(16,42,48,.13);
  --error: #A3360F;
  --shadow-sm: 0 1px 2px rgba(8,47,55,.06), 0 3px 10px rgba(8,47,55,.06);
  --shadow: 0 2px 6px rgba(8,47,55,.06), 0 22px 44px -22px rgba(8,47,55,.34);
  --shadow-lg: 0 3px 10px rgba(8,47,55,.08), 0 40px 70px -28px rgba(8,47,55,.45);
  --radius-sm: 12px; --radius: 20px; --radius-lg: 28px; --radius-xl: 36px;
  --wrap: 1200px; --gutter: clamp(16px, 4vw, 32px);
  --font-ar: "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-en: "Plus Jakarta Sans", "Cairo", system-ui, "Segoe UI", Roboto, sans-serif;
  --font: var(--font-ar);
  --font-wordmark: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dir: 1;
  --loop: 9s;
}
:root:lang(en) { --font: var(--font-en); }
[dir="rtl"] { --dir: -1; }

/* Dark theme: follows the device unless the visitor picked light; or forced by the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #051A1F; --bg-2: #082429; --surface: #0B2A31; --surface-2: #0D3038; --surface-glass: rgba(9,36,42,.72);
    --text: #E4F1F2; --muted: #9DB9BE; --faint: #6F8D93;
    --line: rgba(228,241,242,.10); --line-strong: rgba(228,241,242,.18);
    --primary: #0E7486; --primary-strong: #14889C;
    --wordmark: #7CC4CE; --heading: #F1F8F9; --link: #7CC4CE;
    --seat: #3D6F78; --table-a: #14889C; --table-b: #0B5D6B; --cup: #EAF4F5;
    --glow-1: rgba(20,136,156,.30); --glow-2: rgba(200,71,28,.22); --dot: rgba(228,241,242,.10);
    --error: #FF9C78;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
    --shadow: 0 2px 6px rgba(0,0,0,.3), 0 22px 44px -22px rgba(0,0,0,.7);
    --shadow-lg: 0 3px 10px rgba(0,0,0,.35), 0 40px 70px -28px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #051A1F; --bg-2: #082429; --surface: #0B2A31; --surface-2: #0D3038; --surface-glass: rgba(9,36,42,.72);
  --text: #E4F1F2; --muted: #9DB9BE; --faint: #6F8D93;
  --line: rgba(228,241,242,.10); --line-strong: rgba(228,241,242,.18);
  --primary: #0E7486; --primary-strong: #14889C;
  --wordmark: #7CC4CE; --heading: #F1F8F9; --link: #7CC4CE;
  --seat: #3D6F78; --table-a: #14889C; --table-b: #0B5D6B; --cup: #EAF4F5;
  --glow-1: rgba(20,136,156,.30); --glow-2: rgba(200,71,28,.22); --dot: rgba(228,241,242,.10);
  --error: #FF9C78;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow: 0 2px 6px rgba(0,0,0,.3), 0 22px 44px -22px rgba(0,0,0,.7);
  --shadow-lg: 0 3px 10px rgba(0,0,0,.35), 0 40px 70px -28px rgba(0,0,0,.8);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(ar) body, body:lang(ar) { line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: .2em; }
.logo-ink { color: var(--seat); }
.logo-seat-light { color: #A6C4C9; }
.g-glow { stop-color: var(--teal-500); }
.g-a { stop-color: var(--table-a); }
.g-b { stop-color: var(--table-b); }
h1, h2, h3 { color: var(--heading); margin: 0; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -100px; z-index: 200; padding: 10px 16px; border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; stroke: none; }
.flip-rtl { transform: scaleX(var(--dir)); }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Scroll progress (pure CSS, where supported) ---------- */
.progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 120; pointer-events: none;
  background: linear-gradient(90deg, var(--teal-500), var(--orange)); transform-origin: 0 50%; transform: scaleX(0); }
[dir="rtl"] .progress { transform-origin: 100% 50%; }
@supports (animation-timeline: scroll()) {
  .progress { animation: progress-grow linear both; animation-timeline: scroll(root); }
}
@keyframes progress-grow { to { transform: scaleX(1); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; transition: background-color .35s, box-shadow .35s, backdrop-filter .35s; }
.site-header .bar { display: flex; align-items: center; gap: 14px; min-height: 76px; transition: min-height .35s var(--ease); }
.site-header.is-scrolled { background: var(--surface-glass); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(8,47,55,.5); }
.site-header.is-scrolled .bar { min-height: 62px; }

.wordmark { display: inline-flex; align-items: baseline; gap: .04em; text-decoration: none; color: var(--wordmark) !important;
  font-family: var(--font-wordmark); font-weight: 800; font-size: 1.85rem; line-height: 1; letter-spacing: -.045em;
  direction: ltr; unicode-bidi: isolate; position: relative; }
.wordmark .dot { position: relative; display: inline-block; width: .2em; height: .2em; border-radius: 50%; background: var(--accent); }
.wordmark .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.wordmark:hover .dot::after { animation: ping 1s var(--ease) 2; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav a { position: relative; padding: 8px 14px; border-radius: 999px; color: var(--muted) !important; text-decoration: none; font-weight: 600; font-size: .98rem; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text) !important; background: var(--bg-2); }
.nav a.is-active { color: var(--text) !important; }
.nav a.is-active::after { content: ""; position: absolute; inset-inline: 40%; bottom: 3px; height: 3px; border-radius: 3px; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.icon-btn:hover { transform: translateY(-1px) rotate(-8deg); }
.icon-btn .ico { width: 20px; height: 20px; }
.theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun, :root:not([data-theme="light"]) .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon, :root:not([data-theme="light"]) .theme-btn .i-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="dark"]) .theme-btn .i-moon { display: none; }
}
:root[data-theme="light"] .theme-btn .i-sun { display: block; }
:root[data-theme="light"] .theme-btn .i-moon { display: none; }
.lang-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text) !important; text-decoration: none; font-weight: 700; font-size: .95rem; }
.lang-pill:hover { background: var(--bg-2); }
.menu-btn { display: none; }
.nav .nav-cta { display: none; }

@media (max-width: 980px) {
  .nav { position: absolute; inset-inline: var(--gutter); top: calc(100% + 6px); flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; margin: 0;
    border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top center; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav a { padding: 12px 16px; font-size: 1.05rem; }
  .nav a.is-active::after { inset-inline: auto 14px; bottom: 50%; width: 7px; height: 7px; transform: translateY(50%); }
  .nav .nav-cta { display: flex; margin-top: 6px; justify-content: center; background: var(--accent); color: #fff !important; border-radius: 16px; font-weight: 800; }
  .nav .nav-cta:hover { background: var(--accent-strong); }
  .site-header.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .site-header.nav-open { background: var(--surface-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-inline-start: auto; }
  .header-actions .btn { display: none; }
  .menu-btn .i-close { display: none; }
  .site-header.nav-open .menu-btn .i-menu { display: none; }
  .site-header.nav-open .menu-btn .i-close { display: block; }
}
@media (max-width: 420px) { .wordmark { font-size: 1.6rem; } .icon-btn, .lang-pill { width: 38px; min-width: 38px; height: 38px; } .lang-pill { padding: 0 8px; } }

/* ---------- Buttons ---------- */
.btn { --b-bg: var(--surface); --b-fg: var(--text); position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .8em 1.4em;
  border-radius: 999px; border: 1px solid transparent; background: var(--b-bg); color: var(--b-fg) !important;
  font: 700 1rem/1.2 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ico { width: 1.15em; height: 1.15em; }
.btn-accent { --b-bg: var(--accent); --b-fg: var(--on-accent); box-shadow: 0 12px 26px -12px rgba(200,71,28,.75); }
.btn-accent:hover { --b-bg: var(--accent-strong); box-shadow: 0 16px 30px -12px rgba(200,71,28,.8); }
.btn-accent::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); }
.btn-accent:hover::after { transition: transform .8s var(--ease); transform: translateX(120%); }
.btn-primary { --b-bg: var(--primary); --b-fg: var(--on-primary); box-shadow: 0 12px 26px -14px rgba(11,93,107,.8); }
.btn-primary:hover { --b-bg: var(--primary-strong); }
.btn-ghost { --b-bg: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { --b-bg: var(--surface); box-shadow: var(--shadow-sm); }
.btn-light { --b-bg: #FFFFFF; --b-fg: var(--teal-900); }
.btn-outline-light { --b-bg: transparent; --b-fg: #FFFFFF; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { --b-bg: rgba(255,255,255,.1); }
.btn-lg { min-height: 56px; padding: .9em 1.7em; font-size: 1.08rem; }
.btn-sm { min-height: 42px; padding: .55em 1.1em; font-size: .95rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(calc(var(--dir) * 4px)) scaleX(var(--dir)); }
.btn .arrow { transform: scaleX(var(--dir)); }

/* ---------- Small parts ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6em; padding: .45em 1em .45em .9em; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .92rem; font-weight: 700; color: var(--text); }
.live-dot { position: relative; width: .62em; height: .62em; border-radius: 50%; background: var(--accent); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: live 1.8s var(--ease) infinite; }
@keyframes live { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3); opacity: 0; } }
.kicker { display: inline-flex; align-items: center; gap: .5em; font-weight: 800; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
:lang(ar) .kicker { letter-spacing: 0; font-size: .98rem; }
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.grad-text { background: linear-gradient(100deg, var(--teal-500) 0%, var(--primary) 40%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .grad-text { background-image: linear-gradient(100deg, var(--teal-300), #FF8A5C); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grad-text { background-image: linear-gradient(100deg, var(--teal-300), #FF8A5C); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; display: grid; justify-items: center; gap: 14px; }
.section-title { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); line-height: 1.15; }
:lang(ar) .section-title { line-height: 1.4; }
.section-sub { color: var(--muted); font-size: clamp(1.02rem, .96rem + .3vw, 1.18rem); max-width: 40em; }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--line); }

/* Reveal on scroll: pure CSS where supported (no JavaScript, never hides content elsewhere). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .reveal-2 { animation-range: entry 8% cover 34%; }
    .reveal-3 { animation-range: entry 16% cover 40%; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(36px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(12px, 3vw, 40px) clamp(64px, 9vw, 120px); isolation: isolate; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -30% -20% 0; z-index: -2; pointer-events: none;
  background: radial-gradient(38% 42% at 74% 38%, var(--glow-1), transparent 70%), radial-gradient(30% 32% at 18% 22%, var(--glow-2), transparent 72%); }
[dir="rtl"] .hero::before { background: radial-gradient(38% 42% at 26% 38%, var(--glow-1), transparent 70%), radial-gradient(30% 32% at 82% 22%, var(--glow-2), transparent 72%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .9;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.6px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 35%, #000 20%, transparent 75%); mask-image: radial-gradient(75% 65% at 50% 35%, #000 20%, transparent 75%); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.02fr 1fr; } }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; } .hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-title { font-size: clamp(2.35rem, 1.2rem + 4vw, 4.35rem); line-height: 1.06; margin: 22px 0 18px; letter-spacing: -.035em; }
:lang(ar) .hero-title { font-size: clamp(2.1rem, 1.1rem + 3vw, 3.45rem); line-height: 1.35; font-weight: 900; letter-spacing: 0; }
.hero-title .grad-text { display: inline-block; padding-block-end: .06em; }
.lead { color: var(--muted); font-size: clamp(1.06rem, .98rem + .4vw, 1.26rem); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: .5em; padding: .45em .9em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .93rem; font-weight: 700; color: var(--text); box-shadow: var(--shadow-sm); }
.chip .ico { color: var(--green); width: 1.05em; height: 1.05em; stroke-width: 2.6; }
:root[data-theme="dark"] .chip .ico { color: #4FD1A0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip .ico { color: #4FD1A0; } }

/* ---------- Hero scene: a café table seen from above (story without words) ---------- */
.scene { position: relative; width: min(100%, 600px); margin-inline: auto; aspect-ratio: 1 / 1; container-type: inline-size; animation: rise 1s .2s var(--ease) both; }
.scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.s-glow { fill: url(#sGlow); }
.s-orbit { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 2 12; stroke-linecap: round; transform-box: view-box; transform-origin: 300px 300px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.s-seat { fill: var(--seat); }
.s-seat-in { fill: rgba(255,255,255,.08); }
.s-seat-call { fill: var(--accent); }
.s-call-ring { fill: none; stroke: var(--accent); stroke-width: 4; transform-box: fill-box; transform-origin: center; opacity: 0; animation: s-ring var(--loop) var(--ease) infinite; }
.s-call-ring.r2 { animation-delay: .25s; }
@keyframes s-ring { 0%, 17% { opacity: 0; transform: scale(1); } 19% { opacity: .75; } 34% { opacity: 0; transform: scale(2.3); } 100% { opacity: 0; transform: scale(2.3); } }
.s-table { fill: url(#sTable); filter: drop-shadow(0 24px 30px rgba(8,47,55,.35)); }
.s-rim { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 2; }
.s-rim-in { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 1.5; stroke-dasharray: 3 7; }
.s-saucer { fill: rgba(255,255,255,.16); }
.s-cup { fill: var(--cup); }
.s-tea { fill: #C47A2C; }
.s-coffee { fill: #5B3A21; }
.s-hl { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 2.5; stroke-linecap: round; }
.s-steam { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 3.5; stroke-linecap: round; opacity: 0; transform-box: fill-box; transform-origin: center bottom; animation: steam 3.6s ease-in-out infinite; }
.s-steam.d2 { animation-delay: 1.2s; } .s-steam.d3 { animation-delay: 2.4s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px) scaleY(.7); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-18px) scaleY(1.1); } }
.s-qr-card { fill: #FFFFFF; }
.s-qr-ink { fill: #102A30; }
.s-qr-frame { fill: none; stroke: var(--yellow); stroke-width: 4; stroke-linecap: round; opacity: 0; animation: qr-frame var(--loop) var(--ease) infinite; }
@keyframes qr-frame { 0% { opacity: 0; } 3%, 11% { opacity: 1; } 15%, 100% { opacity: 0; } }
.s-bell { fill: #FFFFFF; transform-box: view-box; transform-origin: 300px 330px; animation: bell-ring var(--loop) linear infinite; }
@keyframes bell-ring { 0%, 18% { transform: rotate(0); } 19.5% { transform: rotate(-13deg); } 21% { transform: rotate(12deg); } 22.5% { transform: rotate(-9deg); } 24% { transform: rotate(7deg); } 25.5% { transform: rotate(-4deg); } 27%, 100% { transform: rotate(0); } }
.s-ding { fill: none; stroke: #FFFFFF; stroke-width: 5; stroke-linecap: round; opacity: 0; animation: ding var(--loop) var(--ease) infinite; }
@keyframes ding { 0%, 18% { opacity: 0; } 19.5%, 30% { opacity: 1; } 36%, 100% { opacity: 0; } }
.s-arc { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; opacity: .18; animation: arc var(--loop) var(--ease) infinite; }
.s-arc.a2 { animation-delay: .18s; } .s-arc.a3 { animation-delay: .36s; }
@keyframes arc { 0%, 16% { opacity: .18; } 19%, 32% { opacity: 1; } 42%, 100% { opacity: .18; } }

/* Overlay cards on the scene (sized with the scene width: container query units). */
.phone { position: absolute; inset-inline-start: -7cqi; bottom: 1cqi; width: 29cqi; aspect-ratio: 9 / 18.6; padding: 1.3cqi; border-radius: 6cqi;
  background: linear-gradient(160deg, #1B3B42, #0A1C20); box-shadow: var(--shadow-lg), inset 0 0 0 .5cqi rgba(255,255,255,.06);
  transform: rotate(calc(var(--dir) * -7deg)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.6cqi; } }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 4.2cqi; background: var(--surface); display: flex; flex-direction: column; gap: 1.5cqi; padding: 3.8cqi 1.9cqi 1.9cqi; font-size: 1.95cqi; line-height: 1.35; color: var(--text); white-space: nowrap; }
.phone-screen::before { content: ""; position: absolute; top: 1.1cqi; inset-inline: 35%; height: 1.4cqi; border-radius: 2cqi; background: #0A1C20; }
.ph-head { display: flex; align-items: center; gap: 1.2cqi; font-weight: 800; font-size: 2.3cqi; }
.ph-head svg { width: 4.4cqi; height: auto; }
.ph-head small { display: block; font-weight: 600; font-size: 1.6cqi; color: var(--muted); }
.ph-item { display: flex; align-items: center; justify-content: space-between; gap: 1cqi; padding: 1.3cqi 1.5cqi; border-radius: 2cqi; background: var(--bg-2); font-weight: 700; }
.ph-item b { display: grid; place-items: center; width: 3.1cqi; height: 3.1cqi; border-radius: 50%; background: var(--primary); color: #fff; font-size: 2.2cqi; line-height: 1; }
.ph-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 1cqi; padding: 1.7cqi 1cqi; border-radius: 2.3cqi; font-weight: 800; color: #fff; overflow: hidden; }
.ph-btn svg { width: 2.7cqi; height: 2.7cqi; }
.ph-call { background: var(--accent); margin-top: auto; animation: call-press var(--loop) var(--ease) infinite; }
.ph-bill { background: var(--primary); }
@keyframes call-press { 0%, 13% { transform: none; box-shadow: none; } 14.5% { transform: scale(.94); } 17%, 40% { transform: none; box-shadow: 0 0 0 1.2cqi rgba(200,71,28,.28); } 48%, 100% { box-shadow: none; } }
.tap { position: absolute; width: 7cqi; height: 7cqi; border-radius: 50%; inset-inline-start: 50%; top: 50%; margin: -3.5cqi; margin-inline-start: -3.5cqi;
  background: rgba(255,255,255,.55); border: .5cqi solid rgba(255,255,255,.9); opacity: 0; animation: tap var(--loop) var(--ease) infinite; }
@keyframes tap { 0%, 10% { opacity: 0; transform: scale(1.6); } 13% { opacity: 1; transform: scale(1); } 16% { opacity: 1; transform: scale(.85); } 22%, 100% { opacity: 0; transform: scale(1.8); } }

.toast { position: absolute; top: 2cqi; inset-inline-end: -2cqi; width: 50cqi; display: flex; align-items: center; gap: 2.4cqi; padding: 2.4cqi 2.8cqi;
  border-radius: 4cqi; background: var(--surface-glass); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 2.75cqi; line-height: 1.35; opacity: 0; animation: toast var(--loop) var(--ease) infinite; }
@keyframes toast { 0%, 21% { opacity: 0; transform: translateY(-3cqi) scale(.94); } 25%, 84% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-2cqi) scale(.97); } }
.toast-ico { position: relative; display: grid; place-items: center; flex: none; width: 9cqi; height: 9cqi; border-radius: 50%; background: var(--accent); color: #fff; }
.toast-ico svg { width: 4.6cqi; height: 4.6cqi; animation: toast-bell var(--loop) linear infinite; transform-origin: 50% 20%; }
@keyframes toast-bell { 0%, 24% { transform: rotate(0); } 26% { transform: rotate(-16deg); } 28% { transform: rotate(14deg); } 30% { transform: rotate(-8deg); } 32%, 100% { transform: rotate(0); } }
.toast-title { font-weight: 800; color: var(--heading); }
.toast-sub { display: grid; color: var(--muted); font-weight: 600; font-size: 2.4cqi; }
.toast-sub > span { grid-area: 1 / 1; }
.toast-sub .st-a { animation: st-a var(--loop) linear infinite; }
.toast-sub .st-b { color: var(--green); font-weight: 800; opacity: 0; animation: st-b var(--loop) linear infinite; }
:root[data-theme="dark"] .toast-sub .st-b { color: #4FD1A0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast-sub .st-b { color: #4FD1A0; } }
@keyframes st-a { 0%, 49% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes st-b { 0%, 49% { opacity: 0; } 52%, 100% { opacity: 1; } }

.ticket { position: absolute; bottom: 9cqi; inset-inline-end: -1cqi; width: 40cqi; padding: 2.2cqi 2.6cqi; border-radius: 3.2cqi; background: var(--surface); box-shadow: var(--shadow-lg);
  border-top: 1.1cqi solid var(--primary); font-size: 2.5cqi; line-height: 1.45; opacity: 0; animation: ticket var(--loop) var(--ease) infinite; }
.ticket-head { display: flex; justify-content: space-between; gap: 1cqi; font-weight: 800; color: var(--heading); }
.ticket-head span { color: var(--primary); }
:root[data-theme="dark"] .ticket-head span { color: var(--teal-300); }
.ticket-lines { color: var(--muted); font-weight: 600; }
@keyframes ticket { 0%, 54% { opacity: 0; transform: translateY(3cqi); } 59%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(1cqi); } }

@media (max-width: 640px) {
  .phone { inset-inline-start: -1cqi; }
  .toast { inset-inline-end: 0; width: 56cqi; }
  .ticket { inset-inline-end: 0; width: 44cqi; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Ticker ---------- */
.ticker { position: relative; overflow: hidden; padding-block: 18px; border-block: 1px solid var(--line); background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; gap: 40px; animation: ticker 38s linear infinite; }
[dir="rtl"] .ticker-track { animation-name: ticker-rtl; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ticker-item .badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; }
.badge-call { background: var(--accent); } .badge-order { background: var(--primary); } .badge-bill { background: var(--yellow); color: var(--teal-950) !important; }
.badge .ico { width: 16px; height: 16px; }
.ticker-item b { color: var(--text); }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker-rtl { to { transform: translateX(50%); } }

/* ---------- How it works ---------- */
.steps { position: relative; display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.steps-wrap { position: relative; }
.steps-line { display: none; }
@media (min-width: 880px) {
  .steps-line { display: block; position: absolute; top: 110px; inset-inline: 16%; height: 4px; z-index: 0; border-radius: 4px;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 10px, transparent 10px 20px); }
  .steps-line::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, var(--teal-500), var(--accent)); transform-origin: 0 50%; transform: scaleX(1); }
  [dir="rtl"] .steps-line::after { transform-origin: 100% 50%; background: linear-gradient(270deg, var(--teal-500), var(--accent)); }
  @supports (animation-timeline: view()) {
    .steps-line::after { animation: progress-grow linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; transform: scaleX(0); }
  }
}
.step { position: relative; z-index: 1; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; transition: transform .35s var(--ease), box-shadow .35s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-art { position: relative; width: 168px; height: 168px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, var(--teal-50), var(--bg-2)); border: 1px solid var(--line); }
:root[data-theme="dark"] .step-art { background: radial-gradient(circle at 50% 40%, #0E3A43, var(--bg-2)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step-art { background: radial-gradient(circle at 50% 40%, #0E3A43, var(--bg-2)); } }
.step-art svg { width: 120px; height: 120px; overflow: visible; }
.step-num { position: absolute; top: 4px; inset-inline-end: 4px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.1rem; box-shadow: 0 8px 18px -8px rgba(200,71,28,.8); }
.step h3 { font-size: 1.35rem; margin-bottom: 6px; }
.step p { color: var(--muted); }
/* step 1: scan line */
.st-phone { fill: var(--surface); stroke: var(--text); stroke-width: 3.5; }
.st-qr { fill: var(--text); }
.st-scan { fill: var(--accent); animation: scanline 2.4s ease-in-out infinite alternate; }
@keyframes scanline { from { transform: translateY(0); } to { transform: translateY(46px); } }
/* step 2: tap */
.st-row { fill: var(--bg-2); }
.st-btn { fill: var(--accent); }
.st-btn2 { fill: var(--primary); }
.st-tap { fill: rgba(200,71,28,.25); stroke: var(--accent); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: tap2 2.2s var(--ease) infinite; }
@keyframes tap2 { 0% { transform: scale(.4); opacity: 0; } 30% { opacity: 1; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
/* step 3: bell */
.st-bell { fill: var(--primary); transform-box: fill-box; transform-origin: 50% 100%; animation: bell-wobble 2.4s ease-in-out infinite; }
@keyframes bell-wobble { 0%, 55%, 100% { transform: rotate(0); } 60% { transform: rotate(-12deg); } 66% { transform: rotate(10deg); } 72% { transform: rotate(-6deg); } 78% { transform: rotate(3deg); } }
.st-dings { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; animation: dings2 2.4s ease-in-out infinite; }
@keyframes dings2 { 0%, 55% { opacity: 0; } 60%, 82% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Before / after ---------- */
.compare { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 880px) { .compare { grid-template-columns: 1fr auto 1fr; gap: 24px; } }
.cmp { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-xl); border: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.cmp-bad { background: var(--surface); }
.cmp-good { background: linear-gradient(155deg, var(--teal-700), var(--teal-900)); color: #E8F6F7; border-color: transparent; box-shadow: var(--shadow-lg); overflow: hidden; }
.cmp-good::after { content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(200,71,28,.45), transparent 65%); pointer-events: none; }
[dir="rtl"] .cmp-good::after { inset: auto auto -40% -20%; }
.cmp-good h3 { color: #FFFFFF; }
.cmp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cmp-tag { display: inline-flex; align-items: center; gap: .45em; padding: .35em .85em; border-radius: 999px; font-weight: 800; font-size: .9rem; }
.cmp-bad .cmp-tag { background: var(--bg-2); color: var(--muted); }
.cmp-good .cmp-tag { background: rgba(255,255,255,.12); color: #FFFFFF; }
.cmp h3 { font-size: 1.45rem; }
.cmp-meter { display: grid; gap: 8px; }
.cmp-meter-row { display: flex; justify-content: space-between; font-weight: 700; font-size: .95rem; }
.cmp-bar { height: 12px; border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.cmp-good .cmp-bar { background: rgba(255,255,255,.12); }
.cmp-bar i { display: block; height: 100%; border-radius: inherit; }
.cmp-bad .cmp-bar i { width: 88%; background: repeating-linear-gradient(-45deg, #C9D6D8 0 8px, #B6C6C9 8px 16px); animation: wait 2.5s linear infinite; background-size: 22px 22px; }
:root[data-theme="dark"] .cmp-bad .cmp-bar i { background: repeating-linear-gradient(-45deg, #2A4B52 0 8px, #22414A 8px 16px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cmp-bad .cmp-bar i { background: repeating-linear-gradient(-45deg, #2A4B52 0 8px, #22414A 8px 16px); } }
@keyframes wait { to { background-position: 22px 0; } }
.cmp-good .cmp-bar i { width: 10%; background: linear-gradient(90deg, #FFC857, #FF8A5C); }
.cmp-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cmp-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.cmp-list .ico { margin-top: .3em; flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; stroke-width: 3; }
.cmp-bad .cmp-list .ico { background: var(--bg-2); color: var(--muted); }
.cmp-good .cmp-list .ico { background: rgba(255,255,255,.14); color: #8EF0C6; }
.cmp-bad p, .cmp-bad li { color: var(--muted); }
.vs { align-self: center; justify-self: center; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--accent); }
.vs .ico { width: 26px; height: 26px; stroke-width: 2.6; }
@media (max-width: 879px) { .vs { width: 52px; height: 52px; margin-block: -38px; z-index: 1; transform: rotate(90deg); } }
.cmp-scene { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius); background: var(--bg-2); }
.cmp-good .cmp-scene { background: rgba(255,255,255,.08); }
.cmp-scene .big { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; flex: none; }
.cmp-bad .big { background: var(--surface); color: var(--muted); }
.cmp-bad .big .ico { animation: wave 1.4s ease-in-out infinite; transform-origin: 70% 90%; }
@keyframes wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.cmp-good .big { background: var(--accent); color: #fff; }
.cmp-scene .big .ico { width: 28px; height: 28px; }
.cmp-scene strong { display: block; font-size: 1.05rem; }
.cmp-scene span { font-size: .92rem; opacity: .85; }
.clock-hand { transform-box: view-box; transform-origin: 12px 12px; animation: spin 4s linear infinite; }

/* ---------- Interactive demo ---------- */
.demo { overflow: clip; }
.demo::before { content: ""; position: absolute; inset: 10% -10% auto; height: 70%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, var(--glow-1), transparent 70%); }
.demo-stage { position: relative; display: grid; gap: 28px; align-items: center; justify-items: center; }
@media (min-width: 960px) { .demo-stage { grid-template-columns: auto 1fr auto; gap: 0; } }
.demo-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.tool-btn { display: inline-flex; align-items: center; gap: .5em; padding: .55em 1em; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 700; font-size: .92rem; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.tool-btn:hover { transform: translateY(-1px); background: var(--bg-2); }
.tool-btn .ico { width: 18px; height: 18px; }
.tool-btn[aria-pressed="false"] .i-sound-on, .tool-btn[aria-pressed="true"] .i-sound-off { display: none; }

.device { position: relative; background: linear-gradient(160deg, #1B3B42, #091A1E); padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06); }
.device-screen { position: relative; overflow: hidden; background: var(--surface); color: var(--text); height: 100%; }
.device-phone { width: min(320px, 86vw); border-radius: 46px; }
.device-phone .device-screen { border-radius: 36px; padding: 40px 18px 20px; min-height: 600px; display: flex; flex-direction: column; gap: 14px; }
.device-phone .device-screen::before { content: ""; position: absolute; top: 12px; inset-inline: 34%; height: 22px; border-radius: 20px; background: #091A1E; }
.device-tablet { width: min(560px, 94vw); border-radius: 30px; }
.device-tablet .device-screen { border-radius: 22px; min-height: 440px; display: flex; flex-direction: column; }

.dp-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dp-head svg { width: 38px; height: auto; flex: none; }
.dp-head strong { display: block; font-size: 1.08rem; line-height: 1.2; }
.dp-head span { display: block; font-size: .82rem; color: var(--muted); }
.dp-section { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
:lang(ar) .dp-section { letter-spacing: 0; font-size: .85rem; }
.dp-menu { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dp-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--bg-2); }
.dp-emoji { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); font-size: 1.3rem; flex: none; }
.dp-name { flex: 1; font-weight: 700; font-size: .98rem; line-height: 1.3; }
.dp-name small { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
.dp-qty { min-width: 1.4em; text-align: center; font-weight: 800; color: var(--primary); }
:root[data-theme="dark"] .dp-qty { color: var(--teal-300); }
.dp-add { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; cursor: pointer; transition: transform .2s var(--ease-spring); }
.dp-add:hover { transform: scale(1.1); }
.dp-add:active { transform: scale(.9); }
.dp-add .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.dp-actions { display: grid; gap: 10px; margin-top: auto; }
.dp-btn { display: flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 12px; border: 0; border-radius: 18px; font-weight: 800; font-size: 1rem; cursor: pointer; color: #fff; transition: transform .2s var(--ease), filter .2s, opacity .2s; }
.dp-btn:hover { filter: brightness(1.08); }
.dp-btn:active { transform: scale(.97); }
.dp-btn[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.dp-btn .ico { width: 20px; height: 20px; }
.dp-order { background: var(--primary); }
.dp-order .count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: rgba(255,255,255,.22); font-size: .9rem; }
.dp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dp-call { background: var(--accent); }
.dp-bill { background: #22323A; }
:root[data-theme="dark"] .dp-bill { background: #2E4A51; }
.dp-status { min-height: 1.6em; text-align: center; font-weight: 700; font-size: .92rem; color: var(--green); }
:root[data-theme="dark"] .dp-status { color: #4FD1A0; }
.dp-btn.is-busy { animation: busy 1.2s ease-in-out infinite; }
@keyframes busy { 0%, 100% { box-shadow: 0 0 0 0 rgba(200,71,28,.5); } 50% { box-shadow: 0 0 0 8px rgba(200,71,28,0); } }

.dt-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dt-head strong { font-size: 1.05rem; }
.live-pill { display: inline-flex; align-items: center; gap: .45em; padding: .2em .7em; border-radius: 999px; background: rgba(23,136,92,.12); color: var(--green); font-weight: 800; font-size: .8rem; }
:root[data-theme="dark"] .live-pill { color: #4FD1A0; }
.live-pill .live-dot, .live-pill .live-dot::after { background: currentColor; }
.dt-clock { margin-inline-start: auto; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.dt-body { display: grid; grid-template-columns: 1fr; flex: 1; }
@media (min-width: 560px) { .dt-body { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.dt-floor { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.dt-floor-title span { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--faint); }
.dt-tables { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 8px; }
.dt-table { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 2px dashed var(--line-strong); font-weight: 800; color: var(--faint); cursor: pointer; padding: 0; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-spring); }
.dt-table.is-open { border-style: solid; border-color: var(--primary); background: var(--surface); color: var(--text); }
:root[data-theme="dark"] .dt-table.is-open { border-color: var(--teal-300); }
.dt-table::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; }
.dt-table .flags { position: absolute; top: -11px; inset-inline: -6px; display: flex; justify-content: center; gap: 2px; }
.dt-table .flag { display: none; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: #fff; box-shadow: 0 0 0 2px var(--surface); }
.dt-table .flag .ico { width: 11px; height: 11px; stroke-width: 2.6; }
.dt-table.has-call .flag-call, .dt-table.has-order .flag-order, .dt-table.has-bill .flag-bill { display: grid; }
.dt-table.has-call, .dt-table.has-order, .dt-table.has-bill { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.dt-table.has-call { border-color: var(--accent); color: var(--accent); transform: scale(1.06); }
.dt-table.has-call::before { animation: table-ring 1.4s var(--ease) infinite; }
@keyframes table-ring { 0% { opacity: .9; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.35); } }
.dt-table.is-you { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--teal-300); }
.dt-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0; padding: 12px 0 0; list-style: none; border-top: 1px dashed var(--line-strong); font-size: .82rem; color: var(--muted); font-weight: 700; }
.dt-legend li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lg-chip { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; flex: none; }
.lg-chip .ico { width: 12px; height: 12px; stroke-width: 2.6; }
.lg-open { background: var(--surface); border: 2px solid var(--primary); }
.lg-free { background: var(--bg-2); border: 2px dashed var(--line-strong); }

/* Table details panel (slides over the waiter screen) */
.device-tablet .device-screen { position: relative; }
.dt-detail { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background: var(--surface); animation: dd-in .35s var(--ease) both; }
.dt-detail[hidden] { display: none; }
@keyframes dd-in { from { opacity: 0; transform: translateX(calc(var(--dir) * 24px)); } to { opacity: 1; transform: none; } }
.dd-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dd-head strong { font-size: 1.1rem; outline: none; }
.dd-close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.dd-close .ico { width: 18px; height: 18px; }
.flip-rtl-back { transform: scaleX(var(--dir)); }
.dd-state { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; padding: .25em .75em; border-radius: 999px; font-size: .8rem; font-weight: 800; background: var(--bg-2); color: var(--muted); }
.dd-state.is-open { background: rgba(23,136,92,.12); color: var(--green); }
.dd-state.is-alert { background: var(--orange-soft); color: var(--accent-strong); }
:root[data-theme="dark"] .dd-state.is-alert { background: rgba(200,71,28,.2); color: #FF9C78; }
.device-tablet .device-screen { container-type: inline-size; }
.dd-body { flex: 1; min-height: 0; overflow: auto; padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; }
.dd-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@container (min-width: 470px) {
  .dd-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; }
  .dd-col-log { border-inline-start: 1px solid var(--line); padding-inline-start: 16px; }
}
.dd-times { display: flex; flex-wrap: wrap; gap: 8px; }
.dd-time { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 6px 10px; border-radius: 12px; background: var(--bg-2); font-size: .82rem; font-weight: 700; color: var(--text); }
.dd-time > span { white-space: nowrap; }
.dd-time .ico { width: 15px; height: 15px; color: var(--primary); }
:root[data-theme="dark"] .dd-time .ico { color: var(--teal-300); }
.dd-time small { flex-basis: 100%; padding-inline-start: 21px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.dd-h { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: .9rem; color: var(--heading); }
.dd-h .ico { width: 16px; height: 16px; color: var(--accent); }
.dd-items { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.dd-items li { display: flex; align-items: baseline; gap: 8px; padding: 6px 2px; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.dd-items .q { font-weight: 800; color: var(--primary); min-width: 2.2em; font-family: var(--font-en); }
:root[data-theme="dark"] .dd-items .q { color: var(--teal-300); }
.dd-items .n { flex: 1; font-weight: 600; }
.dd-items .p { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.dd-items .none { color: var(--faint); justify-content: center; border: 0; }
.dd-total { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); font-weight: 800; }
.dd-total b { font-size: 1.1rem; color: var(--heading); font-variant-numeric: tabular-nums; }
.dd-log { margin: 0; padding: 0 0 0 0; list-style: none; display: grid; gap: 0; position: relative; }
.dd-log li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 6px 0; font-size: .85rem; }
.dd-log li::before { content: ""; position: absolute; inset-inline-start: 4.6em; top: 0; bottom: 0; width: 2px; background: var(--line); }
.dd-log time { min-width: 4em; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; font-family: var(--font-en); font-size: .8rem; padding-top: 2px; }
.dd-log .ev { position: relative; padding-inline-start: 16px; }
.dd-log .ev::before { content: ""; position: absolute; inset-inline-start: -2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--surface); }
.dd-log .ev.t-call::before { background: var(--accent); }
.dd-log .ev.t-bill::before { background: var(--yellow); }
.dd-log .ev.t-done::before { background: var(--green); }
.dd-log .ev.t-paid::before { background: var(--green); }
.dd-log .ev small { display: block; color: var(--muted); }
.dd-actions { padding: 12px 16px; border-top: 1px solid var(--line); }
.dd-paid { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; border: 0; border-radius: 14px; background: var(--green); color: #fff; font-weight: 800; cursor: pointer; }
.dd-paid[disabled] { opacity: .45; cursor: not-allowed; }
.dd-paid .ico { width: 20px; height: 20px; }
/* Same dark colours when the phone/PC itself is in dark mode (no toggle pressed) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dt-table.is-open { border-color: var(--teal-300); }
  :root:not([data-theme="light"]) .dd-state.is-alert { background: rgba(200,71,28,.2); color: #FF9C78; }
  :root:not([data-theme="light"]) .dd-time .ico,
  :root:not([data-theme="light"]) .dd-items .q,
  :root:not([data-theme="light"]) .dp-qty,
  :root:not([data-theme="light"]) .later-list .l-ico { color: var(--teal-300); }
  :root:not([data-theme="light"]) .stamps i { background: var(--teal-300); }
  :root:not([data-theme="light"]) .stamps i.empty { background: transparent; }
  :root:not([data-theme="light"]) .stamps i.free { background: var(--accent); }
  :root:not([data-theme="light"]) .dp-bill { background: #2E4A51; }
  :root:not([data-theme="light"]) .dp-status { color: #4FD1A0; }
}
:root[data-theme="dark"] .stamps i.empty { background: transparent; }
:root[data-theme="dark"] .stamps i.free { background: var(--accent); }
.dt-feed-wrap { min-width: 0; border-top: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 560px) { .dt-feed-wrap { border-top: 0; border-inline-start: 1px solid var(--line); } }
.dt-feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.dt-empty { margin: auto; text-align: center; color: var(--faint); font-weight: 600; font-size: .92rem; padding: 20px 0; }
.dt-event { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); animation: event-in .45s var(--ease-spring) both; }
.dt-event.is-out { animation: event-out .35s var(--ease) both; }
@keyframes event-in { from { opacity: 0; transform: translateY(-10px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes event-out { to { opacity: 0; transform: translateX(calc(var(--dir) * 30px)); } }
.dt-event .badge { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; color: #fff; }
.dt-event .badge .ico { width: 16px; height: 16px; }
.dt-event .txt { flex: 1; min-width: 0; font-size: .88rem; line-height: 1.35; }
.dt-event .txt b { display: block; font-size: .92rem; }
.dt-event .txt span { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-ack { flex: none; padding: 6px 12px; border-radius: 999px; border: 0; background: var(--green); color: #fff; font-weight: 800; font-size: .82rem; cursor: pointer; transition: transform .2s var(--ease); }
.dt-ack:hover { transform: scale(1.05); }
.dt-event.is-you { border-color: var(--accent); background: var(--orange-soft); }
:root[data-theme="dark"] .dt-event.is-you { background: rgba(200,71,28,.16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dt-event.is-you { background: rgba(200,71,28,.16); } }

.demo-flow { position: relative; width: 100%; min-width: 80px; height: 80px; display: grid; place-items: center; }
@media (max-width: 959px) { .demo-flow { width: 80px; height: 60px; } .demo-flow .flow-line { transform: rotate(90deg); width: 60px; } }
.flow-line { position: relative; width: min(100%, 160px); height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px); }
.flow-dot { position: absolute; top: 50%; inset-inline-start: 0; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(200,71,28,.2); opacity: 0; }
.demo-flow.is-sending .flow-dot { animation: flow 0.9s var(--ease) both; }
.demo-flow.is-sending .flow-dot.d2 { animation-delay: .12s; }
@keyframes flow { 0% { opacity: 0; inset-inline-start: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; inset-inline-start: calc(100% - 16px); } }
.demo-hint { display: inline-flex; align-items: center; gap: .5em; margin-top: 18px; padding: .5em 1em; border-radius: 999px; background: var(--surface); border: 1px dashed var(--line-strong); color: var(--muted); font-weight: 700; font-size: .92rem; }
.demo-hint .ico { color: var(--accent); }

/* ---------- Bento features ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .tile { grid-column: span 4; }
  .tile-a { grid-column: span 6; grid-row: span 2; }
  .tile-b { grid-column: span 6; }
  .tile-c, .tile-d { grid-column: span 3; }
  .tile-h, .tile-i, .tile-k, .tile-l { grid-column: span 6; }
}
.tile { --mx: 50%; --my: 50%; position: relative; isolation: isolate; overflow: hidden; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx) var(--my), var(--glow-1), transparent 60%); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.tile:hover::before { opacity: 1; }
.tile h3 { font-size: 1.22rem; }
.tile p { color: var(--muted); }
.tile-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--bg-2); color: var(--primary); margin-bottom: 6px; }
:root[data-theme="dark"] .tile-ico { color: var(--teal-300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile-ico { color: var(--teal-300); } }
.tile-ico .ico { width: 26px; height: 26px; }
.tile-a { background: linear-gradient(160deg, var(--teal-700), var(--teal-900)); color: #E8F6F7; border-color: transparent; justify-content: space-between; }
.tile-a h3 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.tile-a p { color: #BFE0E4; }
.tile-a .tile-ico { background: rgba(255,255,255,.12); color: #fff; }
.mini-bell { position: relative; display: grid; place-items: center; height: 230px; margin-block: 10px; }
.mini-bell .ring { position: absolute; width: 110px; height: 110px; border-radius: 50%; border: 2px solid rgba(255,138,92,.7); animation: mini-ring 2.6s var(--ease) infinite; }
.mini-bell .ring:nth-child(2) { animation-delay: .65s; } .mini-bell .ring:nth-child(3) { animation-delay: 1.3s; }
@keyframes mini-ring { 0% { transform: scale(.7); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(2.1); opacity: 0; } }
.mini-bell .core { position: relative; display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: var(--accent); box-shadow: 0 20px 40px -12px rgba(200,71,28,.8); }
.mini-bell .core svg { width: 58px; height: 58px; animation: toast-bell 2.6s linear infinite; transform-origin: 50% 25%; }
.mini-table { display: grid; place-items: center; height: 120px; }
.mini-table svg { width: 140px; height: 120px; overflow: visible; }
.mt-seat { fill: var(--seat); }
.mt-seat.on { animation: seat-on 3.2s linear infinite; }
.mt-seat.on.s2 { animation-delay: .8s; } .mt-seat.on.s3 { animation-delay: 1.6s; } .mt-seat.on.s4 { animation-delay: 2.4s; }
@keyframes seat-on { 0%, 18% { fill: var(--accent); } 25%, 100% { fill: var(--seat); } }
.mt-table { fill: var(--primary); }
.mt-plus { fill: #fff; font: 800 15px var(--font-en); }
.mini-chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding-top: 6px; }
.mini-chart i { flex: 1; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--teal-500), var(--primary)); transform-origin: bottom; animation: bar 3.2s var(--ease) infinite alternate; }
.mini-chart i:nth-child(1) { height: 40%; } .mini-chart i:nth-child(2) { height: 65%; animation-delay: .3s; } .mini-chart i:nth-child(3) { height: 50%; animation-delay: .6s; }
.mini-chart i:nth-child(4) { height: 85%; animation-delay: .9s; } .mini-chart i:nth-child(5) { height: 70%; animation-delay: 1.2s; background: linear-gradient(180deg, #FF8A5C, var(--accent)); }
@keyframes bar { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.mini-lang { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--heading); }
.mini-lang span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--bg-2); }
.mini-lang span:first-child { font-family: var(--font-ar); }
.mini-lang span:last-child { font-family: var(--font-en); }
.mini-lang .ico { color: var(--accent); width: 26px; height: 26px; }
.mini-zero { font-family: var(--font-en); font-weight: 800; font-size: 3.4rem; line-height: 1; letter-spacing: -.04em; color: var(--accent); }

/* ---------- Coming soon (roadmap) ---------- */
.road { display: grid; gap: 18px; }
@media (min-width: 760px) and (max-width: 1179px) {
  .road-now-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .later-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1180px) { .road { grid-template-columns: .8fr 1.45fr 1fr; align-items: stretch; } }
.road-col { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); }
.road-col.is-now { background: linear-gradient(165deg, var(--teal-700), var(--teal-900)); border-color: transparent; color: #DDF0F2; }
.road-col.is-now h3, .road-col.is-now .road-when b { color: #fff; }
.road-col.is-next { border: 2px solid var(--accent); box-shadow: 0 24px 50px -30px rgba(200,71,28,.6); }
.road-col.is-later { border-style: dashed; border-color: var(--line-strong); background: transparent; }
.road-when { display: flex; align-items: center; gap: 10px; }
.road-when h3 { font-size: 1.2rem; }
.road-col.is-now p { color: #BFE0E4; font-size: .93rem; margin-top: auto; }
.road-when .pill { margin-inline-start: auto; padding: .2em .8em; border-radius: 999px; font-size: .8rem; font-weight: 800; background: var(--bg-2); color: var(--muted); }
.is-now .road-when .pill { background: rgba(255,255,255,.14); color: #fff; }
.is-next .road-when .pill { background: var(--accent); color: #fff; }
.road-dot { position: relative; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--faint); }
.is-now .road-dot { background: #4FD1A0; box-shadow: 0 0 0 5px rgba(79,209,160,.22); }
.is-next .road-dot { background: var(--accent); }
.is-next .road-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ping 1.6s var(--ease) infinite; }
.road-now-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.road-now-list li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.road-now-list .ico { width: 20px; height: 20px; color: #4FD1A0; stroke-width: 2.6; }
.road-cards { display: grid; gap: 12px; }
@media (min-width: 620px) { .is-next .road-cards { grid-template-columns: 1fr 1fr; } }
.feat { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feat h4 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; color: var(--heading); }
.feat h4 .ico { width: 22px; height: 22px; color: var(--accent); }
.feat p { color: var(--muted); font-size: .93rem; }
.feat-wide { grid-column: 1 / -1; }
.want-btn { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: .4em; padding: .35em .9em; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 800; font-size: .85rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-spring); }
.want-btn:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.04); }
.want-btn .ico { width: 16px; height: 16px; }
.want-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
/* little pictures inside the cards */
.pay-art { display: flex; align-items: center; gap: 10px; }
.pay-card { position: relative; width: 74px; height: 46px; border-radius: 8px; background: linear-gradient(135deg, var(--teal-500), var(--teal-900)); box-shadow: var(--shadow-sm); }
.pay-card::before { content: ""; position: absolute; inset-inline-start: 9px; top: 12px; width: 14px; height: 10px; border-radius: 2px; background: var(--yellow); }
.pay-card::after { content: ""; position: absolute; inset-inline: 9px; bottom: 9px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.55); }
.pay-wallet { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: #fff; }
.pay-wallet .ico { width: 24px; height: 24px; }
.pay-cash { margin-inline-start: auto; padding: .25em .7em; border-radius: 999px; background: rgba(23,136,92,.14); color: var(--green); font-weight: 800; font-size: .8rem; }
.stamps { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; max-width: 260px; }
.stamps i { aspect-ratio: 1; border-radius: 50%; background: var(--primary); opacity: .9; }
:root[data-theme="dark"] .stamps i { background: var(--teal-300); }
.stamps i.empty { background: transparent; border: 2px dashed var(--line-strong); opacity: 1; }
.stamps i.free { background: var(--accent); opacity: 1; box-shadow: 0 0 0 3px rgba(200,71,28,.25); animation: free-pop 2.4s var(--ease) infinite; }
@keyframes free-pop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.25); } }
.split-art { display: flex; gap: 6px; }
.split-art span { flex: 1; padding: 6px 0; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-align: center; font-weight: 800; font-size: .8rem; font-family: var(--font-en); color: var(--heading); }
.stars { display: flex; gap: 3px; color: var(--yellow); }
.stars .ico { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.later-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.later-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.later-list .l-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 14px; background: var(--bg-2); color: var(--primary); }
:root[data-theme="dark"] .later-list .l-ico { color: var(--teal-300); }
.later-list .l-ico .ico { width: 22px; height: 22px; }
.later-list li > div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.later-list strong { display: block; color: var(--heading); }
.later-list li > div > span { color: var(--muted); font-size: .92rem; }
.later-list .want-btn { margin-top: 8px; }
.road-note { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 22px; text-align: center; color: var(--muted); font-weight: 600; }
.road-note .ico { color: var(--accent); }

/* ---------- Pilot band ---------- */
.pilot { position: relative; isolation: isolate; overflow: hidden; color: #E6F4F5; background: radial-gradient(60% 80% at 85% 10%, rgba(200,71,28,.35), transparent 60%), radial-gradient(50% 70% at 10% 90%, rgba(20,136,156,.45), transparent 60%), linear-gradient(160deg, var(--teal-800), var(--teal-950)); }
[dir="rtl"] .pilot { background: radial-gradient(60% 80% at 15% 10%, rgba(200,71,28,.35), transparent 60%), radial-gradient(50% 70% at 90% 90%, rgba(20,136,156,.45), transparent 60%), linear-gradient(200deg, var(--teal-800), var(--teal-950)); }
.pilot::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.08) 1.2px, transparent 1.6px); background-size: 26px 26px; }
.pilot .section-title, .pilot h3 { color: #FFFFFF; }
.pilot .section-sub { color: #B9DADF; }
.pilot .kicker { color: var(--yellow); }
.pilot-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .pilot-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; } }
.pilot-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.pilot-num { padding: 18px 12px; border-radius: 22px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); text-align: center; }
.pilot-num b { display: block; font-family: var(--font-en); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.1; color: #FFFFFF; }
.pilot-num span { font-weight: 600; color: #B9DADF; font-size: .95rem; }
.pilot-card { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-xl); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; gap: 20px; }
.pilot-card h3 { font-size: 1.15rem; display: flex; align-items: center; gap: .5em; }
.pilot-card ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pilot-card li { display: flex; gap: 10px; align-items: flex-start; }
.pilot-card li .ico { margin-top: .3em; color: var(--yellow); width: 20px; height: 20px; stroke-width: 2.6; }
.pilot-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Join (form) ---------- */
.join-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .join-grid { grid-template-columns: .85fr 1.15fr; gap: 40px; } }
.join-aside { display: grid; gap: 22px; }
@media (min-width: 960px) { .join-aside { position: sticky; top: 100px; } }
.join-aside .section-title { text-align: start; }
.join-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: js; }
.join-steps li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: js; font-weight: 600; }
.join-steps li::before { content: counter(js); display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-family: var(--font-en); }
.join-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--bg-2); color: var(--muted); font-size: .92rem; font-weight: 600; }
.join-note .ico { color: var(--green); margin-top: .25em; }
.form-card { padding: clamp(22px, 3.4vw, 40px); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; gap: 16px 18px; }
@media (min-width: 620px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .98rem; }
.optional { color: var(--faint); font-weight: 600; font-size: .88em; }
.field input[type="text"], .field input[type="tel"], .field select {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface-2); color: var(--text);
  font: 600 1rem/1.3 var(--font); transition: border-color .2s, box-shadow .2s, background-color .2s; appearance: none; -webkit-appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 40px; }
[dir="rtl"] .field select { background-position: 22px 52%, 16px 52%; }
.field input:hover, .field select:hover { border-color: var(--faint); }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px rgba(20,136,156,.18); }
.field input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 4px rgba(163,54,15,.12); }
.ltr-field { direction: ltr; text-align: start; }
[dir="rtl"] .ltr-field { text-align: right; }
.field-error { color: var(--error); font-weight: 700; font-size: .9rem; min-height: 0; }
.field-error:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); }
.consent input { flex: none; width: 22px; height: 22px; margin-top: .25em; accent-color: var(--accent); cursor: pointer; }
.consent label { font-weight: 600; }
.consent a { font-weight: 700; margin-inline-start: .3em; }
.form-actions { display: grid; gap: 10px; margin-top: 6px; }
.send-row { display: grid; gap: 10px; }
@media (min-width: 520px) { .send-row { grid-template-columns: 1fr 1fr; } }
.want-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.want-field legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: .98rem; }
.want-list { display: flex; flex-wrap: wrap; gap: 8px; }
.want-opt { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; cursor: pointer; }
.want-opt input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.want-opt:has(input:checked) { border-color: var(--accent); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.link-btn { display: inline; padding: 0; border: 0; background: none; color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; margin-inline-start: .3em; }
.hp-field { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card { position: relative; }
.form-hint { color: var(--muted); font-size: .9rem; text-align: center; }
.form-status { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 8px; }
.form-status .thanks { font-weight: 800; font-size: 1.1rem; color: var(--green); }
.form-status pre { margin: 0; padding: 12px; border-radius: 12px; background: var(--surface); white-space: pre-wrap; font: 600 .9rem/1.5 var(--font); }
.noscript { padding: 12px; border-radius: 12px; background: var(--orange-soft); color: var(--teal-950); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; interpolate-size: allow-keywords; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--line-strong); }
.faq summary { display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 800; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; flex: none; margin-inline-start: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 12px; height: 2.5px; margin: -1.25px 0 0 -6px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease); }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus { background: var(--accent); }
.faq details[open] summary .plus::before, .faq details[open] summary .plus::after { background: #fff; }
.faq details[open] summary .plus::after { transform: rotate(0); }
.faq details > p { padding: 0 22px 20px; color: var(--muted); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ---------- Final CTA ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 22px; justify-items: center; text-align: center; padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 56px); border-radius: var(--radius-xl);
  background: radial-gradient(70% 120% at 50% 0%, rgba(255,200,87,.25), transparent 60%), linear-gradient(135deg, var(--orange), #8E2E0E); color: #FFF1EA; box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.12) 1.2px, transparent 1.6px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); }
.cta-band h2 { color: #FFFFFF; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); line-height: 1.2; }
.cta-band p { max-width: 36em; font-size: 1.1rem; color: #FFE1D4; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-bell { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); }
.cta-bell svg { width: 46px; height: 46px; animation: toast-bell 3s linear infinite; transform-origin: 50% 25%; }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(48px, 7vw, 80px) 28px; background: var(--teal-950); color: #A9C8CD; }
.section-cta { padding-block: clamp(48px, 6vw, 80px); }
.doc-page + .site-footer, .site-footer.with-gap { margin-top: clamp(48px, 7vw, 96px); }
.site-footer a { color: #E4F1F2 !important; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1.2fr; } .footer-brand { grid-column: auto; } }
.footer-brand { display: grid; gap: 14px; justify-items: start; align-content: start; }
.footer-brand p { max-width: 30em; }
.footer-lockup { display: inline-flex; align-items: center; gap: 14px; text-decoration: none !important; }
.footer-logo { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 9px; }
.footer-logo svg { width: 100%; height: 100%; overflow: visible; }
.footer-names { display: grid; gap: 2px; }
.footer-wordmark { display: inline-flex; align-items: baseline; gap: .04em; direction: ltr; font-family: var(--font-wordmark); font-weight: 800; font-size: 2.1rem; line-height: 1; letter-spacing: -.045em; color: #FFFFFF; }
.footer-wordmark .dot { display: inline-block; width: .2em; height: .2em; border-radius: 50%; background: var(--orange); }
.footer-ar { font-family: var(--font-ar); font-weight: 800; font-size: 1.05rem; color: #7CC4CE; line-height: 1.2; }
.footer-tag { color: #FFFFFF; font-weight: 800; font-size: 1.15rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.footer-badges li { display: inline-flex; align-items: center; gap: 6px; padding: .35em .85em; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: .85rem; font-weight: 700; color: #DDEEF0; }
.footer-badges .ico { width: 16px; height: 16px; color: #FF9C78; }
.footer-col h3 { color: #FFFFFF; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer .link-btn { color: #E4F1F2; font-weight: 400; text-decoration: none; margin: 0; }
.site-footer .link-btn:hover { text-decoration: underline; }
.footer-cta-col { display: grid; gap: 14px; align-content: start; justify-items: start; padding: 20px; border-radius: var(--radius-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.footer-cta-col h3 { margin: 0; }
.site-footer .footer-cta-col .btn { color: #fff !important; text-decoration: none; }
.footer-lang { font-weight: 700; font-size: .92rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .92rem; }
.logo-seat { fill: #A6C4C9; }

/* ---------- Privacy pop-up ---------- */
.modal { width: min(100% - 24px, 760px); max-height: min(100dvh - 32px, 900px); padding: 0; border: 0; border-radius: var(--radius-xl); background: var(--surface); color: var(--text); box-shadow: 0 40px 80px -20px rgba(4,22,26,.6); overflow: hidden; }
.modal[open] { display: flex; flex-direction: column; animation: modal-in .35s var(--ease) both; }
.modal::backdrop { background: rgba(4,22,26,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-card { display: flex; flex-direction: column; min-height: 0; max-height: inherit; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px clamp(18px, 3vw, 28px); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.modal-head h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.modal-close { margin-inline-start: auto; }
.modal-body.doc { max-width: none; margin: 0; overflow: auto; border: 0; border-radius: 0; box-shadow: none; padding: clamp(18px, 3vw, 30px) clamp(18px, 3vw, 28px) 28px; }
.modal-body.doc h3 { font-size: 1.12rem; margin: 22px 0 6px; }
html.modal-open { overflow: hidden; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.2em; border-radius: 999px; background: #1E9E5A; color: #fff !important; text-decoration: none; font-weight: 800; box-shadow: 0 16px 30px -12px rgba(18,110,60,.7); transition: transform .3s var(--ease), opacity .3s; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float .ico { width: 22px; height: 22px; }
.wa-float.is-hidden { opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 15px; } }

/* ---------- Privacy / document pages ---------- */
.doc-page { padding-block: clamp(28px, 5vw, 64px) 0; }
.doc { max-width: 780px; margin-inline: auto; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.doc h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); margin-bottom: 6px; }
.doc h2 { font-size: 1.3rem; margin: 30px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-inline-start: 1.2em; display: grid; gap: 6px; }
.doc a { color: var(--primary) !important; font-weight: 700; }
:root[data-theme="dark"] .doc a { color: var(--teal-300) !important; }
.updated { color: var(--faint) !important; font-weight: 600; margin-bottom: 18px !important; }

/* ---------- Reduced motion: stop loops, show the story's key moment ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .toast, .ticket { animation: none !important; opacity: 1; transform: none; }
  .toast-sub .st-a { animation: none !important; opacity: 0; } .toast-sub .st-b { animation: none !important; opacity: 1; }
  .s-ding, .s-arc { animation: none !important; opacity: 1; }
  .s-call-ring, .s-steam, .s-qr-frame, .tap { animation: none !important; opacity: 0; }
  .ticker-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .progress { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .wa-float, .progress, .demo, .ticker { display: none !important; }
  body { background: #fff; color: #000; }
}
