/* Alexandria — SIL Open Font License 1.1, see OFL.txt.
   Owner choice 2026-09-27: Alexandria replaces Cairo as the closest
   open-licence approximation of the storefronts' Thmanyah Sans, which
   cannot be self-hosted under its licence (see DECISIONS.md D3).
   One subset per weight covering the Arabic and Latin glyph sets this site
   uses. Built by fetch-fonts.py; do not hand-edit. Paths are relative to
   assets/css/ so one build serves both the preview subpath and the root. */

@font-face{
  font-family:'Alexandria';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('../fonts/alexandria-400.woff2') format('woff2');
}
@font-face{
  font-family:'Alexandria';
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url('../fonts/alexandria-700.woff2') format('woff2');
}
:root{--font-stack:'Alexandria', system-ui, -apple-system, 'Segoe UI', sans-serif;}
/* MNTAD platform home — Pro Light design system.
   Tokens come from /root/sgc-ref/gemini-review.md Theme 1 (Pro Light), the
   direction the owner's design review landed on for a money-handling store
   builder: light surfaces for daylight readability on low-brightness MENA
   handsets, saturated accent chips borrowed from the gaming variant.

   Everything below uses LOGICAL properties (margin-inline, padding-inline,
   inset-inline, border-inline-start). That is not stylistic: it means the
   Arabic (RTL) and English (LTR) pages share this one file with no second
   stylesheet, which is what keeps the page budget intact. */

:root {
  /* Surfaces */
  --bg-app: #F8FAFC;
  --surface: #FFFFFF;
  --surface-raised: #F1F5F9;
  --surface-active: #E2E8F0;

  /* Text */
  --text-main: #0F172A;
  --text-muted: #475569;   /* 7.5:1 on --bg-app; body copy must clear AA at every size */
  --text-subtle: #64748B;   /* was #94A3B8 at ~2.6:1 — failed contrast wherever it rendered */
  --text-inverse: #FFFFFF;

  /* Brand */
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-subtle: #EFF6FF;
  --secondary: #0D9488;
  --secondary-subtle: #F0FDFA;

  /* Semantic */
  --success: #16A34A;
  --success-subtle: #DCFCE7;
  --warning: #D97706;
  --warning-subtle: #FEF3C7;
  --danger: #DC2626;
  --danger-subtle: #FEE2E2;

  --border-light: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --border-focus: #2563EB;

  /* Type */
  /* Set by fetch-fonts.py in _font-face.css, which is concatenated ahead of this
     file at build time. One source of truth for the family name. */
  --font-family: var(--font-stack);
  --lh-body: 1.75;
  --lh-heading: 1.35;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem;

  /* Radii — capped low on purpose. The design review measured that 28-32px
     radii waste 12-18% of usable card area at 390px. */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  /* Shadows — no broad blur, no backdrop-filter. Cheap Android GPUs drop
     frames on both. */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
  --shadow-pop: 0 4px 14px -4px rgba(15, 23, 42, 0.14);

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px;

  --header-h: 64px;
  --touch-min: 48px;
  --container: 1180px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  line-height: var(--lh-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-2xl); font-weight: 700; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); }
p  { margin: 0 0 var(--space-4); }

/* Numerals: tabular everywhere a number is data (prices, IDs, counts) so
   digits do not shift column alignment — the review's .num rule. */
.num { font-variant-numeric: tabular-nums; letter-spacing: 0; }

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-3);
  inset-block-start: -60px;
  background: var(--surface);
  color: var(--text-main);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  z-index: 200;
  transition: inset-block-start .15s ease;
}
.skip-link:focus { inset-block-start: var(--space-3); }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
.section { padding-block: var(--space-12); }
.section--tight { padding-block: var(--space-8); }
.section--alt { background: var(--surface); border-block: 1px solid var(--border-light); }
.stack-lg { display: flex; flex-direction: column; gap: var(--space-8); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  margin-block-end: var(--space-3);
}
.lede {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 62ch;
}
.section-head { margin-block-end: var(--space-8); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-block-end: 1px solid var(--border-light);
}
.header-bar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-main);
  font-weight: 900;
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  min-height: var(--touch-min);
}
.brand:hover { color: var(--text-main); }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid; place-items: center;
  color: #fff; font-size: 15px; font-weight: 900;
  flex: none;
}
.brand-word { line-height: 1; }
.brand-tag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-subtle);
  letter-spacing: .08em;
  margin-block-start: 3px;
}

