/* ═══════════════════════════════════════════════════════════
   belya · marketing site
   Design language: Apple-clean, warm amber accent, light-first
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:          #f6f4ef;
  --bg-2:        #edeae2;
  --surface:     #ffffff;
  --surface-2:   #f0ede6;
  --line:        #d9d4c7;
  --ink:         #1c1b18;
  --ink-2:       #57554e;
  --ink-3:       #8a887f;
  --ink-4:       #b6b3a8;

  --accent:      #c07020;
  --accent-deep: #8f4e1a;
  --accent-tint: rgba(192,112,32,0.10);
  --accent-line: rgba(192,112,32,0.30);

  --good:        #4a7a3a;
  --warn:        #a07820;
  --bad:         #b04838;

  --r:            20px;
  --r-sm:         12px;
  --r-lg:         32px;

  --font-en: 'Inter', -apple-system, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Inter', sans-serif;

  /* Theme-aware tokens */
  --nav-bg:         rgba(246,244,239,0.85);
  --nav-bg-scroll:  rgba(246,244,239,0.97);
  --btn-accent-text: #ffffff;

  /* Phone screen tokens */
  --surface-3:   #e4e0d6;
  --line-soft:   #e7e3d8;
  --sb-ink:      #1c1b18;
  --phone-bezel: #1c1b18;
  --phone-ring:  #d9d4c7;
  --hero-grad-phone: radial-gradient(circle at 20% 0%, rgba(184,106,43,0.12), transparent 55%), linear-gradient(180deg, #ffffff 0%, #faf7f1 100%);
  --info:        #4a6a92;
  --shadow-lg:   0 30px 60px rgba(60,50,30,0.12);
}

/* ── Dark mode — commented out, site is light-only for now ── */
/*
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0a0a0b;
    --bg-2:         #111113;
    --surface:      #18181b;
    --surface-2:    #222228;
    --line:         #27272d;
    --ink:          #f5f4f1;
    --ink-2:        #b8b6ae;
    --ink-3:        #7a7871;
    --ink-4:        #3a3a40;
    --accent:       #e8a363;
    --accent-deep:  #c07830;
    --accent-tint:  rgba(232,163,99,0.12);
    --accent-line:  rgba(232,163,99,0.22);
    --good:         #8fbf7f;
    --warn:         #e8c770;
    --bad:          #d88872;
    --nav-bg:         rgba(10,10,11,0.80);
    --nav-bg-scroll:  rgba(10,10,11,0.96);
    --btn-accent-text: #0a0a0b;
    --surface-3:    #26262c;
    --line-soft:    #1d1d22;
    --sb-ink:       #f5f4f1;
    --phone-bezel:  #000;
    --phone-ring:   #2a2a30;
    --hero-grad-phone: radial-gradient(circle at 20% 0%, rgba(232,163,99,0.18), transparent 55%), linear-gradient(180deg, #1c1c20 0%, #131316 100%);
    --info:         #8fa8c8;
    --shadow-lg:    0 30px 60px rgba(0,0,0,0.5);
  }
}

html[data-theme="dark"] {
  --bg:           #0a0a0b;
  --bg-2:         #111113;
  --surface:      #18181b;
  --surface-2:    #222228;
  --line:         #27272d;
  --ink:          #f5f4f1;
  --ink-2:        #b8b6ae;
  --ink-3:        #7a7871;
  --ink-4:        #3a3a40;
  --accent:       #e8a363;
  --accent-deep:  #c07830;
  --accent-tint:  rgba(232,163,99,0.12);
  --accent-line:  rgba(232,163,99,0.22);
  --good:         #8fbf7f;
  --warn:         #e8c770;
  --bad:          #d88872;
  --nav-bg:         rgba(10,10,11,0.80);
  --nav-bg-scroll:  rgba(10,10,11,0.96);
  --btn-accent-text: #0a0a0b;
  --surface-3:    #26262c;
  --line-soft:    #1d1d22;
  --sb-ink:       #f5f4f1;
  --phone-bezel:  #000;
  --phone-ring:   #2a2a30;
  --hero-grad-phone: radial-gradient(circle at 20% 0%, rgba(232,163,99,0.18), transparent 55%), linear-gradient(180deg, #1c1c20 0%, #131316 100%);
  --info:         #8fa8c8;
  --shadow-lg:    0 30px 60px rgba(0,0,0,0.5);
}
*/

