/* ============================================================
   TRUCK — Refonte espace chauffeur
   Design system: ink + paper + accent ambre, type éditoriale
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Hanken+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --paper:      oklch(0.974 0.008 95);
  --paper-2:    oklch(0.948 0.013 92);
  --paper-3:    oklch(0.915 0.018 90);
  --ink:        oklch(0.205 0.018 62);
  --ink-soft:   oklch(0.40 0.020 62);
  --ink-faint:  oklch(0.55 0.016 66);
  --line:       color-mix(in oklab, var(--ink) 13%, transparent);
  --line-2:     color-mix(in oklab, var(--ink) 22%, transparent);

  --dark:       oklch(0.185 0.014 64);
  --dark-2:     oklch(0.235 0.016 66);
  --dark-line:  color-mix(in oklab, white 12%, transparent);
  --on-dark:        oklch(0.955 0.010 92);
  --on-dark-soft:   oklch(0.76 0.013 88);

  /* accent — overridable via Tweaks (hex) — bleu */
  --accent:       #3B72F0;
  --accent-strong: color-mix(in oklab, var(--accent) 80%, black);
  --accent-tint:   color-mix(in oklab, var(--accent) 16%, var(--paper));
  --accent-tint-2: color-mix(in oklab, var(--accent) 26%, var(--paper));
  --on-accent: #ffffff;

  --r-xs: 8px; --r-sm: 12px; --r: 18px; --r-lg: 26px; --r-xl: 38px; --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(40,28,12,.06), 0 2px 6px rgba(40,28,12,.05);
  --sh:    0 4px 14px rgba(40,28,12,.08), 0 22px 46px -28px rgba(40,28,12,.30);
  --sh-lg: 0 10px 30px rgba(40,28,12,.10), 0 50px 90px -40px rgba(40,28,12,.42);

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
}

/* ============================================================
   THEMES (background palettes) — toggled on <body>
   Accent stays the Truck green in all themes.
   ============================================================ */
/* WHITE */
body.theme-white {
  --paper: #ffffff; --paper-2: #f4f5f7; --paper-3: #e9ebef;
  --ink: oklch(0.22 0.01 260); --ink-soft: oklch(0.42 0.012 260); --ink-faint: oklch(0.56 0.012 260);
  --line: color-mix(in oklab, var(--ink) 11%, transparent);
  --line-2: color-mix(in oklab, var(--ink) 19%, transparent);
  --sh-sm: 0 1px 2px rgba(15,20,30,.05), 0 2px 6px rgba(15,20,30,.05);
  --sh: 0 4px 14px rgba(15,20,30,.07), 0 22px 46px -28px rgba(15,20,30,.26);
  --sh-lg: 0 10px 30px rgba(15,20,30,.09), 0 50px 90px -40px rgba(15,20,30,.36);
}
/* DARK (near-black slate) */
body.theme-dark {
  --paper: oklch(0.165 0.012 260); --paper-2: oklch(0.205 0.014 260); --paper-3: oklch(0.245 0.016 260);
  --ink: oklch(0.965 0.004 250); --ink-soft: oklch(0.76 0.012 255); --ink-faint: oklch(0.60 0.014 258);
  --line: color-mix(in oklab, white 10%, transparent);
  --line-2: color-mix(in oklab, white 18%, transparent);
  --dark: oklch(0.225 0.015 260); --dark-2: oklch(0.275 0.016 260);
  --dark-line: color-mix(in oklab, white 13%, transparent);
  --on-dark: oklch(0.965 0.004 250); --on-dark-soft: oklch(0.76 0.012 255);
  --accent-tint:   color-mix(in oklab, var(--accent) 22%, oklch(0.205 0.014 260));
  --accent-tint-2: color-mix(in oklab, var(--accent) 38%, oklch(0.205 0.014 260));
  --sh-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.35);
  --sh: 0 4px 14px rgba(0,0,0,.45), 0 22px 46px -28px rgba(0,0,0,.7);
  --sh-lg: 0 10px 30px rgba(0,0,0,.5), 0 50px 90px -40px rgba(0,0,0,.8);
}
/* DARK GREEN */
body.theme-green {
  --paper: oklch(0.205 0.035 168); --paper-2: oklch(0.245 0.038 168); --paper-3: oklch(0.285 0.04 168);
  --ink: oklch(0.965 0.01 160); --ink-soft: oklch(0.78 0.02 162); --ink-faint: oklch(0.62 0.025 164);
  --line: color-mix(in oklab, white 11%, transparent);
  --line-2: color-mix(in oklab, white 19%, transparent);
  --dark: oklch(0.26 0.04 168); --dark-2: oklch(0.31 0.042 168);
  --dark-line: color-mix(in oklab, white 14%, transparent);
  --on-dark: oklch(0.965 0.01 160); --on-dark-soft: oklch(0.78 0.02 162);
  --accent-tint:   color-mix(in oklab, var(--accent) 24%, oklch(0.245 0.038 168));
  --accent-tint-2: color-mix(in oklab, var(--accent) 40%, oklch(0.245 0.038 168));
  --sh-sm: 0 1px 2px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.3);
  --sh: 0 4px 14px rgba(0,0,0,.4), 0 22px 46px -28px rgba(0,0,0,.62);
  --sh-lg: 0 10px 30px rgba(0,0,0,.45), 0 50px 90px -40px rgba(0,0,0,.72);
}
/* On dark themes, .dark bands invert to a LIGHTER elevated panel for rhythm,
   and the nav/footer read as part of the page. */
body.theme-dark .promo, body.theme-green .promo { background: var(--paper-3); color: var(--ink); }
body.theme-dark .promo b, body.theme-green .promo b { color: var(--accent); }
body.theme-dark .nav, body.theme-green .nav { background: color-mix(in oklab, var(--paper) 82%, transparent); border-bottom-color: var(--line); }
body.theme-dark .nav.scrolled, body.theme-green .nav.scrolled { background: color-mix(in oklab, var(--paper) 94%, transparent); }
body.theme-dark .footer, body.theme-green .footer { background: oklch(0.13 0.012 260); }
body.theme-green .footer { background: oklch(0.165 0.035 168); }

/* Elements that are an "always-dark" panel via --ink need a real dark in dark themes */
body.theme-dark .commission, body.theme-green .commission { background: var(--dark-2); }
body.theme-dark .ph-pay, body.theme-green .ph-pay { background: oklch(0.13 0.012 260); }
body.theme-green .ph-pay { background: oklch(0.155 0.03 168); }
/* Lift cards off the dark page background; keep cards inside .dark bands distinct */
body.theme-dark .card, body.theme-green .card { background: var(--paper-2); border-color: var(--line-2); }
body.theme-dark .dark .card, body.theme-green .dark .card { background: var(--dark-2); }
/* Phone screen: give it a touch more lift than the page in dark themes */
body.theme-dark .phone-screen, body.theme-green .phone-screen { background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%); }
body.theme-dark .ph-card, body.theme-green .ph-card { background: var(--paper-3); }

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
.section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px;
}
.dark .eyebrow { color: var(--on-dark-soft); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
.h-section { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.03em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 56ch; text-wrap: pretty; }
.dark .lead { color: var(--on-dark-soft); }

.sec-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 68px); }
.sec-head.center { align-items: center; text-align: center; margin-inline: auto; }

.mark { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  padding: 15px 24px; border-radius: var(--r-pill);
  transition: transform .18s var(--ease), background .2s, box-shadow .2s, color .2s;
  white-space: nowrap; border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--sh-sm); }
.btn-primary:hover { background: #000; box-shadow: var(--sh); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px -6px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn-accent:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: color-mix(in oklab, var(--ink) 5%, transparent); }
.dark .btn-ghost { border-color: var(--dark-line); color: var(--on-dark); }
.dark .btn-ghost:hover { background: color-mix(in oklab, white 8%, transparent); border-color: color-mix(in oklab, white 40%, transparent); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-lg { padding: 18px 30px; font-size: 17.5px; }

/* ---------- Placeholder image ---------- */
.ph {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, color-mix(in oklab, var(--ink) 6%, var(--paper-2)) 0 12px, var(--paper-2) 12px 24px);
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-faint);
}
.ph::after {
  content: attr(data-label); font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em;
  text-transform: uppercase; padding: 8px 13px; border-radius: var(--r-pill);
  background: color-mix(in oklab, var(--paper) 86%, transparent); border: 1px solid var(--line);
  color: var(--ink-soft); max-width: 80%; text-align: center; line-height: 1.4;
}

/* ============================================================
   NAV
   ============================================================ */
