/* Ordenax landing — Apple-inspired design language, ORDENAX Brand Identity v1.1 tokens (navy/gold).
   Logical properties + RTL-first; animated with IntersectionObserver. */

:root {
  /* ORDENAX Brand Identity v1.1 — official palette (navy/gold).
     Mapping keeps old token names for minimal intrusion. */
  --emerald-950: #0B1A2E;  /* ink — darkest background            */
  --emerald-900: #0F2742;  /* midnight                            */
  --emerald-800: #002B5A;  /* navy — dominant brand color         */
  --emerald-700: #0A3D7A;  /* navy hover                          */
  --emerald-600: #1D5FA8;  /* info blue                           */
  --emerald-500: #2E7ACB;  /* blue tint (glows)                   */
  --emerald-50: #EEF2F6;   /* mist                                */
  --gold-300: #F3E6BD;     /* gold-soft                           */
  --gold-400: #E8C35C;     /* gold hover/focus accents            */
  --gold-500: #D3A522;     /* brand gold — limited accent         */
  --gold-600: #8A6A12;     /* gold-text on light bg (WCAG 5.06:1) */
  --gold-700: #6E540E;
  --ivory: #F6F3EC;        /* warm white                          */
  --sand: #EEF2F6;         /* mist (alt sections)                 */
  --ink: #0B1A2E;
  --ink-soft: #5A6B80;     /* slate                               */
  --hairline: #D8DEE6;     /* line                                */

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --shadow-card: 0 1px 2px rgb(11 26 46 / 0.04), 0 12px 32px -10px rgb(11 26 46 / 0.10);
  --shadow-lift: 0 4px 8px rgb(11 26 46 / 0.05), 0 22px 48px -14px rgb(11 26 46 / 0.18);
  --shadow-gold: 0 10px 30px -10px rgb(211 165 34 / 0.55);
  --shadow-inset: inset 0 1px 0 rgb(255 255 255 / 0.12);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-apple: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body { overflow-x: clip; }

::selection { background: rgb(211 165 34 / 0.28); color: var(--emerald-950); }

/* anchors land clear of the sticky header */
[id] { scroll-margin-top: 84px; }

/* Keyboard focus — visible, on-brand, everywhere */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; border-radius: var(--radius-pill); }

.skip-link {
  position: fixed; inset-block-start: 0.75rem; inset-inline-start: 0.75rem;
  z-index: 100; padding: 0.6rem 1.1rem;
  background: var(--emerald-900); color: var(--gold-300);
  border: 1px solid rgb(243 230 189 / 0.4); border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.9rem;
  transform: translateY(-200%);
  pointer-events: none;
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus-visible, .skip-link:focus {
  transform: translateY(0); pointer-events: auto;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  opacity: 1;
  transition: opacity 0.25s ease;
}

body.is-switching-lang { opacity: 0.85; }

[dir="rtl"] body { font-family: "Noto Sans Arabic", "Poppins", system-ui, sans-serif; }

h1, h2, h3 {
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: "Noto Sans Arabic", sans-serif; font-weight: 800; letter-spacing: 0; line-height: 1.3; }

[dir="rtl"] body { line-height: 1.8; }

h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: var(--emerald-900); }
h3 { font-size: 1.35rem; font-weight: 600; color: var(--emerald-800); margin-block-end: 0.5rem; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1200px; margin-inline: auto; padding-inline: 1.75rem; }
.container.narrow { max-width: 720px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.centered { text-align: center; margin-inline: auto; }
.centered-rule { margin-inline: auto; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand .logo-img { height: 30px; width: auto; display: block; transition: transform 0.3s var(--ease-spring); }
.brand .logo-symbol { height: 28px; width: auto; display: none; transition: transform 0.3s var(--ease-spring); }
.brand:hover .logo-img, .brand:hover .logo-symbol { transform: scale(1.04); }
@media (max-width: 560px) {
  .brand .logo-img { display: none; }
  .brand .logo-symbol { display: block; }
}

/* ---------- Eyebrows, rules, lede ---------- */
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-600); margin-block-end: 1rem;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; }
.eyebrow-light { color: var(--gold-400); }