/* ── Light mode via manual toggle (override dark system pref) ── */
html[data-theme="light"] {
  --bg:          #f6f4ef;
  --bg-2:        #edeae2;
  --surface:     #ffffff;
  --surface-2:   #f0ede6;
  --line:        #d9d4c7;
  --ink:         #1c1b18;
  --ink-2:       #57554e;
  --ink-3:       #8a887f;
  --ink-4:       #b6b3a8;
  --accent:      #c07020;
  --accent-deep: #8f4e1a;
  --accent-tint: rgba(192,112,32,0.10);
  --accent-line: rgba(192,112,32,0.30);
  --good:        #4a7a3a;
  --warn:        #a07820;
  --bad:         #b04838;
  --nav-bg:         rgba(246,244,239,0.85);
  --nav-bg-scroll:  rgba(246,244,239,0.97);
  --btn-accent-text: #ffffff;
  --surface-3:   #e4e0d6;
  --line-soft:   #e7e3d8;
  --sb-ink:      #1c1b18;
  --phone-bezel: #1c1b18;
  --phone-ring:  #d9d4c7;
  --hero-grad-phone: radial-gradient(circle at 20% 0%, rgba(184,106,43,0.12), transparent 55%), linear-gradient(180deg, #ffffff 0%, #faf7f1 100%);
  --info:        #4a6a92;
  --shadow-lg:   0 30px 60px rgba(60,50,30,0.12);
}



*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; color-scheme: light; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.25s, color 0.25s;
}

html[data-lang="ar"] body {
  font-family: var(--font-ar);
  direction: rtl;
}

/* Language + region visibility */
.en, .ar, .region-eg, .region-sa { display: none; }

html[data-lang="en"] .en:not(.region-eg):not(.region-sa) { display: revert; }
html[data-lang="ar"] .ar:not(.region-eg):not(.region-sa) { display: revert; }

html[data-lang="en"][data-region="eg"] .en.region-eg { display: revert; }
html[data-lang="en"][data-region="sa"] .en.region-sa { display: revert; }
html[data-lang="ar"][data-region="eg"] .ar.region-eg { display: revert; }
html[data-lang="ar"][data-region="sa"] .ar.region-sa { display: revert; }

html[data-region="eg"] .price-row.region-eg { display: flex; }
html[data-region="sa"] .price-row.region-sa { display: flex; }

html[data-region="eg"] div.region-eg:not(.en):not(.ar) { display: block; }
html[data-region="sa"] div.region-sa:not(.en):not(.ar) { display: block; }

/* SVG text in phone mockups: language + region visibility */
svg text.en, svg text.ar { display: none; }
html[data-lang="en"] svg text.en:not(.region-eg):not(.region-sa) { display: inline; }
html[data-lang="ar"] svg text.ar:not(.region-eg):not(.region-sa) { display: inline; }
html[data-lang="en"][data-region="eg"] svg text.en.region-eg { display: inline; }
html[data-lang="en"][data-region="sa"] svg text.en.region-sa { display: inline; }
html[data-lang="ar"][data-region="eg"] svg text.ar.region-eg { display: inline; }
html[data-lang="ar"][data-region="sa"] svg text.ar.region-sa { display: inline; }

span.en, span.ar, span.region-eg, span.region-sa { display: none; }
html[data-lang="en"] span.en:not(.region-eg):not(.region-sa) { display: inline; }
html[data-lang="ar"] span.ar:not(.region-eg):not(.region-sa) { display: inline; }
html[data-lang="en"][data-region="eg"] span.en.region-eg { display: inline; }
html[data-lang="en"][data-region="sa"] span.en.region-sa { display: inline; }
html[data-lang="ar"][data-region="eg"] span.ar.region-eg { display: inline; }
html[data-lang="ar"][data-region="sa"] span.ar.region-sa { display: inline; }


.currency-eg,
.currency-sa {
  display: none;
}
html[data-region="eg"] .currency-eg {
  display: inline;
}
html[data-region="sa"] .currency-sa {
  display: inline;
}

