/* ============================================================
   ZAMEEL — marketing site
   Brand tokens lifted directly from the app source:
     · brand purple      Color.zameelBrand        rgb(0.61,0.15,0.71)  #9B26B6
     · wordmark face     Font.zameelWordmark      MuseoModerno-Black
     · dark surface      ShareCardStyle .dark     #14171F → #0A0D14
     · light surface     ShareCardStyle .light    #FCFAF5 → #F0EDE8
     · brand gradient    ShareCardStyle .gradient #0D33A6 → #6B05AD
     · hero accent       .gradient heroAccent     #FFD933
   Nothing here is invented — the site and the app share one palette.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* surfaces — the share card's dark style, top to bottom */
  --ink:        #0A0D14;
  --ink-2:      #14171F;
  --ink-3:      #1C2029;

  /* type — the share card's light style */
  --bone:       #FCFAF5;
  --bone-2:     #ADAAA4;
  --bone-3:     #7C7A76;

  /* brand */
  --brand:      #9B26B6;   /* fills, bars, buttons              */
  --brand-lt:   #C763E0;   /* brand on dark, small text safe    */
  --brand-dp:   #6B05AD;   /* gradient end                      */
  --brand-blue: #0D33A6;   /* gradient start                    */
  --brand-soft: rgba(155, 38, 182, 0.16);
  --gold:       #FFD933;   /* reserved for personal records     */

  --line:       rgba(252, 250, 245, 0.11);
  --line-2:     rgba(252, 250, 245, 0.20);

  /* MuseoModerno is a wordmark face — geometric, rounded, single-purpose.
     It is used ONLY for the logo lockups (nav brand, footer mark, OG card).
     Headlines use Archivo's condensed width axis, which holds up at sentence
     length and gives the page an editorial voice the logo face can't carry. */
  --f-brand:   'MuseoModerno', 'Avenir Next', 'Segoe UI', sans-serif;
  --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body:    'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --pad: clamp(20px, 5vw, 80px);
  --maxw: 1440px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="ar"] {
  --f-display: 'IBM Plex Sans Arabic', 'Archivo', sans-serif;
  --f-body:    'IBM Plex Sans Arabic', 'Archivo', sans-serif;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.62;
  color: var(--bone);
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(107, 5, 173, .17), transparent 66%),
    linear-gradient(178deg, var(--ink-2) 0%, var(--ink) 42%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--brand); color: var(--bone); }

/* ---------- 3. Film grain ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 4. Type primitives ---------- */
.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-3);
  font-weight: 500;
}
html[lang="ar"] .mono { letter-spacing: .04em; font-family: var(--f-body); font-size: 13px; text-transform: none; }

.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 76, 'wght' 800;
  line-height: .93;
  letter-spacing: -.018em;
  text-transform: uppercase;
}
html[lang="ar"] .display {
  font-variation-settings: normal;
  font-weight: 700;
  text-transform: none;
  line-height: 1.24;
  letter-spacing: 0;
}

.h1 { font-size: clamp(44px, 8vw, 122px); }
.h2 { font-size: clamp(33px, 5.4vw, 76px); }
.h3 { font-size: clamp(22px, 2.6vw, 37px); }
html[lang="ar"] .h1 { font-size: clamp(36px, 6.2vw, 92px); }
html[lang="ar"] .h2 { font-size: clamp(29px, 4.4vw, 62px); }

.lede {
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.6;
  color: var(--bone-2);
  max-width: 54ch;
}
.brandc { color: var(--brand-lt); }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------- 5. Shell ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.rule { height: 1px; background: var(--line); border: 0; }

#progress {
  position: fixed; inset-block-start: 0; inset-inline-start: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand), var(--brand-lt));
  z-index: 200;
  transition: width .08s linear;
}