.gold-rule {
  width: 64px; height: 2px; margin-block: 1.2rem 1.6rem;
  background: linear-gradient(90deg, var(--gold-500), transparent);
  border-radius: 2px;
}
[dir="rtl"] .gold-rule { background: linear-gradient(270deg, var(--gold-500), transparent); }
/* centered contexts: rule radiates symmetrically */
.gold-rule--center {
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}
[dir="rtl"] .gold-rule--center { background: linear-gradient(270deg, transparent, var(--gold-500), transparent); }

.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 52ch; line-height: 1.55; }
.lede-light { color: #C4D0DE; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.8rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1rem; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease-apple), background 0.2s var(--ease-apple), color 0.2s var(--ease-apple);
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.92rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--emerald-700); color: #fff;
  box-shadow: 0 4px 14px rgb(29 95 168 / 0.28);
}
.btn-primary:hover { background: var(--emerald-600); box-shadow: 0 6px 20px rgb(29 95 168 / 0.35); }
.btn-gold {
  background: linear-gradient(160deg, var(--gold-400), var(--gold-500));
  color: var(--emerald-950);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: linear-gradient(160deg, var(--gold-300), var(--gold-400)); box-shadow: 0 14px 36px -10px rgb(211 165 34 / 0.65); }
.btn-outline-light { border-color: rgb(243 230 189 / 0.55); color: var(--gold-300); }
.btn-outline-light:hover { background: rgb(211 165 34 / 0.12); }
.btn-outline { border-color: var(--emerald-700); color: var(--emerald-700); background: transparent; }
.btn-outline:hover { background: var(--emerald-700); color: #fff; }

/* Shimmer */
.shimmer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 38%, rgb(255 255 255 / 0.5) 50%, transparent 62%);
  transform: translateX(-140%);
  transition: transform 0s;
}
.shimmer:hover::after { transform: translateX(140%); transition: transform 0.85s var(--ease-out); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(246 243 236 / 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-block-end: 1px solid rgb(216 222 230 / 0.6);
  transform: translateY(0);
  transition: transform 0.4s var(--ease-out), background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header.is-scrolled { background: rgb(246 243 236 / 0.92); box-shadow: 0 4px 24px rgb(11 26 46 / 0.05); }
.header-inner { display: flex; align-items: center; gap: 2rem; padding-block: 0.75rem; }
.nav { display: flex; gap: 2rem; margin-inline-start: auto; margin-inline-end: auto; font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); }
.nav a { position: relative; padding-block: 0.4rem; }
.nav a::after {
  content: ""; position: absolute; inset-inline-start: 50%; inset-block-end: 0;
  width: 0; height: 2px; background: var(--gold-500); border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s var(--ease-out);
}
[dir="rtl"] .nav a::after { transform: translateX(50%); }
.nav a:hover { color: var(--emerald-800); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang-toggle {
  background: none; border: 1.5px solid var(--hairline); border-radius: var(--radius-pill);
  height: 44px; padding: 0 1.05rem; display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; font-size: 0.88rem;
  color: var(--emerald-700); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.lang-toggle:hover { border-color: var(--gold-500); background: rgb(211 165 34 / 0.08); }
.menu-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0; margin: 0;
  border: 1.5px solid var(--hairline); border-radius: var(--radius-pill);
  background: none; color: var(--emerald-700); cursor: pointer;
  align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.menu-toggle ic-burger, .menu-toggle .ic-burger { display: block; }
.menu-toggle:hover { background: rgb(211 165 34 / 0.08); border-color: var(--gold-500); }

@media (max-width: 980px) {
  /* [burger + EN pill] stick together at one edge, logo at the other,
     always blank distance between them — both directions */
  .header-inner { justify-content: space-between; gap: 1rem; }
  .header-actions { gap: 0.6rem; }
}

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 60;
  background: var(--emerald-950); color: #F6F3EC;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(-12px) scale(0.98);
  transition: opacity 0.35s var(--ease-apple), transform 0.35s var(--ease-apple);
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.mobile-nav nav { display: grid; gap: 1.6rem; text-align: center; }
.mobile-nav a:not(.btn) {
  font-size: 1.6rem; font-weight: 600;
  padding: 0.35rem 1rem; border-radius: var(--radius-md);
  transition: color 0.2s ease, background 0.2s ease;
}
.mobile-nav a:hover { color: var(--gold-300); background: rgb(211 165 34 / 0.08); }
.mobile-nav .nav-close {
  position: absolute; inset-block-start: 1.2rem; inset-inline-end: 1.2rem;
  width: 46px; height: 46px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.mobile-nav .lang-toggle {
  border-color: rgb(243 230 189 / 0.4); color: var(--gold-300);
  font-size: 1rem; padding: 0.5rem 1rem;
}
.mobile-nav .lang-toggle:hover { background: rgb(211 165 34 / 0.12); border-color: var(--gold-400); }
.mobile-nav .nav-close:hover { transform: rotate(90deg); }
/* hash-focus target must not flash a ring around the whole page */
#main:focus, #main:focus-visible { outline: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 75% -15%, rgb(211 165 34 / 0.18), transparent 55%),
    radial-gradient(900px 520px at 12% 115%, rgb(29 95 168 / 0.28), transparent 55%),
    linear-gradient(165deg, var(--emerald-900), var(--emerald-950));
  color: #F6F3EC;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 340px at 22% 42%, rgb(211 165 34 / 0.14), transparent 55%),
    radial-gradient(700px 420px at 82% 78%, rgb(29 95 168 / 0.16), transparent 55%);
  animation: glow-drift 12s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  0% { transform: translate(-2%, -2%) scale(1); opacity: 0.8; }
  100% { transform: translate(2%, 2%) scale(1.05); opacity: 1; }
}

.hero-inner { position: relative; z-index: 1; padding-block: clamp(5rem, 12vw, 9rem); max-width: 820px; text-align: center; margin-inline: auto; }
.hero-small .hero-inner { padding-block: clamp(4rem, 9vw, 6rem); }

html.js .hero-eyebrow, html.js .hero-title, html.js .hero-rule, html.js .hero-lede, html.js .hero-ctas, html.js .hero-badges, html.js .hero-visual { opacity: 0; transform: translateY(28px); }
.hero.is-ready .hero-eyebrow { animation: fade-up 0.9s var(--ease-out) 0.1s forwards; }
.hero.is-ready .hero-title { animation: fade-up 1s var(--ease-out) 0.25s forwards; }
.hero.is-ready .hero-rule { animation: fade-up 0.9s var(--ease-out) 0.42s forwards; }
.hero.is-ready .hero-lede { animation: fade-up 0.9s var(--ease-out) 0.55s forwards; }
.hero.is-ready .hero-ctas { animation: fade-up 0.9s var(--ease-out) 0.7s forwards; }
.hero.is-ready .hero-badges { animation: fade-up 0.9s var(--ease-out) 0.85s forwards; }
.hero.is-ready .hero-visual { animation: fade-up 1s var(--ease-out) 0.95s forwards; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.hero-rule { margin-inline: auto; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-block-start: 2.4rem; }
.hero-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-block-start: 2.8rem;
  font-size: 0.86rem; color: var(--gold-300);
}
.hero-badges li {
  border: 1px solid rgb(243 230 189 / 0.35); border-radius: var(--radius-pill);
  padding: 0.35rem 1rem; background: rgb(11 26 46 / 0.25);
  backdrop-filter: blur(6px);
}

/* Apple-style full-bleed home hero */
.hero-apple { min-height: 92vh; display: grid; place-items: center; }
.hero-apple .hero-title { font-size: clamp(3rem, 8.5vw, 6.5rem); font-weight: 600; letter-spacing: -0.045em; }
.hero-apple .hero-lede { font-size: clamp(1.15rem, 2.2vw, 1.45rem); max-width: 58ch; margin-inline: auto; }

/* Hero visual — app device mockup */
.hero-visual { margin-block-start: 3.5rem; perspective: 1200px; }
.device-frame {
  position: relative; width: min(320px, 78vw); aspect-ratio: 9/19;
  margin-inline: auto; border-radius: 42px;
  background: linear-gradient(180deg, var(--emerald-800), var(--emerald-950));
  box-shadow:
    0 0 0 10px var(--gold-500),
    0 40px 80px -20px rgb(0 0 0 / 0.45),
    0 0 0 1px rgb(255 255 255 / 0.1) inset;
  overflow: hidden;
  transform: rotateX(8deg) rotateY(0deg);
  animation: device-float 6s ease-in-out infinite;
}
.device-screen {
  position: absolute; inset: 10px; border-radius: 34px;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--sand) 100%);
  overflow: hidden;
  display: grid; place-items: center; padding: 1.5rem;
}
.device-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 22px; background: var(--emerald-950); border-radius: 12px; z-index: 2;
}
.device-card {
  width: 100%; background: #fff; border-radius: 18px; padding: 1rem; box-shadow: var(--shadow-card);
  display: grid; gap: 0.75rem;
}
.device-card .row { display: flex; align-items: center; gap: 0.75rem; }
.device-card .thumb { width: 42px; height: 42px; border-radius: 10px; background: var(--emerald-50); display: grid; place-items: center; font-size: 1.3rem; }
.device-card .line { height: 8px; border-radius: 4px; background: var(--hairline); }
.device-card .line.short { width: 45%; }
.device-card .line.medium { width: 70%; }

