/*
 * siglos.app. The tokens are the app's AppColors (app/lib/core/theme/app_theme.dart):
 * blue is the one interactive colour, gold is karat identity only (badges, never a
 * background or an action), green/red is direction. White cards on a soft page.
 *
 * Tajawal sits Latin glyphs ~0.14em above the centre of their line box (see
 * AppOptics in the app). Every fixed-height control below carries the same fix:
 * padding-top .28em pushes the label down onto the centre, and an icon beside
 * it moves back up by .14em (.oi).
 */

:root {
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --track: #EDEFF3;
  --ink: #0A0B0D;
  --muted: #6B7280;
  --hair: #E6E9EE;
  --brand: #2563FF;
  --brand-ink: #2563FF;
  --brand-soft: #E8EDFF;
  --gold: #C08A2E;
  --gold-soft: #F7EFDF;
  --up: #16A34A;
  --up-soft: #E6F6EC;
  --down: #DC2626;
  --down-soft: #FCEBEB;
  --hero-top: #D7DEFF;
  --hero-mid: #EDF0FF;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 7px 20px rgba(16, 24, 40, .08);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 28px 56px rgba(16, 24, 40, .14);
  --card-border: transparent;
  --header-bg: rgba(246, 247, 249, .8);
  --bezel: #0A0B0D;
  --r-card: 20px;
  --r-badge: 14px;
  --font: "Tajawal", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0C10;
    --card: #14181F;
    --track: #1C222C;
    --ink: #E9ECF2;
    --muted: #8A93A3;
    --hair: #232A36;
    --brand: #6E8DFF;
    --brand-ink: #8FA7FF;
    --brand-soft: #17203A;
    --gold: #D9AE4E;
    --gold-soft: #2A2313;
    --up: #4ADE80;
    --up-soft: #10261A;
    --down: #F87171;
    --down-soft: #2C1416;
    --hero-top: #141A2E;
    --hero-mid: #0E1220;
    --shadow: 0 4px 14px rgba(0, 0, 0, .35);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, .55);
    --card-border: #232A36;
    --header-bg: rgba(10, 12, 16, .8);
    --bezel: #000000;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0A0C10;
  --card: #14181F;
  --track: #1C222C;
  --ink: #E9ECF2;
  --muted: #8A93A3;
  --hair: #232A36;
  --brand: #6E8DFF;
  --brand-ink: #8FA7FF;
  --brand-soft: #17203A;
  --gold: #D9AE4E;
  --gold-soft: #2A2313;
  --up: #4ADE80;
  --up-soft: #10261A;
  --down: #F87171;
  --down-soft: #2C1416;
  --hero-top: #141A2E;
  --hero-mid: #0E1220;
  --shadow: 0 4px 14px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, .55);
  --card-border: #232A36;
  --header-bg: rgba(10, 12, 16, .8);
  --bezel: #000000;
  color-scheme: dark;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }

/* Explanatory paragraphs are justified, as in the app. */
.just { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
@media (min-width: 1024px) { .wrap { padding-inline: 32px; } }

.oi { translate: 0 -.14em; flex: none; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.skip {
  position: absolute; inset-inline-start: 16px; top: -64px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.card {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: .28em 28px 0; border-radius: 999px; border: 0;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 16px;
  cursor: pointer; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, background .15s;
  box-shadow: 0 6px 18px rgba(37, 99, 255, .28);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 99, 255, .34); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--card-border); }
.btn.sm { height: 44px; padding-inline: 20px; font-size: 15px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 999px; flex: none;
  display: inline-grid; place-items: center; cursor: pointer;
  background: var(--card); color: var(--ink); border: 1px solid var(--card-border); box-shadow: var(--shadow);
}
.icon-btn svg { width: 20px; height: 20px; }

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store { display: inline-block; border-radius: 10px; transition: transform .15s ease; }
.store:hover { transform: translateY(-1px); }
.store img { height: 48px; width: auto; }
:root[data-theme="dark"] .store img { box-shadow: 0 0 0 1px #3a4150; border-radius: 9px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .store img { box-shadow: 0 0 0 1px #3a4150; border-radius: 9px; } }

/* ---------- header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; transition: background .2s, box-shadow .2s; }
.site-header.scrolled, .site-header.open {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--hair);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: var(--shadow); }
.brand span { padding-top: .2em; }

.nav-pill { display: none; }
@media (min-width: 980px) {
  .nav-pill { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--track); }
}
.nav-pill a {
  display: inline-flex; align-items: center; height: 40px; padding: .28em 16px 0;
  border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s, background .15s;
}
.nav-pill a:hover { color: var(--ink); text-decoration: none; }
.nav-pill a.active { background: var(--card); color: var(--brand-ink); font-weight: 700; box-shadow: var(--shadow); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { display: none; }
@media (min-width: 640px) { .nav-actions .btn { display: inline-flex; } }
.menu-btn { display: inline-grid; }
@media (min-width: 980px) { .menu-btn { display: none; } }

.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}

.menu-btn .x { display: none; }
.site-header.open .menu-btn .x { display: block; }
.site-header.open .menu-btn .bars { display: none; }

.mobile-menu { display: none; padding: 4px 0 20px; }
.site-header.open .mobile-menu { display: block; }
@media (min-width: 980px) { .site-header.open .mobile-menu { display: none; } }
.mobile-menu nav { display: grid; gap: 4px; padding: 8px; }
.mobile-menu nav a {
  display: flex; align-items: center; justify-content: space-between; height: 52px; padding: .28em 16px 0;
  border-radius: 14px; color: var(--ink); font-weight: 500; font-size: 17px;
}
.mobile-menu nav a:hover { background: var(--track); text-decoration: none; }
.mobile-menu .stores { padding: 12px 16px 4px; }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 40px) 0 56px;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-mid) 45%, var(--bg) 100%);
}
@media (min-width: 980px) { .hero { padding: calc(var(--header-h) + 64px) 0 40px; } }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 40px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: .28em 16px 0 6px;
  border-radius: 999px; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--card-border);
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.eyebrow b { color: var(--ink); font-weight: 700; }
.flagstack { display: inline-flex; translate: 0 -.14em; }
.flagstack img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); }
.flagstack img + img { margin-inline-start: -9px; }

.hero h1 { font-size: clamp(40px, 6.4vw, 68px); line-height: 1.04; letter-spacing: -.035em; margin-top: 22px; }
.hero h1 .soft { color: var(--muted); }
@media (min-width: 480px) { .hero h1 .soft { display: block; } }
.hero .lead { font-size: clamp(17px, 1.9vw, 20px); color: var(--muted); max-width: 560px; margin-top: 22px; line-height: 1.6; }
.hero .stores { margin-top: 32px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks svg { width: 18px; height: 18px; color: var(--brand-ink); }

.hero-visual { position: relative; display: grid; place-items: center; padding: 24px 0; }
.rings { position: absolute; inset: 50% auto auto 50%; width: min(620px, 150vw); aspect-ratio: 1; translate: -50% -50%; pointer-events: none; }
.rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand) 16%, transparent); }
.rings span:nth-child(1) { background: radial-gradient(circle, color-mix(in srgb, var(--brand) 14%, transparent) 0%, transparent 62%); }
.rings span:nth-child(2) { inset: 14%; }
.rings span:nth-child(3) { inset: 28%; }

.bubble {
  position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--card-border);
  animation: float 6s ease-in-out infinite;
}
.bubble img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--hair); }
.bubble.b1 { top: 6%; inset-inline-start: 6%; }
.bubble.b2 { top: 14%; inset-inline-end: 4%; animation-delay: -1.5s; }
.bubble.b3 { top: 46%; inset-inline-start: 0; animation-delay: -3s; }
.bubble.b4 { bottom: 26%; inset-inline-end: 0; animation-delay: -2s; }
.bubble.b5 { bottom: 4%; inset-inline-start: 18%; animation-delay: -4s; }
.bubble.b6 { top: 0; inset-inline-end: 30%; animation-delay: -5s; width: 44px; height: 44px; }
.bubble.b6 img { width: 26px; height: 26px; }
@media (max-width: 520px) { .bubble.b3, .bubble.b6 { display: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.phone {
  position: relative; z-index: 1; width: min(300px, 70vw); aspect-ratio: 1320 / 2868;
  border-radius: 50px; padding: 10px; background: var(--bezel);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b303b;
}
.phone::before {
  content: ""; position: absolute; z-index: 2; top: 21px; inset-inline: 0; margin-inline: auto;
  width: 30%; height: 24px; border-radius: 999px; background: var(--bezel);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 40px; background: var(--hero-mid); }

.float-card {
  position: absolute; z-index: 3; bottom: 9%; inset-inline-start: max(0px, calc(50% - 250px));
  width: 236px; padding: 16px 18px; border-radius: 20px;
  background: var(--card); box-shadow: var(--shadow-lg); border: 1px solid var(--card-border);
}
@media (max-width: 520px) { .float-card { inset-inline-start: 0; bottom: 4%; width: 206px; padding: 14px 16px; } }
.float-card .fk { display: flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; font-size: 14px; }
.float-card .fk img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; translate: 0 -.14em; }
.float-card .fp { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; line-height: 1.2; }
.float-card .fd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; margin-top: 2px; font-size: 13px; color: var(--muted); }
.float-card .fd .delta { font-size: 14px; }

.marquee { margin-top: 8px; padding: 22px 0 0; }
.marquee p { text-align: center; color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.flagrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.flagrow button {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: .28em 14px 0 8px; cursor: pointer;
  border-radius: 999px; background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.flagrow button:hover { color: var(--brand-ink); }
.flagrow img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; translate: 0 -.14em; }

/* ---------- sections ---------- */

.section { padding: 80px 0; }
@media (max-width: 640px) { .section { padding: 64px 0; } }
.section.tight { padding-top: 32px; }
#rates { padding-top: 72px; }
@media (max-width: 640px) { #rates { padding-top: 48px; } }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; max-width: 820px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: .28em 14px 0;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.section h2 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -.03em; margin-top: 16px; line-height: 1.08; }
.section-head p { font-size: 18px; color: var(--muted); margin-top: 16px; }

/* ---------- rates (the product, on the page) ---------- */

.chips {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin-inline: -16px; padding: 4px 16px 16px;
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .chips { margin-inline: -24px; padding-inline: 24px; } }
@media (min-width: 1024px) { .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: .28em 16px 0 8px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--hair); color: var(--ink);
  font-weight: 500; font-size: 15px; cursor: pointer; scroll-snap-align: start; transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--brand); }
.chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; translate: 0 -.14em; box-shadow: 0 0 0 1px var(--hair); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }

.rates-grid { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 980px) { .rates-grid { grid-template-columns: 1.12fr .88fr; align-items: start; } }

.price-card { padding: 24px 24px 22px; }
@media (max-width: 520px) { .price-card { padding: 20px 18px; } }
.price-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.price-big { font-size: clamp(32px, 5vw, 44px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.delta { display: inline-flex; align-items: center; gap: 2px; font-size: 16px; font-weight: 700; }
.delta svg { width: 16px; height: 16px; translate: 0 -.14em; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.updated { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; margin-top: 8px; }
.updated svg { width: 17px; height: 17px; translate: 0 -.14em; }

.select-wrap { position: relative; flex: none; }
.select-wrap select {
  appearance: none; -webkit-appearance: none; height: 40px; padding: .28em 36px 0 16px; border-radius: 999px; border: 0;
  background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: 15px; cursor: pointer;
}
.select-wrap svg { position: absolute; inset-inline-end: 13px; top: 50%; width: 14px; height: 14px; translate: 0 -50%; color: var(--gold); pointer-events: none; }

.chart { position: relative; height: 240px; margin-top: 18px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
@media (max-width: 520px) { .chart { height: 200px; } }
.chart svg { position: absolute; inset: 0 64px 26px 0; width: calc(100% - 64px); height: calc(100% - 26px); overflow: visible; }
.chart .area { fill: var(--brand-soft); }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .grid { stroke: var(--hair); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart .y, .chart .x { position: absolute; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.chart .y { inset-inline-end: 0; translate: 0 -50%; }
.chart .x { bottom: 0; }
.chart .dot, .chart .cursor-dot {
  position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--brand);
  translate: -50% -50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}
.chart .cursor { position: absolute; top: 0; bottom: 26px; width: 1px; background: var(--muted); opacity: .5; }
.chart .tip {
  position: absolute; top: -6px; translate: -50% -100%; padding: 6px 10px 4px; border-radius: 10px; white-space: nowrap;
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; pointer-events: none;
}
.chart .tip small { display: block; font-weight: 500; opacity: .75; font-size: 12px; }
.chart .empty { position: absolute; inset: 0 0 26px; display: grid; place-items: center; color: var(--muted); font-size: 15px; text-align: center; padding: 0 24px; }


.chart-cap { margin-top: 12px; color: var(--muted); font-size: 14px; }
.no-price { display: grid; gap: 16px; padding: 22px 24px; margin-top: 20px; }
.no-price p { color: var(--muted); }
.no-price b { color: var(--ink); }
.note { margin-top: 16px; padding: 12px 14px 10px; border-radius: 14px; background: var(--track); color: var(--muted); font-size: 14px; }

.calc { display: grid; gap: 12px; }
.calc-head { padding: 18px 18px 16px; }
.calc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 14px; }
.calc-row label { color: var(--muted); font-size: 15px; }
.calc-input {
  width: 8ch; min-width: 0; text-align: end; font-size: 32px; font-weight: 700; line-height: 1.2;
  border: 0; border-bottom: 2px solid var(--hair); background: transparent; padding: 0 0 2px; border-radius: 0;
  -moz-appearance: textfield;
}
.calc-input::-webkit-outer-spin-button, .calc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-input:focus { outline: none; border-bottom-color: var(--brand); }

.seg { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--track); }
.seg button {
  flex: 1; height: 42px; padding: .28em 6px 0; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); font-weight: 500; font-size: 15px; white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--card); color: var(--brand-ink); font-weight: 700; box-shadow: var(--shadow); }

.krow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.kbadge {
  display: grid; place-items: center; align-content: center; flex: none; width: 66px; height: 54px; padding-top: .28em;
  border-radius: var(--r-badge); background: var(--gold-soft); color: var(--gold); line-height: 1.05;
}
.kbadge b { font-size: 19px; }
.kbadge small { font-size: 11px; font-weight: 500; opacity: .85; }
.kval { text-align: end; min-width: 0; }
.kval .total { font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }
.kval .per { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 8px; margin-top: 4px; color: var(--muted); font-size: 13px; }
.pill {
  display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: .22em 8px 0; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.pill svg { width: 12px; height: 12px; translate: 0 -.12em; }
.pill.up { background: var(--up-soft); color: var(--up); }
.pill.down { background: var(--down-soft); color: var(--down); }

.disclosure {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 14px 16px 12px;
  border-radius: 16px; border: 1px dashed var(--hair); color: var(--muted); font-size: 14px; line-height: 1.55;
}
.disclosure svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

.sk { color: transparent !important; border-radius: 8px; background: linear-gradient(90deg, var(--track) 25%, var(--hair) 50%, var(--track) 75%); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- features ---------- */

.bento { display: grid; gap: 20px; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(6, 1fr); } .b-7, .b-5 { grid-column: span 6; } .b-4 { grid-column: span 3; } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(12, 1fr); } .b-7 { grid-column: span 7; } .b-5 { grid-column: span 5; } .b-4 { grid-column: span 4; } }

.feature { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 28px; min-height: 100%; }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 23px; margin-top: 18px; }
.feature p { color: var(--muted); margin-top: 10px; font-size: 16px; line-height: 1.6; }
.feature .media { margin-top: auto; padding-top: 24px; display: flex; justify-content: center; }
@media (min-width: 1024px) {
  .feature.split { flex-direction: row; gap: 28px; align-items: stretch; }
  .feature.split .copy { flex: 1; display: flex; flex-direction: column; }
  .feature.split .media { margin-top: 0; padding-top: 0; flex: none; align-items: flex-end; }
}