/* RTL directional overrides */
html[data-lang="ar"] .hero-eyebrow,
html[data-lang="ar"] .section-eyebrow { flex-direction: row-reverse; }
html[data-lang="ar"] .chat-bubbles { right: auto; left: 32px; }
html[data-lang="ar"] .health-ring { right: auto; left: 32px; }
html[data-lang="ar"] .notif-pills { right: auto; left: 28px; }
html[data-lang="ar"] .vin-art { right: auto; left: 24px; }
html[data-lang="ar"] .chart-bars { right: auto; left: 24px; }
html[data-lang="ar"] .bubble.user { border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
html[data-lang="ar"] .bubble.ai { border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
html[data-lang="ar"] .btn-secondary svg { transform: scaleX(-1); }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s;
}
nav.scrolled { background: var(--nav-bg-scroll); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo svg { width: 26px; height: 26px; }
.nav-logo img { width: 26px; height: 26px; border-radius: 6px; }
.logo-dark { display: none; }
/* dark logo switching — commented out, light-only for now
html[data-theme="dark"] .logo-dark { display: block; }
html[data-theme="dark"] .logo-light { display: none; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .logo-dark { display: block; }
  html:not([data-theme="light"]) .logo-light { display: none; }
}
*/
.nav-logo-word {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-links {
  display: none;
  align-items: center; gap: 28px;
  list-style: none;
}
@media (min-width: 768px) {
  nav { padding: 0 40px; height: 60px; }
  .nav-links { display: flex; }
}

.nav-menu-btn {
  display: flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-menu-btn svg { width: 18px; height: 18px; }
@media (min-width: 768px) { .nav-menu-btn { display: none; } }

.nav-drawer {
  position: fixed;
  inset: 56px 0 0 0;
  z-index: 99;
  background: var(--nav-bg-scroll);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-top: 1px solid var(--line);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
@media (min-width: 768px) { .nav-drawer { display: none; } }
.nav-drawer.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-drawer a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
}
.nav-links a {
  color: var(--ink-2); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 8px; }
@media (min-width: 768px) { .nav-right { gap: 12px; } }

.btn-app span { display: none; }
@media (min-width: 480px) { .btn-app span { display: inline; } }

.lang-picker {
  display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 3px; gap: 2px;
}
.lang-btn {
  font-family: inherit; font-size: 10px; font-weight: 600;
  padding: 5px 9px; border-radius: 7px; border: none;
  background: transparent; color: var(--ink-3);
  cursor: pointer; transition: all 0.15s; letter-spacing: 0.02em;
  white-space: nowrap;
}
.lang-btn.active { background: var(--ink); color: var(--bg); }
.lang-btn:not(.active):hover { color: var(--ink); }
@media (min-width: 768px) { .lang-btn { font-size: 11px; padding: 5px 11px; } }

.btn-app {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 9px 20px; border-radius: 100px;
  background: var(--accent); color: var(--btn-accent-text);
  border: none; cursor: pointer; text-decoration: none;
  transition: all 0.2s; white-space: nowrap;
}
.btn-app:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-app svg { width: 16px; height: 16px; }

/* ── Sections ── */
section { padding: 72px 20px; }
@media (min-width: 768px) { section { padding: 100px 40px; } }
@media (min-width: 1024px) { section { padding: 120px 48px; } }

.container { max-width: 1200px; margin: 0 auto; }

/* ── Hero ── */
#hero {
  min-height: 100svh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 76px 20px 60px;
}
@media (min-width: 768px) { #hero { padding: 100px 40px 80px; } }
@media (min-width: 1024px) { #hero { padding: 120px 48px 100px; } }

.hero-glow {
  position: absolute; top: -22%; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 1100px;
  background: radial-gradient(circle,
    rgba(232,163,99,0.16) 0%,
    rgba(232,163,99,0.07) 38%,
    transparent 68%);
  pointer-events: none;
}

/* Secondary glow — offset for depth */
.hero-glow::after {
  content: '';
  position: absolute;
  inset: 30% 20%;
  background: radial-gradient(circle, rgba(232,163,99,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 40px; align-items: center;
  width: 100%; max-width: 1200px; margin: 0 auto;
  text-align: center;
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 60px; text-align: left; }
  html[data-lang="ar"] .hero-grid { text-align: right; }
  /* In RTL the grid flows right-to-left, so swap column order to keep phones on the right */
  html[data-lang="ar"] .hero-copy   { order: 2; }
  html[data-lang="ar"] .hero-phones { order: 1; }
}

.hero-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: block; width: 24px; height: 1px;
  background: var(--accent); flex-shrink: 0;
}



.hero-title {
  font-size: clamp(46px, 5.8vw, 84px);
  font-weight: 600; line-height: 1.0;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, #f0b87a 60%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(15px, 2.5vw, 18px); line-height: 1.6;
  color: var(--ink-2); max-width: 480px;
  margin-bottom: 36px;
  margin-left: auto; margin-right: auto;
}
@media (min-width: 768px) { .hero-sub { margin-left: 0; margin-right: 0; } }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; }
@media (min-width: 768px) { .hero-ctas { justify-content: flex-start; } }
html[data-lang='ar'] .hero-ctas { justify-content: flex-end; }

.hero-pills { display: none; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-pill {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  white-space: nowrap;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 14px 30px; border-radius: 100px;
  background: var(--accent); color: var(--btn-accent-text);
  border: none; cursor: pointer; text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(232,163,99,0.20);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(232,163,99,0.32);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 500;
  padding: 14px 28px; border-radius: 100px;
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line); cursor: pointer; text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--ink-3); color: var(--ink); }

/* Phone mockup stack */
.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  height: 320px;
  margin-top: 8px;
  overflow: visible;
}
@media (min-width: 480px) { .hero-phones { height: 380px; } }
@media (min-width: 768px) { .hero-phones { height: 540px; margin-top: 0; } }
@media (min-width: 1024px) { .hero-phones { height: 600px; } }

.phone-mock {
  position: absolute;
  width: clamp(160px, 42vw, 260px);
  border-radius: 50px;
  background: #ffffff;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.08),
    0 20px 60px rgba(0,0,0,0.16),
    0 4px 16px rgba(0,0,0,0.08);
}
.phone-screen {
  border-radius: 40px;
  overflow: hidden;
  height: clamp(300px, 80vw, 500px);
  position: relative;
  display: block;
}
.phone-screen svg { direction: ltr; unicode-bidi: isolate; }

.phone-main {
  top: 20px; left: 50%;
  z-index: 3;
  /* Float animation is managed by GSAP for all platforms */
  will-change: transform;
}
.phone-left {
  top: 40px; left: calc(50% - clamp(80px, 22vw, 200px));
  z-index: 2; transform: rotate(-6deg) scale(0.87);
  filter: brightness(0.42) blur(0.5px);
  display: none;
}
.phone-right {
  top: 40px; left: calc(50% + clamp(24px, 8vw, 60px));
  z-index: 2; transform: rotate(6deg) scale(0.87);
  filter: brightness(0.42) blur(0.5px);
  display: none;
}
@media (min-width: 768px) {
  .phone-main { top: 40px; }
  .phone-left, .phone-right { display: block; top: 80px; }
}

/* phone-float animation removed — GSAP handles floating on all platforms */

/* Ambient glow behind phone cluster */
.hero-phones { overflow: visible; }
.hero-phones::before {
  content: '';
  position: absolute;
  inset: -4% 0%;
  background: radial-gradient(ellipse at 50% 64%,
    rgba(232,163,99,0.52) 0%,
    rgba(232,163,99,0.20) 34%,
    transparent 64%);
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  z-index: 1;
}

/* Floor glow reflection beneath phones */
.hero-phones::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: 10%; right: 10%;
  height: 90px;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(232,163,99,0.30) 0%,
    transparent 72%);
  filter: blur(22px);
  pointer-events: none;
  z-index: 0;
}