/* ---------- 6. Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 13, 20, .74);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-block-end: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; gap: 28px; height: 62px; }

/* the wordmark — MuseoModerno Black in brand purple, exactly as in-app */
.brand {
  font-family: var(--f-brand);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--brand-lt);
  display: flex; align-items: center; gap: 9px;
  transition: color .25s var(--ease);
}
.brand:hover { color: var(--brand); }
html[lang="ar"] .brand { font-family: var(--f-display); font-weight: 700; text-transform: none; font-size: 23px; }
.brand__dot { width: 7px; height: 7px; background: var(--brand); border-radius: 50%; flex: none; }

.nav__links { display: flex; gap: 26px; margin-inline-start: 44px; }
.nav__links a {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--bone-3);
  transition: color .2s var(--ease);
}
html[lang="ar"] .nav__links a { font-family: var(--f-body); letter-spacing: 0; font-size: 14px; text-transform: none; }
.nav__links a:hover { color: var(--bone); }
.nav__end { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }

.lang {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em;
  border: 1px solid var(--line-2); border-radius: 3px;
  padding: 6px 11px; color: var(--bone-2);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.lang:hover { border-color: var(--brand-lt); color: var(--brand-lt); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--brand); color: var(--bone);
  padding: 11px 18px; border-radius: 3px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
html[lang="ar"] .btn { letter-spacing: 0; font-size: 14px; font-family: var(--f-body); font-weight: 600; text-transform: none; }
.btn:hover {
  background: linear-gradient(100deg, var(--brand-blue), var(--brand));
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(155, 38, 182, .8);
}
.btn--ghost { background: none; color: var(--bone-2); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: none; color: var(--bone); border-color: var(--bone); box-shadow: none; }
.btn--lg { padding: 16px 26px; font-size: 12px; }
html[lang="ar"] .btn--lg { font-size: 15px; }

@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- 7. Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 112px) 0; }
.hero__ghost {
  position: absolute;
  inset-block-start: 4%;
  inset-inline-end: -4%;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 700;
  font-size: clamp(240px, 34vw, 560px);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(199, 99, 224, .085);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-block-end: 26px; }
.eyebrow .tick { width: 22px; height: 1px; background: var(--brand-lt); }

.hero h1 { margin-block-end: 26px; }
.hero h1 .line { display: block; }
.hero h1 .line:last-child { color: var(--brand-lt); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 34px; }

.stats {
  margin-block-start: clamp(48px, 7vw, 84px);
  border-block-start: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.stat { padding: 22px 22px 26px; border-inline-end: 1px solid var(--line); }
.stat:first-child { padding-inline-start: 0; }
.stat:last-child { border-inline-end: 0; }
.stat__n {
  font-family: var(--f-display); font-weight: 800;
  font-variation-settings: 'wdth' 80, 'wght' 800;
  font-size: clamp(28px, 3.2vw, 44px); line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-block-end: 8px;
}
.stat:nth-child(1) .stat__n, .stat:nth-child(3) .stat__n { color: var(--brand-lt); }
.stat__l { font-size: 12px; color: var(--bone-3); line-height: 1.35; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-block-end: 1px solid var(--line); }
  .stat:nth-child(2n) { border-inline-end: 0; }
  .stat:nth-child(2n+1) { padding-inline-start: 0; }
  .stat:last-child { grid-column: 1 / -1; border-block-end: 0; }
}

