/* ==========================================================================
   Nova Card — marketing site
   Brand colours mirror shared/design-tokens.json (the apps' source of truth).
   Surface/text tokens below flip between dark and light themes; everything
   else in this file consumes tokens, never raw colours.
   ========================================================================== */

:root {
  /* ---- Brand (identical in both themes) ---- */
  --violet: #6C4BF6;
  --violet-600: #5B4DF5;
  --violet-700: #4A38D6;
  --blue: #2C7BF2;
  --cyan: #23B6F5;
  --teal: #0FA79B;
  --gold: #E8A13D;
  --success: #4CC98A;
  --danger: #FF6B6B;

  /* ---- Shape + motion ---- */
  --r-chip: 10px;
  --r-btn: 14px;
  --r-card: 20px;
  --r-sheet: 28px;
  --t-fast: 180ms cubic-bezier(.4, 0, .2, 1);
  --t: 320ms cubic-bezier(.4, 0, .2, 1);

  --maxw: 1160px;
  --gutter: 24px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Noto Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", sans-serif;
}

/* ---------- Theme: light (default) ---------- */
:root,
html[data-theme="light"] {
  color-scheme: light;

  --bg: #F7F8FC;
  --band-bg: linear-gradient(150deg, #F2F3FB 0%, #EEEAFF 55%, #E6F1FB 100%);
  --footer-bg: #EFF1F8;
  --menu-bg: #FFFFFF;

  --surface-0: #FFFFFF;
  --surface-1: rgba(16, 19, 34, .045);
  --surface-2: rgba(16, 19, 34, .08);
  --surface-inset: #FFFFFF;
  --card-bg: #FFFFFF;
  --media-bg: linear-gradient(150deg, rgba(108, 75, 246, .10) 0%, rgba(35, 182, 245, .08) 100%);
  --input-bg: #FFFFFF;
  --input-bg-focus: #FFFFFF;

  --line: #E2E5F0;
  --line-strong: #CDD3E4;
  --grid-line: rgba(16, 19, 34, .07);

  --text: #101322;
  --text-muted: #5A6072;
  --text-dim: #666E82;

  --accent: #0C6FB4;
  --grad-end: #1477C4;
  --badge-bg: rgba(108, 75, 246, .10);
  --badge-border: rgba(108, 75, 246, .30);
  --badge-text: #4A38D6;

  --header-bg: rgba(247, 248, 252, .78);
  --header-bg-solid: rgba(247, 248, 252, .95);

  --shadow-card: 0 10px 30px rgba(16, 19, 34, .08);
  --shadow-sheet: 0 18px 50px rgba(16, 19, 34, .10);
  --shadow-menu: 0 16px 40px rgba(16, 19, 34, .14);

  --aurora-1: .22;
  --aurora-2: .16;
  --grid-opacity: .8;

  --ok-text: #14713F;
  --err-text: #9E2626;
}

/* ---------- Theme: dark (opt-in via the header toggle) ---------- */
html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0B1020;
  --band-bg: linear-gradient(150deg, #070B18 0%, #150F3B 55%, #0C2140 100%);
  --footer-bg: #070B18;
  --menu-bg: #121933;

  --surface-0: rgba(255, 255, 255, .03);
  --surface-1: rgba(255, 255, 255, .05);
  --surface-2: rgba(255, 255, 255, .09);
  --surface-inset: rgba(11, 16, 32, .6);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .02) 100%);
  --media-bg: linear-gradient(150deg, rgba(108, 75, 246, .14) 0%, rgba(35, 182, 245, .07) 100%);
  --input-bg: rgba(7, 11, 24, .55);
  --input-bg-focus: rgba(7, 11, 24, .8);

  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);
  --grid-line: rgba(255, 255, 255, .10);

  --text: #EDEFF7;
  --text-muted: #9AA1B8;
  --text-dim: #6D758F;

  --accent: #23B6F5;              /* eyebrows, ticks, links */
  --grad-end: #23B6F5;            /* end stop of the headline gradient */
  --badge-bg: rgba(108, 75, 246, .14);
  --badge-border: rgba(108, 75, 246, .40);
  --badge-text: #C9C0FF;

  --header-bg: rgba(11, 16, 32, .72);
  --header-bg-solid: rgba(11, 16, 32, .92);

  --shadow-card: 0 22px 50px rgba(0, 0, 0, .35);
  --shadow-sheet: 0 24px 60px rgba(0, 0, 0, .35);
  --shadow-menu: 0 20px 50px rgba(0, 0, 0, .5);

  --aurora-1: .50;
  --aurora-2: .32;
  --grid-opacity: .5;

  --ok-text: #A8EBC8;
  --err-text: #FFC2C2;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--t-fast), color var(--t-fast);
}
html[lang="ar"] body { font-family: var(--font-ar); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -100px; z-index: 200;
  background: var(--violet); color: #fff; padding: 12px 18px;
  border-radius: var(--r-btn); font-weight: 600; transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; padding: clamp(64px, 9vw, 116px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head.center .eyebrow::before { display: none; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.18rem; letter-spacing: -.01em; }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--text-muted); margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--r-btn); border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--violet) 0%, var(--blue) 100%);
  color: #fff; box-shadow: 0 10px 30px rgba(92, 77, 245, .35);
}
.btn-primary:hover { box-shadow: 0 16px 40px rgba(92, 77, 245, .48); }
.btn-ghost { background: var(--surface-1); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.site-header.scrolled { border-bottom-color: var(--line); background: var(--header-bg-solid); }
.nav { display: flex; align-items: center; gap: 18px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.08rem; letter-spacing: -.02em; }
.brand img { width: 34px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links a {
  padding: 9px 14px; border-radius: var(--r-chip); font-size: .93rem; font-weight: 500;
  color: var(--text-muted); transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--text); background: var(--surface-1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* shared pill-button look for the theme + language controls */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 42px; height: 42px; padding: 0 13px;
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-chip);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { border-color: var(--accent); background: var(--surface-2); }
.icon-btn svg { width: 17px; height: 17px; flex: none; }

/* sun in light mode, moon in dark mode */
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
html[data-theme="light"] .theme-toggle .i-sun { display: block; }
html[data-theme="light"] .theme-toggle .i-moon { display: none; }

.lang-switch { position: relative; }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 168px;
  background: var(--menu-bg); border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  padding: 6px; box-shadow: var(--shadow-menu); display: none; z-index: 110;
}
.lang-menu[data-open="true"] { display: block; }
.lang-menu button {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px;
  background: none; border: 0; border-radius: var(--r-chip); cursor: pointer;
  font-size: .93rem; text-align: start; transition: background var(--t-fast);
}
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu button[aria-current="true"] { background: rgba(108, 75, 246, .22); color: var(--text); font-weight: 600; }
html[data-theme="light"] .lang-menu button[aria-current="true"] { background: rgba(108, 75, 246, .12); color: var(--violet-700); }
.lang-native { color: var(--text-muted); font-size: .85rem; margin-inline-start: auto; }

.nav-toggle { display: none; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: background var(--t-fast); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; inset-inline-start: 0; width: 18px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform var(--t-fast);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset-block-start: 74px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px var(--gutter) 24px;
    transform: translateY(-130%); transition: transform var(--t); margin: 0;
  }
  .nav-links[data-open="true"] { transform: translateY(0); }
  .nav-links a { padding: 14px 12px; font-size: 1rem; }
  .nav .btn-primary { display: none; }
}