.promo {
  background: var(--ink); color: var(--paper); font-size: 13.5px; text-align: center;
  padding: 9px 18px; display: flex; gap: 12px; align-items: center; justify-content: center;
  font-weight: 500; flex-wrap: wrap;
}
.promo b { color: var(--accent); font-weight: 700; }
.promo a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--dark) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--dark-line); transition: border-color .25s, background .25s, box-shadow .25s;
}
.nav.scrolled { background: color-mix(in oklab, var(--dark) 94%, transparent); box-shadow: 0 10px 34px -16px rgba(0,0,0,.6); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; flex: none; box-shadow: var(--sh-sm); position: relative;
}
.brand .logo-mark svg { width: 21px; height: 21px; }
.brand .logo-mark::after { content:""; position:absolute; right:-3px; bottom:-3px; width:11px; height:11px; border-radius:50%; background: var(--accent); border: 2.5px solid var(--paper); }
.nav-links { display: none; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-cta .link-login { font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: var(--r-pill); }
.nav-cta .link-login:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
/* Refonte juin 2026 : bouton menu = cercle 44x44 fond #0e1320 + 3 points
   verticaux blancs (SVG inline dans le HTML). Plus de spans/barres ni
   d'animation X — le bouton ne change pas d'aspect a l'ouverture. */
.nav-burger, #burger, .burger-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0e1320;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: opacity .18s;
}
.nav-burger:hover, #burger:hover, .burger-btn:hover { opacity: 0.85; }
.nav-burger svg, #burger svg, .burger-btn svg { display: block; }

/* Mobile menu sheet */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; top: 0; width: min(86vw, 360px); z-index: 70;
  background: var(--dark); border-left: 1px solid var(--dark-line); box-shadow: var(--sh-lg);
  transform: translateX(100%); transition: transform .32s var(--ease); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
body.menu-open .mobile-menu { transform: translateX(0) !important; }
.mobile-menu .mm-head { display:flex; justify-content: space-between; align-items:center; margin-bottom: 14px; }
.mobile-menu a.mm-link { font-family: var(--font-display); font-weight: 600; font-size: 22px; padding: 12px 0; border-bottom: 1px solid var(--dark-line); color: var(--on-dark); }
.mobile-menu .mm-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
.scrim { position: fixed; inset: 0; background: rgba(20,14,6,.4); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 65; }
body.menu-open .scrim { opacity: 1; pointer-events: auto; }

/* ============================================================
   STATUS CHOICE (inscription-profil)
   ============================================================ */
.warn-box {
  background: color-mix(in oklab, var(--accent) 12%, var(--paper-2));
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  border-radius: var(--r-lg); padding: 22px 26px;
  display: flex; gap: 18px; align-items: flex-start; max-width: 760px;
}
.warn-box .warn-emoji { font-size: 24px; flex: none; line-height: 1; padding-top: 2px; }
.warn-box h3 { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 10px; }
.warn-box ul { list-style: none; padding: 0; margin: 0; }
.warn-box li { color: var(--ink-soft); font-size: 14.5px; padding: 5px 0 5px 18px; position: relative; }
.warn-box li::before { content: ""; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.status-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  max-width: 820px;
}
@media (max-width: 720px) { .status-grid { grid-template-columns: 1fr; } }
.status-card {
  background: var(--paper-2); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: inherit;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s, background .22s;
}
.status-card:hover {
  transform: translateY(-4px); border-color: var(--accent);
  box-shadow: var(--sh), 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent);
}
.status-card .status-emoji { font-size: 38px; line-height: 1; margin-bottom: 4px; }
.status-card h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.status-card p { color: var(--ink-soft); font-size: 15px; }
.status-card .status-go { margin-top: auto; padding-top: 14px; color: var(--accent); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.status-card:hover .status-go .arr { transform: translateX(4px); transition: transform .2s; }

/* ============================================================
   ENTREPRISE — Stat card + bullets
   ============================================================ */
.ent-stat-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 38px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
  box-shadow: var(--sh);
}
.ent-stat-head { display: flex; gap: 18px; align-items: flex-start; }
.ent-stat-emoji { font-size: 44px; line-height: 1; flex: none; }
.ent-stat-head h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 6px; }
.ent-stat-head p { color: var(--ink-soft); font-size: 15px; }
.ent-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ent-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-align: center; }
.ent-stat-n { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -0.04em; color: var(--accent); line-height: 1; }
.ent-stat-n small { font-size: 0.55em; vertical-align: 0.2em; color: var(--ink); margin-left: 2px; }
.ent-stat-l { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); line-height: 1.4; }
@media (max-width: 760px) {
  .ent-stat-card { grid-template-columns: 1fr; }
  .ent-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 460px) { .ent-stats { grid-template-columns: 1fr; } }

.ent-bullets { list-style: none; padding: 0; margin: 6px 0 0; }
.ent-bullets li { color: var(--ink-soft); font-size: 14.5px; padding: 6px 0 6px 22px; position: relative; line-height: 1.5; }
.ent-bullets li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   EQUIPEMENT — Status labels
   ============================================================ */
.eq-label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 5px 10px; border-radius: var(--r-pill); border: 1px solid transparent; }
.eq-required { background: color-mix(in oklab, var(--accent) 22%, transparent); color: var(--accent); border-color: color-mix(in oklab, var(--accent) 40%, transparent); }
.eq-reco { background: color-mix(in oklab, #d3a23c 18%, transparent); color: #f5c97a; border-color: color-mix(in oklab, #d3a23c 40%, transparent); }
.eq-opt { background: color-mix(in oklab, white 10%, transparent); color: var(--ink-soft); border-color: color-mix(in oklab, white 20%, transparent); }

/* ============================================================
   DASHBOARD (logged-in pages)
   ============================================================ */
.dash { padding-block: clamp(28px, 4vw, 56px); }
.dash-head { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; }
.dash-id { display: flex; gap: 16px; align-items: center; }
.dash-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 50%, black));
  color: var(--on-accent); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.04em; flex: none;
  box-shadow: var(--sh);
  overflow: hidden;
  position: relative;
}
/* Photo chauffeur dans le header — l'img remplit l'avatar, object-fit:cover.
   Selector specifique pour s'assurer que la regle .dash-sidebar .dash-avatar
   (44x44 dans la sidebar) ne s'applique pas ici. */
.dash-avatar > img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.dash-head h1 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.03em; line-height: 1; }
.dash-sub { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }

.dash-alert {
  background: color-mix(in oklab, var(--accent) 14%, var(--paper-2));
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  border-radius: var(--r-lg); padding: 20px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.dash-alert-emoji { font-size: 32px; line-height: 1; flex: none; }
.dash-alert-body { flex: 1; min-width: 220px; }
.dash-alert-body h3 { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 4px; }
.dash-alert-body p { color: var(--ink-soft); font-size: 14.5px; }

.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dash-card-wide { grid-column: span 2; }
@media (max-width: 1040px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } .dash-card-wide { grid-column: span 2; } }
@media (max-width: 680px)  { .dash-grid { grid-template-columns: 1fr; } .dash-card-wide { grid-column: span 1; } }

.dash-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; color: var(--ink); display: flex; flex-direction: column; gap: 14px;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
a.dash-card { text-decoration: none; }
.dash-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--sh); }
.dash-card-head { display: flex; align-items: center; gap: 11px; }
.dash-card-emoji { font-size: 22px; line-height: 1; }
.dash-card-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.dash-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); background: color-mix(in oklab, var(--accent) 18%, transparent); padding: 4px 9px; border-radius: var(--r-pill); margin-left: auto; }
.dash-head-link { margin-left: auto; font-size: 13px; color: var(--accent); font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
.dash-head-link .arr { transition: transform .2s; }
.dash-head-link:hover .arr { transform: translateX(3px); }

.dash-big-stat { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; line-height: .95; }
.dash-big-stat .big-n { font-size: 56px; color: var(--accent); }
.dash-big-stat .big-d { font-size: 30px; color: var(--ink-soft); margin-left: 4px; }
.dash-card-sub { font-size: 13.5px; color: var(--ink-faint); font-family: var(--font-mono); }
.dash-card-note { font-size: 13.5px; padding: 10px 12px; border-radius: var(--r); background: color-mix(in oklab, var(--paper) 60%, transparent); color: var(--ink-soft); }
.dash-card-note.warn { background: color-mix(in oklab, #d3a23c 14%, transparent); color: #f5c97a; border: 1px solid color-mix(in oklab, #d3a23c 38%, transparent); }

.dash-rev-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.dash-rev-row:last-of-type { border-bottom: 0; }
.dash-rev-label { color: var(--ink-soft); }
.dash-rev-val { font-family: var(--font-mono); font-weight: 700; color: var(--ink); }

.dash-card-cta {
  margin-top: auto; align-self: flex-start; color: var(--accent); font-weight: 700; font-size: 14px;
  display: inline-flex; gap: 6px; align-items: center; padding: 6px 0; cursor: pointer;
}
.dash-card-cta .arr { transition: transform .2s; }
.dash-card-cta:hover .arr { transform: translateX(4px); }

.dash-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.dash-tab {
  padding: 9px 14px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600;
  background: transparent; color: var(--ink-soft); border: 1px solid var(--line);
  cursor: pointer; transition: .18s;
}
.dash-tab:hover { color: var(--ink); background: color-mix(in oklab, white 5%, transparent); }
.dash-tab[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }

.dash-empty { text-align: center; padding: 30px 12px; display: flex; flex-direction: column; gap: 6px; align-items: center; color: var(--ink-soft); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(8,6,4,.65); backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.modal-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); max-width: 560px; width: 100%; box-shadow: var(--sh-lg); max-height: 90vh; overflow-y: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; }
.modal-x { width: 36px; height: 36px; border-radius: 50%; background: var(--paper-2); color: var(--ink); font-size: 14px; }
.modal-x:hover { background: var(--paper-3); }
.modal-body { padding: 24px; }
.upload-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 460px) { .upload-grid { grid-template-columns: repeat(2, 1fr); } }
.upload-slot {
  background: var(--paper-2); border: 1.5px dashed var(--line-2); border-radius: var(--r);
  padding: 18px 10px; text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center;
  font-size: 12.5px; color: var(--ink-soft); cursor: pointer; transition: .18s;
}
.upload-slot:hover { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, var(--paper-2)); color: var(--ink); }
.upload-slot .emoji { font-size: 20px; }
.upload-slot-wide { padding: 22px; }

