/* France Metro · privacy policy · premium design.
 *
 * Constraints (must honour):
 *   - No external fonts, CDNs, scripts. System fonts only. The CSP we set
 *     blocks third-party loads, and a privacy page that loads tracking
 *     resources defeats its own purpose.
 *   - Light + dark themes via prefers-color-scheme.
 *   - RTL support for Arabic.
 *   - Fully responsive: mobile-first, scales up to wide screens.
 */

:root {
  /* Brand */
  --brand:        #0046b8;            /* deep RATP-style blue */
  --brand-2:      #2563eb;
  --brand-soft:   #e3edff;

  /* Surfaces */
  --bg:           #fbfbfd;
  --surface:      #ffffff;
  --surface-2:    #f4f6fa;
  --surface-3:    #eaeef5;
  --line:         #e5e8ef;
  --line-strong:  #d1d6e0;

  /* Text */
  --fg:           #0a0d18;
  --fg-2:         #1f2433;
  --fg-muted:     #4b5365;
  --fg-faint:     #8b93a3;
  --fg-on-brand:  #ffffff;

  /* Status */
  --good:         #058a4d;
  --good-soft:    #e3f6ec;
  --warn:         #b07300;
  --warn-soft:    #fdf2cf;
  --bad:          #c0223c;
  --bad-soft:     #ffe6ea;

  /* Effects */
  --shadow-1:     0 1px 2px 0 rgba(11, 18, 33, 0.05),
                  0 1px 3px 0 rgba(11, 18, 33, 0.06);
  --shadow-2:     0 8px 24px -8px rgba(11, 18, 33, 0.12),
                  0 2px 6px -2px rgba(11, 18, 33, 0.06);
  --shadow-glow:  0 0 0 6px rgba(0, 70, 184, 0.10);
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    22px;
  --radius-xl:    32px;

  /* Type scale */
  --font-sans:    -apple-system, BlinkMacSystemFont, "SF Pro Display",
                  "SF Pro Text", "Segoe UI", "Inter", Roboto,
                  "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "JetBrains Mono", Menlo,
                  Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand:       #4d8aff;
    --brand-2:     #6fa4ff;
    --brand-soft:  #1a2a4a;

    --bg:          #07080d;
    --surface:     #11141d;
    --surface-2:   #181c28;
    --surface-3:   #232839;
    --line:        #232839;
    --line-strong: #2f364a;

    --fg:          #f3f5fa;
    --fg-2:        #d8dde9;
    --fg-muted:    #aab2c0;
    --fg-faint:    #6c7689;
    --fg-on-brand: #ffffff;

    --good:        #41d18b;
    --good-soft:   #102a18;
    --warn:        #ffd47a;
    --warn-soft:   #2c2410;
    --bad:         #ff6781;
    --bad-soft:    #2a1218;

    --shadow-1:    0 1px 2px 0 rgba(0, 0, 0, 0.5),
                   0 1px 3px 0 rgba(0, 0, 0, 0.4);
    --shadow-2:    0 8px 24px -8px rgba(0, 0, 0, 0.7),
                   0 2px 6px -2px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 0 6px rgba(77, 138, 255, 0.18);
  }
}

/* ─── Thmanyah Sans (Arabic) ───────────────────────────────────────────── */
/* Self-hosted woff2, served from /fonts. font-display: swap so visitors
 * see the fallback (Geeza Pro / SF Arabic) instantly, then re-render once
 * Thmanyah loads. EN/FR pages don't trigger any of these downloads
 * because their content has no Arabic glyphs to render. */

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyahsans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyahsans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyahsans-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ─── Reset + base ─────────────────────────────────────────────────────── */

*,*::before,*::after { box-sizing: border-box; }
html  { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Defensive default for ALL SVGs. Without this, any inline <svg> whose
 * specific size rule fails to match (cache mismatch, CSS load failure)
 * falls back to the browser default of ~300x150 — which on a privacy
 * page would look catastrophic. With this rule, any escaped SVG is at
 * worst 1em tall and tiny. Specific rules below still win the cascade. */
svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
}
body  {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11"; /* SF Pro stylistic alternates */
}