/* ---------- Backgrounds ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora::before, .aurora::after { content: ""; position: absolute; border-radius: 50%; filter: blur(110px); }
.aurora::before {
  width: 620px; height: 620px; opacity: var(--aurora-1);
  background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
  top: -240px; inset-inline-start: -160px;
}
.aurora::after {
  width: 560px; height: 560px; opacity: var(--aurora-2);
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  top: 60px; inset-inline-end: -200px;
}
.grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: var(--grid-opacity);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 75%);
}
.wrap, .hero-inner { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(56px, 8vw, 100px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px;
  background: var(--badge-bg); border: 1px solid var(--badge-border);
  border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--badge-text); margin-bottom: 22px;
}
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(76, 201, 138, .18); }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--violet) 0%, var(--blue) 45%, var(--grad-end) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--text-dim); }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px; padding: 10px 18px;
  background: var(--surface-1); border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.store-badge:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-2px); }
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge .sb-top { display: block; font-size: .68rem; color: var(--text-dim); line-height: 1.3; }
.store-badge .sb-main { display: block; font-size: .96rem; font-weight: 600; line-height: 1.25; }

/* ---------- Phone mockup (stays dark in both themes — it is a device) ------ */
.phone-stage { display: flex; justify-content: center; align-items: center; position: relative; }
.phone {
  position: relative; width: min(320px, 82vw); aspect-ratio: 320 / 690;
  background: linear-gradient(160deg, #1B2340 0%, #0D142B 100%);
  border: 9px solid #05080F; border-radius: 46px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  overflow: hidden; z-index: 2; color: #EDEFF7;
}
.phone::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 24px; background: #05080F; border-radius: 999px; z-index: 5;
}
.phone-screen { position: absolute; inset: 0; padding: 44px 16px 16px; display: flex; flex-direction: column; gap: 12px; }