@keyframes device-float {
  0%, 100% { transform: rotateX(8deg) translateY(0); }
  50% { transform: rotateX(8deg) translateY(-14px); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 7.5rem); }
.section-tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section-sand { background: var(--sand); }
.section-ivory { background: var(--ivory); }

/* Manifesto band — compact statement + proof chips */
.proof-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem;
  margin-block-start: 1.6rem; padding: 0;
}
.proof-chips li {
  border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  background: #fff; box-shadow: var(--shadow-card);
  padding: 0.45rem 1.1rem; font-size: 0.9rem; font-weight: 600;
  color: var(--emerald-800);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.proof-chips li::before { content: "✓"; color: var(--gold-600); font-weight: 700; }

.section-heading { text-align: center; max-width: 760px; margin-inline: auto; margin-block-end: 1rem; }
.section-heading h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.03em; }
.section-heading .lede { margin-inline: auto; margin-block-start: 1rem; font-size: 1.3rem; }

/* left-aligned heading variant (forms, splits) */
.heading-start { text-align: start; margin-inline: 0; }
.heading-start .lede { margin-inline: 0; }

.grid { display: grid; gap: 1.5rem; margin-block-start: 2.8rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Bento grid (Apple-style asymmetric cards) */
.bento { display: grid; gap: 1.25rem; margin-block-start: 3rem; }
.bento-3 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
}
.bento-3 .bento-card:first-child { grid-column: span 2; grid-row: span 2; }