.nav-desktop { display: none; align-items: center; gap: var(--space-1); }
.nav-desktop a {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  min-height: var(--touch-min);
  display: inline-flex; align-items: center;
}
.nav-desktop a:hover { color: var(--text-main); background: var(--surface-raised); }
.nav-desktop a[aria-current="page"] { color: var(--primary); background: var(--primary-subtle); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }

/* Mobile nav: <details> rather than a JS hamburger. Zero script, works with
   JS off, and native disclosure semantics give screen readers the right
   announce. */
.nav-toggle { position: relative; }
.nav-toggle > summary {
  list-style: none;
  cursor: pointer;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding-inline: var(--space-3);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--text-main);
  background: var(--surface);
}
.nav-toggle > summary::-webkit-details-marker { display: none; }
.nav-toggle > summary:hover { background: var(--surface-raised); }
.nav-panel {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 8px);
  width: min(88vw, 300px);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: var(--space-3);
  display: grid;
  gap: var(--space-1);
}
.nav-panel a {
  display: flex; align-items: center;
  min-height: var(--touch-min);
  padding-inline: var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 700;
  font-size: var(--fs-base);
}
.nav-panel a:hover { background: var(--surface-raised); }
.nav-panel a[aria-current="page"] { color: var(--primary); background: var(--primary-subtle); }
.nav-sep { height: 1px; background: var(--border-light); margin-block: var(--space-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  min-height: var(--touch-min);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.btn-primary { background: var(--primary); color: var(--text-inverse); }
.btn-primary:hover { background: var(--primary-hover); color: var(--text-inverse); }
.btn-ghost { background: var(--surface); color: var(--text-main); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-raised); color: var(--text-main); }
.btn-quiet { background: transparent; color: var(--text-muted); }
.btn-quiet:hover { background: var(--surface-raised); color: var(--text-main); }
.btn-sm { min-height: 40px; padding: var(--space-2) var(--space-4); font-size: var(--fs-sm); }
.btn-lg { min-height: 54px; padding: var(--space-4) var(--space-6); font-size: var(--fs-md); }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-row .btn { flex: 1 1 auto; }

/* locale switch */
.locale {
  display: inline-flex;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: var(--surface);
  padding: 3px;
  gap: 2px;
}
.locale a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; min-height: 34px;
  padding-inline: var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-muted);
}
.locale a[aria-current="true"] { background: var(--text-main); color: var(--text-inverse); }

/* ---------- hero ---------- */
.hero { padding-block: var(--space-8) var(--space-10); }
.hero h1 { font-size: var(--fs-2xl); }
.hero .lede { font-size: var(--fs-md); }
.hero-grid { display: grid; gap: var(--space-6); }
/* Text first on mobile. The mock is decorative, and letting it lead pushed the
   H1 and the primary CTA below the fold on a 390px screen — and made an empty
   grey box the LCP element instead of real Arabic copy. */
.hero-visual { order: 0; }

.trust-strip {
  display: flex; flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-block-start: var(--space-6);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--border-light);
}
.trust-item {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 700;
}
.trust-item svg { color: var(--success); flex: none; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}
.card--flush { padding: 0; overflow: hidden; }
/* A heading promoted for document order keeps its old visual size. */
.card-title { font-size: var(--fs-base); margin-block-end: var(--space-2); }
.card h3 { margin-block-end: var(--space-2); }
.card p:last-child { margin-block-end: 0; }
.card-hover { transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease; }
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-pop); }