/* ---------- 8. Phone ---------- */
.phone-stage { position: relative; display: flex; justify-content: center; padding-block: 20px; }
.phone {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 320 / 660;
  background: #000;
  border-radius: 46px;
  padding: 9px;
  box-shadow:
    0 0 0 1.5px rgba(252,250,245,.14),
    0 40px 90px -28px rgba(0,0,0,.92),
    0 0 130px -30px rgba(155,38,182,.75);
  transform: rotate(-1.6deg);
}
html[dir="rtl"] .phone { transform: rotate(1.6deg); }
.phone__screen {
  position: relative; height: 100%; width: 100%;
  border-radius: 38px; overflow: hidden;
  /* the app's own dark share-card gradient */
  background: linear-gradient(178deg, #14171F 0%, #0A0D14 62%);
  direction: ltr;
  display: flex; flex-direction: column;
  padding: 14px 14px 0;
}
html[dir="rtl"] .phone__screen { direction: rtl; }
.phone__notch {
  position: absolute; inset-block-start: 9px; inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 86px; height: 22px; background: #000; border-radius: 12px; z-index: 5;
}
.ph-status {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 9px; color: var(--bone-3);
  padding: 3px 8px 12px;
}
.ph-head { padding: 8px 4px 14px; }
.ph-head h4 {
  font-family: var(--f-display); font-weight: 800;
  font-variation-settings: 'wdth' 80, 'wght' 800;
  font-size: 23px; text-transform: uppercase; letter-spacing: -.015em;
}
html[lang="ar"] .ph-head h4 { font-variation-settings: normal; font-weight: 700; text-transform: none; }
.ph-head p { font-family: var(--f-mono); font-size: 9.5px; color: var(--bone-3); letter-spacing: .1em; text-transform: uppercase; margin-block-start: 5px; }
html[lang="ar"] .ph-head p { font-family: var(--f-body); letter-spacing: 0; font-size: 11px; text-transform: none; }

.ph-card {
  background: rgba(252,250,245,.045);
  border: 1px solid rgba(252,250,245,.08);
  border-radius: 14px;
  padding: 12px 13px;
  margin-block-end: 9px;
}
.ph-card__t {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.5px; font-weight: 600; margin-block-end: 10px;
}
.ph-card__t span:last-child { font-family: var(--f-mono); font-size: 9.5px; color: var(--bone-3); }
.ph-set {
  display: grid; grid-template-columns: 16px 1fr 1fr 20px;
  align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px;
  padding-block: 5px;
  color: var(--bone-2);
  font-variant-numeric: tabular-nums;
}
.ph-set i { font-style: normal; color: var(--bone-3); font-size: 9.5px; }
.ph-set b { font-weight: 500; color: var(--bone); }
.ph-set em { font-style: normal; color: var(--bone-3); font-size: 9.5px; }
.ph-set .chk { color: var(--brand-lt); font-size: 11px; text-align: end; }

/* PR badge uses the app's gold hero accent — the one place gold appears */
.ph-pr {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 217, 51, .11);
  border: 1px solid rgba(255, 217, 51, .32);
  border-radius: 10px; padding: 9px 11px; margin-block-start: 10px;
  animation: prpulse 3.4s var(--ease) infinite;
}
@keyframes prpulse {
  0%, 84%, 100% { box-shadow: 0 0 0 0 rgba(255,217,51,0); }
  90% { box-shadow: 0 0 0 5px rgba(255,217,51,.10); }
}
.ph-pr__i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.ph-pr__x { font-size: 10.5px; line-height: 1.3; }
.ph-pr__x b { display: block; color: var(--gold); font-size: 9px; font-family: var(--f-mono); letter-spacing: .12em; text-transform: uppercase; margin-block-end: 2px; }
html[lang="ar"] .ph-pr__x b { font-family: var(--f-body); letter-spacing: 0; font-size: 10px; text-transform: none; }