/* ── Floating feature chips ── */
.hero-chip {
  position: absolute;
  z-index: 10;
  background: rgba(250,248,244,0.88);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 100px;
  padding: 6px 11px;
  display: none;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 36px rgba(60,50,30,0.12), 0 1px 0 rgba(255,255,255,0.8) inset;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  font-size: 10px;
}
@media (min-width: 768px) {
  .hero-chip { padding: 9px 16px; gap: 8px; font-size: inherit; }
}
/* dark hero-chip — commented out, light-only for now
@media (prefers-color-scheme: dark) {
  .hero-chip {
    background: rgba(18,18,21,0.82);
    border-color: rgba(255,255,255,0.09);
    box-shadow: 0 8px 36px rgba(0,0,0,0.36), 0 1px 0 rgba(255,255,255,0.06) inset;
  }
}
html[data-theme="dark"] .hero-chip {
  background: rgba(18,18,21,0.82);
  border-color: rgba(255,255,255,0.09);
  box-shadow: 0 8px 36px rgba(0,0,0,0.36), 0 1px 0 rgba(255,255,255,0.06) inset;
}
*/
/* Show all chips at all sizes */
.hero-chip { display: flex; }

.chip-score  { font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.chip-slash  { font-size: 10px; color: var(--ink-4); margin-left: -4px; margin-right: 2px; }
.chip-dot    { width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex-shrink: 0;
               box-shadow: 0 0 6px rgba(143,191,127,0.6); }
.chip-label  { font-size: 11px; color: var(--ink-2); font-weight: 500; }

/* Mobile chip positions — tight to the single phone */
.chip-health { top: 8%;   right: -2%;  animation: chip-float-a 3.8s ease-in-out infinite; }
.chip-ai     { bottom: 30%; left: -2%; animation: chip-float-b 4.5s ease-in-out infinite; }
.chip-due    { top: 42%;  left: -2%;  animation: chip-float-c 3.2s ease-in-out infinite 0.8s; }

/* Scale up chip size and push them out more on larger screens */
@media (min-width: 480px) {
  .chip-health { right: 0%; }
  .chip-ai     { left: 0%; }
  .chip-due    { left: 0%; }
}
@media (min-width: 768px) {
  .chip-health { top: 10%; right: 4%; }
  .chip-ai     { bottom: 28%; left: 2%; }
  .chip-due    { top: 40%; left: 2%; }
}

html[data-lang="ar"] .chip-health { right: auto; left:  -2%; }
html[data-lang="ar"] .chip-ai     { left:  auto; right: -2%; }
html[data-lang="ar"] .chip-due    { left:  auto; right: -2%; }
@media (min-width: 768px) {
  html[data-lang="ar"] .chip-health { right: auto; left:  4%; }
  html[data-lang="ar"] .chip-ai     { left:  auto; right: 3%; }
  html[data-lang="ar"] .chip-due    { left:  auto; right: 16%; }
}

@keyframes chip-float-a { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes chip-float-b { 0%,100%{transform:translateY(0)} 50%{transform:translateY( 7px)} }
@keyframes chip-float-c { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

/* ── SVG Phone Screen Art ── */
.screen-art { width: 100%; height: 100%; }

/* ── Section separators ── */
#features  { background: var(--bg-2); position: relative; }
#features::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  pointer-events: none;
}
#how::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  pointer-events: none;
}
#how { position: relative; }
#screens::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  pointer-events: none;
}
#screens { position: relative; }