.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: var(--primary-subtle);
  color: var(--primary);
  margin-block-end: var(--space-4);
}
.card-icon--teal { background: var(--secondary-subtle); color: var(--secondary); }
.card-icon--green { background: var(--success-subtle); color: var(--success); }
.card-icon--amber { background: var(--warning-subtle); color: var(--warning); }

.chip {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 3px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  white-space: nowrap;
}
/* Amber-800 / green-800, not the --warning / --success hues. The soon
   badge is the site's honesty mechanism; at #D97706 on #FEF3C7 it measured
   2.86:1 and the green read 3.0:1 — both under AA for 12px text. */
.chip--soon { background: var(--warning-subtle); color: #92400E; border-color: rgba(146,64,14,.28); }
.chip--live { background: var(--success-subtle); color: #166534; border-color: rgba(22,101,52,.28); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* A channel that is announced but not yet live is a different claim from a
   feature on the roadmap, so it gets its own neutral treatment rather than
   reusing the amber قريباً badge. */
.chip--off { background: var(--surface-raised); color: #475569; border-color: var(--border-strong); }

/* product-kind tiles: the "what you can sell" block */
.tile {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2);
  min-height: 150px;
}
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.tile h3 { margin: 0; font-size: var(--fs-base); }
.tile p { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.tile svg { color: var(--primary); }

/* ---------- steps ---------- */
.steps { display: grid; gap: var(--space-5); counter-reset: step; }
.step { position: relative; padding-inline-start: 58px; }
.step-num {
  position: absolute;
  inset-inline-start: 0; inset-block-start: 0;
  width: 42px; height: 42px;
  border-radius: var(--radius-pill);
  background: var(--text-main);
  color: var(--text-inverse);
  display: grid; place-items: center;
  font-weight: 900;
  font-size: var(--fs-md);
}
.step h3 { margin-block-end: var(--space-2); }
.step p { color: var(--text-muted); margin: 0; }

/* ---------- feature list ---------- */
.feat-list { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.feat-list li {
  display: flex; gap: var(--space-3); align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.feat-list li strong { color: var(--text-main); font-weight: 700; }
.feat-check { color: var(--success); flex: none; margin-block-start: 3px; }

/* ---------- themes preview ---------- */
.theme-row { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.theme-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.theme-shot { height: 132px; display: block; }
.theme-meta { padding: var(--space-3) var(--space-4); display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.theme-meta b { font-size: var(--fs-sm); }
.theme-meta span { font-size: var(--fs-xs); color: var(--text-subtle); }
.sw { display: inline-flex; gap: 4px; }
.sw i { width: 14px; height: 14px; border-radius: 4px; display: block; border: 1px solid rgba(15,23,42,.12); }

/* ---------- pricing ---------- */
.plans { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-pop); }
.plan-flag {
  position: absolute; inset-block-start: -12px; inset-inline-end: var(--space-4);
  background: var(--primary); color: #fff;
  font-size: var(--fs-xs); font-weight: 700;
  padding: 3px var(--space-3);
  border-radius: var(--radius-pill);
}
.price { display: flex; align-items: baseline; gap: var(--space-2); margin-block: var(--space-3) var(--space-4); }
.price b { font-size: var(--fs-3xl); font-weight: 900; line-height: 1; }
.price span { color: var(--text-muted); font-size: var(--fs-sm); font-weight: 700; }
.plan ul { margin: 0 0 var(--space-5); padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.plan li { font-size: var(--fs-sm); color: var(--text-muted); display: flex; gap: var(--space-2); align-items: flex-start; }
.price-placeholder {
  background: repeating-linear-gradient(135deg, var(--surface-raised) 0 8px, var(--surface) 8px 16px);
  color: var(--text-subtle);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-3); }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-4) var(--space-5);
  font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: var(--touch-min);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 9px; height: 9px;
  border-inline-end: 2px solid var(--text-subtle);
  border-block-end: 2px solid var(--text-subtle);
  transform: rotate(45deg);
  transition: transform .15s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq-body { padding: 0 var(--space-5) var(--space-5); color: var(--text-muted); font-size: var(--fs-sm); }
.faq-body p:last-child { margin-block-end: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--text-main);
  color: #E2E8F0;
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-5);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #94A3B8; max-width: 54ch; margin-inline: auto; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- prose pages (terms, privacy, about, devs) ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-block-start: var(--space-8); font-size: var(--fs-lg); }
.prose h3 { margin-block-start: var(--space-6); font-size: var(--fs-base); }
.prose p, .prose li { color: var(--text-muted); }
/* Underline as well as colour: a link distinguished only by hue fails
   WCAG 1.4.1 and is genuinely harder to spot in a right-to-left paragraph. */
.prose a, .feat-list a, .faq-body a, .card p a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose ul { padding-inline-start: var(--space-5); }
.placeholder-note {
  border-inline-start: 3px solid var(--warning);
  background: var(--warning-subtle);
  color: #92400E;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  margin-block: var(--space-5);
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-sm);
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface-raised); padding: 1px 5px; border-radius: 4px; }

/* ---------- store showcase mock ---------- */
.mock {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--surface-raised);
  border-block-end: 1px solid var(--border-light);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  direction: ltr;
}
.mock-dots { display: inline-flex; gap: 5px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-active); display: block; }
.mock-body { padding: var(--space-4); display: grid; gap: var(--space-3); }
.mock-line { height: 10px; border-radius: var(--radius-pill); background: var(--surface-active); }
.mock-line--short { width: 45%; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.mock-cell { aspect-ratio: 1; border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--border-light); }
.mock-cell--accent { background: var(--primary-subtle); border-color: rgba(37,99,235,.2); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--surface);
  border-block-start: 1px solid var(--border-light);
  padding-block: var(--space-10) var(--space-6);
  margin-block-start: var(--space-12);
  font-size: var(--fs-sm);
}
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.footer-col h3 { font-size: var(--fs-sm); font-weight: 700; margin-block-end: var(--space-3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-col a { color: var(--text-muted); display: inline-flex; align-items: center; min-height: 32px; }
.footer-col a:hover { color: var(--text-main); }
.footer-bottom {
  margin-block-start: var(--space-8);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--border-light);
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  align-items: center; justify-content: space-between;
  color: var(--text-subtle);
  font-size: var(--fs-xs);
}

/* ---------- comparison table ---------- */
.cmp {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  min-width: 560px;
}
.cmp th, .cmp td {
  padding: var(--space-3) var(--space-4);
  border-block-end: 1px solid var(--border-light);
  text-align: start;
  vertical-align: middle;
}
.cmp thead th {
  background: var(--surface-raised);
  font-weight: 700;
  color: var(--text-main);
  font-size: var(--fs-xs);
  text-transform: none;
  white-space: nowrap;
}
.cmp tbody th { font-weight: 700; color: var(--text-main); }
.cmp td { color: var(--text-muted); text-align: center; }
.cmp tr:last-child th, .cmp tr:last-child td { border-block-end: 0; }

/* ---------- utility ---------- */
.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;
}
.muted { color: var(--text-muted); }
.mt-0 { margin-block-start: 0; }
.mb-0 { margin-block-end: 0; }