.bento-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-xl);
  padding: 2rem; box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  display: flex; flex-direction: column; gap: 1rem;
}
.bento-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-lift); }
.bento-card h3 { font-size: 1.5rem; }
.bento-card p { color: var(--ink-soft); font-size: 1.02rem; }
.bento-card .card-link { margin-block-start: auto; }

.bento-card-dark {
  background: linear-gradient(160deg, var(--emerald-800), var(--emerald-950));
  color: #F6F3EC; border-color: rgb(211 165 34 / 0.25);
}
.bento-card-dark h3 { color: #fff; }
.bento-card-dark p { color: #C4D0DE; }

.card {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 1.8rem; box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.card p { color: var(--ink-soft); }
.card-icon {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; border-radius: var(--radius-md);
  background: var(--emerald-50); font-size: 1.6rem; margin-block-end: 1.1rem;
  transition: transform 0.35s var(--ease-spring);
}
.card:hover .card-icon { transform: scale(1.1) rotate(-4deg); }
.card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-block-start: 1rem; font-weight: 600;
  color: var(--emerald-700); border-block-end: 1px solid var(--gold-500);
  transition: color 0.2s ease;
}
.card-link::after { content: "→"; transition: transform 0.25s var(--ease-out); }
[dir="rtl"] .card-link::after { content: "←"; }
.card-link:hover { color: var(--gold-600); }
.card-link:hover::after { transform: translateX(4px); }
[dir="rtl"] .card-link:hover::after { transform: translateX(-4px); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
html.js .reveal { opacity: 0; transform: translateY(32px); }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-block-start: 2.8rem; }
.step { position: relative; padding-inline-start: 3.6rem; }
.step p { color: var(--ink-soft); }
.step-num {
  position: absolute; inset-inline-start: 0; top: 0;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--emerald-800); color: var(--gold-400);
  font-family: "Poppins", Arial, sans-serif; font-size: 1.25rem; font-weight: 600;
  box-shadow: inset 0 0 0 1.5px var(--gold-500);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s ease;
}
.step:hover .step-num { transform: scale(1.12); box-shadow: inset 0 0 0 1.5px var(--gold-500), var(--shadow-gold); }

/* ---------- Stats ---------- */
.stats-section { background: var(--emerald-900); color: #F6F3EC; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat { display: grid; gap: 0.35rem; }
.stat-number { font-family: "Poppins", Arial, sans-serif; font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; color: var(--gold-300); line-height: 1; }
[dir="rtl"] .stat-number { font-family: "Noto Sans Arabic", sans-serif; }
.stat-suffix { font-family: "Poppins", Arial, sans-serif; font-size: 1.2rem; color: var(--gold-400); }
.stat-label { font-size: 0.95rem; color: #8D9BAD; }

/* ---------- Quote cards ---------- */
.quote-card {
  counter-increment: none;
  position: relative;
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem 1.8rem; box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.quote-card::before {
  content: "”";
  position: absolute; inset-block-start: -0.35rem; inset-inline-start: 1.4rem;
  font-family: "Poppins", Arial, sans-serif; font-size: 3.4rem; line-height: 1;
  color: var(--gold-600); opacity: 0.85; pointer-events: none;
}
.quote-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.quote-card p { font-style: italic; color: var(--ink-soft); margin-block-end: 1.2rem; font-size: 1.05rem; }
.quote-card footer { font-weight: 600; color: var(--emerald-800); }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.check-list { margin-block: 1.8rem 2.2rem; display: grid; gap: 0.9rem; }
.check-list li { position: relative; padding-inline-start: 2rem; color: var(--ink-soft); }
.check-list li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 0;
  color: var(--gold-600); font-weight: 700;
}

.panel {
  background:
    radial-gradient(340px 220px at 90% 0%, rgb(211 165 34 / 0.28), transparent 55%),
    linear-gradient(150deg, var(--emerald-800), var(--emerald-950));
  border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-lift);
}
.panel-card {
  background: rgb(246 243 236 / 0.07); border: 1px solid rgb(243 230 189 / 0.25);
  border-radius: var(--radius-lg); padding: 1.8rem; color: #EEF2F6;
  display: grid; gap: 1.1rem;
}
.panel-eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-400);
}
[dir="rtl"] .panel-eyebrow { letter-spacing: 0; }
.panel-line { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.panel-line strong { color: var(--gold-300); font-family: "Poppins", Arial, sans-serif; text-align: end; }
[dir="rtl"] .panel-line strong { font-family: "Noto Sans Arabic", sans-serif; }

/* ---------- Pricing ---------- */
.pricing-grid { align-items: start; }
.pricing-card {
  position: relative; background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--radius-xl); padding: 2.2rem; box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.pricing-featured {
  border-color: var(--gold-500); transform: scale(1.03); z-index: 1;
  background: linear-gradient(180deg, #fff, var(--ivory));
}
.pricing-featured:hover { transform: scale(1.03) translateY(-5px); }
.pricing-badge {
  position: absolute; inset-block-start: -12px; inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--gold-500); color: var(--emerald-950);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem; border-radius: var(--radius-pill);
}
.price { font-family: "Poppins", Arial, sans-serif; font-size: 2.8rem; font-weight: 700; color: var(--emerald-800); margin-block: 0.8rem 1.2rem; }
[dir="rtl"] .price { font-family: "Noto Sans Arabic", sans-serif; }
.price .currency { font-size: 1.1rem; font-weight: 600; color: var(--gold-600); margin-inline-end: 0.3rem; vertical-align: super; }
.price .period { font-size: 1.05rem; color: var(--ink-soft); font-weight: 500; }
.pricing-features { display: grid; gap: 0.75rem; margin-block: 0 1.8rem; font-size: 0.98rem; color: var(--ink-soft); }
.pricing-features li::before { content: "✓"; color: var(--gold-600); font-weight: 700; margin-inline-end: 0.5rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1rem; margin-block-start: 2.2rem; }
.faq-item {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem; box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s var(--ease-out), border-color 0.25s ease;
}
.faq-item:hover { box-shadow: var(--shadow-lift); }
.faq-item[open] { border-color: rgb(211 165 34 / 0.45); }
.faq-item summary {
  font-weight: 600; color: var(--emerald-800); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 1.6em; border-radius: var(--radius-sm);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; line-height: 1; color: var(--gold-600);
  flex: none; width: 1.8em; height: 1.8em; display: inline-grid; place-items: center;
  border: 1px solid var(--hairline); border-radius: 50%;
  transition: transform 0.3s var(--ease-out), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.faq-item summary:hover::after { background: rgb(211 165 34 / 0.1); }
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--gold-500); color: var(--emerald-950); border-color: var(--gold-500);
}
.faq-item p { color: var(--ink-soft); padding-block-start: 0.9rem; }