[dir="rtl"] body {
  font-family: "Thmanyah Sans", -apple-system, BlinkMacSystemFont,
               "SF Arabic", "Geeza Pro", "Segoe UI",
               "Noto Naskh Arabic", "Tahoma", sans-serif;
  letter-spacing: 0;
}

/* Tighten line-height for the big Arabic display sizes — Thmanyah's
 * vertical metrics are looser than the Latin systems font we set elsewhere. */
[dir="rtl"] h1 { line-height: 1.15; letter-spacing: -0.025em; }
[dir="rtl"] h2 { line-height: 1.25; letter-spacing: -0.015em; }
[dir="rtl"] .l2-hero h1 { line-height: 1.1; }

/* ─── Layout ───────────────────────────────────────────────────────────── */

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 40px) 120px;
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  margin: 0 0 56px;
  padding: 64px clamp(28px, 4vw, 56px) 56px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 140% 80% at 80% -20%,
      color-mix(in oklab, var(--brand) 28%, transparent) 0%,
      transparent 60%),
    radial-gradient(ellipse 140% 100% at -10% 110%,
      color-mix(in oklab, var(--brand-2) 20%, transparent) 0%,
      transparent 55%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  /* subtle dotted texture so the gradient feels more like a designed surface */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    color-mix(in oklab, var(--fg) 6%, transparent) 1px,
    transparent 0
  );
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, black 40%, black 80%, transparent);
  pointer-events: none;
  z-index: -1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
}

.brand .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid;
  place-items: center;
  color: var(--fg-on-brand);
  box-shadow: var(--shadow-1);
}

.brand .mark svg { width: 18px; height: 18px; }

.hero h1 {
  margin: 24px 0 16px;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--fg);
  background: linear-gradient(180deg, var(--fg) 0%, var(--fg-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero .lead {
  max-width: 620px;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0 0 28px;
}

/* trust badges row */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 75%, transparent);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  white-space: nowrap;
}
.badge svg { width: 14px; height: 14px; color: var(--good); flex-shrink: 0; }
.badge.bad svg  { color: var(--bad); }
.badge.warn svg { color: var(--warn); }

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 4px 24px;
  font-size: 13px;
  color: var(--fg-faint);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.meta strong { color: var(--fg-2); font-weight: 600; }
.meta a { color: var(--brand); text-decoration: none; }
.meta a:hover { text-decoration: underline; }

/* language switcher */
.lang-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 24px;
  padding: 4px;
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}
.lang-switch a {
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg-muted);
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.lang-switch a:hover { color: var(--fg); }
.lang-switch a.active {
  background: var(--surface);
  color: var(--fg);
  font-weight: 600;
  box-shadow: var(--shadow-1);
}

/* ─── Section headings ─────────────────────────────────────────────────── */

section { margin-top: 64px; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 8px;
}
.section-eyebrow .icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
}
.section-eyebrow .icon-wrap svg { width: 12px; height: 12px; }

h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--fg);
  scroll-margin-top: 24px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 28px 0 8px;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 10px;
}

h3 .pill { margin-inline-start: auto; flex-shrink: 0; }

/* ─── Body text ────────────────────────────────────────────────────────── */

p, li { color: var(--fg-muted); }
p     { margin: 0 0 14px; }
ul    { padding-inline-start: 22px; margin: 0 0 14px; }
li    { margin-bottom: 6px; }
li::marker { color: var(--fg-faint); }
strong { color: var(--fg); font-weight: 600; }
em    { font-style: italic; color: var(--fg-2); }

a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--brand) 35%, transparent);
  transition: border-color 0.15s, color 0.15s;
}
a:hover { border-bottom-color: var(--brand); }

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--fg-2);
}

/* ─── Pills ────────────────────────────────────────────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad  { background: var(--bad-soft);  color: var(--bad);  }
.pill svg  { width: 11px; height: 11px; }

/* ─── Callouts ─────────────────────────────────────────────────────────── */