.mock-card {
  border-radius: var(--r-card); padding: 16px; color: #fff;
  background: linear-gradient(140deg, var(--violet-600) 0%, var(--blue) 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.mock-top { display: flex; align-items: center; gap: 11px; }
.mock-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #fff 0%, #D9D5FF 100%);
  display: grid; place-items: center; font-weight: 700; color: var(--violet-700); font-size: 1rem;
}
.mock-name { font-weight: 700; font-size: .96rem; letter-spacing: -.01em; }
.mock-role { font-size: .74rem; opacity: .82; }
.mock-actions { display: flex; gap: 6px; margin-top: 14px; }
.mock-chip { flex: 1; text-align: center; padding: 7px 0; border-radius: var(--r-chip); background: rgba(255, 255, 255, .2); font-size: .64rem; font-weight: 600; }
.mock-pay { margin-top: 8px; padding: 9px; border-radius: var(--r-chip); text-align: center; background: #fff; color: var(--violet-700); font-weight: 700; font-size: .74rem; }
.mock-qr { background: #fff; border-radius: var(--r-card); padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mock-qr svg { width: 108px; height: 108px; }
.mock-qr span { font-size: .62rem; color: #5A6072; font-weight: 600; text-align: center; }
.mock-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10); border-radius: var(--r-chip);
}
.mock-row .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: .7rem; }
.mock-row .tx { font-size: .7rem; color: #9AA1B8; }
.mock-row .tx b { display: block; color: #EDEFF7; font-size: .76rem; font-weight: 600; }

.float-tag {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--menu-bg); border: 1px solid var(--line-strong); color: var(--text);
  backdrop-filter: blur(10px); box-shadow: var(--shadow-menu); white-space: nowrap;
  animation: bob 5s ease-in-out infinite;
}
.float-tag.t1 { top: 12%; inset-inline-start: -6%; }
.float-tag.t2 { bottom: 20%; inset-inline-end: -8%; animation-delay: -2.5s; }
.float-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.float-tag.t2 i { background: var(--gold); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@media (max-width: 980px) { .float-tag { display: none; } }

/* ---------- Stats strip ---------- */
.stats { border-block: 1px solid var(--line); background: var(--surface-0); padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px; text-align: center; border-inline-end: 1px solid var(--line); }
.stat:last-child { border-inline-end: 0; }
.stat b {
  display: block; font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 700; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--grad-end), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: .84rem; color: var(--text-muted); }
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Feature cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.card .ic-box {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(108, 75, 246, .28), rgba(35, 182, 245, .2));
  border: 1px solid rgba(108, 75, 246, .35);
}
html[data-theme="light"] .card .ic-box { background: linear-gradient(135deg, rgba(108, 75, 246, .16), rgba(35, 182, 245, .12)); }
.card .ic-box svg { width: 22px; height: 22px; stroke: var(--accent); }
.card p { color: var(--text-muted); font-size: .95rem; margin-top: 10px; }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.card ul li { position: relative; padding-inline-start: 24px; font-size: .89rem; color: var(--text-muted); }
.card ul li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 12px; height: 7px;
  border-inline-start: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg); border-radius: 1px;
}