/* ── Features bento ── */

.section-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::before {
  content: ''; display: block; width: 20px; height: 1px;
  background: var(--accent); flex-shrink: 0;
}


.section-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.05; color: var(--ink);
  margin-bottom: 16px;
}
.section-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400; color: var(--accent);
}

.section-sub {
  font-size: 17px; color: var(--ink-2);
  max-width: 520px; line-height: 1.6;
  margin-bottom: 64px;
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento-card.span-7 { grid-column: span 7; }
  .bento-card.span-5 { grid-column: span 5; }
  .bento-card.span-4 { grid-column: span 4; }
  .bento-card.span-8 { grid-column: span 8; }
  .bento-card.span-6 { grid-column: span 6; }
  .bento-card.span-12 { grid-column: span 12; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .bento-card.span-12 { grid-column: span 2; }
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  min-height: 220px;
  position: relative; overflow: hidden;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 16px 40px rgba(0,0,0,0.14);
}
@media (min-width: 768px) { .bento-card { padding: 40px; min-height: 260px; } }
.bento-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-4px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset,
              0 28px 56px rgba(0,0,0,0.22),
              0 0 0 1px var(--accent-line);
}

.bento-card.span-7 { grid-column: span 7; }
.bento-card.span-5 { grid-column: span 5; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-8 { grid-column: span 8; }
.bento-card.span-6 { grid-column: span 6; }
.bento-card.span-12 { grid-column: span 12; }

@media (max-width: 1023px) {
  .bento-card[class*="span-"] { grid-column: auto; }
}

.bento-card.span-7 { min-height: 280px; }
@media (min-width: 768px) { .bento-card.span-7 { min-height: 340px; } }

.bento-resale-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 640px) {
  .bento-resale-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.bento-resale-cards {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
html[data-lang="ar"] .bento-resale-cards { justify-content: flex-end; }

.bento-icon {
  width: 44px; height: 44px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
}
.bento-icon svg { width: 22px; height: 22px; }

.bento-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}

.bento-title {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 10px; line-height: 1.2;
}
.bento-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400; color: var(--accent);
}