.callout {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px 20px 56px;
  margin: 18px 0;
  box-shadow: var(--shadow-1);
}
.callout::before {
  content: "";
  position: absolute;
  inset-inline-start: 18px;
  top: 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  mask-image: var(--icon, none);
}
.callout.good { border-color: color-mix(in oklab, var(--good) 25%, var(--line)); }
.callout.good::before { background: var(--good); }
.callout.warn { border-color: color-mix(in oklab, var(--warn) 30%, var(--line)); }
.callout.warn::before { background: var(--warn); }

.callout > p:last-child, .callout > ul:last-child { margin-bottom: 0; }

[dir="rtl"] .callout { padding-inline: 24px 56px; }

/* The big "summary" callout in the hero — slightly different vibe */
.summary-callout {
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--good) 8%, var(--surface)),
    var(--surface));
  border-color: color-mix(in oklab, var(--good) 25%, var(--line));
}

/* ─── Data summary cards (the 4-cell grid) ─────────────────────────────── */

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.data-grid .card {
  position: relative;
  padding: 22px 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.data-grid .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

.data-grid .card .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--fg-2);
}
.data-grid .card .icon svg { width: 18px; height: 18px; }

.data-grid .card.positive .icon { background: var(--good-soft); color: var(--good); }
.data-grid .card.neutral  .icon { background: var(--brand-soft); color: var(--brand); }

.data-grid .card h4 {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 600;
}
.data-grid .card .answer {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--fg);
  line-height: 1.15;
}
.data-grid .card .answer.good { color: var(--good); }
.data-grid .card p { margin: 0; font-size: 14px; line-height: 1.55; }

/* ─── Data flow diagram ────────────────────────────────────────────────── */

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  margin: 24px 0;
}
.flow .node {
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow-1);
}
.flow .node .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  margin: 0 auto 10px;
  display: grid; place-items: center;
  color: var(--brand);
}
.flow .node .ico svg { width: 18px; height: 18px; }
.flow .node .label { font-size: 12px; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.flow .node .name  { font-size: 15px; font-weight: 600; color: var(--fg); margin-top: 2px; }
.flow .arrow {
  display: grid; place-items: center;
  color: var(--brand);
  position: relative;
}
.flow .arrow svg { width: 18px; height: 18px; }
.flow .arrow .what {
  position: absolute;
  top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: var(--fg-faint); white-space: nowrap;
  letter-spacing: 0.02em;
}
[dir="rtl"] .flow .arrow svg { transform: scaleX(-1); }

@media (max-width: 720px) {
  .flow { grid-template-columns: 1fr; }
  .flow .arrow {
    transform: rotate(90deg);
    height: 24px;
  }
  [dir="rtl"] .flow .arrow svg { transform: none; }
  .flow .arrow .what { top: -10px; }
}

/* ─── Inline TOC ───────────────────────────────────────────────────────── */

.toc {
  margin: 0 0 48px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  font-size: 14px;
}
.toc h2 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 700;
}
.toc ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 4px 16px;
}
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  border-bottom: none;
  color: var(--fg-muted);
  transition: background 0.15s, color 0.15s;
}
.toc a:hover {
  background: var(--surface-2);
  color: var(--fg);
}
.toc a::before {
  content: "→";
  margin-inline-end: 8px;
  color: var(--fg-faint);
  font-size: 12px;
}
[dir="rtl"] .toc a::before { content: "←"; }

/* ─── Yes / No matrix ──────────────────────────────────────────────────── */

.matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.matrix .row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.matrix .row .check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--good-soft); color: var(--good);
  margin-top: 1px;
}
.matrix .row.no .check { background: var(--bad-soft); color: var(--bad); }
.matrix .row .check svg { width: 14px; height: 14px; }
.matrix .row .text { font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.matrix .row .text strong { display: block; color: var(--fg); margin-bottom: 2px; font-size: 14px; }

/* ─── Footer ───────────────────────────────────────────────────────────── */

footer.bottom {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-faint);
}
footer.bottom .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  justify-content: space-between;
}