/* ---------- Category visual ---------- */
.category-list { margin-block: 1.6rem 2rem; display: grid; gap: 0.9rem; }
.category-list li { position: relative; padding-inline-start: 1.8rem; color: var(--ink-soft); }
.category-list li::before { content: "●"; position: absolute; inset-inline-start: 0; color: var(--gold-600); font-size: 0.6rem; top: 0.45rem; }
.category-visual { position: relative; min-height: 320px; }
.visual-card {
  position: absolute; display: grid; place-items: center;
  width: 92px; height: 92px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--hairline); font-size: 2.4rem;
  box-shadow: var(--shadow-card); animation: float 5s ease-in-out infinite;
}
.visual-card-1 { inset-inline-start: 10%; top: 5%; animation-delay: 0s; }
.visual-card-2 { inset-inline-end: 15%; top: 20%; animation-delay: 1s; }
.visual-card-3 { inset-inline-start: 25%; bottom: 10%; animation-delay: 2s; }
.visual-card-4 { inset-inline-end: 10%; bottom: 25%; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(620px 340px at 12% 120%, rgb(29 95 168 / 0.38), transparent 55%),
    radial-gradient(620px 340px at 88% -20%, rgb(211 165 34 / 0.22), transparent 55%),
    var(--emerald-950);
  color: #F6F3EC; padding-block: clamp(4rem, 9vw, 6rem);
}
/* official brand supergraphic — subtle on dark */
.cta-band::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-end: -6%;
  width: 46%; background: url("assets/supergraphic-x-ondark.svg") center / contain no-repeat;
  opacity: 0.06; pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 680px; }