/* ---------- Alternating deep-dive rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 68px); align-items: center; }
.split + .split { margin-top: clamp(56px, 8vw, 104px); }
.split.flip .split-media { order: -1; }
.split-media {
  border-radius: var(--r-sheet); padding: 28px; border: 1px solid var(--line); background: var(--media-bg);
  min-height: 300px; display: flex; align-items: center; justify-content: center;
}
.feature-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; }
.feature-list .tick {
  width: 22px; height: 22px; flex: none; border-radius: 50%; margin-top: 2px;
  background: rgba(76, 201, 138, .16); border: 1px solid rgba(76, 201, 138, .4);
  display: grid; place-items: center;
}
.feature-list .tick svg { width: 11px; height: 11px; stroke: var(--success); }
html[data-theme="light"] .feature-list .tick svg { stroke: #189255; }
.feature-list b { display: block; font-size: .96rem; font-weight: 600; }
.feature-list span { font-size: .89rem; color: var(--text-muted); }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-cta, .store-badges, .badge-pill { justify-content: center; }
  .hero .eyebrow { justify-content: center; }
}

/* mini visual widgets inside split-media */
.mini { width: 100%; display: grid; gap: 12px; }
.mini-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  background: var(--surface-inset); border: 1px solid var(--line); border-radius: var(--r-btn);
}
.mini-row .num {
  width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet), var(--blue)); font-size: .74rem; font-weight: 700; color: #fff;
}
.mini-row .lbl { font-size: .88rem; font-weight: 600; }
.mini-row .sub { font-size: .78rem; color: var(--text-muted); }
.mini-row .pill {
  margin-inline-start: auto; padding: 4px 11px; border-radius: 999px; font-size: .7rem; font-weight: 600;
  background: rgba(35, 182, 245, .16); color: var(--accent); border: 1px solid rgba(35, 182, 245, .3); white-space: nowrap;
}
.mini-row .pill.warn { background: rgba(232, 161, 61, .16); color: var(--gold); border-color: rgba(232, 161, 61, .34); }
.mini-row .pill.ok { background: rgba(76, 201, 138, .16); color: var(--success); border-color: rgba(76, 201, 138, .34); }
html[data-theme="light"] .mini-row .pill.warn { color: #96620F; }
html[data-theme="light"] .mini-row .pill.ok { color: #14713F; }

.qr-demo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 22px; display: grid; place-items: center; gap: 12px;
}
.qr-demo svg { width: min(190px, 46vw); height: auto; }
.qr-demo p { color: #5A6072; font-size: .8rem; text-align: center; font-weight: 500; max-width: 230px; }

/* ---------- Tinted band ---------- */
.band { background: var(--band-bg); border-block: 1px solid var(--line); }
.privacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 42px; }
.privacy-item { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-0); }
.privacy-item .big { font-size: 1.5rem; font-weight: 700; color: var(--accent); letter-spacing: -.02em; }
.privacy-item h3 { margin-top: 6px; font-size: 1rem; }
.privacy-item p { font-size: .88rem; color: var(--text-muted); margin-top: 7px; }