/* ─── Focus styles ─────────────────────────────────────────────────────── */

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-glow);
  border-radius: 6px;
}

/* ─── Reduced motion ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════════════
 * LANDING PAGE — additional styles. Reuses tokens from above. The
 * landing leans harder on brand colour, has a phone mockup, store
 * buttons, and feature cards.
 * ═══════════════════════════════════════════════════════════════════════ */

main.landing { max-width: 1180px; padding-top: 32px; }

/* ─── Landing hero ─────────────────────────────────────────────────────── */

.l-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  margin: 0 0 96px;
  padding: 72px clamp(28px, 4vw, 64px) 64px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 100% 80% at 100% 0%,
      color-mix(in oklab, var(--brand) 36%, transparent) 0%,
      transparent 65%),
    radial-gradient(ellipse 90% 70% at 0% 100%,
      color-mix(in oklab, var(--brand-2) 24%, transparent) 0%,
      transparent 55%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.l-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    color-mix(in oklab, var(--fg) 7%, transparent) 1px,
    transparent 0
  );
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
  pointer-events: none; z-index: -1;
}

@media (max-width: 880px) {
  .l-hero { grid-template-columns: 1fr; gap: 48px; padding: 56px 28px 48px; }
}

.l-hero-text { min-width: 0; }

.l-hero h1 {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 24px 0 20px;
  background: linear-gradient(180deg,
    var(--fg) 0%,
    color-mix(in oklab, var(--brand) 80%, var(--fg)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.l-hero .lead {
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0 0 32px;
  max-width: 540px;
}

/* Store buttons */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  border: 1px solid var(--fg);
  font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: var(--shadow-1);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.store-btn:focus-visible { box-shadow: var(--shadow-glow); }
.store-btn .store-glyph {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.store-btn .store-glyph svg { width: 26px; height: 26px; color: var(--bg); }
.store-btn .store-text { display: grid; gap: 1px; line-height: 1.2; text-align: start; }
.store-btn .store-tagline { font-size: 11px; opacity: 0.75; letter-spacing: 0.02em; }
.store-btn .store-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.store-btn[aria-disabled="true"],
.store-btn.coming-soon {
  opacity: 0.55;
  cursor: default;
}
.store-btn.coming-soon::after {
  content: "Soon";
  font-size: 10px; font-weight: 700; padding: 2px 6px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg) 25%, transparent);
  margin-inline-start: 4px;
}

/* Trust ribbon below buttons */
.trust-row {
  display: flex; flex-wrap: wrap; gap: 16px 24px;
  font-size: 13px; color: var(--fg-faint);
  margin: 8px 0 0;
}
.trust-row span {
  display: inline-flex; align-items: center; gap: 6px;
}
.trust-row svg { width: 14px; height: 14px; color: var(--good); }

/* ─── Phone mockup ─────────────────────────────────────────────────────── */

.phone {
  --w: 280px;
  --h: 580px;
  position: relative;
  width: var(--w);
  height: var(--h);
  margin: 0 auto;
  border-radius: 44px;
  background: linear-gradient(160deg, #1c2230, #0d1118);
  padding: 12px;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.45),
    0 8px 24px -8px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

@media (max-width: 880px) {
  .phone { --w: 260px; --h: 540px; }
}

.phone::before {
  /* Camera notch */
  content: "";
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 28px;
  background: #050608;
  border-radius: 999px;
  z-index: 3;
}

.phone-screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  background: linear-gradient(180deg, #0a1628 0%, #060a14 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Status bar */
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px 8px;
  font-size: 13px; font-weight: 600;
  color: #fff;
}
.phone-status .right {
  display: inline-flex; gap: 4px;
  font-size: 0;
}
.phone-status .right span {
  display: inline-block;
  width: 14px; height: 8px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
}

/* App content */
.phone-app {
  flex: 1;
  padding: 32px 22px 22px;
  color: #e8edf6;
  display: flex; flex-direction: column; gap: 18px;
}

.phone-search {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid; gap: 10px;
}
.phone-search .row {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
}
.phone-search .dot {
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand-2) 25%, transparent);
}
.phone-search .row.dest .dot { background: #ff5d6c; box-shadow: 0 0 0 4px rgba(255,93,108,0.25); }
.phone-search .row .label { color: rgba(255,255,255,0.55); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.phone-search .row .value { font-weight: 600; color: #fff; }
.phone-search .row .col { display: grid; gap: 1px; }

.phone-section-h {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 700;
  margin: 4px 2px 0;
}

.phone-route {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px 14px 14px 14px;
  display: grid; gap: 10px;
}

.phone-route .head {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 14px;
}
.phone-route .head .time {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: #fff;
}
.phone-route .head .span {
  color: rgba(255,255,255,0.55); font-size: 12px;
}
.phone-route .legs {
  display: flex; align-items: center; gap: 4px;
  flex-wrap: wrap;
}
.phone-route .leg {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px;
  font-size: 11px; font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.phone-route .leg.walk { background: rgba(255,255,255,0.12); color: #fff; }
.phone-route .leg.m1   { background: #ffcd00; color: #111; }
.phone-route .leg.rer-a{ background: #e2231a; color: #fff; }
.phone-route .leg.m4   { background: #cf009e; color: #fff; }
.phone-route .arrow-leg { color: rgba(255,255,255,0.3); font-size: 12px; }

.phone-departures {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px 16px;
  display: grid; gap: 10px;
}
.phone-departures .dep {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.phone-departures .dep .badge-line {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #111;
  flex-shrink: 0;
}
.phone-departures .dep .where { flex: 1; color: #fff; font-weight: 500; }
.phone-departures .dep .mins  { color: rgba(255,255,255,0.85); font-weight: 600; }
.phone-departures .dep.live .mins { color: var(--good); }
.phone-departures .dep.live .mins::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; margin-inline-end: 6px; vertical-align: 2px;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ─── Feature cards ────────────────────────────────────────────────────── */

.l-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 0 0 96px;
}
.l-feature {
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.l-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in oklab, var(--brand) 30%, var(--line));
}
.l-feature .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-soft), color-mix(in oklab, var(--brand-soft) 70%, var(--surface)));
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.l-feature .icon svg { width: 22px; height: 22px; }
.l-feature h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--fg);
}
.l-feature p { color: var(--fg-muted); font-size: 14px; line-height: 1.55; margin: 0; }

/* ─── How it works ─────────────────────────────────────────────────────── */

.l-how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 96px;
  position: relative;
}
.l-how::before {
  /* connecting line */
  content: "";
  position: absolute;
  top: 32px;
  left: 7%; right: 7%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--line-strong) 15%,
    var(--line-strong) 85%,
    transparent 100%);
  z-index: 0;
}
[dir="rtl"] .l-how::before {
  background: linear-gradient(-90deg,
    transparent 0%,
    var(--line-strong) 15%,
    var(--line-strong) 85%,
    transparent 100%);
}

@media (max-width: 720px) {
  .l-how { grid-template-columns: 1fr; }
  .l-how::before { display: none; }
}

.l-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.l-step .num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand);
  display: grid; place-items: center;
  font-size: 24px; font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-1);
}
.l-step h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; color: var(--fg); }
.l-step p  { color: var(--fg-muted); font-size: 14px; line-height: 1.55; margin: 0; max-width: 28ch; margin-inline: auto; }