.peek {
  width: min(250px, 78%); aspect-ratio: 1320 / 1560; margin-bottom: -29px; overflow: hidden;
  border: 9px solid var(--bezel); border-bottom: 0; border-radius: 38px 38px 0 0; background: var(--bezel);
  box-shadow: var(--shadow-lg);
}
.peek img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 29px 29px 0 0; }
.feature.split .peek { width: 240px; }
.peek.from-top { border: 9px solid var(--bezel); border-top: 0; border-radius: 0 0 38px 38px; margin: -29px 0 0; }
.peek.from-top img { object-position: bottom; border-radius: 0 0 29px 29px; }
.feature.top-media .media { order: -1; margin-top: 0; padding-top: 0; padding-bottom: 24px; }

.crop {
  width: 100%; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--hair);
  aspect-ratio: 16 / 10; background: var(--bg);
}
.crop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.crop img.pos-chart { object-position: 50% 12%; }
.crop img.pos-currencies { object-position: 50% 40%; }

.widget-img { width: 170px; border-radius: 28px; box-shadow: var(--shadow-lg); }

.karat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.karat-grid .kbadge { width: auto; height: 62px; }

.mini-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.mini-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 16px; }
.mini-list li b { color: var(--ink); font-weight: 700; }
.mini-list svg { width: 20px; height: 20px; color: var(--brand-ink); flex: none; margin-top: 2px; }