.bento-desc {
  font-size: 14px; color: var(--ink-2); line-height: 1.6;
  max-width: 360px;
}

/* Card decorative art */
.card-art {
  position: absolute;
  pointer-events: none;
}

/* AI mechanic card chat bubbles */
.chat-bubbles {
  position: absolute; bottom: 32px; right: 32px;
  display: flex; flex-direction: column; gap: 8px;
  width: 200px;
}


.bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 12px; line-height: 1.4;
  max-width: 180px;
}
.bubble.user {
  background: var(--accent);
  color: #0a0a0b;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.bubble.ai {
  background: var(--surface-2);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}



/* Health score ring */
.health-ring {
  position: absolute; bottom: 20px; right: 32px;
}


/* Notification pills */
.notif-pills {
  position: absolute; bottom: 28px; right: 28px;
  display: flex; flex-direction: column; gap: 6px;
  width: 190px;
}


.notif-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px; color: var(--ink-2);
}
.notif-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}

/* VIN scanner art */
.vin-art {
  position: absolute; bottom: 24px; right: 24px;
  width: 140px; height: 90px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint);
  overflow: hidden;
}


.vin-scan-line {
  position: absolute;
  width: 100%; height: 2px;
  background: var(--accent);
  opacity: 0.7;
  animation: scanline 2s ease-in-out infinite;
}
@keyframes scanline {
  0% { top: 10%; }
  50% { top: 80%; }
  100% { top: 10%; }
}
.vin-text {
  font-family: 'Courier New', monospace;
  font-size: 9px; color: var(--accent);
  letter-spacing: 0.1em;
  z-index: 1;
}

/* Expense chart art */
.chart-bars {
  position: absolute; bottom: 32px; right: 24px;
  display: flex; align-items: flex-end; gap: 6px;
  height: 80px;
}


.chart-bar {
  width: 20px; border-radius: 4px 4px 0 0;
  background: var(--accent-tint);
  border-top: 2px solid var(--accent);
  transition: height 0.8s ease;
}
.chart-bar.active { background: var(--accent); border-top-color: transparent; }

/* ── How it works ── */
#how { background: var(--bg); }

.steps {
  display: grid; grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 52px;
}
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  padding: 32px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.3s;
}
.step:last-child { border-bottom: none; }
@media (min-width: 640px) {
  .step { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .step:nth-child(2n) { border-right: none; }
  .step:nth-last-child(-n+2) { border-bottom: none; }
}
@media (min-width: 1024px) {
  .step { border-right: 1px solid var(--line); border-bottom: none; padding: 40px 32px; }
  .step:last-child { border-right: none; }
}
.step:hover { background: var(--surface-2); }

.step-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 48px; color: var(--accent);
  line-height: 1; margin-bottom: 20px;
  opacity: 0.6;
}

.step-title {
  font-size: 17px; font-weight: 600; color: var(--ink);
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.step-desc {
  font-size: 13px; color: var(--ink-2); line-height: 1.6;
}

/* ── Screenshot scroll ── */
#screens { background: var(--bg-2); overflow: hidden; }

.screens-header { max-width: 1200px; margin: 0 auto 56px; }

.screens-scroll {
  display: flex; gap: 16px;
  padding: 0 20px 32px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
@media (min-width: 768px) {
  .screens-scroll { gap: 24px; padding: 0 48px 32px; }
}
.screens-scroll:active { cursor: grabbing; }
.screens-scroll::-webkit-scrollbar { display: none; }

.screen-card {
  flex-shrink: 0;
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.screen-card:hover {
  transform: translateY(-10px) scale(1.025);
  border-color: var(--accent-line);
  box-shadow: 0 20px 48px rgba(0,0,0,0.24), 0 0 0 1px var(--accent-line);
}

.screen-phone {
  width: 100%; aspect-ratio: 9/19;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.screen-label {
  padding: 14px 18px;
  font-size: 12px; font-weight: 500;
  color: var(--ink-2); letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
}
.screen-label strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 2px; }

/* ── Premium ── */
#premium {
  background: var(--bg);
}

.premium-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 40px; align-items: start;
}
@media (min-width: 900px) { .premium-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }

.premium-perks {
  display: flex; flex-direction: column; gap: 20px;
  margin-top: 40px;
}
.perk {
  display: flex; gap: 16px; align-items: flex-start;
}
.perk-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-top: 2px;
}
.perk-icon svg { width: 18px; height: 18px; }
.perk-text strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.perk-text span { font-size: 13px; color: var(--ink-2); }