/* ---------- Languages ---------- */
.lang-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.lang-card { padding: 26px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--card-bg); }
.lang-card .flagtag { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.lang-card .sample { font-size: 1.28rem; font-weight: 600; margin-top: 12px; letter-spacing: -.01em; }
.lang-card .sample.rtl { direction: rtl; font-family: var(--font-ar); }
.lang-card .meta { font-size: .84rem; color: var(--text-muted); margin-top: 10px; }

/* ---------- Roadmap ---------- */
.timeline { display: grid; gap: 16px; }
.tl-item {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-0);
}
.tl-dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(76, 201, 138, .15); border: 1px solid rgba(76, 201, 138, .4);
}
.tl-dot svg { width: 15px; height: 15px; stroke: var(--success); }
.tl-item.next .tl-dot { background: rgba(232, 161, 61, .14); border-color: rgba(232, 161, 61, .4); }
.tl-item.next .tl-dot svg { stroke: var(--gold); }
.tl-item h3 { font-size: 1.04rem; }
.tl-item p { font-size: .9rem; color: var(--text-muted); margin-top: 6px; }
.tl-status {
  display: inline-block; margin-bottom: 8px; padding: 3px 11px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(76, 201, 138, .16); color: var(--success); border: 1px solid rgba(76, 201, 138, .3);
}
.tl-item.next .tl-status { background: rgba(232, 161, 61, .14); color: var(--gold); border-color: rgba(232, 161, 61, .3); }
html[data-theme="light"] .tl-status { color: #14713F; }
html[data-theme="light"] .tl-item.next .tl-status { color: #96620F; }
html[data-theme="light"] .tl-dot svg { stroke: #189255; }
html[data-theme="light"] .tl-item.next .tl-dot svg { stroke: #B4761A; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-0);
  overflow: hidden; transition: border-color var(--t-fast);
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-inline-start: auto; width: 10px; height: 10px; flex: none;
  border-inline-end: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--t-fast);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq .faq-body { padding: 0 24px 22px; color: var(--text-muted); font-size: .94rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-list { display: grid; gap: 14px; margin-top: 30px; }
.contact-item {
  display: flex; gap: 15px; align-items: flex-start; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-0);
  transition: border-color var(--t-fast), background var(--t-fast);
}
a.contact-item:hover { border-color: var(--accent); }
.contact-item .ic-box {
  width: 42px; height: 42px; margin: 0; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(108, 75, 246, .28), rgba(35, 182, 245, .2));
  border: 1px solid rgba(108, 75, 246, .35); color: var(--accent);
}
html[data-theme="light"] .contact-item .ic-box { background: linear-gradient(135deg, rgba(108, 75, 246, .16), rgba(35, 182, 245, .12)); }
.contact-item .ic-box svg { width: 20px; height: 20px; }
.contact-item .ck { font-size: .76rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .09em; font-weight: 600; }
.contact-item .cv { font-size: .99rem; font-weight: 600; margin-top: 3px; word-break: break-word; }

.form-card {
  border: 1px solid var(--line-strong); border-radius: var(--r-sheet); padding: clamp(24px, 3.4vw, 38px);
  background: var(--card-bg); box-shadow: var(--shadow-sheet);
}
.field { margin-bottom: 17px; }
.field label { display: block; font-size: .87rem; font-weight: 600; margin-bottom: 7px; }
.field .req { color: var(--danger); }
html[data-theme="light"] .field .req { color: #C4302B; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; background: var(--input-bg);
  border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast); font-size: .96rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--violet); background: var(--input-bg-focus);
  box-shadow: 0 0 0 4px rgba(108, 75, 246, .16);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { display: none; font-size: .82rem; color: var(--err-text); margin-top: 6px; }
.field-error[data-show="true"] { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* Honeypot — visually hidden but not display:none (bots skip display:none) */
.hp-field {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.form-note { font-size: .82rem; color: var(--text-dim); margin-top: 14px; text-align: center; }
.form-status { display: none; margin-top: 16px; padding: 14px 18px; border-radius: var(--r-btn); font-size: .92rem; }
.form-status[data-state="success"] { display: block; background: rgba(76, 201, 138, .12); border: 1px solid rgba(76, 201, 138, .4); color: var(--ok-text); }
.form-status[data-state="error"] { display: block; background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .4); color: var(--err-text); }
.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite; display: none;
}
.btn[data-loading="true"] .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-inner {
  border: 1px solid var(--line-strong); border-radius: var(--r-sheet);
  padding: clamp(38px, 6vw, 70px) clamp(24px, 4vw, 56px);
  background: linear-gradient(140deg, rgba(108, 75, 246, .22) 0%, rgba(35, 182, 245, .12) 100%);
}
html[data-theme="light"] .cta-inner { background: linear-gradient(140deg, rgba(108, 75, 246, .12) 0%, rgba(35, 182, 245, .09) 100%); }
.cta-inner .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--footer-bg); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid p { font-size: .9rem; color: var(--text-muted); margin-top: 14px; max-width: 320px; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: .92rem; color: var(--text-muted); padding: 5px 0; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  font-size: .87rem; color: var(--text-dim);
}
.footer-bottom a { color: blue; }
.footer-bottom a:hover { color: var(--accent); }
.credit { display: inline-flex; align-items: center; gap: 7px; }
.credit a { font-weight: 600; color: var(--accent); }
.credit a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-credits { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.footer-credits .sep { color: var(--line-strong); }
@media (max-width: 600px) { .footer-credits .sep { display: none; } }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal { padding-top: clamp(48px, 7vw, 80px); }
.legal-body { max-width: 800px; margin-inline: auto; }
.legal-body h2 { font-size: 1.4rem; margin-top: 42px; }
.legal-body h3 { font-size: 1.06rem; margin-top: 26px; }
.legal-body p, .legal-body li { color: var(--text-muted); font-size: .97rem; margin-top: 12px; }
.legal-body ul { padding-inline-start: 22px; }
.legal-body strong { color: var(--text); }
.legal-body code { background: var(--surface-1); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.legal-meta {
  padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-btn);
  background: var(--surface-0); font-size: .88rem; color: var(--text-muted); margin-top: 22px;
}
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- RTL adjustments ---------- */
[dir="rtl"] .faq summary::after { transform: rotate(135deg) translate(-2px, -2px); }
[dir="rtl"] .faq details[open] summary::after { transform: rotate(-45deg) translate(-2px, -2px); }
[dir="rtl"] .card ul li::before { transform: rotate(-45deg); }
[dir="rtl"] .phone::before { left: 50%; }