/* ---------- gallery ---------- */

.gallery {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: -16px; padding: 12px 16px 28px;
}
.gallery::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .gallery { margin-inline: -24px; padding-inline: 24px; } }
@media (min-width: 1024px) { .gallery { margin-inline: -32px; padding-inline: 32px; } }
.shot { flex: none; width: 228px; scroll-snap-align: center; margin: 0; }
.shot .phone { width: 100%; border-radius: 38px; padding: 8px; }
.shot .phone::before { top: 16px; height: 18px; }
.shot .phone img { border-radius: 30px; }
.shot figcaption { margin-top: 14px; text-align: center; font-weight: 700; font-size: 16px; }
.shot figcaption small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.gallery-nav { display: none; gap: 10px; }
@media (min-width: 1024px) { .gallery-nav { display: flex; } }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ---------- markets ---------- */

.regions { display: grid; gap: 20px; }
@media (min-width: 760px) { .regions { grid-template-columns: repeat(2, 1fr); } .region.gulf { grid-column: span 2; } }
@media (min-width: 1100px) { .regions { grid-template-columns: 2fr 1fr 1fr; } .region.gulf { grid-column: auto; } }
.region { padding: 22px 16px 14px; }
.region h3 { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; padding: 0 10px 10px; }
.region-list { display: grid; gap: 2px; }
.region.gulf .region-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.region-stack { display: grid; gap: 20px; align-content: start; }
.mrow {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 14px; cursor: pointer;
  background: transparent; text-align: start;
}
.mrow:hover { background: var(--track); }
.mrow img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--hair); flex: none; }
.mrow .mn { display: block; font-weight: 700; font-size: 16px; padding-top: .2em; }
.mrow .mm { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.mrow .mm span { display: block; }
.mrow .mc { margin-inline-start: auto; font-size: 13px; font-weight: 700; color: var(--muted); padding-top: .2em; }

/* ---------- how the prices work ---------- */

.split2 { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .split2 { grid-template-columns: 1fr 1fr; gap: 64px; } }
.formula { padding: 28px; }
.formula .eq {
  display: block; padding: 16px 18px 14px; border-radius: 14px; background: var(--track); font-weight: 700; font-size: 16px;
  direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere;
}
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; counter-increment: step; }
.steps li::before {
  content: counter(step); width: 32px; height: 32px; padding-top: .28em; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 15px;
}
.steps b { display: block; font-size: 17px; }
.steps p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 32px; }
.stat { padding: 18px 20px; }
.stat b { display: block; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }
.prose-sm { margin-top: 18px; }
.prose-sm p + p { margin-top: 14px; }
.prose-sm p { color: var(--muted); font-size: 17px; }

/* ---------- trust ---------- */

