/* ==========================================================================
   iRose.ly — landing v2
   Soft Rose v3 tokens, faithful to the app's design system.
   Depth model: layered rose glows on the canvas, glass chips, one
   elevation scale. 60% canvas · 30% charcoal type · 10% rose accents.
   ========================================================================== */

@font-face { font-family: "Tajawal"; src: url("/assets/fonts/Tajawal-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/assets/fonts/Tajawal-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/assets/fonts/Tajawal-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/Poppins-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/Poppins-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/Poppins-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/Lora-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/Lora-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Soft Rose v3 ramp — exact app tokens */
  --rose-50:  #FEF4F8;
  --rose-100: #FDE3ED;
  --rose-200: #FBC9DC;
  --rose-300: #F8AEC8;   /* primary fill — charcoal text on it, never white */
  --rose-400: #F285AC;
  --rose-600: #C2406F;   /* links, prices, high emphasis on light */
  --rose-700: #A83059;   /* pressed, deep accents */
  --charcoal: #1A1A2E;
  --ink-80: rgba(26, 26, 46, 0.8);
  --ink-60: rgba(26, 26, 46, 0.62);
  --surface: #FFFFFF;
  --hairline: rgba(26, 26, 46, 0.08);

  /* one elevation scale */
  --shadow-1: 0 2px 10px -4px rgba(168, 48, 89, 0.14), 0 12px 32px -18px rgba(168, 48, 89, 0.24);
  --shadow-2: 0 6px 18px -8px rgba(168, 48, 89, 0.22), 0 28px 64px -28px rgba(168, 48, 89, 0.36);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-line: rgba(255, 255, 255, 0.75);

  --font-ar: "Tajawal", "Helvetica Neue", sans-serif;
  --font-latin: "Poppins", "Helvetica Neue", sans-serif;
  --font-display-en: "Lora", Georgia, serif;

  --radius-card: 16px;
  --radius-panel: 28px;
  --radius-pill: 999px;
  --shell: 1140px;

  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1); /* app's enter curve */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  font-family: var(--font-ar);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* layered canvas: two rose glows over the base */
  background-color: var(--rose-50);
  background-image:
    radial-gradient(52rem 52rem at 85% -6rem, rgba(251, 201, 220, 0.5), transparent 62%),
    radial-gradient(46rem 46rem at -10% 42rem, rgba(253, 227, 237, 0.85), transparent 60%),
    radial-gradient(40rem 40rem at 108% 110rem, rgba(251, 201, 220, 0.35), transparent 65%);
  background-repeat: no-repeat;
}
html[lang="en"] body { font-family: var(--font-latin); line-height: 1.65; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-600); text-decoration: none; }
ul { list-style: none; }

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--rose-600); outline-offset: 3px; border-radius: 6px; }

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-1);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(254, 244, 248, 0.86);
  background: color-mix(in srgb, var(--rose-50) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand img { height: 42px; width: auto; }
.header-nav { display: flex; gap: 24px; margin-inline-start: 10px; }
.header-nav a {
  color: var(--ink-80); font-weight: 500; font-size: 0.95rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color 180ms var(--ease-enter), border-color 180ms var(--ease-enter);
}
.header-nav a:hover { color: var(--rose-700); border-color: var(--rose-300); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }

/* language toggle — the app's sliding-thumb segmented control */
.lang-toggle {
  position: relative; display: flex; background: var(--rose-100);
  border-radius: var(--radius-pill); padding: 3px; min-height: 40px;
  border: 1px solid rgba(251, 201, 220, 0.6);
}
.lang-toggle button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  padding: 6px 16px; border-radius: var(--radius-pill);
  font-family: inherit; font-size: 0.85rem; font-weight: 700; color: var(--ink-60);
  transition: color 200ms var(--ease-enter);
  min-width: 58px;
}
.lang-toggle button[aria-pressed="true"] { color: var(--charcoal); }
.lang-thumb {
  position: absolute; top: 3px; bottom: 3px; width: calc(50% - 3px);
  inset-inline-start: 3px;
  background: var(--surface); border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.12);
  transition: transform 240ms var(--ease-enter);
}
.lang-toggle[data-active="en"] .lang-thumb { transform: translateX(calc(var(--flip, -1) * 100%)); }
html[dir="rtl"] { --flip: -1; }
html[dir="ltr"] { --flip: 1; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); font-weight: 700; font-family: inherit;
  cursor: pointer;
  transition: transform 160ms var(--ease-enter), box-shadow 160ms var(--ease-enter), background 160ms;
}
.btn-primary {
  background: linear-gradient(180deg, var(--rose-200), var(--rose-300));
  color: var(--charcoal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), var(--shadow-1);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), var(--shadow-2); }