/* ============================================================
   DOCUMENTS — rows + status + button-sm
   ============================================================ */
.doc-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.doc-status {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 16px;
  background: var(--paper); border: 1px solid var(--line);
}
.doc-status-pending { background: color-mix(in oklab, #d3a23c 16%, var(--paper)); border-color: color-mix(in oklab, #d3a23c 40%, transparent); color: #f5c97a; }
.doc-status-ok { background: color-mix(in oklab, var(--accent) 18%, var(--paper)); border-color: color-mix(in oklab, var(--accent) 40%, transparent); color: var(--accent); }
.doc-status-ko { background: color-mix(in oklab, #e0625c 16%, var(--paper)); border-color: color-mix(in oklab, #e0625c 40%, transparent); color: #ec8a85; }
.doc-info { flex: 1; min-width: 0; }
.doc-info h3 { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); }
.doc-info p { font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; }
.doc-tag {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 5px 10px; border-radius: var(--r-pill); border: 1px solid transparent; flex: none;
}
.doc-tag-required { background: color-mix(in oklab, var(--accent) 18%, transparent); color: var(--accent); border-color: color-mix(in oklab, var(--accent) 38%, transparent); }
.doc-tag-opt { background: color-mix(in oklab, white 8%, transparent); color: var(--ink-soft); border-color: color-mix(in oklab, white 18%, transparent); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
@media (max-width: 640px) {
  .doc-row { flex-wrap: wrap; gap: 10px; }
  .doc-info { flex-basis: 100%; order: -1; padding-left: 0; }
}

/* ============================================================
   PROFILE preferences switches + Data tables
   ============================================================ */
.pref-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink); cursor: pointer;
}
.pref-row:last-child { border-bottom: 0; }
.pref-switch { appearance: none; width: 42px; height: 24px; background: var(--paper-3); border: 1px solid var(--line-2); border-radius: 999px; position: relative; cursor: pointer; transition: background .2s; flex: none; }
.pref-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  background: var(--ink); border-radius: 50%; transition: transform .22s var(--ease);
}
.pref-switch:checked { background: var(--accent); border-color: var(--accent); }
.pref-switch:checked::after { transform: translateX(18px); background: var(--on-accent); }

.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
  text-align: left; padding: 14px 12px; font-family: var(--font-mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); font-weight: 700;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.dash-table td {
  padding: 16px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink);
}
.dash-table tbody tr:last-child td { border-bottom: 0; }

/* ============================================================
   PROFILE TYPE SWITCHER + per-profile styling
   ============================================================ */
.profile-switch {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 6px 8px 6px 16px; margin-bottom: 22px; width: fit-content; max-width: 100%;
}
.profile-switch-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); font-weight: 700; }
.profile-switch-btn {
  padding: 9px 14px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600;
  background: transparent; color: var(--ink-soft); border: 1px solid transparent;
  cursor: pointer; transition: .18s; white-space: nowrap;
}
.profile-switch-btn:hover { color: var(--ink); background: color-mix(in oklab, white 5%, transparent); }
.profile-switch-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }

.profile-badge {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border-radius: var(--r-pill); margin-right: 6px;
  background: color-mix(in oklab, var(--accent) 18%, transparent); color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
}
[data-profile="gerant"] .profile-badge { background: color-mix(in oklab, var(--accent) 22%, transparent); }
[data-profile="salarie"] .profile-badge { background: color-mix(in oklab, #a78bfa 18%, transparent); color: #c4b5fd; border-color: color-mix(in oklab, #a78bfa 40%, transparent); }
[data-profile="salarie"] .dash-avatar { background: linear-gradient(135deg, #a78bfa, #8b5cf6); color: #fff; }

/* Visibility by profile type */
[data-show] { display: none; }
[data-profile="micro"]   [data-show~="micro"]   { display: flex; }
[data-profile="gerant"]  [data-show~="gerant"]  { display: flex; }
[data-profile="salarie"] [data-show~="salarie"] { display: flex; }
/* allow combo "micro,gerant" */
[data-profile="micro"]   [data-show="micro,gerant"],
[data-profile="gerant"]  [data-show="micro,gerant"] { display: flex; }
/* dash-card-note uses block layout */
[data-show].dash-card-note { display: none; }
[data-profile="micro"]   .dash-card-note[data-show~="micro"]   { display: block; }
[data-profile="gerant"]  .dash-card-note[data-show~="gerant"]  { display: block; }
[data-profile="salarie"] .dash-card-note[data-show~="salarie"] { display: block; }
[data-profile="micro"]   .dash-card-note[data-show="micro,gerant"],
[data-profile="gerant"]  .dash-card-note[data-show="micro,gerant"] { display: block; }

/* doc-row uses flex layout via data-show */
[data-show].doc-row { display: none; }
[data-profile="micro"]   .doc-row[data-show~="micro"]   { display: flex; }
[data-profile="gerant"]  .doc-row[data-show~="gerant"]  { display: flex; }
[data-profile="salarie"] .doc-row[data-show~="salarie"] { display: flex; }
[data-profile="micro"]   .doc-row[data-show="micro,gerant"],
[data-profile="gerant"]  .doc-row[data-show="micro,gerant"] { display: flex; }
[data-profile="micro"]   .doc-row[data-show="micro,gerant,salarie"],
[data-profile="gerant"]  .doc-row[data-show="micro,gerant,salarie"],
[data-profile="salarie"] .doc-row[data-show="micro,gerant,salarie"] { display: flex; }

/* ob-step uses inline-flex */
[data-show].ob-step { display: none !important; }
[data-profile="micro"]   .ob-step[data-show~="micro"],
[data-profile="gerant"]  .ob-step[data-show~="gerant"],
[data-profile="salarie"] .ob-step[data-show~="salarie"],
[data-profile="micro"]   .ob-step[data-show="micro,gerant"],
[data-profile="gerant"]  .ob-step[data-show="micro,gerant"] { display: inline-flex !important; }

/* ob-pane and form-row keep their default display block */
[data-profile="micro"]   .ob-pane[data-show~="micro"],
[data-profile="gerant"]  .ob-pane[data-show~="gerant"],
[data-profile="salarie"] .ob-pane[data-show~="salarie"],
[data-profile="micro"]   .ob-pane[data-show="micro,gerant"],
[data-profile="gerant"]  .ob-pane[data-show="micro,gerant"] { display: block; }
[data-profile="micro"]   .form-row[data-show~="micro"],
[data-profile="gerant"]  .form-row[data-show~="gerant"],
[data-profile="salarie"] .form-row[data-show~="salarie"],
[data-profile="micro"]   .form-row[data-show="micro,gerant"],
[data-profile="gerant"]  .form-row[data-show="micro,gerant"] { display: flex; }
[data-profile="micro"]   .warn-box[data-show~="micro"],
[data-profile="gerant"]  .warn-box[data-show~="gerant"],
[data-profile="micro"]   .warn-box[data-show="micro,gerant"],
[data-profile="gerant"]  .warn-box[data-show="micro,gerant"] { display: flex; }
[data-profile="micro"]   .upload-card[data-show~="micro"],
[data-profile="gerant"]  .upload-card[data-show~="gerant"],
[data-profile="salarie"] .upload-card[data-show~="salarie"],
[data-profile="micro"]   .upload-card[data-show="micro,gerant"],
[data-profile="gerant"]  .upload-card[data-show="micro,gerant"] { display: flex; }

/* ============================================================
   AUTH OTP + status icon + loader + photo preview + next-step
   ============================================================ */
.otp-boxes { display: flex; gap: 10px; justify-content: center; margin: 6px 0 8px; }
.otp-box {
  width: 48px; height: 60px; text-align: center; font-family: var(--font-mono); font-size: 26px; font-weight: 700;
  background: var(--paper); border: 1.5px solid var(--line-2); border-radius: var(--r); color: var(--ink);
  transition: .15s; outline: none;
}
.otp-box:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent); }
@media (max-width: 460px) { .otp-box { width: 40px; height: 52px; font-size: 22px; } }

.status-icon-circle {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 2px solid color-mix(in oklab, var(--accent) 38%, transparent);
  display: grid; place-items: center; font-size: 42px;
}

.loader-spin {
  width: 64px; height: 64px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.next-step { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.next-step:first-of-type { border-top: 0; padding-top: 4px; }
.next-step .next-ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none;
}
.next-step .next-ic.blue { background: color-mix(in oklab, var(--accent) 14%, transparent); color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); }
.next-step .next-ic.green { background: color-mix(in oklab, #34d399 14%, transparent); color: #34d399; border: 1px solid color-mix(in oklab, #34d399 30%, transparent); }
.next-step .next-ic.purple { background: color-mix(in oklab, #a78bfa 14%, transparent); color: #a78bfa; border: 1px solid color-mix(in oklab, #a78bfa 30%, transparent); }
.next-step b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.next-step p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; }

/* Photo mobile preview */
.phm-preview { width: 100%; aspect-ratio: 1; border-radius: var(--r-lg); background: var(--paper-2); border: 1.5px dashed var(--line-2); display: grid; place-items: center; overflow: hidden; }

/* Onboarding status progress dots */
.ob-status-progress { display: flex; align-items: center; gap: 4px; max-width: 360px; margin: 14px auto 0; justify-content: center; }
.ob-step-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--ink-faint); flex: none; }
.ob-step-dot.done { background: #34d399; color: #062d1c; border-color: #34d399; }
.ob-step-dot.current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 18%, transparent); width: 32px; height: 32px; font-size: 13px; }
.ob-step-line { flex: 1; height: 2px; background: var(--line-2); min-width: 14px; }
.ob-step-line.done { background: #34d399; }

/* Cancellation rows in charte */
.cancel-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); background: var(--paper-2); }
.cancel-row:last-child { border-bottom: 0; }
.cancel-row span:last-child { font-family: var(--font-mono); font-weight: 700; color: var(--ink); white-space: nowrap; }
.cancel-row .ok { color: #6ee7b7; }
.cancel-row.warn { background: color-mix(in oklab, #e0625c 8%, var(--paper-2)); }
.cancel-row.warn span:last-child { color: #ec8a85; }

/* ============================================================
   ONBOARDING (6-step form)
   ============================================================ */
.ob-progress { margin-top: 28px; display: flex; gap: 6px; flex-wrap: wrap; }
.ob-step {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 8px 13px; border-radius: var(--r-pill);
  background: var(--paper-2); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-faint); font-weight: 600;
}
.ob-step span {
  width: 22px; height: 22px; border-radius: 50%; background: var(--paper-3);
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 11.5px; color: var(--ink-soft);
}
.ob-step.is-current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ob-step.is-current span { background: rgba(255,255,255,.25); color: var(--on-accent); }
.ob-step.is-done { background: color-mix(in oklab, var(--accent) 16%, transparent); color: var(--accent); border-color: color-mix(in oklab, var(--accent) 35%, transparent); }
.ob-step.is-done span::before { content: "✓"; }
.ob-step.is-done span { color: var(--accent); }

.ob-h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; margin-bottom: 8px; }
.ob-lead { color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; }
.ob-stripe-block { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); text-align: center; }
.ob-stripe-block .ob-emoji-big { font-size: 48px; display: block; line-height: 1; margin-bottom: 12px; }
.ob-stripe-block h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.ob-stripe-block p { color: var(--ink-soft); font-size: 14.5px; }

.upload-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper-2); border: 1.5px dashed var(--line-2); border-radius: var(--r);
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: .18s;
}
.upload-card:hover { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, var(--paper-2)); }
.upload-card .upload-emoji { font-size: 28px; line-height: 1; flex: none; }
.upload-card .upload-label { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.upload-card .upload-label b { font-size: 14.5px; color: var(--ink); font-weight: 700; }
.upload-card .upload-label span { font-size: 12.5px; color: var(--ink-faint); }
.upload-card .upload-status { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #f5c97a; background: color-mix(in oklab, #d3a23c 16%, transparent); border: 1px solid color-mix(in oklab, #d3a23c 38%, transparent); padding: 5px 9px; border-radius: var(--r-pill); flex: none; }

.ob-photo-ex { display: flex; gap: 16px; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-top: 14px; }
.ob-photo-ex b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 4px; }
.ob-photo-ex p { font-size: 13px; color: var(--ink-soft); }

.ob-qr { display: flex; gap: 16px; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-top: 14px; }
.ob-qr-mock {
  width: 92px; height: 92px; flex: none; background:
    repeating-linear-gradient(0deg, var(--ink) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px);
  border: 8px solid var(--ink); background-color: var(--paper);
  display: grid; place-items: center; color: var(--accent); font-family: var(--font-mono); font-weight: 700; font-size: 14px;
}
.ob-qr b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 4px; }
.ob-qr p { font-size: 13px; color: var(--ink-soft); }