.trio { display: grid; gap: 20px; }
@media (min-width: 860px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio .feature h3 { font-size: 21px; }

/* ---------- faq ---------- */

.faq { display: grid; gap: 12px; max-width: 840px; margin-inline: auto; }
.faq details { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--card-border); }
.faq summary {
  position: relative; list-style: none; cursor: pointer; padding: 22px 22px 18px; padding-inline-end: 60px;
  font-weight: 700; font-size: 18px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; inset-inline-end: 24px; top: 50%; width: 14px; height: 2px; border-radius: 2px;
  background: var(--brand-ink); transition: transform .2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq .ans { padding: 0 22px 22px; color: var(--muted); font-size: 16px; }
.faq .ans p + p { margin-top: 10px; }

/* ---------- cta ---------- */

.cta {
  position: relative; overflow: hidden; text-align: center; padding: 64px 24px; border-radius: 32px;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-mid) 100%);
  border: 1px solid var(--card-border);
}
.cta img.icon { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.cta h2 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.03em; margin-top: 26px; }
.cta p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 14px auto 0; }
.cta .stores { justify-content: center; margin-top: 30px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--hair); padding: 56px 0 36px; margin-top: 24px; }
.fgrid { display: grid; gap: 36px; }
.fgrid { grid-template-columns: 1fr 1fr; }
.fbrand { grid-column: 1 / -1; }
@media (min-width: 760px) { .fgrid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .fbrand { grid-column: auto; } }
.fbrand p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 340px; }
.fcol h4 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.fcol a { display: block; color: var(--ink); padding: 6px 0; font-size: 15px; }
.fbottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 14px;
}
.fbottom p { max-width: 720px; }

/* ---------- legal pages ---------- */

.page-hero {
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 36px) 0 40px;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-mid) 55%, var(--bg) 100%);
}
@media (min-width: 980px) { .page-hero { padding: calc(var(--header-h) + 56px) 0 52px; } }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.crumbs a { color: var(--muted); }
.crumbs svg { width: 14px; height: 14px; translate: 0 -.1em; }
.page-hero h1 { font-size: clamp(36px, 5.2vw, 56px); letter-spacing: -.03em; margin-top: 16px; line-height: 1.06; }
.page-hero .sub { color: var(--muted); font-size: 17px; margin-top: 12px; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.legal { display: grid; gap: 28px; padding-bottom: 72px; }
@media (min-width: 1024px) { .legal { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; } }
.toc { display: none; }
@media (min-width: 1024px) { .toc { display: block; position: sticky; top: calc(var(--header-h) + 24px); } }
.toc h4 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px; }
.toc a { display: block; padding: 8px 12px 6px; border-radius: 12px; color: var(--muted); font-size: 15px; line-height: 1.35; }
.toc a:hover { color: var(--ink); text-decoration: none; background: var(--track); }
.toc a.active { color: var(--brand-ink); background: var(--brand-soft); font-weight: 700; }

.prose { padding: clamp(22px, 4.5vw, 52px); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 23px; margin: 44px 0 12px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2 a.anchor { color: var(--hair); margin-inline-start: 8px; font-weight: 500; opacity: 0; transition: opacity .15s; }
.prose h2:hover a.anchor { opacity: 1; color: var(--muted); text-decoration: none; }
.prose p, .prose li { font-size: 17px; line-height: 1.72; }
.prose p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-inline-start: 22px; margin: 12px 0; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--muted); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.prose .lede { padding: 20px 22px 18px; border-radius: 16px; background: var(--brand-soft); margin-bottom: 8px; }
.prose .lede p { margin: 0; }
.prose [lang="ar"] { text-align: start; }

.related { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 640px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: block; padding: 20px 22px; color: var(--ink); }
.related a:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.related b { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 17px; }
.related b svg { width: 18px; height: 18px; color: var(--brand-ink); translate: 0 -.14em; }
.related span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

/* /get and 404 */
.center-card { max-width: 560px; margin: 0 auto; padding: 40px 28px; text-align: center; }
.center-card img.icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.center-card h1 { font-size: clamp(30px, 5vw, 40px); margin-top: 22px; letter-spacing: -.03em; }
.center-card p { color: var(--muted); margin-top: 12px; }
.center-card .stores { justify-content: center; margin-top: 28px; }

/* ---------- reveal ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
