/* ============================================================
   DentaShop — site design system
   Ported from the app's lib/theme/ (app_colors, app_typography,
   app_spacing, app_motion, app_nav_bar) and lib/widgets/ui/.
   The website is the app, expanded — not a second design.
   ============================================================ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  /* app_colors.dart — "Petrol". No accent colour: petrol is the accent. */
  --primary:        #0E3D48;
  --primary-light:  #17606F;
  --primary-dark:   #092A32;
  --primary-soft:   #CDE0E4;
  --on-primary:     #FFFFFF;
  --on-primary-mid: #B9D2D8;

  --background:     #EDEFF2;
  --surface:        #FFFFFF;
  --surface-alt:    #E1E5E9;
  --border:         #D6DBE0;
  --border-strong:  #A3AEB6;
  --skeleton:       #E6EAEE;

  --text:           #16232A;
  --text-2:         #4A5860;
  --text-muted:     #5F6E78;
  --text-disabled:  #A3AEB6;

  /* Semantic — the only other saturated colours in the system. */
  --success:        #1F5B45;  --success-soft: #CFE3D8;
  --warning:        #7A4E0A;  --warning-soft: #F3DFB5;
  --danger:         #94332C;  --danger-soft:  #F5D7D4;
  --info:           #17606F;  --info-soft:    #CDE0E4;

  /* app_typography.dart — one family. Sora only for the wordmark. */
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --brand: "Sora", "IBM Plex Sans", sans-serif;

  /* app_spacing.dart */
  --sp-xs: 4px;  --sp-sm: 8px;  --sp-md: 12px; --sp-lg: 16px;
  --sp-xl: 24px; --sp-xxl: 32px; --sp-xxxl: 48px;

  /* AppRadius: 6 / 10 controls / 12 cards / 14 dialogs / 20 sheets / pill */
  --r-xs: 6px; --r-sm: 10px; --r-md: 12px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;

  /* AppBorder: hairline 1, focused 1.5 — focus is weight, not colour. */
  --hairline: 1px; --focused: 1.5px;

  /* AppElevation → shadows. */
  --e1: 0 1px 2px rgba(22, 35, 42, 0.05);
  --e2: 0 3px 8px rgba(22, 35, 42, 0.06), 0 1px 2px rgba(22, 35, 42, 0.04);
  --e3: 0 10px 24px rgba(14, 61, 72, 0.16), 0 1px 2px rgba(22, 35, 42, 0.04);

  /* AppIconSize / AppHit */
  --icon-sm: 16px; --icon-md: 20px; --icon-lg: 24px; --hit: 44px;

  /* app_motion.dart */
  --t-quick: 150ms; --t-standard: 220ms; --t-emphasized: 320ms; --t-page: 300ms;
  --stagger: 40ms;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);         /* easeOutCubic */
  --ease-decel: cubic-bezier(0.05, 0.7, 0.1, 1);  /* decelerate */

  /* AppNavBar */
  --nav-h: 64px; --nav-gap: 16px; --nav-gesture-gap: 8px; --nav-clearance: 12px;
  --nav-r: 28px;

  /* Site-only layout tokens */
  --measure: 64ch;
  --gutter: clamp(16px, 4vw, 40px);
  --content: 1120px;
}

/* Arabic: its own line height, zero tracking — AppTypography.of(context). */
:root[lang="ar"] { --sans: var(--arabic); }

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 16px/1.5 var(--sans);
  letter-spacing: -0.01em;
  overflow-x: hidden;
  /* Room for the floating pill — the site's navBarInset(). */
  padding-bottom: calc(var(--nav-h) + var(--nav-gap) + var(--nav-clearance) + env(safe-area-inset-bottom, 0px));
}
:root[lang="ar"] body { line-height: 1.6; letter-spacing: 0; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: var(--focused) solid var(--primary); outline-offset: 3px; border-radius: var(--r-xs); }