.btn-primary:active { background: var(--rose-400); transform: translateY(0); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 72px 56px; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(38rem 22rem at 70% 20%, rgba(248, 174, 200, 0.28), transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center; gap: 48px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--rose-700); font-weight: 700; font-size: 0.88rem;
  background: rgba(253, 227, 237, 0.75);
  border: 1px solid rgba(251, 201, 220, 0.8);
  border-radius: var(--radius-pill); padding: 7px 16px;
  margin-bottom: 22px;
}
.display {
  font-size: clamp(2.7rem, 6.2vw, 4.7rem); line-height: 1.1; font-weight: 700;
  letter-spacing: -0.01em; margin-bottom: 22px;
}
html[lang="en"] .display { font-family: var(--font-display-en); font-weight: 600; line-height: 1.06; }
.display .accent { position: relative; color: var(--rose-600); white-space: nowrap; }
.display .accent::after {
  content: ""; position: absolute; inset-inline: -2%; bottom: 0.02em; height: 0.16em;
  background: linear-gradient(90deg, var(--rose-200), var(--rose-300));
  border-radius: 999px; z-index: -1;
}
.lede { font-size: 1.13rem; color: var(--ink-80); max-width: 32em; margin-bottom: 32px; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.store-buttons-center { justify-content: center; margin-top: 32px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #262640, var(--charcoal));
  color: #fff;
  border-radius: 16px; padding: 10px 22px; min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 30px -14px rgba(26, 26, 46, 0.55);
  transition: transform 160ms var(--ease-enter), box-shadow 160ms var(--ease-enter), opacity 160ms;
}
a.store-btn:hover { transform: translateY(-2px); }
.store-btn.is-soon { opacity: 0.78; }
.store-btn svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.25; text-align: start; }
.store-btn-text small { font-size: 0.68rem; opacity: 0.75; font-weight: 500; }
.store-btn-text strong { font-family: var(--font-latin); font-size: 1.02rem; font-weight: 600; letter-spacing: 0.01em; }

.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.trust-chips li {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(251, 201, 220, 0.55);
  border-radius: var(--radius-pill); padding: 8px 14px;
  font-size: 0.85rem; font-weight: 700; color: var(--ink-80);
  box-shadow: 0 1px 4px rgba(168, 48, 89, 0.06);
}
.trust-chips svg { width: 17px; height: 17px; color: var(--rose-600); flex: none; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.phone-blob {
  position: absolute; width: min(540px, 94%); aspect-ratio: 1;
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.9), transparent 42%),
    radial-gradient(circle at 60% 60%, var(--rose-100), var(--rose-200) 82%);
  box-shadow: inset 0 2px 30px rgba(255, 255, 255, 0.7);
}
.device-float { position: relative; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
/* Real device bezel around the PURE app screen (extracted at full res
   from the widget-tree renders) — reads as an actual phone. */
.phone {
  --bezel: 11px; --r: 46px;
  position: relative; display: block;
  width: min(340px, 70vw);
  background: linear-gradient(165deg, #2C2C48, #141426);
  border-radius: var(--r);
  padding: var(--bezel);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    var(--shadow-2),
    0 70px 100px -60px rgba(168, 48, 89, 0.5);
  rotate: -2deg;
}
.phone::before {
  content: ""; position: absolute; z-index: 2;
  top: calc(var(--bezel) + 10px); left: 50%; transform: translateX(-50%);
  width: 27%; height: 21px;
  background: #0B0B16; border-radius: 999px;
}
.phone img { width: 100%; height: auto; border-radius: calc(var(--r) - var(--bezel)); }
.phone-sm { --bezel: 9px; --r: 38px; rotate: none; }
.phone-sm::before { height: 17px; top: calc(var(--bezel) + 8px); }
.float-chip {
  position: absolute; border-radius: var(--radius-pill);
  padding: 10px 18px; font-weight: 700; font-size: 0.88rem; color: var(--charcoal);
}
.chip-1 { top: 12%; inset-inline-start: 2%; }
.chip-2 { bottom: 14%; inset-inline-end: 4%; display: inline-flex; align-items: center; gap: 6px; }
.chip-2 .dpay-mark { font-family: var(--font-latin); font-weight: 600; color: var(--rose-700); }
.chip-2 .check { width: 16px; height: 16px; color: var(--rose-600); }

/* ---------- section heads ---------- */
.section-head { margin-bottom: 34px; }
.section-head .rule { display: block; width: 56px; height: 4px; background: linear-gradient(90deg, var(--rose-400), var(--rose-600)); border-radius: 2px; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
html[lang="en"] .section-head h2 { font-family: var(--font-display-en); font-weight: 600; }
.section-head-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.section-sub { color: var(--ink-60); margin-top: 8px; display: flex; align-items: center; gap: 10px; }

.live-pill {
  font-size: 0.82rem; font-weight: 700; color: var(--rose-700);
  background: rgba(253, 227, 237, 0.85); border: 1px solid rgba(251, 201, 220, 0.9);
  border-radius: var(--radius-pill); padding: 6px 14px;
}
.live-pill .num { font-family: var(--font-latin); }

.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rose-600); flex: none; position: relative; }
.live-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--rose-600); opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.5); opacity: 0.7; } 70%, 100% { transform: scale(1.25); opacity: 0; } }