/* ============================================================
   LEGAL — TOC + readable body
   ============================================================ */
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: 100px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.legal-toc h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); margin-bottom: 10px; font-weight: 700; }
.legal-toc ol { list-style: none; padding: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; padding: 5px 0; font-size: 13.5px; }
.legal-toc li a { color: var(--ink-soft); text-decoration: none; display: inline-flex; gap: 8px; transition: color .15s; }
.legal-toc li a::before { content: counter(toc); font-family: var(--font-mono); color: var(--ink-faint); width: 18px; text-align: right; flex: none; }
.legal-toc li a:hover { color: var(--accent); }
.legal-body section { padding: 18px 0 24px; border-bottom: 1px solid var(--line); }
.legal-body section:last-child { border-bottom: 0; }
.legal-body h2 { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; margin-bottom: 14px; scroll-margin-top: 100px; }
.legal-body p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; margin-bottom: 14px; }
.legal-body p strong { color: var(--ink); }
.legal-body ul { padding-left: 22px; margin: 4px 0 14px; }
.legal-body li { color: var(--ink-soft); font-size: 15px; padding: 5px 0; line-height: 1.6; }
.legal-body a { color: var(--accent); }
.legal-body a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; }
}
.subhero { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.subhero::before {
  content: ""; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 140%; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 50% at 50% 50%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 70%);
  filter: blur(20px);
}
.subhero > * { position: relative; z-index: 1; }
.subhero h1 { font-family: var(--font-display); font-size: clamp(26px, 6vw, 76px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.subhero .lead { margin-top: 22px; font-size: clamp(17px, 1.8vw, 21px); max-width: 60ch; }
.subhero .crumb { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 22px; }
.subhero .crumb::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.subhero .crumb a { color: var(--ink-faint); transition: color .15s; }
.subhero .crumb a:hover { color: var(--ink); }

/* Mobile menu groups */
.mobile-menu .mm-scroll { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; }
.mobile-menu .mm-group {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-faint); padding: 22px 0 8px; border: 0;
}
.mobile-menu .mm-link { font-family: var(--font-display); font-weight: 600; font-size: 18px; padding: 10px 0; border-bottom: 0; color: var(--on-dark); transition: color .15s; }
.mobile-menu .mm-link:hover { color: var(--accent); }
.mobile-menu .mm-link.is-active { color: var(--accent); }

/* ============================================================
   PAGE BUILDING BLOCKS (cards-grid, content-prose, etc.)
   ============================================================ */
.prose { max-width: 70ch; font-size: 17px; }
.prose p { margin-bottom: 18px; color: var(--ink-soft); }
.prose p strong { color: var(--ink); }
.prose h2 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.02em; margin: 40px 0 18px; }
.prose h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; margin: 26px 0 12px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; color: var(--ink-soft); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Generic 2 / 4-column cards-grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1040px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid-4 { grid-template-columns: 1fr; } }

.tile {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s, background .22s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--line-2); }
.tile .tile-emoji { font-size: 30px; line-height: 1; }
.tile h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.tile p { font-size: 15px; color: var(--ink-soft); }
.tile .tag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-strong); }

/* Form pages */
.form-shell {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); padding: clamp(28px, 4vw, 48px); max-width: 520px; margin: 0 auto;
}
.form-row { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-row label { font-weight: 600; font-size: 14px; color: var(--ink); }
.form-row .form-hint { font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-mono); }
.form-row .input, .form-row select, .form-row textarea {
  background: var(--paper); border: 1.5px solid var(--line-2); border-radius: var(--r);
  padding: 14px 16px; font-family: var(--font-body); font-size: 15.5px; color: var(--ink);
  transition: border-color .18s, box-shadow .18s, background .18s; width: 100%;
}
.form-row .input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 24%, transparent);
}
.form-row.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row.split label { grid-column: 1 / -1; }
@media (max-width: 460px) { .form-row.split { grid-template-columns: 1fr; } }
.form-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.form-actions .btn { width: 100%; }
.form-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--ink-soft); }
.form-foot a { color: var(--accent); font-weight: 600; }

/* Status / steps timeline */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 38px; }
.timeline::before { content: ""; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.t-item { position: relative; padding: 18px 0; }
.t-item::before {
  content: ""; position: absolute; left: -32px; top: 26px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line-2);
}
.t-item.done::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 18%, transparent); }
.t-item.current::before { background: var(--paper); border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 24%, transparent); }
.t-item.current::after {
  content: ""; position: absolute; left: -32px; top: 26px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent);
  animation: ping 1.8s ease-out infinite; pointer-events: none;
}
@keyframes ping { 0% { transform: scale(1); opacity: .8 } 100% { transform: scale(2.4); opacity: 0 } }
.t-item h3 { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em; margin-bottom: 4px; }
.t-item p { color: var(--ink-soft); font-size: 15px; }
.t-item .t-time { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }

/* ============================================================
   PREMIUM BACKGROUND DEPTH (dark themes)
   Fixed dot-grid + soft spotlights behind all content.
   ============================================================ */
body.theme-dark::before, body.theme-green::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at 80% 6%, color-mix(in oklab, var(--accent) 15%, transparent), transparent 40%),
    radial-gradient(circle at 4% 84%, color-mix(in oklab, var(--accent) 9%, transparent), transparent 44%),
    radial-gradient(color-mix(in oklab, white 4.5%, transparent) 1px, transparent 1.5px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  background-position: 0 0, 0 0, 0 0;
}
body.theme-green::before {
  background-image:
    radial-gradient(circle at 80% 6%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 40%),
    radial-gradient(circle at 4% 84%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 44%),
    radial-gradient(color-mix(in oklab, white 5%, transparent) 1px, transparent 1.5px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(36px, 5vw, 70px); padding-bottom: clamp(48px, 6vw, 96px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -120px; right: -6%; width: 70%; height: 120%; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 70% 35%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 70%);
  filter: blur(20px); opacity: .9;
}
.hero > * { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero-badges { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600;
  padding: 8px 14px; border-radius: var(--r-pill); background: var(--paper-2); border: 1px solid var(--line);
  color: var(--ink-soft); white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: oklch(0.68 0.16 150); box-shadow: 0 0 0 3px color-mix(in oklab, oklch(0.68 0.16 150) 25%, transparent); }
.hero h1 { font-size: clamp(28px, 6.6vw, 88px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.96; }
.hero h1 .swipe { position: relative; white-space: nowrap; color: var(--accent); }
.hero h1 .swipe::after {
  content:""; position:absolute; left:-2px; right:-4px; bottom: .08em; height: .34em; z-index:-1;
  background: var(--accent-tint-2); border-radius: 6px; transform: rotate(-1.2deg);
}
.hero p.lead { margin-top: 26px; font-size: clamp(17px, 1.7vw, 21px); }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust { margin-top: 30px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-soft); }
.hero-trust .ck { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.hero-trust .ck svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--ink-faint); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-photo { aspect-ratio: 4/5; width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-lg); }
.float-card {
  position: absolute; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh); padding: 14px 18px; display: flex; flex-direction: column; gap: 2px;
}
.float-card .fc-num { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.03em; line-height: 1; }
.float-card .fc-lab { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }
.float-card.fc-1 { top: 22px; left: -26px; }
.float-card.fc-1 .fc-num { color: var(--accent); }
.float-card.fc-2 { bottom: 64px; right: -28px; }
.float-card.fc-3 { bottom: -22px; left: 28px; flex-direction: row; align-items: center; gap: 11px; }
.float-card.fc-3 .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-tint); color: var(--accent-strong); display:grid; place-items:center; flex:none; }
.float-card.fc-3 .ic svg { width: 20px; height: 20px; }

/* logos / partners marquee strip */
.trust-strip { border-block: 1px solid var(--line); background: var(--paper-2); }
.trust-strip .wrap { display: flex; align-items: center; gap: 30px; padding-block: 20px; flex-wrap: wrap; justify-content: center; }
.trust-strip .ts-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
.trust-strip .ts-zones { display: flex; gap: 10px; flex-wrap: wrap; }
.zone-chip { font-family: var(--font-mono); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line-2); color: var(--ink-soft); }

/* ============================================================
   GENERIC CARD GRIDS
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px;
  display: flex; flex-direction: column; gap: 14px; transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--line-2); }
.card .ic-chip { width: 52px; height: 52px; border-radius: 15px; background: var(--accent-tint); color: var(--accent-strong); display: grid; place-items: center; flex: none; }
.card .ic-chip svg { width: 26px; height: 26px; }
.card h3 { font-size: 22px; letter-spacing: -0.02em; }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.dark .card { background: var(--dark-2); border-color: var(--dark-line); color: var(--on-dark); }
.dark .card h3 { color: var(--on-dark); }
.dark .card p { color: var(--on-dark-soft); }
.dark .card .ic-chip { background: color-mix(in oklab, var(--accent) 22%, transparent); color: var(--accent); }

/* Revenue cards (big numbers) */
.rev-card { position: relative; overflow: hidden; }
.rev-card .rev-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rev-tag { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.rev-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 5vw, 60px); letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.rev-num span { color: var(--accent); }
.rev-card .rev-sub { font-size: 14px; color: var(--ink-faint); font-family: var(--font-mono); line-height: 1.6; }
.rev-card .rev-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; }

/* ============================================================
   DARK SECTION
   ============================================================ */
.dark { background: var(--dark); color: var(--on-dark); }
.dark.section { isolation: isolate; }
.dark h2, .dark h3 { color: var(--on-dark); }

/* ============================================================
   SPECIALISATION (split)
   ============================================================ */
.split { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(34px, 5vw, 72px); align-items: center; }
.split .ph { aspect-ratio: 5/6; }
.split .slot-img { aspect-ratio: 5/6; width: 100%; height: auto; display: block; box-shadow: var(--sh-lg); border-radius: 26px; }
/* Make the empty drop-zone visible on dark themes */
body.theme-dark .slot-img, body.theme-green .slot-img { color: color-mix(in oklab, white 78%, transparent); }
body.theme-dark .slot-img::part(frame), body.theme-green .slot-img::part(frame) { background: color-mix(in oklab, white 5%, transparent); }
body.theme-dark .slot-img::part(ring), body.theme-green .slot-img::part(ring) { border-color: color-mix(in oklab, white 30%, transparent); }
.feat-list { display: flex; flex-direction: column; gap: 8px; }
.feat-row { display: flex; gap: 18px; padding: 22px; border-radius: var(--r); transition: background .2s; }
.feat-row:hover { background: var(--paper-2); }
.feat-row .ic-chip { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-tint); color: var(--accent-strong); display:grid; place-items:center; flex:none; }
.feat-row .ic-chip svg { width: 23px; height: 23px; }
.feat-row h3 { font-size: 19px; margin-bottom: 5px; }
.feat-row p { color: var(--ink-soft); font-size: 15px; }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.step { position: relative; display: flex; flex-direction: column; gap: 16px; }
.step .step-n {
  width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 800; font-size: 24px; display: grid; place-items: center; flex: none;
  position: relative; z-index: 2;
}
.step:nth-child(2) .step-n { background: var(--accent); color: var(--on-accent); }
.steps .step-line { position: absolute; top: 28px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px); z-index: 1; }
.step h3 { font-size: 22px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* ============================================================
   COMMISSION (accent band)
   ============================================================ */
.commission { background: var(--ink); color: var(--on-dark); border-radius: var(--r-xl); padding: clamp(40px, 5vw, 72px); }
.comm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.comm-cell { padding: 30px; border-radius: var(--r-lg); background: color-mix(in oklab, white 5%, transparent); border: 1px solid var(--dark-line); }
.comm-cell.feature { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.comm-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(54px, 7vw, 86px); letter-spacing: -0.05em; line-height: .9; }
.comm-cell .comm-lab { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; margin-top: 6px; }
.comm-cell p { margin-top: 16px; font-size: 15px; opacity: .9; }
.comm-cell.feature p { opacity: 1; }

/* ============================================================
   SIMULATOR
   ============================================================ */
.sim-shell { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-lg); overflow: hidden; }
.sim-grid { display: grid; grid-template-columns: 1fr 1.06fr; }
.sim-controls { padding: clamp(32px, 4vw, 52px); display: flex; flex-direction: column; gap: 30px; }
.sim-field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.sim-field label .hint { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); font-weight: 400; margin-left: 8px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; }
.seg button {
  padding: 12px 8px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--ink-soft);
  transition: background .18s, color .18s, box-shadow .18s; position: relative;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: var(--sh-sm); }
.sim-extra { display: flex; flex-direction: column; gap: 14px; }
.sim-veh { display: flex; gap: 8px; }
.sim-veh button { flex: 1; padding: 14px 10px; border-radius: var(--r); border: 1.5px solid var(--line-2); text-align: left; transition: .18s; }
.sim-veh button .vt { font-weight: 700; font-size: 15px; display: block; }
.sim-veh button .vd { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.sim-veh button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); color: var(--ink); }
.sim-veh button[aria-pressed="true"] .vt { color: var(--ink); }
.sim-veh button[aria-pressed="true"] .vd { color: var(--ink-soft); }