/* Language swap: every string exists twice; the root lang picks one. */
:root[lang="en"] [data-lang="ar"],
:root[lang="ar"] [data-lang="en"] { display: none !important; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--on-primary); padding: 10px 14px;
  border-radius: var(--r-sm); text-decoration: none; transition: top var(--t-quick) var(--ease);
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ── Type scale (AppTypography) ──────────────────────────── */
.h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; margin: 0; }
.h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
.h3 { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.body-lg { font-size: 18px; line-height: 1.55; }
.body { font-size: 16px; line-height: 1.55; }
.body-sm { font-size: 14px; line-height: 1.5; }
.caption { font-size: 12px; line-height: 1.4; color: var(--text-muted); }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.eyebrow {
  font: 500 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin: 0;
}
:root[lang="ar"] .h1, :root[lang="ar"] .h2, :root[lang="ar"] .h3 { letter-spacing: 0; line-height: 1.3; }
:root[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-family: var(--arabic); font-weight: 500; }
.muted { color: var(--text-2); }
.price { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── Layout ──────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(40px, 7vw, 88px); }
.section-tight { padding-block: clamp(28px, 5vw, 56px); }
.stack { display: flex; flex-direction: column; gap: var(--sp-lg); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sp-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-lg); }

/* ── Top bar: lockup + language ─────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--background) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: var(--hairline) solid var(--border); padding-top: env(safe-area-inset-top, 0px); }
.topbar .wrap { display: flex; align-items: center; gap: var(--sp-lg); min-height: 60px; }
.topbar .spacer { flex: 1; }

/* BrandLockup: mark + "denta" petrol + "shop" petrol-light, pinned LTR. */
.lockup { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; direction: ltr; }
.lockup svg { width: 30px; height: 30px; }
.lockup .word { font: 600 22px/1 var(--brand); letter-spacing: -0.02em; }
.lockup .word b { font-weight: 600; color: var(--primary); }
.lockup .word i { font-style: normal; color: var(--primary-light); }

/* AppChip — the language switch is a chip, like the one on onboarding. */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border-radius: var(--r-pill); border: var(--hairline) solid var(--border); background: var(--surface);
  font: 500 13px/1 var(--sans); color: var(--text-2); cursor: pointer; text-decoration: none;
  transition: border-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip .ar-word { font-family: var(--arabic); }

/* ── The pill nav — AppNavBar, verbatim ─────────────────── */
.pillnav {
  position: fixed; z-index: 30; inset-inline: var(--sp-lg);
  bottom: calc(var(--nav-gap) + env(safe-area-inset-bottom, 0px));
  max-width: 520px; margin-inline: auto;
  height: var(--nav-h); border-radius: var(--nav-r);
  background: rgba(255, 255, 255, 0.68);
  border: var(--hairline) solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 24px rgba(14, 61, 72, 0.16), 0 1px 2px rgba(22, 35, 42, 0.04);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: stretch;
  padding: 0 4px;
}
.pillnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--text-muted); min-width: var(--hit);
}
.pillnav .ico {
  display: grid; place-items: center; padding: 4px 10px; border-radius: var(--r-md);
  transition: background var(--t-quick) var(--ease);
}
.pillnav svg { width: 22px; height: 22px; fill: currentColor; }
.pillnav .lbl { font-size: 10px; line-height: 1; font-weight: 500; }
:root[lang="ar"] .pillnav .lbl { font-size: 10.5px; }
/* The filled weight is the selection — the glyph goes solid. */
.pillnav a .fill { display: none; }
.pillnav a[aria-current="page"] { color: var(--primary); }
.pillnav a[aria-current="page"] .ico { background: rgba(14, 61, 72, 0.08); }
.pillnav a[aria-current="page"] .fill { display: block; }
.pillnav a[aria-current="page"] .reg { display: none; }
.topbar .nav-slot { display: none; }
/* On a desktop the pill docks into the top bar: same glass, same glyphs,
   fill for the active page, but it stops floating over content. The bottom
   position is the app's, and it only makes sense where a thumb is. */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .pillnav {
    position: static; inset: auto; margin: 0; height: 44px; max-width: none;
    border-radius: var(--r-pill); padding: 0 4px;
    background: var(--surface); border-color: var(--border);
    box-shadow: var(--e1); backdrop-filter: none; -webkit-backdrop-filter: none;
    grid-auto-columns: auto; gap: 2px;
  }
  .pillnav a { flex-direction: row; gap: 8px; padding: 0 12px; border-radius: var(--r-pill); min-width: 0; }
  .pillnav .ico { padding: 0; }
  .pillnav svg { width: 18px; height: 18px; }
  .pillnav .lbl { font-size: 13px; }
  .pillnav a[aria-current="page"] .ico { background: none; }
  .pillnav a[aria-current="page"] { background: rgba(14, 61, 72, 0.08); }
  .topbar .nav-slot { display: flex; }
}