/* ---------- live shelf ---------- */
.shelf { padding-block: 30px 46px; }
.shelf-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 224px;
  gap: 18px; overflow-x: auto; padding: 10px 6px 28px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--rose-200) transparent;
}
.shelf-track::-webkit-scrollbar { height: 6px; }
.shelf-track::-webkit-scrollbar-thumb { background: var(--rose-200); border-radius: 3px; }

.shelf-track li { scroll-snap-align: start; display: grid; }
.product-card {
  position: relative;
  background: var(--surface); border-radius: var(--radius-card);
  border: 1px solid rgba(251, 201, 220, 0.45);
  box-shadow: var(--shadow-1); overflow: hidden;
  display: flex; flex-direction: column;
  color: inherit;
  transition: transform 220ms var(--ease-enter), box-shadow 220ms var(--ease-enter);
}
.product-card:hover, .product-card:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.card-art-wrap { overflow: hidden; position: relative; }
.card-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #fff; padding: 12px;
  transition: transform 400ms var(--ease-enter);
}
.product-card:hover .card-img { transform: scale(1.05); }
.card-art { aspect-ratio: 1 / 0.9; width: 100%; display: block; transition: transform 400ms var(--ease-enter); }
.product-card:hover .card-art { transform: scale(1.05); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; }
.card-brand { font-size: 0.7rem; font-weight: 600; color: var(--rose-700); font-family: var(--font-latin); letter-spacing: 0.07em; text-transform: uppercase; }
.card-name { font-size: 0.95rem; font-weight: 700; line-height: 1.45; min-height: 2.7em; color: var(--charcoal);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin-top: 6px; color: var(--rose-600); font-weight: 700; display: flex; align-items: baseline; gap: 4px; }
.card-price .from { font-size: 0.72rem; color: var(--ink-60); font-weight: 500; }
.card-price .num { font-family: var(--font-latin); font-weight: 600; font-size: 1.08rem; }
.card-price .cur { font-size: 0.76rem; }
.card-view {
  position: absolute; inset-inline: 12px; bottom: 12px;
  background: rgba(26, 26, 46, 0.9);
  color: #fff; text-align: center; border-radius: var(--radius-pill);
  padding: 8px 12px; font-size: 0.82rem; font-weight: 700;
  opacity: 0; translate: 0 6px; transition: opacity 200ms var(--ease-enter), translate 200ms var(--ease-enter);
  pointer-events: none;
}
.product-card:hover .card-view, .product-card:focus-visible .card-view { opacity: 1; translate: 0 0; }
.shelf-fallback { color: var(--ink-60); padding-block: 24px; }