.sim-out { background: var(--dark); color: var(--on-dark); padding: clamp(32px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 8px; position: relative; }
.sim-out .so-lab { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark-soft); }
.sim-out .so-amount { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.05em; line-height: .95; font-size: clamp(64px, 9vw, 104px); color: var(--accent); }
.sim-out .so-amount .cur { font-size: .5em; vertical-align: 0.18em; margin-left: 4px; color: var(--on-dark); }
.sim-out .so-period { font-size: 15px; color: var(--on-dark-soft); margin-top: 2px; }
.sim-breakdown { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.sim-row { display: flex; align-items: center; justify-content: space-between; font-size: 14.5px; padding-bottom: 12px; border-bottom: 1px solid var(--dark-line); }
.sim-row:last-child { border-bottom: none; padding-bottom: 0; }
.sim-row .k { color: var(--on-dark-soft); display: inline-flex; gap: 8px; align-items: center; }
.sim-row .v { font-family: var(--font-mono); font-weight: 700; }
.sim-row .v.neg { color: oklch(0.72 0.13 35); }
.sim-cta { margin-top: 28px; }
.sim-disclaimer { font-size: 12px; color: var(--on-dark-soft); margin-top: 18px; opacity: .8; }

/* ============================================================
   CONDITIONS
   ============================================================ */
.cond-card { display: flex; gap: 18px; align-items: flex-start; }
.cond-card .ck-ic { width: 50px; height: 50px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); color: var(--accent-strong); display:grid; place-items:center; flex:none; }
.cond-card .ck-ic svg { width: 24px; height: 24px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(34px, 5vw, 64px); align-items: start; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; text-align: left; padding: 24px 4px; font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.9vw, 21px); letter-spacing: -0.01em; color: var(--ink); }
.faq-q .pm { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; position: relative; transition: .25s; }
.faq-q .pm::before, .faq-q .pm::after { content:""; position:absolute; inset:0; margin:auto; background: var(--ink); transition: .25s; }
.faq-q .pm::before { width: 12px; height: 2px; } .faq-q .pm::after { width: 2px; height: 12px; }
.faq-item.open .faq-q .pm { background: var(--accent); border-color: var(--accent); }
.faq-item.open .faq-q .pm::before, .faq-item.open .faq-q .pm::after { background: var(--on-accent); }
.faq-item.open .faq-q .pm::after { transform: rotate(90deg); opacity: 0; }
.faq-a { overflow: hidden; height: 0; transition: height .3s var(--ease); }
.faq-a-inner { padding: 0 4px 26px; color: var(--ink-soft); font-size: 15.5px; max-width: 64ch; }
.faq-a-inner strong { color: var(--ink); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { background: var(--accent); color: var(--on-accent); border-radius: var(--r-xl); padding: clamp(48px, 6vw, 92px); text-align: center; position: relative; overflow: hidden; }
.final h2 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -0.04em; max-width: 16ch; margin-inline: auto; }
.final p { font-size: clamp(17px, 1.8vw, 20px); margin-top: 18px; max-width: 50ch; margin-inline: auto; color: color-mix(in oklab, var(--on-accent) 82%, transparent); }
.final .btn-primary { background: var(--ink); color: var(--paper); margin-top: 36px; }
.final .btn-primary:hover { background: #000; }
.final .grain { position: absolute; inset: 0; opacity: .08; mix-blend-mode: multiply; pointer-events: none;
  background-image: radial-gradient(circle at 20% 30%, currentColor 1px, transparent 1.5px); background-size: 22px 22px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: var(--on-dark-soft); padding-top: 72px; padding-bottom: 36px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--dark-line); }
.footer .f-brand .brand { color: var(--on-dark); margin-bottom: 16px; }
.footer .f-brand .brand .logo-mark { background: var(--paper); color: var(--ink); }
.footer .f-brand .brand .logo-mark::after { border-color: var(--dark); }
.footer .f-brand p { font-size: 14.5px; max-width: 34ch; }
.footer .f-app { margin-top: 22px; }
.footer h4 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-soft); margin-bottom: 18px; font-weight: 700; }
.footer .f-col a { display: block; padding: 7px 0; color: var(--on-dark-soft); font-size: 14.5px; transition: color .15s; }
.footer .f-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 26px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--dark-line); display:grid; place-items:center; color: var(--on-dark); transition: .18s; }
.footer-bottom .socials a:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.footer-bottom .socials a svg { width: 18px; height: 18px; }

/* App badge (original, non-brand) */
.app-badge { display: inline-flex; align-items: center; gap: 11px; background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 14px; transition: .2s; border: 1px solid color-mix(in oklab, white 14%, transparent); }
.app-badge:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.app-badge svg { width: 26px; height: 26px; flex: none; }
.app-badge .ab-t { display: flex; flex-direction: column; line-height: 1.1; }
.app-badge .ab-t small { font-size: 10px; opacity: .75; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.app-badge .ab-t b { font-size: 16px; font-weight: 700; font-family: var(--font-display); }
.dark .app-badge, .footer .app-badge { background: var(--paper); color: var(--ink); border-color: var(--line); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px) scale(.985); filter: blur(3px); transition: opacity .75s var(--ease), transform .75s var(--ease), filter .75s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee-track { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 8px auto 0; }
  .float-card.fc-1 { left: 8px; } .float-card.fc-2 { right: 8px; }
  .split { grid-template-columns: 1fr; }
  .split .order-img { order: -1; max-width: 480px; }
  .faq-wrap { grid-template-columns: 1fr; }
  .sim-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .nav-cta .link-login { display: none; }
}
@media (max-width: 760px) {
  .grid-3, .grid-2, .steps, .comm-grid { grid-template-columns: 1fr; }
  .steps .step-line { display: none; }
  .steps .step-truck { display: none; }
  .seg { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4,1fr); display: grid; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding-block: clamp(54px, 12vw, 80px); }
  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
  .float-card { display: none; }
}
@media (max-width: 460px) {
  .wrap { padding-inline: 20px; }
  .float-card { padding: 11px 14px; } .float-card .fc-num { font-size: 24px; }
  .hero-actions .btn { width: 100%; }
}

/* ============================================================
   EMOJI ICONS (replace line-icons)
   ============================================================ */
.emoji {
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",system-ui,sans-serif;
  font-style: normal; font-weight: 400; line-height: 1; display: inline-block;
}
.ic-chip .emoji { font-size: 26px; }
.feat-row .ic-chip .emoji { font-size: 23px; }
.ck-ic .emoji { font-size: 24px; }
.float-card .ic .emoji { font-size: 20px; }
.step-truck .emoji { font-size: 21px; }
.hero-trust .ck .emoji { font-size: 15px; }
.sim-row .k .emoji { font-size: 15px; }

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 90;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 10px color-mix(in oklab, var(--accent) 60%, transparent);
  transition: width .08s linear; pointer-events: none;
}

/* ============================================================
   PHONE MOCKUP (hero)
   ============================================================ */
.phone {
  position: relative; z-index: 1; width: min(100%, 360px); margin-inline: auto;
  aspect-ratio: 360 / 720; background: #0c0a08; border-radius: 46px;
  padding: 11px; box-shadow: var(--sh-lg), 0 0 0 2px color-mix(in oklab, white 8%, transparent) inset;
  border: 1px solid color-mix(in oklab, white 6%, transparent);
}
.phone::before {
  content: ""; position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 116px; height: 26px; background: #0c0a08; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone-screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  display: flex; flex-direction: column; padding: 14px 16px 18px;
}
.ph-status { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; padding: 4px 6px 12px; color: var(--ink); }
.ph-status-r { display: inline-flex; gap: 5px; } .ph-status-r .emoji { font-size: 12px; }
.ph-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 14px; }
.ph-hi { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.ph-sub { font-size: 12.5px; color: var(--ink-faint); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.ph-online { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 24%, transparent); }
@media (prefers-reduced-motion: no-preference) { .ph-online { animation: glowPulse 2.6s ease-in-out infinite; } }

.ph-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 18px;
  box-shadow: var(--sh); display: flex; flex-direction: column; gap: 15px; margin-top: auto;
}
.ph-card-top { display: flex; align-items: center; justify-content: space-between; }
.ph-tag { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-strong); background: var(--accent-tint); padding: 6px 11px; border-radius: var(--r-pill); }
.ph-timer { position: relative; width: 40px; height: 40px; display: grid; place-items: center; }
.ph-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ph-timer circle { fill: none; stroke-width: 3; }
.ph-timer .t-bg { stroke: var(--line); }
.ph-timer .t-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 94.2; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.ph-timer b { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--ink); }
.ph-route { display: flex; flex-direction: column; gap: 12px; position: relative; }
.ph-route::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: 16px; width: 2px; background: var(--line-2); }
.ph-stop { display: flex; gap: 12px; align-items: flex-start; }
.ph-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-top: 3px; z-index: 1; }
.ph-dot.pick { background: var(--ink); box-shadow: 0 0 0 3px var(--paper); }
.ph-dot.drop { background: var(--accent); box-shadow: 0 0 0 3px var(--paper); }
.ph-stop b { display: block; font-size: 13px; }
.ph-stop span { font-size: 12.5px; color: var(--ink-faint); }
.ph-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.ph-item { font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--paper-2); border: 1px solid var(--line); padding: 6px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.ph-pay { display: flex; align-items: baseline; justify-content: space-between; padding: 13px 15px; background: var(--ink); border-radius: 15px; }
.ph-pay-lab { font-size: 12.5px; color: var(--on-dark-soft); }
.ph-pay-amt { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; color: var(--accent); }
.ph-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 9px; }
.ph-refuse { padding: 13px; border-radius: 13px; border: 1.5px solid var(--line-2); font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.ph-accept { padding: 13px; border-radius: 13px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--accent) 70%, transparent); }

/* float cards repositioned over the phone */
.hero-visual .float-card.fc-1 { top: 86px; left: -24px; }
.hero-visual .float-card.fc-3 { bottom: 40px; right: -30px; }