/* ---------- breakpoints ---------- */
/* Below 640px the header row carries brand + CTA + menu, which is the whole
   phone header the owner asked for on 2026-09-28. The locale switch is not
   removed from the site — it moves into the menu panel (see render_header) —
   because the design rule here is to take a control out of the row rather than
   shrink a touch target below 48px. */
@media (max-width: 639px) {
  .brand-tag { display: none; }
  .nav-toggle > summary span { display: none; }
  .nav-toggle > summary { padding-inline: var(--space-2); }
  .header-actions .btn { padding-inline: var(--space-3); font-size: var(--fs-sm); }
  .header-bar { gap: var(--space-2); }
}

/* The menu panel exists below 900px, so the locale switch belongs to it for
   that whole range — leaving it in the bar as well would show two. */
@media (max-width: 899px) {
  .header-actions > .locale { display: none; }
}

/* The panel copy of the switch is a stacked pair, not the inline pill the
   bar used, so it reads as one more menu entry instead of a floating control. */
.locale--panel {
  display: flex;
  gap: var(--space-2);
  padding-block: var(--space-2);
}

@media (max-width: 479px) {
  .header-bar { min-width: 0; }
  .header-actions { flex: 0 0 auto; }
  .header-actions .btn { padding-inline: var(--space-2); }
  /* The three floating cards are aria-hidden decoration that repeats what the
     sell grid below already says; at 390px they cost ~700px of scroll for
     nothing. */
  .hero-cards { display: none; }
  .demo-shot { min-block-size: 140px; }
  /* Five tiles in a two-up grid leaves one stranded on the last row. Spanning
     it reads as a deliberate full-width card instead of a broken grid. */
  .tile-group .grid-4 > .tile:last-child:nth-child(odd) { grid-column: span 2; }
  /* Advantage cards go icon-beside-text on a phone: stacked, each card spent
     two blank lines on a 44px glyph and the band ran ~1100px for six sentences. */
  .why-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: var(--space-3);
    row-gap: var(--space-1);
  }
  .why-card > .why-ic { grid-column: 1; grid-row: 1 / span 2; }
  .why-card > h3 { grid-column: 2; grid-row: 1; margin-block-start: 0; }
  .why-card > p { grid-column: 2; grid-row: 2; }
}