.cta-inner h2 { color: #fff; }
.cta-inner .lede { margin-inline: auto; margin-block-start: 0.9rem; }

/* ---------- Contact ---------- */
.contact-form { display: grid; gap: 1.2rem; margin-block-start: 1.8rem; }
.contact-form label { font-weight: 600; font-size: 0.95rem; color: var(--emerald-800); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md); border: 1.5px solid var(--hairline);
  background: #fff; color: var(--ink); font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgb(211 165 34 / 0.12);
}
.contact-form input[aria-invalid="true"],
.contact-form select[aria-invalid="true"] {
  border-color: #c0392b; box-shadow: 0 0 0 4px rgb(192 57 43 / 0.10);
  background: #F6F3EC;
}
.contact-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%230F3D2C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1.1rem center;
  padding-inline-start: 2.6rem;
}
[dir="ltr"] .contact-form select { background-position: right 1.1rem center; padding-inline-start: 1.1rem; padding-inline-end: 2.6rem; }
.contact-form textarea { resize: vertical; min-height: 7.5rem; }
.form-note {
  margin-block-start: 0.5rem; font-size: 0.95rem; font-weight: 600;
  min-height: 1.4em; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0 0; text-align: start;
}
.form-note.is-error { color: #b03424; }
.form-note.is-success {
  color: var(--emerald-700); background: var(--emerald-50);
  border: 1px solid rgb(29 95 168 / 0.25); border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
}
.contact-info { display: grid; gap: 1rem; }
.info-card {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.info-card h3 { margin-block-end: 0.35rem; }
.info-card p, .info-card a { color: var(--ink-soft); overflow-wrap: anywhere; }
.info-card a:hover { color: var(--emerald-700); }

/* ---------- Legal pages ---------- */
.legal-body h2 { margin-block-start: 2.4rem; font-size: 1.5rem; }
.legal-body h2:first-child { margin-block-start: 0; }
.legal-body p { color: var(--ink-soft); line-height: 1.7; }
.legal-body a { color: var(--emerald-700); font-weight: 600; border-block-end: 1px solid var(--gold-500); }
.legal-body a:hover { color: var(--gold-600); }

/* ---------- Section dark ---------- */
.section-dark {
  background:
    radial-gradient(800px 360px at 80% -10%, rgb(211 165 34 / 0.14), transparent 55%),
    radial-gradient(800px 460px at 10% 110%, rgb(29 95 168 / 0.22), transparent 55%),
    linear-gradient(165deg, var(--emerald-900), var(--emerald-950));
  color: #F6F3EC;
}
.section-dark h2 { color: #fff; }
.section-dark h3 { color: #fff; }
.section-dark .lede { color: #C4D0DE; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; gap: 1.5rem; margin-block-start: 3rem; }
.feature-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-xl);
  padding: 2.2rem; box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.feature-card::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
  transform: scaleX(0); transform-origin: inline-start;
  transition: transform 0.45s var(--ease-out);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card h3 { font-size: 1.45rem; margin-block: 1rem 0.6rem; }
.feature-card p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }
.feature-icon {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--emerald-50), var(--sand));
  font-size: 1.9rem;
  box-shadow: 0 4px 12px rgb(29 95 168 / 0.08);
  transition: transform 0.35s var(--ease-spring);
}
.feature-card:hover .feature-icon { transform: scale(1.12) rotate(-6deg); }

.feature-card-dark {
  background: rgb(255 255 255 / 0.04);
  border-color: rgb(243 230 189 / 0.18);
}
.feature-card-dark p { color: #C4D0DE; }
.feature-card-dark::before { background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); }
.feature-icon-dark {
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-700));
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.25);
}