/* ── AppButton ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-sm);
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: var(--hairline) solid transparent;
  transition: background var(--t-quick) var(--ease), border-color var(--t-quick) var(--ease), transform var(--t-quick) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: var(--icon-md); height: var(--icon-md); fill: currentColor; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-light); }
.btn-secondary { background: var(--surface); color: var(--primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); padding-inline: 12px; }
.btn-ghost:hover { background: rgba(14, 61, 72, 0.06); }
.btn-inverse { background: var(--surface); color: var(--primary); }
.btn-inverse-ghost { background: transparent; color: var(--on-primary); border-color: rgba(255, 255, 255, 0.35); }
.btn-inverse-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn[aria-disabled="true"] { background: var(--surface-alt); color: var(--text-disabled); border-color: transparent; cursor: default; pointer-events: none; }

/* ── AppCard ─────────────────────────────────────────────── */
.card {
  background: var(--surface); border: var(--hairline) solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-lg); box-shadow: var(--e1);
}
.card-compact { padding: var(--sp-md); }
.card-flush { padding: 0; overflow: hidden; }
.card-petrol { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.card-petrol .muted { color: var(--on-primary-mid); }

/* ── AppBadge / DiscountBadge ────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
  border-radius: var(--r-pill); font: 500 12px/1 var(--sans); white-space: nowrap;
}
.badge svg { width: 14px; height: 14px; fill: currentColor; }
.badge-neutral { background: var(--surface-alt); color: var(--text-2); }
.badge-info    { background: var(--info-soft);    color: var(--info); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger); }
.badge-danger-filled { background: var(--danger); color: #fff; font-weight: 600; }
.badge-mono { font-family: var(--mono); letter-spacing: 0.04em; }

/* ── SectionHeader ───────────────────────────────────────── */
.sh { display: flex; align-items: baseline; gap: var(--sp-md); margin-bottom: var(--sp-lg); }
.sh .h3 { flex: 1; }

/* ── AppLinkRow ──────────────────────────────────────────── */
.linkrow {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg); text-decoration: none; color: inherit;
  border-bottom: var(--hairline) solid var(--border);
}
.linkrow:last-child { border-bottom: 0; }
.linkrow .well { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--primary-soft); display: grid; place-items: center; color: var(--primary); }
.linkrow .well svg { width: var(--icon-md); height: var(--icon-md); fill: currentColor; }
.linkrow .t { font-weight: 600; font-size: 15px; }
.linkrow .s { font-size: 13px; color: var(--text-muted); }
.linkrow .caret { color: var(--text-disabled); }
:root[lang="ar"] .linkrow .caret svg { transform: scaleX(-1); }

/* ── Phone frame — thin bezel, no brand marks, no fake notch ── */
/* The screenshots carry their own status bar, so the frame adds nothing on
   top of them: a slim petrol-dark bezel, a soft lift, and that is all. */
.phone {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 9 / 20;
  border-radius: 30px; padding: 6px; background: var(--primary-dark);
  box-shadow: 0 18px 40px -18px rgba(14, 61, 72, 0.45), 0 2px 6px rgba(22, 35, 42, 0.08),
              inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; background: var(--surface); }
.phone-sm { max-width: 220px; border-radius: 26px; padding: 5px; }
.phone-sm img { border-radius: 21px; }

/* ── Stage — the surface every screen sits on ─────────────── */
/* A screen is a framed object, not a sticker: it gets a tinted, rounded
   surface with real padding, so the page has something to compose against. */
.stage {
  display: grid; place-items: center; gap: var(--sp-lg);
  background: color-mix(in srgb, var(--primary-soft) 45%, var(--background));
  border: var(--hairline) solid color-mix(in srgb, var(--primary-soft) 70%, var(--border));
  border-radius: var(--r-xl); padding: clamp(20px, 3vw, 28px);
}
.stage-row { grid-auto-flow: column; justify-content: center; align-items: end; }
.stage-row .phone { max-width: 190px; }
@media (max-width: 480px) { .stage-row { grid-auto-flow: row; } .stage-row .phone { max-width: 200px; } }