/* ─── Privacy callout ──────────────────────────────────────────────────── */

.l-privacy {
  position: relative;
  margin: 0 0 96px;
  padding: 56px clamp(28px, 4vw, 56px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--brand) 18%, var(--surface)),
    color-mix(in oklab, var(--brand-2) 12%, var(--surface)));
  border: 1px solid color-mix(in oklab, var(--brand) 25%, var(--line));
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-1);
}
@media (max-width: 720px) {
  .l-privacy { grid-template-columns: 1fr; text-align: center; gap: 20px; }
}

.l-privacy .shield {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-inline: 0;
}
@media (max-width: 720px) { .l-privacy .shield { margin-inline: auto; } }
.l-privacy .shield svg { width: 32px; height: 32px; }

.l-privacy h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.l-privacy p { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.55; }

.l-privacy .cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.l-privacy .cta:hover { transform: translateX(2px); box-shadow: var(--shadow-2); }
[dir="rtl"] .l-privacy .cta:hover { transform: translateX(-2px); }
.l-privacy .cta svg { width: 14px; height: 14px; }
[dir="rtl"] .l-privacy .cta svg { transform: scaleX(-1); }

/* ─── Landing footer ──────────────────────────────────────────────────── */

.l-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 40px 0 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-faint);
}
@media (max-width: 600px) {
  .l-foot { grid-template-columns: 1fr; text-align: center; }
}
.l-foot .links { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.l-foot .links a {
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.l-foot .links a:hover { color: var(--fg); border-bottom-color: var(--fg-faint); }

/* ═══════════════════════════════════════════════════════════════════════
 * v2 LANDING — multi-city focused, bigger & bolder.
 * ═══════════════════════════════════════════════════════════════════════ */

main.landing-v2 {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 40px) 80px;
}

/* ─── v2 Hero — text-focused, full-width ───────────────────────────────── */

.l2-hero {
  position: relative;
  padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 64px) clamp(64px, 10vw, 120px);
  text-align: center;
  isolation: isolate;
}