/* ---------- Split benefits (shoppers / owners) ---------- */
.split-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: stretch; }
.benefit-col {
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--hairline);
}
.benefit-col--light {
  background: rgb(255 255 255 / 0.75);
  box-shadow: var(--shadow-card);
}
.benefit-col--dark {
  background:
    radial-gradient(420px 260px at 90% -10%, rgb(211 165 34 / 0.14), transparent 60%),
    radial-gradient(420px 300px at 0% 110%, rgb(29 95 168 / 0.35), transparent 55%),
    var(--emerald-950);
  border-color: rgb(243 230 189 / 0.16);
  color: #F6F3EC;
  box-shadow: var(--shadow-lift);
}
.benefit-col--dark h2 { color: #fff; }
.benefit-col--dark .lede { color: #C4D0DE; }
.benefit-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.benefit-head .lede { font-size: 0.98rem; }
.benefit-rows { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.15rem; }
.b-row { display: flex; gap: 0.9rem; align-items: flex-start; }
.b-ic {
  flex: none; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald-50), var(--sand));
  border: 1px solid var(--hairline);
}
.b-row h3 { font-size: 1.02rem; margin-block-end: 0.2rem; }
.b-row p { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.6; margin: 0; }
.benefit-col--dark .b-ic--gold {
  background: linear-gradient(135deg, rgb(211 165 34 / 0.18), rgb(211 165 34 / 0.07));
  border-color: rgb(243 230 189 / 0.28);
}
.benefit-col--dark .b-row h3 { color: #F6F3EC; }
.benefit-col--dark .b-row p { color: #8D9BAD; }
@media (max-width: 900px) { .split-benefits { grid-template-columns: 1fr; } }

/* ---------- Join steps ---------- */
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.steps { counter-reset: step; }
.step:not(:has(.step-num))::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; top: 0;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--emerald-800); color: var(--gold-400);
  font-family: "Poppins", Arial, sans-serif; font-size: 1.25rem; font-weight: 600;
  box-shadow: inset 0 0 0 1.5px var(--gold-500);
}
@media (max-width: 980px) { .steps-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps-4, .steps-3 { grid-template-columns: 1fr; } }