/* ── Gallery — tiles of stage + caption ───────────────────── */
/* Desktop: tiles wrap and centre in the column with one fixed gap, so two
   tiles sit centred and four fill the row. Phone: one tile centred per view,
   neighbours peeking equally either side, snapping to centre, dots below. */
.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-xl); }
.tile { flex: 0 0 236px; margin: 0; display: flex; flex-direction: column; }
.tile .stage { padding: var(--sp-xl) var(--sp-lg); }
.tile .phone { max-width: 190px; }
.tile figcaption { margin-top: var(--sp-md); font-size: 13.5px; line-height: 1.5; color: var(--text-2); text-align: center; padding-inline: 4px; }
.tile figcaption b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.dots { display: none; }
@media (max-width: 719px) {
  .gallery {
    flex-wrap: nowrap; justify-content: flex-start; gap: var(--sp-lg);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding-inline: calc(50vw - 130px); padding-bottom: 4px;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 260px; scroll-snap-align: center; }
  .tile .phone { max-width: 200px; }
  .dots { display: flex; justify-content: center; gap: 6px; margin-top: var(--sp-md); }
  .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); transition: background var(--t-quick) var(--ease), transform var(--t-quick) var(--ease); }
  .dots i.on { background: var(--primary); transform: scale(1.25); }
}

/* ── AppSkeleton / AppShimmer ────────────────────────────── */
.skeleton { background: var(--skeleton); border-radius: var(--r-xs); position: relative; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent); animation: shimmer 1400ms linear infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ── AppStaggeredEntry ───────────────────────────────────── */
/* Visible at rest; the animation only plays from a visible starting state,
   so a thumbnail or a reader without JS still gets the page. */