.l2-hero::before {
  content: "";
  position: absolute;
  inset: -80px clamp(-40px, -4vw, -10px) 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%,
      color-mix(in oklab, var(--brand) 30%, transparent) 0%,
      transparent 60%),
    radial-gradient(ellipse 80% 60% at 30% 100%,
      color-mix(in oklab, #e2231a 14%, transparent) 0%,
      transparent 50%),
    radial-gradient(ellipse 70% 60% at 80% 100%,
      color-mix(in oklab, #6F2282 14%, transparent) 0%,
      transparent 55%);
  border-radius: var(--radius-xl);
  z-index: -1;
  pointer-events: none;
}

.l2-hero::after {
  /* dotted grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    color-mix(in oklab, var(--fg) 7%, transparent) 1px,
    transparent 0
  );
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 60% at center, black, transparent);
  z-index: -1;
  pointer-events: none;
}

.l2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
  margin: 0 0 28px;
}
.l2-eyebrow .e-mark {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}
.l2-eyebrow .e-mark svg { width: 12px; height: 12px; }
.l2-eyebrow strong { color: var(--fg); font-weight: 600; }

.l2-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(44px, 9vw, 104px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--fg);
}

/* Rotating city name — pure CSS keyframe stack */
.l2-rotator {
  display: inline-grid;
  vertical-align: baseline;
}
.l2-rotator > span {
  grid-area: 1 / 1;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  animation: cityCycle 24s infinite;
  background: linear-gradient(180deg, currentColor, color-mix(in oklab, currentColor 70%, var(--fg)));
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}
.l2-rotator > span:nth-child(1) { animation-delay:  0s; color: #003CA6; } /* Paris    */
.l2-rotator > span:nth-child(2) { animation-delay:  3s; color: #0064A4; } /* Lyon     */
.l2-rotator > span:nth-child(3) { animation-delay:  6s; color: #009FDA; } /* Marseille*/
.l2-rotator > span:nth-child(4) { animation-delay:  9s; color: #E4007C; } /* Toulouse */
.l2-rotator > span:nth-child(5) { animation-delay: 12s; color: #E30613; } /* Lille    */
.l2-rotator > span:nth-child(6) { animation-delay: 15s; color: #0088CE; } /* Rennes   */
.l2-rotator > span:nth-child(7) { animation-delay: 18s; color: #6F2282; } /* Bordeaux */
.l2-rotator > span:nth-child(8) { animation-delay: 21s; color: #00A6E2; } /* Nice     */

@keyframes cityCycle {
  0%, 1%   { opacity: 0; transform: translateY(8px); }
  3%, 11%  { opacity: 1; transform: translateY(0); }
  13%, 100%{ opacity: 0; transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .l2-rotator > span { animation: none; opacity: 1; }
  .l2-rotator > span:not(:first-child) { display: none; }
}

.l2-hero .lead {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.55;
  color: var(--fg-muted);
}

.l2-hero .ctas {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin: 0 0 28px;
}

.l2-hero .trust-row {
  justify-content: center;
}

.l2-hero .lang-switch { margin: 28px auto 0; }

/* ─── Stat strip ───────────────────────────────────────────────────────── */

.l2-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 auto 96px;
  padding: 28px 0;
  border-block: 1px solid var(--line);
  max-width: 960px;
  text-align: center;
}
.l2-stats > div + div { border-inline-start: 1px solid var(--line); }
.l2-stats .num {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--fg);
  line-height: 1;
  background: linear-gradient(180deg, var(--fg), var(--fg-muted));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.l2-stats .lab {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 600;
}

@media (max-width: 720px) {
  .l2-stats { grid-template-columns: repeat(2, 1fr); }
  .l2-stats > div + div { border-inline-start: none; }
  .l2-stats > div:nth-child(n+3) { border-block-start: 1px solid var(--line); padding-top: 24px; }
  .l2-stats > div:nth-child(2) { border-inline-start: 1px solid var(--line); }
}

/* ─── Cities showcase ──────────────────────────────────────────────────── */

.l2-cities-head {
  text-align: center;
  margin: 0 0 40px;
}
.l2-cities-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--fg);
}
.l2-cities-head p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.55;
}

.l2-cities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0 0 96px;
}

.city-card {
  --accent: var(--brand);
  position: relative;
  padding: 28px 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  isolation: isolate;
}
.city-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--accent) 18%, transparent),
    transparent 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}
.city-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in oklab, var(--accent) 50%, var(--line));
}
.city-card:hover::before { opacity: 1; }

.city-card .strip {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  margin: 0 0 18px;
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent) 50%, transparent);
}