/* ============================================================
   MOBILE STICKY CTA
   ============================================================ */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none;
  gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line);
  transform: translateY(120%); transition: transform .3s var(--ease);
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { flex: 1; }
.mobile-cta .app-badge { padding: 11px 14px; flex: none; }
.mobile-cta .app-badge svg { width: 22px; height: 22px; }

/* ============================================================
   BRAND LOGO + DARK NAV TEXT
   ============================================================ */
.brand-logo { height: 30px; width: auto; display: block; }
.footer .brand-logo { height: 34px; }
.mobile-menu .brand-logo { height: 28px; }

.nav .nav-links a { color: var(--on-dark-soft); }
.nav .nav-links a:hover { color: var(--on-dark); background: color-mix(in oklab, white 10%, transparent); }
.nav .nav-cta .link-login { color: var(--on-dark); }
.nav .nav-cta .link-login:hover { background: color-mix(in oklab, white 10%, transparent); }
/* Theme dark : burger conserve son fond #0e1320 (deja sombre). Override
   inutile, les anciens styles .bl sont supprimes (plus de spans). */

.nav-app { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: var(--r-pill); border: 1.5px solid var(--dark-line); color: var(--on-dark); font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background .18s, border-color .18s, transform .18s; }
.nav-app svg { width: 17px; height: 17px; flex: none; }
.nav-app .na-store { font-family: var(--font-display); letter-spacing: -0.01em; }
.nav-app:hover { background: color-mix(in oklab, white 10%, transparent); border-color: color-mix(in oklab, white 35%, transparent); transform: translateY(-1px); }
.mobile-menu .app-badge { background: var(--paper); color: var(--ink); border-color: var(--line); width: 100%; }
@media (max-width: 980px) { .nav-app { display: none; } }

/* ============================================================
   HERO — APP BADGE + GLOW
   ============================================================ */
.hero-app { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-app-note { font-size: 13.5px; color: var(--ink-faint); max-width: 20ch; line-height: 1.4; }
.app-badge-lg { padding: 13px 22px; }
.app-badge-lg svg { width: 30px; height: 30px; }
.app-badge-lg .ab-t b { font-size: 18px; }

.hero-visual { isolation: isolate; }
.hero-visual::before {
  content: ""; position: absolute; inset: -14% -14% -8% -8%; z-index: 0;
  background: radial-gradient(circle at 62% 42%, color-mix(in oklab, var(--accent) 36%, transparent), transparent 64%);
  filter: blur(36px); pointer-events: none;
}
.hero-photo { position: relative; z-index: 1; }
.float-card { z-index: 2; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { overflow: hidden; background: var(--dark); border-block: 1px solid var(--dark-line); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2.2vw, 28px); letter-spacing: -0.02em; color: var(--on-dark); padding: 15px 0; display: inline-flex; align-items: center; white-space: nowrap; }
.marquee-item::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin: 0 30px; flex: none; }

/* ============================================================
   STEPS — DRIVING TRUCK
   ============================================================ */
.step-truck { position: absolute; top: 8px; left: 6%; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; z-index: 3; box-shadow: var(--sh); transition: left 2.4s var(--ease); }
.step-truck svg { width: 22px; height: 22px; }
.steps.drive .step-truck { left: calc(92% - 40px); }

/* ============================================================
   BUTTON SHINE
   ============================================================ */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(100deg, transparent, color-mix(in oklab, white 45%, transparent), transparent);
}
.btn:hover::after { animation: shine .75s var(--ease); }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes floatBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatBob2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(9px); } }
@keyframes glowPulse { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: .85; transform: scale(1.07); } }
@keyframes drawSwipe { from { transform: rotate(-1.2deg) scaleX(0); } to { transform: rotate(-1.2deg) scaleX(1); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shine { from { left: -130%; } to { left: 160%; } }

/* ============================================================
   MOTION (only when allowed)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { opacity: 0; animation: fadeUp .7s var(--ease) both; }
  .hero-copy > *:nth-child(1) { animation-delay: .05s; }
  .hero-copy > *:nth-child(2) { animation-delay: .13s; }
  .hero-copy > *:nth-child(3) { animation-delay: .21s; }
  .hero-copy > *:nth-child(4) { animation-delay: .29s; }
  .hero-copy > *:nth-child(5) { animation-delay: .37s; }
  .hero-copy > *:nth-child(6) { animation-delay: .45s; }
  .hero-copy > *:nth-child(7) { animation-delay: .53s; }
  .float-card.fc-1 { animation: floatBob 6s ease-in-out infinite; }
  .float-card.fc-2 { animation: floatBob2 7s ease-in-out infinite; }
  .float-card.fc-3 { animation: floatBob 6.5s ease-in-out infinite .4s; }
  .hero-visual::before { animation: glowPulse 8s ease-in-out infinite; }
  .hero h1 .swipe::after { transform-origin: left center; animation: drawSwipe .7s var(--ease) .5s both; }
}


/* ============================================================
   SHARED SUB-PAGE STYLES (auth / dashboard / aide / conseils / fiscalité / équipement)
   ============================================================ */

/* PAGE HERO (smaller than landing hero, used on sub-pages) */
.page-hero { padding-block: clamp(56px, 8vw, 100px); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; top: -20%; left: 30%; width: 60%; height: 140%; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 70%);
  filter: blur(40px); opacity: .9;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 6vw, 72px); letter-spacing: -0.04em; line-height: 1.02; max-width: 18ch; }
.page-hero p.lead { margin-top: 22px; max-width: 56ch; }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center p.lead { margin-inline: auto; }

/* AUTH PAGE */
.auth-page { padding-block: clamp(60px, 8vw, 100px); }
.auth-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.auth-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(36px, 4vw, 56px); box-shadow: var(--sh-lg); }
.auth-card h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.5vw, 48px); letter-spacing: -0.03em; line-height: 1.02; }
.auth-card .lead { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 12px;
  padding: 13px 15px; transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: color-mix(in oklab, var(--accent) 6%, var(--paper));
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent);
}
.field-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.field-row a { color: var(--accent); font-weight: 600; }
.field-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.checkbox { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.checkbox input { appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 5px; display: grid; place-items: center; background: var(--paper); transition: .18s; }
.checkbox input:checked { background: var(--accent); border-color: var(--accent); }
.checkbox input:checked::after { content: ""; width: 5px; height: 9px; border-right: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(45deg) translate(-1px, -1px); }
.auth-divider { display: flex; align-items: center; gap: 14px; margin-block: 26px; color: var(--ink-faint); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-aside { display: flex; flex-direction: column; gap: 18px; max-width: 440px; }
.auth-aside h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }
.auth-aside p { color: var(--ink-soft); font-size: 16px; }
.auth-points { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.auth-points .pt { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); }
.auth-points .pt .emoji { font-size: 22px; flex: none; }
.auth-points .pt b { display: block; font-size: 15px; margin-bottom: 3px; }
.auth-points .pt span { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 980px) {
  .auth-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .auth-aside { display: none; }
}

/* DASHBOARD */
.dash-shell { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding-block: clamp(28px, 3vw, 40px); }
.dash-sidebar { position: sticky; top: 92px; align-self: start; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 18px; display: flex; flex-direction: column; gap: 4px; }
.dash-side-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 18px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
/* Override sidebar : avatar 44x44 dans .dash-side-head uniquement (sinon
   ecrase l'avatar 64x64 du header tableau-de-bord). */
.dash-side-head .dash-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 50%, black)); display: grid; place-items: center; color: var(--on-accent); font-weight: 800; font-size: 16px; flex: none; box-shadow: none; }
.dash-side-head .who b { display: block; font-size: 15px; }
.dash-side-head .who span { font-size: 12px; color: var(--ink-faint); }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; font-weight: 500; font-size: 15px; color: var(--ink-soft); transition: background .15s, color .15s; }
.dash-nav a:hover { background: color-mix(in oklab, var(--accent) 10%, transparent); color: var(--ink); }
.dash-nav a.active { background: var(--accent-tint); color: var(--ink); font-weight: 600; }
.dash-nav a .ic { width: 22px; display: inline-flex; justify-content: center; font-size: 17px; }

.dash-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.dash-greeting { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.dash-greeting h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.02em; line-height: 1.05; }
.dash-greeting .sub { color: var(--ink-soft); margin-top: 6px; font-size: 15px; }
.online-toggle { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-pill); cursor: pointer; user-select: none; transition: .18s; }
.online-toggle:hover { border-color: var(--line-2); }
.online-toggle .sw { width: 38px; height: 22px; background: var(--paper-3); border-radius: 999px; position: relative; transition: background .2s; }
.online-toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--paper); border-radius: 50%; transition: transform .2s; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.online-toggle[data-on="true"] .sw { background: var(--accent); }
.online-toggle[data-on="true"] .sw::after { transform: translateX(16px); background: var(--on-accent); }
.online-toggle b { font-size: 14.5px; font-weight: 600; }

.dash-row { display: grid; gap: 22px; }
.dash-row.split { grid-template-columns: 1.4fr 1fr; }
.dash-row.stats { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 14px; }
  .dash-side-head { width: 100%; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; }
  .dash-nav a { padding: 9px 12px; font-size: 14px; }
  .dash-row.split, .dash-row.stats { grid-template-columns: 1fr; }
}