.ph-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-block-start: auto; padding-block-end: 14px; }
.ph-macro {
  background: rgba(252,250,245,.045);
  border: 1px solid rgba(252,250,245,.08);
  border-radius: 11px; padding: 9px 8px; text-align: center;
}
.ph-macro b { display: block; font-family: var(--f-mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.ph-macro span { display: block; font-size: 8.5px; color: var(--bone-3); font-family: var(--f-mono); letter-spacing: .1em; text-transform: uppercase; margin-block-start: 3px; }
html[lang="ar"] .ph-macro span { font-family: var(--f-body); letter-spacing: 0; font-size: 10px; text-transform: none; }
/* macro colours mirror Color+Theme: calories green, protein blue, fat purple */
.ph-macro:nth-child(1) b { color: #34C759; }
.ph-macro:nth-child(2) b { color: #4B8DFF; }
.ph-macro:nth-child(3) b { color: var(--brand-lt); }

.timer-chip {
  position: absolute;
  inset-block-end: 12%;
  inset-inline-start: -10%;
  display: flex; align-items: center; gap: 10px;
  background: rgba(20,23,31,.94);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 16px 9px 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.85);
}
html[dir="rtl"] .timer-chip { padding: 9px 10px 9px 16px; }
.timer-chip .ring { width: 24px; height: 24px; flex: none; }
.timer-chip .ring circle { fill: none; stroke-width: 3; }
.timer-chip .ring .bg { stroke: rgba(252,250,245,.14); }
.timer-chip .ring .fg {
  stroke: var(--brand-lt); stroke-linecap: round;
  stroke-dasharray: 63; stroke-dashoffset: 18;
  transform: rotate(-90deg); transform-origin: 50% 50%;
  animation: countdown 9s linear infinite;
}
@keyframes countdown { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 63; } }
.timer-chip__t { font-family: var(--f-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.timer-chip__l { font-family: var(--f-mono); font-size: 8.5px; color: var(--bone-3); letter-spacing: .12em; text-transform: uppercase; }
html[lang="ar"] .timer-chip__l { font-family: var(--f-body); letter-spacing: 0; font-size: 10px; text-transform: none; }
@media (max-width: 520px) { .timer-chip { inset-inline-start: -2%; } }

/* ---------- 9. Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 16px;
  overflow: hidden;
  white-space: nowrap;
  margin-block-start: clamp(48px, 7vw, 90px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: inline-flex; animation: slide 60s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee__track { animation-direction: reverse; }
.marquee__item {
  font-family: var(--f-display); font-weight: 700;
  font-variation-settings: 'wdth' 76, 'wght' 700;
  font-size: clamp(16px, 1.8vw, 24px);
  text-transform: uppercase; letter-spacing: 0;
  color: var(--bone-3);
  padding-inline: 22px;
  display: inline-flex; align-items: center; gap: 22px;
}
html[lang="ar"] .marquee__item { font-variation-settings: normal; font-weight: 600; text-transform: none; }
.marquee__item::after { content: '●'; font-size: 6px; color: var(--brand); }

/* ---------- 10. Section scaffold ---------- */
.sec { padding-block: clamp(72px, 11vw, 150px); border-block-start: 1px solid var(--line); }
.sec--flush { border-block-start: 0; }
.sec__grid { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 900px) { .sec__grid { grid-template-columns: 1fr; gap: 26px; } }
.sec__label { position: sticky; top: 96px; align-self: start; }
.sec__label .idx {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em;
  color: var(--brand-lt); display: block; margin-block-end: 9px;
}
.sec__label .nm {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--bone-3); line-height: 1.7;
}
html[lang="ar"] .sec__label .nm, html[lang="ar"] .sec__label .idx {
  font-family: var(--f-body); letter-spacing: .02em; font-size: 14px; text-transform: none;
}
@media (max-width: 900px) {
  .sec__label { position: static; display: flex; gap: 14px; align-items: baseline; }
  .sec__label .idx { margin-block-end: 0; }
}

/* ---------- 11. Thesis ---------- */
.thesis h2 { margin-block-end: 34px; max-width: 20ch; }
.thesis__body { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 760px) { .thesis__body { grid-template-columns: 1fr; } }
.thesis__body p { color: var(--bone-2); font-size: clamp(15px, 1.15vw, 17.5px); }
.thesis__body p + p { margin-block-start: 18px; }
.thesis__body strong { color: var(--brand-lt); font-weight: 600; }

.foodstrip { margin-block-start: 44px; display: flex; flex-wrap: wrap; gap: 8px; }
.food {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 16px;
  color: var(--bone-2);
  transition: all .25s var(--ease);
}
.food:hover { border-color: var(--brand); color: var(--brand-lt); background: var(--brand-soft); transform: translateY(-2px); }
.foodstrip__note { flex-basis: 100%; margin-block-start: 14px; font-size: 13px; color: var(--bone-3); }

/* ---------- 12. Ledger ---------- */
.ledger { border-block-start: 1px solid var(--line-2); }
.row {
  display: grid;
  grid-template-columns: 62px minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(16px, 3vw, 48px);
  padding-block: clamp(28px, 3.6vw, 44px);
  border-block-end: 1px solid var(--line);
  transition: background .35s var(--ease);
  position: relative;
}
.row::before {
  content: ''; position: absolute;
  inset-block: 0; inset-inline-start: -22px;
  width: 2px; background: linear-gradient(var(--brand-blue), var(--brand));
  transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease);
}
.row:hover::before { transform: scaleY(1); }
.row:hover .row__n { color: var(--brand-lt); }
.row__n {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em;
  color: var(--bone-3); padding-block-start: 8px;
  transition: color .3s var(--ease);
}
.row__h {
  font-family: var(--f-display); font-weight: 800;
  font-variation-settings: 'wdth' 82, 'wght' 700;
  font-size: clamp(20px, 2.1vw, 30px); line-height: 1.12;
  text-transform: uppercase; letter-spacing: -.012em;
}
html[lang="ar"] .row__h { font-variation-settings: normal; font-weight: 700; text-transform: none; line-height: 1.4; }
.row__b { color: var(--bone-2); font-size: clamp(14.5px, 1.1vw, 16.5px); }
.row__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-block-start: 16px; }
.tag {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--bone-3); border: 1px solid var(--line); border-radius: 3px; padding: 4px 9px;
}
html[lang="ar"] .tag { font-family: var(--f-body); letter-spacing: 0; font-size: 12px; text-transform: none; }
@media (max-width: 820px) {
  .row { grid-template-columns: 44px minmax(0,1fr); }
  .row__b { grid-column: 2; }
}