@media (min-width: 640px) {
  h1, .hero h1 { font-size: var(--fs-3xl); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .theme-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  h1, .hero h1 { font-size: 2.75rem; }
  .section { padding-block: var(--space-16); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: var(--space-12); }
  .hero-visual { order: 0; }
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); }
}

/* Touch targets grow only on coarse pointers — a desktop row stays dense. */
@media (pointer: coarse) {
  .btn, .nav-panel a, .nav-desktop a, .faq summary, .locale a, .brand {
    min-height: var(--touch-min);
  }
  /* Mobile Safari force-zooms on any focused input under 16px and does not
     zoom back out — this is a usability rule, not a preference. */
  input, select, textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── Facts band ───────────────────────────────────────────────────────
   Replaces the animated counters that were asked for. A counter has to
   count to something, and every candidate number here was either a
   marketing fiction or a statistic about a different product — see
   s_facts() in gen.py for the measurements. What remains is a band of
   statements that cannot go stale, so it gets no animation: there is no
   number arriving that a motion would be selling. */
.section--facts {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-raised) 100%);
  border-block: 1px solid var(--border-light);
}
.fact-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block-start: var(--space-5);
}
.fact {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}
.fact-num {
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.fact-label { font-weight: 600; font-size: var(--fs-sm); line-height: var(--lh-body); }
.fact-note { font-size: var(--fs-xs); color: var(--text-subtle); line-height: var(--lh-body); }
@media (max-width: 900px) { .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Onboarding ───────────────────────────────────────────────────────
   The owner's own words, set as a two-column panel. Actions stay in
   reading order after the copy in both directions because the grid is
   logical, not physical. */
.onboard {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.onboard h2 { font-size: var(--fs-2xl); margin-block-end: var(--space-2); }
.onboard-copy .lede { margin: 0; }
.onboard-actions { display: flex; flex-direction: column; gap: var(--space-3); }
@media (max-width: 860px) {
  .onboard { grid-template-columns: minmax(0, 1fr); }
}

/* ── News placeholders ──────────────────────────────────────────────── */
.news-card { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.news-card h3 { font-size: var(--fs-base); margin: 0; }

/* ── Footer additions ───────────────────────────────────────────────── */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-block-start: 1px solid var(--border-light);
}
.footer-social a { font-size: var(--fs-sm); }

/* ── Entrance motion ──────────────────────────────────────────────────
   CSS-only and load-time, not scroll-driven: scroll-linked animation
   needs either JavaScript or `animation-timeline`, which is not yet
   dependable across the Android WebView population this audience uses.
   The existing prefers-reduced-motion block at the foot of this file
   neutralises all of it. */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero .eyebrow, .hero h1, .hero .lede, .hero .btn-row, .hero .trust-strip, .hero-visual {
  animation: rise .5s cubic-bezier(.22, .61, .36, 1) both;
}
.hero h1 { animation-delay: .05s; }
.hero .lede { animation-delay: .1s; }
.hero .btn-row { animation-delay: .15s; }
.hero .trust-strip { animation-delay: .2s; }
.hero-visual { animation-delay: .1s; }
.fact { animation: rise .45s cubic-bezier(.22, .61, .36, 1) both; }
.fact:nth-child(2) { animation-delay: .06s; }
.fact:nth-child(3) { animation-delay: .12s; }
.fact:nth-child(4) { animation-delay: .18s; }

/* ── Advantage band ─────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block-start: var(--space-5);
}
.why-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}
.why-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
}
.why-item h3 { font-size: var(--fs-base); margin: 0 0 var(--space-1); }
.why-item p { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-body); }
/* One column on a phone: each card is an icon, a short title and one sentence,
   and two columns at 390px wrapped every title to three lines — measured in the
   390px screenshots of 2026-09-28, not guessed. */
@media (max-width: 720px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .why-card { padding: var(--space-4); }
  .why-card h3 { margin-block-start: var(--space-2); }
}
.tile-group { margin-block-start: var(--space-5); }
.tile-group:first-of-type { margin-block-start: var(--space-5); }
.tile-group-title {
  font-size: var(--fs-md);
  margin: 0 0 var(--space-1);
  padding-block-start: var(--space-3);
  border-block-start: 1px solid var(--border-light);
}
.tile-group-note { font-size: var(--fs-sm); color: var(--text-subtle); margin: 0 0 var(--space-4); }

/* A scrollable region, not an overflowing table.
   Without `contain: paint`, Chrome propagates a horizontal scroller's content
   width to the document ROOT in RTL: root scrollWidth measured 526 against a
   390 viewport while the page could not scroll sideways at all, and a full-page
   capture came back 138px offset. Removing the wrapper returned 390 exactly —
   that is what this rule is for. `overscroll-behavior-x` stops the swipe from
   chaining into the page, and `tabindex`/`role=region` (set in gen.py) give
   keyboard and screen-reader users a way through a table that does not fit. */
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  contain: paint;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-block-end: var(--space-2);
}
.table-scroll:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 4px; }

/* ═══════════════════════════════════════════════════════════════════════
   PROMAX layer — 2026-09-28. Appended rather than woven in, so the Pro
   Light token set above stays authoritative for every page that does not
   opt into a class here. Cascade order does the overriding; the
   prefers-reduced-motion block above uses !important and therefore still
   wins over every animation below.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --navy: #0F172A;
  --navy-deep: #0B1120;
  --navy-lift: #1E293B;
  --teal: #0D9488;
  --teal-ink: #042F2E;
  --on-navy: #FFFFFF;
  --on-navy-muted: #C4CFE0;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-brd: rgba(255, 255, 255, 0.14);
  --header-h: 72px;
}

/* ── Sticky header that gets out of the way ───────────────────────────
   Base state is a plain sticky header, which is what every browser gets.
   The hide-on-scroll-down behaviour is layered on only where
   `animation-timeline` exists (Chrome/WebView 115+). It is deliberately
   NOT transparent-over-hero — that is the reference platform's layout
   signature, and a header you cannot read over a dark hero is a worse
   header, not a subtler one. */
.site-header {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
  border-block-end: 1px solid var(--border-light);
  transition: box-shadow .2s ease;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header {
      animation: header-hide linear both;
      animation-timeline: scroll(root block);
      animation-range: 180px 520px;
    }
  }
}
@keyframes header-hide { to { transform: translateY(-102%); } }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero--pro {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, #1D4ED8 0%, rgba(29, 78, 216, 0) 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 62%, #102049 100%);
  color: var(--on-navy);
  padding-block: clamp(56px, 12vh, 128px);
  min-block-size: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
}
.hero--pro .eyebrow {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  color: #A5D8D2;
}
.hero--pro h1 {
  color: var(--on-navy);
  font-size: clamp(2.1rem, 7.2vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero--pro h1 span { display: block; }
.hero--pro h1 .l2 { color: #93B4FF; }
.hero--pro .lede { color: var(--on-navy-muted); font-size: clamp(1rem, 2.6vw, 1.2rem); }
.hero--pro .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--on-navy);
}
.hero--pro .btn-ghost:hover { background: var(--glass); border-color: rgba(255,255,255,.55); color: var(--on-navy); }
.hero--pro .trust-item { color: var(--on-navy-muted); }
.hero--pro .trust-strip { border-block-start-color: rgba(255,255,255,.14); }

/* Floating geometry. Decorative, aria-hidden, transform-only, and never on
   the H1 — the headline is the LCP element and animating it moves the number
   the whole performance story rests on. */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero-shapes i {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(147,180,255,.35), rgba(147,180,255,0) 70%);
  animation: float 14s ease-in-out infinite;
}
.hero-shapes i:nth-child(1) { inline-size: 320px; block-size: 320px; inset-block-start: -60px; inset-inline-end: -40px; }
.hero-shapes i:nth-child(2) { inline-size: 180px; block-size: 180px; inset-block-end: 8%; inset-inline-start: 4%; opacity: .7; animation-delay: -5s; }
.hero-shapes i:nth-child(3) {
  inline-size: 120px; block-size: 120px; inset-block-start: 22%; inset-inline-start: 30%;
  border-radius: 26px; opacity: .35;
  background: linear-gradient(140deg, rgba(13,148,136,.5), rgba(13,148,136,0));
  animation-duration: 19s; animation-delay: -9s;
}
@keyframes float { 0%,100% { transform: translate3d(0,0,0) } 50% { transform: translate3d(0,-22px,0) } }