.stat-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: transform .18s; }
.stat-card:hover { transform: translateY(-3px); }
.stat-card .lab { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.stat-card .val { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1; }
.stat-card .val .cur { color: var(--accent); }
.stat-card .delta { font-size: 13px; color: var(--ink-soft); margin-top: 2px; display: inline-flex; align-items: center; gap: 6px; }
.stat-card .delta.up { color: var(--accent); }

.dash-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.dash-card-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.dash-card-head .more { color: var(--accent); font-weight: 600; font-size: 14px; }

/* Weekly bar chart */
.chart { display: flex; align-items: flex-end; gap: 12px; height: 160px; padding: 12px 0 0; border-bottom: 1px solid var(--line); }
.chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chart .bar .b { width: 100%; max-width: 36px; background: linear-gradient(180deg, var(--accent), color-mix(in oklab, var(--accent) 60%, black)); border-radius: 8px 8px 0 0; min-height: 6px; transition: height .6s var(--ease); }
.chart .bar.muted .b { background: var(--paper-3); }
.chart .bar .d { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); text-transform: uppercase; }

/* Mini mission cards in dashboard */
.mini-mission { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); transition: border-color .18s; }
.mini-mission + .mini-mission { margin-top: 10px; }
.mini-mission:hover { border-color: var(--accent); }
.mini-mission .mm-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-tint); display: grid; place-items: center; font-size: 20px; }
.mini-mission .mm-info b { display: block; font-size: 15px; }
.mini-mission .mm-info span { font-size: 12.5px; color: var(--ink-faint); display: block; margin-top: 2px; }
.mini-mission .mm-amt { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--accent); letter-spacing: -0.02em; }

/* Profile completion */
.completion { display: flex; flex-direction: column; gap: 12px; }
.completion .row { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.completion .row .ok { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 13px; flex: none; }
.completion .row .ko { width: 22px; height: 22px; border-radius: 50%; background: var(--paper-3); color: var(--ink-faint); display: grid; place-items: center; font-size: 13px; flex: none; border: 1px dashed var(--line-2); }
.completion-bar { height: 8px; background: var(--paper-3); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.completion-bar > div { height: 100%; background: var(--accent); border-radius: 999px; transition: width .8s var(--ease); }

/* Top utility bar (dashboard) — replaces standard nav */
.top-bar { position: sticky; top: 0; z-index: 60; background: color-mix(in oklab, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); }
.top-bar-inner { display: flex; align-items: center; gap: 18px; height: 72px; padding-inline: 28px; max-width: 1320px; margin-inline: auto; }
.top-bar .brand-logo { height: 30px; }
.top-bar .top-search { flex: 1; max-width: 420px; position: relative; }
.top-bar .top-search input { width: 100%; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 11px 16px 11px 42px; font: inherit; color: var(--ink); }
.top-bar .top-search input:focus { outline: none; border-color: var(--accent); }
.top-bar .top-search::before { content: "🔍"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .6; font-size: 14px; pointer-events: none; }
.top-bar .top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.top-bar .top-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 17px; cursor: pointer; transition: .18s; }
.top-bar .top-icon:hover { background: var(--paper-3); }

/* AIDE — search & categories */
.help-search { position: relative; max-width: 640px; margin: 30px auto 0; }
.help-search input { width: 100%; background: var(--paper-2); border: 1.5px solid var(--line-2); border-radius: var(--r-pill); padding: 18px 22px 18px 56px; font: inherit; font-size: 16.5px; color: var(--ink); box-shadow: var(--sh); }
.help-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent), var(--sh); }
.help-search::before { content: "🔍"; position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-size: 18px; opacity: .65; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: transform .18s, border-color .18s; }
.cat-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.cat-card .ic-chip { width: 50px; height: 50px; border-radius: 14px; background: var(--accent-tint); display: grid; place-items: center; font-size: 24px; }
.cat-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.cat-card p { color: var(--ink-soft); font-size: 14.5px; }
.cat-card .count { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); margin-top: auto; padding-top: 8px; }

.contact-block { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .contact-block { grid-template-columns: 1fr; } }
.contact-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.contact-card .ic-chip { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-tint); display: grid; place-items: center; font-size: 22px; }
.contact-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.contact-card p { color: var(--ink-soft); font-size: 14.5px; }
.contact-card a.btn { align-self: flex-start; margin-top: auto; }

/* CONSEILS — article cards */
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .article-grid { grid-template-columns: 1fr; } }
.article { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.article:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.article .art-img { aspect-ratio: 16/9; background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 18%, var(--paper-3)), var(--paper-3)); display: grid; place-items: center; font-size: 72px; opacity: .9; }
.article .art-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article .art-meta { display: inline-flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.article .art-meta .tag { color: var(--accent); font-weight: 700; }
.article h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.article p { color: var(--ink-soft); font-size: 14.5px; }
.article .art-foot { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; font-size: 14px; }

/* FISCALITÉ — calc + breakdown */
.fisc-calc { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 760px) { .fisc-calc { grid-template-columns: 1fr; } }
.fisc-calc h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 16px; }
.fisc-output .o-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fisc-output .o-row.tot { border-bottom: none; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--accent); padding-top: 18px; }
.fisc-output .o-row .k { color: var(--ink-soft); }
.fisc-output .o-row .v { font-family: var(--font-mono); font-weight: 700; }

.range { width: 100%; -webkit-appearance: none; appearance: none; background: transparent; }
.range::-webkit-slider-runnable-track { height: 6px; background: var(--paper-3); border-radius: 999px; }
.range::-moz-range-track { height: 6px; background: var(--paper-3); border-radius: 999px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; background: var(--accent); border-radius: 50%; margin-top: -8px; box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: pointer; }
.range::-moz-range-thumb { width: 22px; height: 22px; background: var(--accent); border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: pointer; border: none; }

/* ÉQUIPEMENT — gear cards */
.gear-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .gear-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gear-grid { grid-template-columns: 1fr; } }
.gear { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: transform .18s, border-color .18s; }
.gear:hover { transform: translateY(-4px); border-color: var(--accent); }
.gear .gear-ic { width: 64px; height: 64px; border-radius: 16px; background: var(--accent-tint); display: grid; place-items: center; font-size: 32px; margin-bottom: 6px; }
.gear h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.gear p { color: var(--ink-soft); font-size: 14px; flex: 1; }
.gear .price { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.gear .price b { color: var(--ink); font-size: 15px; font-weight: 700; }
.gear .essential { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--accent-tint-2); color: var(--ink); text-transform: uppercase; letter-spacing: .06em; align-self: flex-start; }

/* DOC PAGE — long-form sections */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
@media (max-width: 980px) { .doc { grid-template-columns: 1fr; } .doc-toc { position: static; } }
.doc-toc { position: sticky; top: 96px; align-self: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-2); }
.doc-toc h4 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.doc-toc a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-soft); }
.doc-toc a:hover { background: color-mix(in oklab, var(--accent) 10%, transparent); color: var(--ink); }
.doc-body { display: flex; flex-direction: column; gap: 36px; }
.doc-body h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -0.02em; line-height: 1.1; scroll-margin-top: 92px; }
.doc-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; margin-top: 18px; }
.doc-body p { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin-top: 12px; max-width: 70ch; }
.doc-body ul { margin-top: 12px; padding-left: 22px; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.doc-body ul li { margin-bottom: 6px; }
.doc-body .doc-callout { background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r); padding: 18px 22px; margin-top: 18px; font-size: 15px; color: var(--ink-soft); }
.doc-body .doc-callout b { color: var(--ink); }

/* === Skip-to-content link (visible only on focus) === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm);
  z-index: 9999;
  font-size: 14px;
}

/* === Skeleton loading === */
.skeleton {
  background: linear-gradient(90deg, var(--paper-2) 25%, var(--paper-3) 50%, var(--paper-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 6px;
  color: transparent !important;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === Truck loader (ecran de chargement pages protegees) =================
   Affiche en plein ecran au boot des pages auth. Retire par le JS de
   chaque page apres Guard.requireAuth() OK / check kyc termine. Si la
   page redirige, le loader reste affiche jusqu'au changement de page. */
#truck-loader {
  position: fixed;
  inset: 0;
  background: #080f1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 99999;
}
#truck-loader span {
  font-size: 28px;
  font-weight: 500;
  color: #f0f3fa;
  font-family: system-ui, sans-serif;
}
#truck-loader .tl-spin {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(59,114,240,0.2);
  border-top-color: #3B72F0;
  border-radius: 50%;
  animation: tl-spin .8s linear infinite;
}
@keyframes tl-spin { to { transform: rotate(360deg); } }


/* === Mobile hero font-size override (juin 2026) ============================
   Garde-fou en complement des clamp() : sur les viewports <= 480px, on force
   un h1 hero a 26px max pour eviter tout debordement / wrap moche en cas de
   police custom plus large que prevue. !important pour passer outre les
   declarations inline en HTML. */
@media (max-width: 480px) {
  h1 { font-size: 26px !important; }
  .hero h1, .subhero h1, .page-hero h1 { font-size: 26px !important; }
}