/* skeletons while the live fetch is in flight */
.card-skeleton { pointer-events: none; }
.card-skeleton .sk { background: linear-gradient(100deg, var(--rose-100) 40%, var(--rose-50) 50%, var(--rose-100) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.card-skeleton .card-art { border-radius: 0; }
.card-skeleton .line { height: 12px; border-radius: 6px; margin-block: 5px; }
.card-skeleton .line.w60 { width: 60%; }

/* ---------- brands marquee (decorative) ---------- */
.brands { padding-block: 6px 30px; }
.marquee {
  overflow: hidden; direction: ltr;
  background: rgba(253, 227, 237, 0.55);
  border: 1px solid rgba(251, 201, 220, 0.6);
  border-radius: var(--radius-pill);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; padding-block: 16px; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: baseline; gap: 44px; padding-inline-end: 44px; }
.marquee-set span {
  font-family: var(--font-latin); font-weight: 500; font-size: 1.08rem;
  color: var(--rose-700); letter-spacing: 0.05em; white-space: nowrap;
}
.marquee-set span.ar { font-family: var(--font-ar); font-weight: 700; letter-spacing: 0; }
.marquee-set i { width: 5px; height: 5px; border-radius: 50%; background: var(--rose-300); align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- payment methods ---------- */
.pay { padding-block: 8px 34px; }
.pay-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pay-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid rgba(251, 201, 220, 0.55);
  border-radius: var(--radius-pill);
  padding: 10px 18px; min-height: 48px;
  font-size: 0.9rem; font-weight: 700; color: var(--ink-80);
  box-shadow: var(--shadow-1);
}
.pay-chip img { height: 24px; width: auto; max-width: 110px; }
.pay-chip svg { width: 20px; height: 20px; color: var(--rose-600); flex: none; }
.pay-dpay .dpay-mark { font-family: var(--font-latin); font-weight: 600; color: var(--rose-700); font-size: 1rem; }
.pay-dpay .check { width: 16px; height: 16px; }

/* ---------- inside the app — bento ---------- */
.inside { padding-block: 42px 10px; }
.bento {
  display: grid; gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "wide wide" "a b" "stats stats";
}
.cell {
  position: relative; overflow: hidden;
  border-radius: var(--radius-panel);
  background: linear-gradient(160deg, #FFFFFF, var(--rose-100));
  border: 1px solid rgba(251, 201, 220, 0.5);
  box-shadow: var(--shadow-1);
  padding: 30px 30px 0;
  display: flex; flex-direction: column; gap: 18px;
}
.cell-wide {
  grid-area: wide;
  background: linear-gradient(165deg, var(--rose-100), var(--rose-200));
  flex-direction: row; align-items: stretch; gap: 40px;
}
.cell-wide .cell-copy { align-self: center; flex: 1; padding-block: 10px; }
.cell:nth-of-type(2) { grid-area: a; }
.cell:nth-of-type(3) { grid-area: b; }
.cell-stats { grid-area: stats; }
.cell h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 700; margin-bottom: 8px; }
html[lang="en"] .cell h3 { font-family: var(--font-display-en); font-weight: 600; }
.cell p { color: var(--ink-80); font-size: 0.98rem; max-width: 34em; }
.cell-phone { display: flex; justify-content: center; margin-top: auto; }
.cell-phone .phone-sm {
  width: min(280px, 72%);
  transform: translateY(14%);
  transition: transform 400ms var(--ease-enter);
}
.cell:hover .cell-phone .phone-sm { transform: translateY(9%); }
/* wide cell: the phone lives in a fixed window, top-anchored, cut by
   the cell's bottom edge — no dead space */
.cell-wide .cell-phone {
  margin-top: 0; flex: none; align-items: flex-start;
  width: min(300px, 38%); height: 400px; overflow: hidden;
}
.cell-wide .cell-phone .phone-sm { width: 100%; transform: none; }
/* show the browsing grid mid-scroll, not the search bar — cropped
   INSIDE the bezel via object-fit: a translateY here slides the shot
   over the top bezel and past the frame corners (no clipping on
   .phone), which reads as a broken frame on small screens */
.cell-wide .cell-phone .phone-sm img {
  aspect-ratio: 560 / 880;
  object-fit: cover;
  object-position: 50% 60%;
}
.cell-wide:hover .cell-phone .phone-sm {
  transform: scale(1.01);
  transform-origin: top center;
}

.cell-stats {
  background: linear-gradient(160deg, var(--charcoal), #26263C);
  color: #fff; padding: 34px 34px 30px;
  display: grid; gap: 14px;
}
.stats { display: flex; flex-wrap: wrap; gap: 18px 56px; }
.stats li { display: grid; gap: 2px; }
.stats .num { font-family: var(--font-latin); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--rose-200); }
.stats span { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; }
.stats-note { color: rgba(255, 255, 255, 0.55); font-size: 0.82rem; }

/* ---------- CTA ---------- */
.cta { padding-block: 52px 72px; }
.cta-panel {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--radius-panel);
  background:
    radial-gradient(30rem 16rem at 18% 0%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(160deg, var(--rose-200), var(--rose-300) 55%, var(--rose-400));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-2);
  padding: 72px 32px;
}
.cta-watermark {
  position: absolute; width: 380px; height: auto;
  inset-inline-end: -90px; top: -70px; opacity: 0.16;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.display-2 { position: relative; font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; color: var(--charcoal); }
html[lang="en"] .display-2 { font-family: var(--font-display-en); font-weight: 600; }
.cta-panel :focus-visible { outline-color: var(--charcoal); }

/* ---------- footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255, 255, 255, 0.78); padding-block: 48px; border-top: 3px solid var(--rose-300); }
.footer-grid {
  display: grid; gap: 28px; align-items: start;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.footer-brand { display: grid; gap: 14px; justify-items: start; }
.footer-note { font-size: 0.95rem; max-width: 40em; }
.footer-nav { display: grid; gap: 10px; justify-items: start; }
.footer-nav a { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--rose-200); }
.footer-copy { grid-column: 1 / -1; font-family: var(--font-latin); font-size: 0.82rem; opacity: 0.55; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px; }
.site-footer :focus-visible { outline-color: var(--rose-200); }

/* without JS the language toggle is inert — don't render a dead control */
html.no-js .lang-toggle { display: none; }

/* ---------- reveals (the app's RdReveal: 600ms, 12px rise) ----------
   Hidden ONLY when JS is running (html.js) — no-JS visitors see everything. */
html.js .reveal { opacity: 0; translate: 0 12px; transition: opacity 600ms var(--ease-enter), translate 600ms var(--ease-enter); }
html.js .reveal.is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; translate: none; transition: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee-set { flex-wrap: wrap; padding-block: 4px; }
  .marquee-track .marquee-set:last-child { display: none; }
  .live-dot::after { animation: none; }
  .card-skeleton .sk { animation: none; }
  .device-float { animation: none; }
  .card-art, .cell-phone img { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero { padding-block: 44px 16px; }
  .hero-visual { min-height: 500px; order: 2; }
  .header-nav { display: none; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "wide" "a" "b" "stats"; }
  .cell-wide { flex-direction: column; align-items: center; gap: 18px; }
  .cell-wide .cell-phone { width: min(280px, 72%); height: 320px; }
}
@media (max-width: 520px) {
  .shell { padding-inline: 16px; }
  .header-row { gap: 8px; height: 62px; }
  .brand img { height: 30px; }
  .header-actions { gap: 8px; }
  .lang-toggle { min-height: 34px; padding: 2px; }
  .lang-toggle button { min-width: 44px; padding: 4px 10px; font-size: 0.78rem; }
  .lang-thumb { top: 2px; bottom: 2px; inset-inline-start: 2px; width: calc(50% - 2px); }
  .btn-sm { padding: 8px 12px; font-size: 0.78rem; }
  .shelf-track { grid-auto-columns: 190px; }
  .store-btn { flex: 1 1 100%; justify-content: center; }
  .cell { padding: 24px 20px 0; }
  .cell-stats { padding: 26px 22px; }
  .cta-panel { padding: 56px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq { padding-block: 10px 34px; }
.faq .section-sub { margin-top: 8px; }
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none;
  font-family: var(--font-latin); font-weight: 500; font-size: 1.25rem; line-height: 1;
  color: var(--rose-600);
  transition: rotate 220ms var(--ease-enter);
}
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item summary:hover { background: var(--rose-50); }
.faq-body { padding: 0 20px 18px; color: var(--ink-80); max-width: 64em; }
html[lang="en"] .faq-item summary { font-family: var(--font-latin); }

/* static bilingual blocks: only the active language renders */
html[lang="en"] [data-only="ar"] { display: none; }
html:not([lang="en"]) [data-only="en"] { display: none; }

/* crawlable brands/categories note under the live shelf */
.brand-note { color: var(--ink-60); font-size: 0.92rem; line-height: 1.9; max-width: 76em; margin-top: 18px; }