/* Floating product cards — the proof object the brief asked for, drawn in
   CSS on purpose: no image bytes, and nothing that could be mistaken for a
   screenshot of a real merchant. */
.hero-cards { position: relative; block-size: 100%; min-block-size: 420px; }
.float-card {
  position: absolute;
  inline-size: min(240px, 68vw);
  padding: var(--space-4);
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -18px rgba(2, 6, 23, .8);
  display: flex;
  gap: var(--space-3);
  align-items: center;
  color: var(--on-navy);
}
.float-card svg { color: #93B4FF; flex: 0 0 auto; }
.float-card b { display: block; font-size: var(--fs-sm); font-weight: 600; }
.float-card span { display: block; font-size: var(--fs-xs); color: var(--on-navy-muted); }
.float-card--a { inset-block-start: 2%;  inset-inline-end: 4%;  animation: drift 11s ease-in-out infinite; }
.float-card--b { inset-block-start: 36%; inset-inline-end: 22%; animation: drift 13s ease-in-out infinite reverse; }
.float-card--c { inset-block-start: 68%; inset-inline-end: 2%;  animation: drift 15s ease-in-out infinite; }
@keyframes drift { 0%,100% { translate: 0 0 } 50% { translate: 0 -16px } }
@media (max-width: 899px) {
  .hero--pro { min-block-size: 0; }
  .hero-cards { min-block-size: 260px; margin-block-start: var(--space-6); }
}

/* ── Trust marquee ────────────────────────────────────────────────────
   One marquee, ~28s, transform-only, no will-change. The track is
   duplicated and the copy is aria-hidden so a screen reader hears the
   list once, from the visually-hidden <ul>, not twice from the scroller. */
.marquee {
  border-block: 1px solid var(--border-light);
  background: var(--surface-raised);
  overflow: hidden;
  padding-block: var(--space-3);
}
.marquee-track {
  display: flex;
  gap: var(--space-8);
  inline-size: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.marquee-item svg { color: var(--teal); }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@supports not (selector(:focus-within)) { .marquee-track { animation: none; flex-wrap: wrap; inline-size: auto; } }

/* ── Glass advantage cards ──────────────────────────────────────────── */
.why-grid--pro { gap: var(--space-4); }
.why-card {
  padding: var(--space-6) var(--space-5);
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.why-card:hover, .why-card:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.why-card h3 { font-size: var(--fs-md); margin: var(--space-3) 0 var(--space-1); }
.why-card p { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-body); }
.why-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 600; color: var(--teal-ink);
  background: #CCFBF1; border-radius: 999px; padding: 3px 10px;
}
@media (prefers-reduced-motion: no-preference) {
  .why-card { animation: rise .5s cubic-bezier(.22,.61,.36,1) both; }
}

/* ── Scroll reveal: deliberately NOT implemented ─────────────────────
   A `view()`-driven fade looks free, but its `from { opacity: 0 }` start
   means anything that does not scroll — a crawler, a full-page render, a
   screen reader taking the whole document — never sees the content at all.
   That is the `opacity-0`-until-JS defect the reference platform is called
   for, reproduced with CSS instead of JavaScript. Load-time `rise` above is
   safe because it is time-based and always completes; a scroll timeline is
   not. validate.py now fails the build if this comes back.
/* ── Dark footer ────────────────────────────────────────────────────── */
.site-footer--pro { background: var(--navy); color: var(--on-navy-muted); border-block-start: 0; }
.site-footer--pro .brand-word, .site-footer--pro .brand { color: var(--on-navy); }
.site-footer--pro .footer-col h3 { color: var(--on-navy); }
.site-footer--pro .footer-col a { color: var(--on-navy-muted); }
.site-footer--pro .footer-col a:hover { color: var(--on-navy); background: rgba(255,255,255,.06); }
.site-footer--pro .footer-bottom {
  border-block-start-color: rgba(255,255,255,.12);
  /* The base rule sets color: var(--text-subtle), which is #64748B — 3.75:1 on
     navy. Overriding only the border left the copyright line failing contrast
     while every token pair in contrast.py still passed, because that gate
     compares tokens and cannot see a specificity conflict. */
  color: var(--on-navy-muted);
}
.site-footer--pro .footer-tag { color: var(--on-navy-muted); }
@media (min-width: 900px) { .footer-grid--pro { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); } }