.premium-card {
  background: var(--surface);
  border: 1px solid rgba(232,163,99,0.18);
  border-radius: var(--r-lg);
  padding: 40px;
  position: relative; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset,
              0 0 0 1px rgba(232,163,99,0.06),
              0 24px 60px rgba(0,0,0,0.22);
}
.premium-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-deep));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.price-row {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px;
}
.price-amount {
  font-size: 48px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink);
}
.price-currency { font-size: 20px; color: var(--ink-2); font-weight: 500; }
.price-period { font-size: 14px; color: var(--ink-3); }

.price-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px;
  background: var(--accent-tint); color: var(--accent);
  border: 1px solid var(--accent-line);
  margin-bottom: 28px;
}

.price-features {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 32px;
}
.price-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-2);
}
.price-features li svg { color: var(--good); flex-shrink: 0; }

.price-note { font-size: 12px; color: var(--ink-3); margin-top: 14px; text-align: center; }

/* ── Footer ── */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 48px 20px;
}
@media (min-width: 768px) { footer { padding: 60px 40px; } }
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr auto; align-items: center; } }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo svg { width: 22px; height: 22px; }
.footer-logo img { width: 22px; height: 22px; border-radius: 5px; }
.footer-logo span {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 18px; color: var(--ink);
}
.footer-tagline { font-size: 13px; color: var(--ink-3); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--ink-3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--ink-2); }
.footer-copy { font-size: 12px; color: var(--ink-4); margin-top: 8px; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.revealed { opacity: 1; transform: none; }

/* Hero load animation — hidden until GSAP runs, stays visible after */
#hero .hero-eyebrow,
#hero .hero-title,
#hero .hero-sub,
#hero .hero-pills,
#hero .hero-ctas,
#hero .hero-phones {
  opacity: 0;
  transform: translateY(32px);
}

#hero.hero-ready .hero-eyebrow,
#hero.hero-ready .hero-title,
#hero.hero-ready .hero-sub,
#hero.hero-ready .hero-pills,
#hero.hero-ready .hero-ctas,
#hero.hero-ready .hero-phones {
  opacity: 1;
  transform: none;
}

/* ── Ambient grid bg ── */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(232,163,99,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,163,99,0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 5%, black 0%, transparent 62%);
}

.mobile-cta-bar { display: none; }

/* ══════════════════════════════════════════════════════
   REAL SCREENSHOT ENHANCEMENTS
   ══════════════════════════════════════════════════════ */

/* Hero phone screens using real PNG screenshots */
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: inherit;
  display: block;
}

/* ── All-screens scrolling strip ── */
.all-screens-strip {
  width: 100%;
  overflow: hidden;
  padding: 24px 0 80px;
  position: relative;
  direction: ltr; /* prevent RTL from flipping overflow origin and losing the track */
  /* Fade only the outer 6% so the HOME screen is fully visible */
  mask-image: linear-gradient(90deg,
    transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%, black 6%, black 94%, transparent 100%);
}

.all-screens-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 16px 0;
  direction: ltr; /* always scroll left-to-right regardless of page direction */
  animation: strip-scroll 48s linear infinite;
}
.all-screens-strip:hover .all-screens-track { animation-play-state: paused; }

@keyframes strip-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); }
}

.as-item {
  width: 140px;
  flex-shrink: 0;
  border-radius: 36px;
  background: #ffffff;
  padding: 8px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.08),
    0 12px 40px rgba(0,0,0,0.12),
    0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.as-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.08),
    0 24px 60px rgba(0,0,0,0.16),
    0 4px 16px rgba(192,112,32,0.15);
}
.as-item img {
  width: 100%;
  display: block;
  border-radius: 28px;
  aspect-ratio: 1320 / 2868;
}