.stagger > * { animation: rise var(--t-emphasized) var(--ease) both; }
.stagger > :nth-child(1) { animation-delay: 0ms; }
.stagger > :nth-child(2) { animation-delay: calc(var(--stagger) * 1); }
.stagger > :nth-child(3) { animation-delay: calc(var(--stagger) * 2); }
.stagger > :nth-child(4) { animation-delay: calc(var(--stagger) * 3); }
.stagger > :nth-child(5) { animation-delay: calc(var(--stagger) * 4); }
.stagger > :nth-child(6) { animation-delay: calc(var(--stagger) * 5); }
.stagger > :nth-child(7) { animation-delay: calc(var(--stagger) * 6); }
.stagger > :nth-child(8) { animation-delay: calc(var(--stagger) * 7); }
@keyframes rise { from { opacity: 0.001; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Footer ──────────────────────────────────────────────── */
.footer { border-top: var(--hairline) solid var(--border); padding-block: var(--sp-xxl); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.footer a { font-size: 14px; color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--primary); text-decoration: underline; }
.footer .copy { font: 400 12px/1.5 var(--mono); color: var(--text-muted); margin-inline-start: auto; }
@media (max-width: 640px) { .footer .copy { margin-inline-start: 0; width: 100%; } }

/* ── Utilities ───────────────────────────────────────────── */
.ltr { direction: ltr; unicode-bidi: isolate; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt-sm { margin-top: var(--sp-sm); } .mt-md { margin-top: var(--sp-md); } .mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); } .mt-xxl { margin-top: var(--sp-xxl); }
.hide-sm { display: none; }
@media (min-width: 720px) { .hide-sm { display: initial; } .hide-lg { display: none; } }

/* ============================================================
   Home page
   ============================================================ */
.hero { padding-block: clamp(36px, 5vw, 56px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.hero-copy > * + * { margin-top: var(--sp-lg); }
.hero-copy .h1 em { font-style: normal; color: var(--primary-light); }
.hero-copy .lede { max-width: var(--measure); margin-bottom: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.mono-line { font-family: var(--mono); }
:root[lang="ar"] .mono-line { font-family: var(--arabic); }

/* The phone runs past the grid on the outer edge: the catalogue is the
   product, so it gets to escape the layout rather than sit inside it. */
.hero-shot { display: flex; justify-content: flex-end; margin-inline-end: calc(var(--gutter) * -0.6); }
/* Sized to the fold: the whole phone, headline and both buttons are on the
   first screen of a laptop, rather than a phone taller than the window. */
.hero-shot .phone { max-width: 320px; height: min(560px, calc(100vh - 200px)); width: auto; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { order: -1; justify-content: center; margin-inline-end: 0; }
  .hero-shot .phone { max-width: 250px; }
}

/* The app's home chip row — one horizontal scroll, no wrapping. */
.cats .eyebrow { margin-bottom: var(--sp-md); }
.chiprow { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chiprow::-webkit-scrollbar { display: none; }
.chiprow .chip { flex: 0 0 auto; cursor: default; }
@media (min-width: 900px) { .chiprow { flex-wrap: wrap; overflow: visible; row-gap: 10px; } }
.chiprow .chip:not(.on):hover { border-color: var(--border); color: var(--text-2); }
.catnote { max-width: var(--measure); margin-top: var(--sp-md); }

/* Two tracks — the same card, the copy on one side and a phone on the other. */
.sub { max-width: var(--measure); margin: var(--sp-md) 0 var(--sp-xl); }
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--sp-xl); }
.track { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-lg); padding: clamp(20px, 3vw, 28px); align-items: start; }
.track-copy > * + * { margin-top: var(--sp-md); }
.eyebrow-petrol { color: var(--primary); }
.feats { list-style: none; margin: var(--sp-lg) 0; padding: 0; display: grid; gap: 12px; }
.feats li { display: grid; grid-template-columns: 6px 1fr; gap: 12px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.feats li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--primary-soft); margin-top: 8px; }
.feats b { color: var(--text); font-weight: 600; }
/* A feature list used as a card keeps the card's padding; the list reset above would zero it. */
.feats.card { padding: var(--sp-lg); margin: 0; }
.track-shot { padding-top: 2px; }
.track-shot .stage { padding: var(--sp-lg) var(--sp-md); }
.track-shot .phone { max-width: 150px; }
.caret-fwd { display: inline-block; }
:root[lang="ar"] .caret-fwd { transform: scaleX(-1); }
@media (max-width: 480px) {
  .track { grid-template-columns: 1fr; }
  .track-shot { display: flex; justify-content: center; }
  .track-shot .phone { max-width: 190px; }
}

/* Pipeline — a numbered list because it genuinely is a sequence. */
.pipe { list-style: none; margin: 0; padding: 0; }
.pipe li { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; padding: 14px var(--sp-lg); border-bottom: var(--hairline) solid var(--border); }
.pipe li:last-child { border-bottom: 0; }
.pipe .n { font: 600 12px/1 var(--mono); color: var(--primary); width: 28px; height: 28px; border-radius: var(--r-xs); border: var(--hairline) solid var(--primary-soft); display: grid; place-items: center; }
.pipe .t { font-size: 15px; font-weight: 500; }
@media (max-width: 520px) {
  .pipe li { grid-template-columns: 28px 1fr; }
  .pipe .badge { grid-column: 2; justify-self: start; }
}

/* Download strip */
.getstrip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-xl); align-items: center; padding: clamp(22px, 4vw, 36px); }
.getstrip .h2 { color: var(--on-primary); }
.getstrip-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.soonrow { display: flex; flex-wrap: wrap; gap: 8px; }
.soon { background: rgba(255, 255, 255, 0.12); color: var(--on-primary-mid); border: 1px dashed rgba(255, 255, 255, 0.28); }
@media (max-width: 720px) { .getstrip { grid-template-columns: 1fr; } }

/* ============================================================
   The app page — four roles, each a filmstrip
   ============================================================ */
.role { border-top: var(--hairline) solid var(--border); }
.role-lede { max-width: var(--measure); margin: var(--sp-md) 0 var(--sp-xl); }

/* The intro's jump chips are links: hover like a chip, not like a filter. */
.chiprow a.chip { cursor: pointer; }
.chiprow a.chip:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   Partners + Download pages
   ============================================================ */
.partner-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 48px); align-items: start; }
.partner-shots { position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); }
@media (max-width: 860px) {
  .partner-grid { grid-template-columns: 1fr; }
  .partner-shots { position: static; }
}
.pipe li .t b { font-weight: 600; }