/* ---------- 13. Library ---------- */
.lib__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-block-end: 40px; }
.lib__filters { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line-2); border-radius: 3px; padding: 7px 13px;
  color: var(--bone-3);
  transition: all .22s var(--ease);
}
html[lang="ar"] .chip { font-family: var(--f-body); letter-spacing: 0; font-size: 13.5px; text-transform: none; }
.chip:hover { color: var(--bone); border-color: var(--bone-3); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--bone); font-weight: 600; }
.chip .c { opacity: .65; margin-inline-start: 6px; font-variant-numeric: tabular-nums; }

.exgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.ex { background: var(--ink); padding: 16px 18px; transition: background .25s var(--ease); min-height: 84px; }
.ex:hover { background: var(--ink-3); }
.ex__g { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-lt); display: block; margin-block-end: 7px; }
html[lang="ar"] .ex__g { font-family: var(--f-body); letter-spacing: 0; font-size: 11.5px; text-transform: none; }
.ex__en { font-size: 14.5px; font-weight: 600; line-height: 1.28; }
.ex__ar { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 14px; color: var(--bone-3); margin-block-start: 3px; direction: rtl; }
html[lang="ar"] .ex { display: flex; flex-direction: column; }
html[lang="ar"] .ex__g  { order: -1; }
html[lang="ar"] .ex__ar { order: 1; margin-block-start: 0; color: var(--bone); font-weight: 600; font-size: 15px; }
html[lang="ar"] .ex__en { order: 2; margin-block-start: 3px; font-size: 14px; color: var(--bone-3); font-weight: 400; }
.ex.hide { display: none; }

.lib__more { margin-block-start: 22px; font-size: 13.5px; color: var(--bone-3); }

/* ---------- 14. Spec sheet ---------- */
.spec { border-block-start: 1px solid var(--line-2); }
.spec__row {
  display: grid; grid-template-columns: minmax(140px, .38fr) minmax(0, 1fr);
  gap: 20px; padding-block: 15px;
  border-block-end: 1px solid var(--line);
  font-size: 14.5px;
}
.spec__k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3); padding-block-start: 3px; }
html[lang="ar"] .spec__k { font-family: var(--f-body); letter-spacing: 0; font-size: 13.5px; text-transform: none; }
.spec__v { color: var(--bone); }