/* ── Demo store band ────────────────────────────────────────────────── */
.section--demo { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-raised) 100%); }
.demo-card {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: minmax(0, 1fr);
  padding: var(--space-5);
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-pop);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.demo-card:hover, .demo-card:focus-visible { transform: translateY(-3px); }
.demo-shot {
  display: grid;
  place-items: center;
  border-radius: 16px;
  min-block-size: 200px;
  color: #fff;
}
.demo-meta { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; justify-content: center; }
.demo-meta b { font-size: var(--fs-lg); }
.demo-meta > span:not(.btn) { font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-body); }
@media (min-width: 860px) { .demo-card { grid-template-columns: 1fr 1fr; } }

/* ── Advantage icons ────────────────────────────────────────────────── */
.why-ic {
  display: inline-grid;
  place-items: center;
  inline-size: 46px;
  block-size: 46px;
  border-radius: 14px;
  background: var(--primary-subtle);
  color: var(--primary);
}
.why-card:nth-child(3n+2) .why-ic { background: #CCFBF1; color: var(--teal-ink); }

/* ── Footer text on navy ────────────────────────────────────────────── */
.footer-tag { margin-block-start: 12px; max-inline-size: 34ch; color: var(--on-navy-muted); font-size: var(--fs-sm); line-height: var(--lh-body); }
.site-footer--pro .footer-col ul { list-style: none; margin: 0; padding: 0; }
.site-footer--pro .footer-col li a { display: inline-flex; min-block-size: 44px; align-items: center; }
@media (max-width: 639px) { .site-footer--pro .footer-col li a { min-block-size: 48px; } }