/* FAQ — native disclosure, styled as the app's link rows. */
.faq { display: grid; gap: var(--sp-md); max-width: 760px; }
.faq details { padding: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--sp-lg); font-weight: 600; font-size: 15.5px;
  display: grid; grid-template-columns: 1fr 20px; gap: var(--sp-md); align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 8px; height: 8px; border-inline-end: 2px solid var(--text-disabled); border-bottom: 2px solid var(--text-disabled);
  transform: rotate(45deg); justify-self: center; transition: transform var(--t-quick) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { margin: 0; padding: 0 var(--sp-lg) var(--sp-lg); color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* Download */
.dl-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 64px); align-items: start; }
.dl-shot .phone { max-width: 240px; }
/* Two text columns of equal width; the auto column above is for the phone only. */
.dl-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.dl-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-lg); align-items: center; padding: clamp(20px, 3vw, 28px); }
.dl-ver { font: 700 clamp(22px, 3vw, 28px)/1.1 var(--sans); letter-spacing: -0.02em; margin: 6px 0 8px; }
.soon-light { border: 1px dashed var(--border-strong); background: var(--surface); color: var(--text-muted); }
@media (max-width: 860px) {
  .dl-grid, .dl-grid-2 { grid-template-columns: 1fr; }
  .dl-shot { display: flex; justify-content: center; }
  .dl-shot .phone { max-width: 210px; }
  .dl-card { grid-template-columns: 1fr; }
}

/* ── Download: one card per store ─────────────────────────── */
.stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-lg); }
.store { display: flex; flex-direction: column; gap: var(--sp-md); padding: var(--sp-xl); }
.store .mark { width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.store .mark svg { width: 26px; height: 26px; fill: currentColor; }
.store.live .mark { background: var(--primary); color: var(--on-primary); }
.store h3 { margin: 4px 0 0; }
.store .meta { font-size: 13.5px; color: var(--text-muted); margin: 0; min-height: 2.6em; }
.store .cta { margin-top: auto; padding-top: var(--sp-sm); }
/* Slot for the official store badge once the app is live there — an <img>
   linked to the store URL replaces the button; the guidelines allow the
   badge only for a published app. */
.store .badge-slot:empty { display: none; }

/* ── Partners: verified shops, live from the API ───────────── */
.shops-group { margin-top: var(--sp-xl); }
.shops-group .eyebrow { margin-bottom: var(--sp-md); }
.shops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-md); }
.shop-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: var(--sp-lg) var(--sp-md); }
.shop-tile .logo { width: 64px; height: 64px; border-radius: var(--r-md); object-fit: cover; background: var(--surface-alt); border: var(--hairline) solid var(--border); }
.shop-tile .logo-fallback { display: grid; place-items: center; font: 700 22px/1 var(--sans); color: var(--primary); background: var(--primary-soft); }
.shop-tile .name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.shop-tile .city { font-size: 12.5px; color: var(--text-muted); }

/* ── About ───────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-story { max-width: var(--measure); }
.about-story p { margin: 0 0 var(--sp-lg); }
.sig { display: flex; flex-direction: column; gap: 2px; margin-top: var(--sp-xl); padding-top: var(--sp-lg); border-top: var(--hairline) solid var(--border); }
.sig-name { font: 600 22px/1.2 var(--brand); letter-spacing: -0.02em; color: var(--primary); direction: ltr; }
:root[lang="ar"] .sig { align-items: flex-start; }
.fact { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px var(--sp-lg); border-bottom: var(--hairline) solid var(--border); }
.fact:last-child { border-bottom: 0; }
.fact .k { font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
:root[lang="ar"] .fact .k { font-family: var(--arabic); letter-spacing: 0; text-transform: none; }
.fact .v { font-weight: 600; font-size: 15px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Founder card: portrait, name, links. The portrait is round because the
   app renders every avatar round; the chips are the same chips as the
   language switch. */
.founder { display: grid; grid-template-columns: 88px 1fr; gap: var(--sp-lg); align-items: center; }
.portrait { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-soft); box-shadow: var(--e2); }
.founder-name { font: 600 19px/1.2 var(--sans); letter-spacing: -0.01em; margin: 0 0 2px; }
:root[lang="ar"] .founder-name { letter-spacing: 0; }
.founder .links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.founder .links .chip svg { width: 15px; height: 15px; fill: currentColor; }
.founder .links .chip { direction: ltr; }

/* ── 404 ─────────────────────────────────────────────────── */
.nf { min-height: 50vh; display: grid; place-items: center; text-align: center; }
.nf .code { font: 500 13px/1 var(--mono); letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: var(--sp-md); }