/* ---------- 15. FAQ ---------- */
.faq { border-block-start: 1px solid var(--line-2); }
.qa { border-block-end: 1px solid var(--line); }
.qa__q { list-style: none; cursor: pointer; }
.qa__q::-webkit-details-marker { display: none; }
.qa__q::marker { content: ''; }
.qa__q {
  width: 100%; text-align: start;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 22px;
  padding-block: 22px;
  font-size: clamp(16px, 1.4vw, 20px); font-weight: 600; line-height: 1.35;
  transition: color .22s var(--ease);
}
.qa__q:hover { color: var(--brand-lt); }
.qa__s { flex: none; width: 14px; height: 14px; position: relative; margin-block-start: 7px; }
.qa__s::before, .qa__s::after {
  content: ''; position: absolute; inset-block-start: 50%; inset-inline-start: 0;
  width: 14px; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease);
}
.qa__s::after { transform: rotate(90deg); }
.qa[open] .qa__s::after { transform: rotate(0deg); }
.qa[open] .qa__q { color: var(--brand-lt); }
.qa__a { overflow: hidden; max-height: 0; transition: max-height .42s var(--ease); }
.qa[open] .qa__a { max-height: 420px; }
.qa__a p { padding-block-end: 24px; color: var(--bone-2); max-width: 68ch; font-size: 15.5px; }

/* ---------- 16. CTA ---------- */
.cta { text-align: center; padding-block: clamp(84px, 12vw, 170px); position: relative; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  width: 1000px; height: 1000px; transform: translate(-50%, -50%);
  /* the app's .gradient share-card ramp: #0D33A6 → #6B05AD */
  background:
    radial-gradient(circle at 38% 42%, rgba(13, 51, 166, .22), transparent 58%),
    radial-gradient(circle at 62% 58%, rgba(107, 5, 173, .26), transparent 60%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { margin-block-end: 22px; }
.cta .lede { margin-inline: auto; margin-block-end: 34px; }
.cta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 17. Footer ---------- */
.foot { border-block-start: 1px solid var(--line); padding-block: 54px 40px; }
.foot__mark {
  font-family: var(--f-brand); font-weight: 900;
  font-size: clamp(58px, 17vw, 232px); line-height: .86;
  text-transform: uppercase; letter-spacing: -.035em;
  color: transparent; -webkit-text-stroke: 1px rgba(199, 99, 224, .28);
  margin-block-end: 44px;
  transition: -webkit-text-stroke-color .5s var(--ease);
}
.foot__mark:hover { -webkit-text-stroke-color: var(--brand); }
html[lang="ar"] .foot__mark { font-family: 'IBM Plex Sans Arabic', sans-serif; font-weight: 700; text-transform: none; letter-spacing: 0; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-block-end: 40px; }
@media (max-width: 760px) { .foot__cols { grid-template-columns: repeat(2, 1fr); } }
.foot__cols h5 { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); margin-block-end: 14px; font-weight: 500; }
html[lang="ar"] .foot__cols h5 { font-family: var(--f-body); letter-spacing: 0; font-size: 12.5px; text-transform: none; }
.foot__cols li { list-style: none; margin-block-end: 8px; }
.foot__cols a, .foot__cols span { font-size: 14px; color: var(--bone-2); transition: color .2s var(--ease); }
.foot__cols a:hover { color: var(--brand-lt); }
.foot__base {
  border-block-start: 1px solid var(--line);
  padding-block-start: 24px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-3);
}
html[lang="ar"] .foot__base { font-family: var(--f-body); letter-spacing: 0; font-size: 12.5px; text-transform: none; }

/* ---------- 18. Reveal ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 65ms); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- 19. A11y ---------- */
.skip {
  position: absolute; inset-block-start: -60px; inset-inline-start: var(--pad);
  background: var(--brand); color: var(--bone); padding: 10px 16px; z-index: 300;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  transition: top .2s var(--ease);
}
.skip:focus { inset-block-start: 10px; }
:focus-visible { outline: 2px solid var(--brand-lt); outline-offset: 3px; }