.city-card .name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 4px;
  line-height: 1.1;
}

.city-card .op {
  font-size: 13px;
  color: var(--fg-faint);
  margin: 0 0 20px;
}

.city-card .nums {
  display: flex;
  gap: 16px;
  font-size: 13px;
}
.city-card .nums .n {
  font-weight: 700;
  color: var(--fg);
  font-size: 18px;
  letter-spacing: -0.01em;
  display: block;
  line-height: 1.1;
}
.city-card .nums .l { color: var(--fg-faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

.city-card .modes {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 18px 0 0;
}
.city-card .mode {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 12%, var(--surface-2));
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.city-card .live-badge {
  position: absolute;
  top: 16px; inset-inline-end: 16px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--good-soft);
  color: var(--good);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.city-card .live-badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}

/* ─── v2 phone showcase + features (combined section) ──────────────────── */

.l2-showcase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
  margin: 0 0 96px;
}
@media (max-width: 880px) {
  .l2-showcase { grid-template-columns: 1fr; gap: 48px; }
  .l2-showcase .phone-wrap { order: 2; }
}
.l2-showcase .phone-wrap { display: grid; place-items: center; }

.l2-feat-list {
  display: grid;
  gap: 8px;
}
.l2-feat-list h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--fg);
}

.l2-feat {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}
.l2-feat:hover { background: var(--surface-2); }
.l2-feat .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.l2-feat .icon svg { width: 22px; height: 22px; }
.l2-feat h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--fg);
}
.l2-feat p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ─── Print ────────────────────────────────────────────────────────────── */

@media print {
  body { background: white; color: black; }
  .lang-switch, .toc, .hero::before { display: none !important; }
  .hero { background: none; border: none; padding: 0; }
  .data-grid .card, .matrix .row, .toc, .callout { box-shadow: none; }
  a { color: black; border-bottom: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; }
}