/* ---------- CTA actions ---------- */
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-block-start: 1.8rem; }

/* ---------- Typed contact form (§8) ---------- */
.form-field { display: grid; gap: 0.45rem; }
.form-field label { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.req-mark { font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); }
.field-err { margin: 0; font-size: 0.82rem; font-weight: 600; color: #B42318; }
.field-err:empty { display: none; }
.form-field [aria-invalid="true"] { border-color: #B42318 !important; box-shadow: 0 0 0 4px rgb(180 35 24 / 0.1); }
.check-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.check-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.95rem; border: 1.5px solid var(--hairline); border-radius: var(--radius-pill);
  background: #fff; font-size: 0.88rem; font-weight: 600; color: var(--emerald-800); cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.check-pill input { accent-color: var(--emerald-700); width: 15px; height: 15px; margin: 0; flex: none; }
.check-pill:has(input:checked) { border-color: var(--gold-500); background: rgb(211 165 34 / 0.1); }
.check-pill:has(input:focus-visible) { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.form-field[aria-invalid="true"] .check-pill { border-color: #B42318; }
.hp-field { position: absolute !important; inset-inline-start: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.form-privacy { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }
.form-privacy a { color: var(--emerald-700); text-decoration: underline; text-underline-offset: 3px; }
#form-submit:disabled { opacity: 0.65; cursor: wait; }

/* ---------- Reduced motion (ق10) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html.js .reveal, html.js .hero-eyebrow, html.js .hero-title, html.js .hero-rule, html.js .hero-lede,
  html.js .hero-ctas, html.js .hero-badges, html.js .hero-visual { opacity: 1 !important; transform: none !important; }
  .text-reveal .word { opacity: 1 !important; transform: none !important; }
}

/* ---------- Parallax ---------- */
.parallax { will-change: transform; }

/* ---------- Text reveal ---------- */
html.js .hero-title.text-reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
.text-reveal .word {
  display: inline-block; opacity: 0; transform: translateY(18px);
  animation: word-up 0.7s var(--ease-out) forwards;
}
@keyframes word-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #071A30; color: #8D9BAD; padding-block: 3.5rem 1.5rem;
  border-block-start: 1px solid rgb(243 230 189 / 0.14);
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between;
  padding-block-end: 2.2rem; border-block-end: 1px solid rgb(243 230 189 / 0.15);
}
.footer-brand { display: grid; gap: 0.9rem; max-width: 320px; font-size: 0.95rem; }
.footer-col { display: grid; gap: 0.65rem; }
.footer-col h4 { color: var(--gold-300); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-block-end: 0.4rem; }
.footer-col a { font-size: 0.95rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold-300); }
.footer-legal { padding-block-start: 1.6rem; font-size: 0.82rem; color: #5A6B80; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-2, .grid-3, .steps, .split, .stats-grid { grid-template-columns: 1fr; }
  .bento-3 { grid-template-columns: 1fr; }
  .bento-3 .bento-card:first-child { grid-column: span 1; grid-row: span 1; }
  .pricing-featured { transform: none; }
  .pricing-featured:hover { transform: translateY(-5px); }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn-primary.btn-sm { display: none; }
  .category-visual { min-height: 260px; }
  .hero-apple .hero-title { font-size: clamp(2.6rem, 10vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .parallax { transform: none !important; }
}

@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .contact-form .btn { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .step { padding-inline-start: 3.4rem; }
  .panel-line { flex-direction: column; gap: 0.2rem; }
  .panel-line strong { text-align: start; }
  .device-frame { width: min(260px, 72vw); }
  .header-inner { gap: 1rem; }
  .container { padding-inline: 1.25rem; }
  .footer-inner { gap: 2rem; }
  .mobile-nav a:not(.btn) { font-size: 1.4rem; }
}
