/* AskoDev design tokens — the single source of truth for every AskoDev app.
 *
 * Identity (approved in HireGenius): obsidian background, indigo primary, cyber-lime accent,
 * Urbanist for text and display, Orbitron for the logo only.
 * Dark is the brand default. Light is opt-in: <html data-theme="light"> (or class="light").
 * Names follow shadcn/ui so existing components work unchanged.
 * Colors are OKLCH. Contrast is checked by `python3 design-system/check_contrast.py`.
 */

@font-face {
  font-family: "Urbanist";
  src: url("/fonts/urbanist-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url("/fonts/orbitron-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── Type ─────────────────────────────────────────────── */
  --font-sans: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "Orbitron", "Urbanist", ui-sans-serif, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Size / line-height pairs. Body copy is 16px; never below 12px. */
  --text-xs: 0.75rem;    --leading-xs: 1rem;
  --text-sm: 0.875rem;   --leading-sm: 1.25rem;
  --text-base: 1rem;     --leading-base: 1.5rem;
  --text-lg: 1.125rem;   --leading-lg: 1.75rem;
  --text-xl: 1.25rem;    --leading-xl: 1.75rem;
  --text-2xl: 1.5rem;    --leading-2xl: 2rem;
  --text-3xl: 1.875rem;  --leading-3xl: 2.25rem;
  --text-4xl: 2.25rem;   --leading-4xl: 2.5rem;
  --text-5xl: 3rem;      --leading-5xl: 1.05;
  --tracking-display: -0.02em;
  --tracking-tight: -0.01em;
  --tracking-label: 0.14em; /* uppercase eyebrows and badges */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ── Space (4px grid) ─────────────────────────────────── */
  --spacing: 0.25rem; /* Tailwind 4 base unit: p-4 = 16px */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-24: 6rem;
  --gutter: 1rem;          /* page side padding on phones */
  --content-max: 72rem;    /* 1152px reading/app width */

  /* ── Size ─────────────────────────────────────────────── */
  --control-h: 2.75rem;    /* 44px on phones; 40px from md (below) */
  --control-h-sm: 2.5rem;  /* 40px: the smallest tap target allowed */
  --control-h-lg: 3rem;
  --header-h: 3.5rem;
  --sidebar-w: 16.5rem;
  --sidebar-w-collapsed: 4rem;

  /* ── Radius ───────────────────────────────────────────── */
  --radius: 0.875rem;
  --radius-xs: 0.375rem;
  --radius-sm: calc(var(--radius) - 0.375rem); /* 8px: badges, chips */
  --radius-md: calc(var(--radius) - 0.25rem);  /* 10px: inputs, buttons */
  --radius-lg: var(--radius);                  /* 14px: cards */
  --radius-xl: calc(var(--radius) + 0.25rem);  /* 18px: dialogs, sheets */
  --radius-2xl: calc(var(--radius) + 0.625rem);
  --radius-full: 9999px;

  /* ── Motion ───────────────────────────────────────────── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);   /* enter */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);        /* exit */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 120ms;  /* hover, press */
  --duration-base: 200ms;  /* toggles, popovers */
  --duration-slow: 320ms;  /* dialogs, sheets, toasts */

  /* ── Layers ───────────────────────────────────────────── */
  /* Toasts stay above dialogs; while one is open they move out of its way (see the Toaster CSS). */
  --z-sticky: 20; --z-header: 30; --z-overlay: 40; --z-modal: 50; --z-toast: 60; --z-tooltip: 70;

  /* ── Safe area (notch, home bar) ──────────────────────── */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

@media (min-width: 768px) {
  :root { --control-h: 2.5rem; --gutter: 1.5rem; }
}

/* ── Dark: the brand default ────────────────────────────── */
:root,
.dark,
[data-theme="dark"] {
  color-scheme: dark;

  /* Obsidian, with three elevation steps */
  --background: oklch(0.145 0.006 275);
  --foreground: oklch(0.965 0.008 275);
  --surface-1: oklch(0.18 0.009 275);
  --surface-2: oklch(0.215 0.011 275);
  --surface-3: oklch(0.255 0.013 275);

  --card: var(--surface-1);
  --card-foreground: var(--foreground);
  --popover: var(--surface-2);
  --popover-foreground: var(--foreground);

  /* Indigo #6366f1, as approved in HireGenius (white label 5.2:1). */
  --primary: oklch(0.54 0.19 277);
  --primary-hover: oklch(0.565 0.2 277);
  --primary-foreground: oklch(0.99 0 0);
  --primary-text: oklch(0.79 0.12 277); /* indigo text and icons on dark surfaces */

  --secondary: var(--surface-2);
  --secondary-foreground: var(--foreground);
  --muted: var(--surface-2);
  --muted-foreground: oklch(0.72 0.018 275);
  --subtle-foreground: oklch(0.6 0.016 275); /* large text, icons and placeholders only */
  --accent: oklch(0.26 0.045 277);
  --accent-foreground: var(--foreground);

  /* Cyber lime: the one "go" color. Use sparingly: success moments, the hero metric. */
  --lime: oklch(0.93 0.15 122);
  --lime-foreground: oklch(0.18 0.02 270);
  --lime-text: oklch(0.9 0.15 122);

  --destructive: oklch(0.56 0.2 25);
  --destructive-foreground: oklch(0.99 0 0);
  --destructive-text: oklch(0.76 0.14 25);
  --success: oklch(0.6 0.14 155);
  --success-text: oklch(0.8 0.14 155);
  --warning: oklch(0.8 0.15 80);
  --warning-text: oklch(0.84 0.14 80);
  --info: oklch(0.62 0.12 235);
  --info-text: oklch(0.8 0.1 235);

  --border: oklch(0.27 0.012 275);
  --border-strong: oklch(0.36 0.016 275);
  --input: oklch(0.34 0.016 275);
  --ring: oklch(0.66 0.18 277);

  /* Chart palette: validated with the dataviz skill's validator (L band, chroma, CVD) on surface-1. */
  --chart-1: oklch(0.64 0.19 277);
  --chart-2: oklch(0.66 0.16 135);
  --chart-3: oklch(0.62 0.12 215);
  --chart-4: oklch(0.66 0.15 55);
  --chart-5: oklch(0.6 0.2 340);

  --sidebar: oklch(0.125 0.006 275);
  --sidebar-foreground: oklch(0.9 0.01 275);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: oklch(0.2 0.012 275);
  --sidebar-accent-foreground: var(--foreground);
  --sidebar-border: oklch(0.22 0.01 275);
  --sidebar-ring: var(--ring);

  --overlay: oklch(0.08 0.005 275 / 0.72);

  /* Shadows: on dark, depth comes from a hairline highlight plus a deep soft shadow. */
  --shadow-xs: 0 1px 0 0 oklch(1 0 0 / 0.04) inset, 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-sm: 0 1px 0 0 oklch(1 0 0 / 0.05) inset, 0 2px 6px -1px oklch(0 0 0 / 0.45);
  --shadow-md: 0 1px 0 0 oklch(1 0 0 / 0.06) inset, 0 8px 24px -8px oklch(0 0 0 / 0.6);
  --shadow-lg: 0 1px 0 0 oklch(1 0 0 / 0.07) inset, 0 18px 48px -12px oklch(0 0 0 / 0.7);
  --shadow-xl: 0 1px 0 0 oklch(1 0 0 / 0.08) inset, 0 32px 80px -16px oklch(0 0 0 / 0.75);
  --glow-primary: 0 0 0 1px oklch(0.54 0.19 277 / 0.45), 0 10px 40px -10px oklch(0.54 0.19 277 / 0.6);
  --glow-lime: 0 0 24px -6px oklch(0.93 0.15 122 / 0.55);

  --backdrop: radial-gradient(ellipse 80% 50% at 50% -20%, oklch(0.54 0.19 277 / 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, oklch(0.93 0.15 122 / 0.07), transparent 60%),
    var(--background);
}

/* ── Light: opt-in ──────────────────────────────────────── */
.light,
[data-theme="light"] {
  color-scheme: light;

  --background: oklch(0.985 0.003 275);
  --foreground: oklch(0.2 0.02 275);
  --surface-1: oklch(1 0 0);
  --surface-2: oklch(0.965 0.005 275);
  --surface-3: oklch(0.93 0.008 275);

  --card: var(--surface-1);
  --card-foreground: var(--foreground);
  --popover: var(--surface-1);
  --popover-foreground: var(--foreground);

  --primary: oklch(0.54 0.19 277);
  --primary-hover: oklch(0.49 0.19 277);
  --primary-foreground: oklch(0.99 0 0);
  --primary-text: oklch(0.47 0.2 277);

  --secondary: var(--surface-2);
  --secondary-foreground: var(--foreground);
  --muted: var(--surface-2);
  --muted-foreground: oklch(0.49 0.02 275);
  --subtle-foreground: oklch(0.6 0.016 275);
  --accent: oklch(0.95 0.025 277);
  --accent-foreground: oklch(0.3 0.08 277);

  --lime: oklch(0.9 0.17 122);
  --lime-foreground: oklch(0.2 0.03 130);
  --lime-text: oklch(0.47 0.12 130);

  --destructive: oklch(0.55 0.21 25);
  --destructive-foreground: oklch(0.99 0 0);
  --destructive-text: oklch(0.5 0.2 25);
  --success: oklch(0.55 0.14 155);
  --success-text: oklch(0.46 0.12 155);
  --warning: oklch(0.8 0.15 80);
  --warning-text: oklch(0.5 0.12 65);
  --info: oklch(0.55 0.13 235);
  --info-text: oklch(0.47 0.12 235);

  --border: oklch(0.91 0.008 275);
  --border-strong: oklch(0.84 0.012 275);
  --input: oklch(0.82 0.012 275);
  --ring: oklch(0.54 0.19 277);

  --chart-1: oklch(0.54 0.19 277);
  --chart-2: oklch(0.62 0.16 130);
  --chart-3: oklch(0.55 0.13 220);
  --chart-4: oklch(0.66 0.16 55);
  --chart-5: oklch(0.56 0.2 340);

  --sidebar: oklch(0.97 0.004 275);
  --sidebar-foreground: oklch(0.3 0.02 275);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: oklch(0.93 0.012 277);
  --sidebar-accent-foreground: oklch(0.2 0.02 275);
  --sidebar-border: oklch(0.91 0.008 275);
  --sidebar-ring: var(--ring);

  --overlay: oklch(0.2 0.02 275 / 0.4);

  --shadow-xs: 0 1px 2px oklch(0.2 0.02 275 / 0.06);
  --shadow-sm: 0 1px 3px oklch(0.2 0.02 275 / 0.08), 0 1px 2px oklch(0.2 0.02 275 / 0.04);
  --shadow-md: 0 6px 16px -4px oklch(0.2 0.02 275 / 0.1), 0 2px 4px oklch(0.2 0.02 275 / 0.05);
  --shadow-lg: 0 16px 40px -10px oklch(0.2 0.02 275 / 0.16);
  --shadow-xl: 0 28px 72px -16px oklch(0.2 0.02 275 / 0.22);
  --glow-primary: 0 0 0 1px oklch(0.54 0.19 277 / 0.3), 0 10px 30px -10px oklch(0.54 0.19 277 / 0.4);
  --glow-lime: 0 0 20px -6px oklch(0.75 0.17 122 / 0.5);

  --backdrop: radial-gradient(ellipse 80% 50% at 50% -20%, oklch(0.54 0.19 277 / 0.08), transparent 60%),
    var(--background);
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration-fast: 0ms; --duration-base: 0ms; --duration-slow: 0ms; }
}

@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  color-scheme: light;

  --background: oklch(0.985 0.003 275);
  --foreground: oklch(0.2 0.02 275);
  --surface-1: oklch(1 0 0);
  --surface-2: oklch(0.965 0.005 275);
  --surface-3: oklch(0.93 0.008 275);

  --card: var(--surface-1);
  --card-foreground: var(--foreground);
  --popover: var(--surface-1);
  --popover-foreground: var(--foreground);

  --primary: oklch(0.54 0.19 277);
  --primary-hover: oklch(0.49 0.19 277);
  --primary-foreground: oklch(0.99 0 0);
  --primary-text: oklch(0.47 0.2 277);

  --secondary: var(--surface-2);
  --secondary-foreground: var(--foreground);
  --muted: var(--surface-2);
  --muted-foreground: oklch(0.49 0.02 275);
  --subtle-foreground: oklch(0.6 0.016 275);
  --accent: oklch(0.95 0.025 277);
  --accent-foreground: oklch(0.3 0.08 277);

  --lime: oklch(0.9 0.17 122);
  --lime-foreground: oklch(0.2 0.03 130);
  --lime-text: oklch(0.47 0.12 130);

  --destructive: oklch(0.55 0.21 25);
  --destructive-foreground: oklch(0.99 0 0);
  --destructive-text: oklch(0.5 0.2 25);
  --success: oklch(0.55 0.14 155);
  --success-text: oklch(0.46 0.12 155);
  --warning: oklch(0.8 0.15 80);
  --warning-text: oklch(0.5 0.12 65);
  --info: oklch(0.55 0.13 235);
  --info-text: oklch(0.47 0.12 235);

  --border: oklch(0.91 0.008 275);
  --border-strong: oklch(0.84 0.012 275);
  --input: oklch(0.82 0.012 275);
  --ring: oklch(0.54 0.19 277);

  --chart-1: oklch(0.54 0.19 277);
  --chart-2: oklch(0.62 0.16 130);
  --chart-3: oklch(0.55 0.13 220);
  --chart-4: oklch(0.66 0.16 55);
  --chart-5: oklch(0.56 0.2 340);

  --sidebar: oklch(0.97 0.004 275);
  --sidebar-foreground: oklch(0.3 0.02 275);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: oklch(0.93 0.012 277);
  --sidebar-accent-foreground: oklch(0.2 0.02 275);
  --sidebar-border: oklch(0.91 0.008 275);
  --sidebar-ring: var(--ring);

  --overlay: oklch(0.2 0.02 275 / 0.4);

  --shadow-xs: 0 1px 2px oklch(0.2 0.02 275 / 0.06);
  --shadow-sm: 0 1px 3px oklch(0.2 0.02 275 / 0.08), 0 1px 2px oklch(0.2 0.02 275 / 0.04);
  --shadow-md: 0 6px 16px -4px oklch(0.2 0.02 275 / 0.1), 0 2px 4px oklch(0.2 0.02 275 / 0.05);
  --shadow-lg: 0 16px 40px -10px oklch(0.2 0.02 275 / 0.16);
  --shadow-xl: 0 28px 72px -16px oklch(0.2 0.02 275 / 0.22);
  --glow-primary: 0 0 0 1px oklch(0.54 0.19 277 / 0.3), 0 10px 30px -10px oklch(0.54 0.19 277 / 0.4);
  --glow-lime: 0 0 20px -6px oklch(0.75 0.17 122 / 0.5);

  --backdrop: radial-gradient(ellipse 80% 50% at 50% -20%, oklch(0.54 0.19 277 / 0.08), transparent 60%),
    var(--background);
} }

/* Études Russie. Layout: one reading column (max 72rem) on an obsidian backdrop; the hero
   pairs the promise with the live Anchor chat (side by side from 960px, stacked on phones);
   offers, route, safety, FAQ and the dossier follow, separated by space, not rules.
   Tokens come from the AskoDev design system (prepended by scripts/build.mjs). */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--safe-top) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--backdrop);
  background-attachment: fixed;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary-text); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: var(--tracking-tight); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-xs); }
.skip { position: absolute; top: calc(8px + var(--safe-top)); left: max(16px, var(--safe-left)); z-index: var(--z-tooltip); display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-md); background: var(--surface-2); color: var(--foreground); }
.skip:not(:focus) { width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

.wrap {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), var(--safe-left));
  padding-right: max(var(--gutter), var(--safe-right));
}

/* ── Header ───────────────────────────────────────────── */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: var(--safe-top); z-index: calc(var(--z-header) + 1); background: var(--background); }
.header {
  position: sticky; top: var(--safe-top); z-index: var(--z-header);
  background: color-mix(in oklch, var(--background) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header .wrap { display: flex; align-items: center; gap: var(--space-4); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--space-3); color: var(--foreground); text-decoration: none; min-height: 44px; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--primary); color: var(--primary-foreground); box-shadow: var(--glow-primary); }
.brand-mark .i { width: 18px; height: 18px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font-weight: var(--weight-bold); font-size: var(--text-base); }
.brand-name span { font-size: var(--text-xs); color: var(--muted-foreground); }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--space-1); }
.nav a.link { color: var(--muted-foreground); text-decoration: none; font-weight: var(--weight-medium); font-size: var(--text-sm); padding: 0 var(--space-3); min-height: 40px; display: inline-flex; align-items: center; border-radius: var(--radius-md); transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out); }
.nav a.link:hover { color: var(--foreground); background: var(--surface-2); }
@media (max-width: 899px) { .nav a.link { display: none; } }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  --bh: var(--control-h);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--bh); padding: 0 var(--space-5);
  border-radius: var(--radius-md); border: 1px solid transparent;
  font: inherit; font-weight: var(--weight-semibold); font-size: var(--text-base);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-lg { --bh: var(--control-h-lg); padding: 0 var(--space-6); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--glow-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--surface-1); color: var(--foreground); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-wa { background: var(--success); color: var(--primary-foreground); }
.btn-wa:hover { filter: brightness(1.08); }
.btn-sm { --bh: var(--control-h-sm); padding: 0 var(--space-4); font-size: var(--text-sm); }
@media (max-width: 899px) { .header .btn-wa .label-long { display: none; } }

/* ── Sections ─────────────────────────────────────────── */
main { display: flex; flex-direction: column; gap: clamp(4rem, 9vw, 7rem); padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem); }
.eyebrow { font-size: var(--text-xs); font-weight: var(--weight-bold); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--primary-text); }
.section-head { display: flex; flex-direction: column; gap: var(--space-3); max-width: 44rem; margin-bottom: var(--space-8); }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.12; letter-spacing: var(--tracking-display); font-weight: var(--weight-bold); }
.section-head p { color: var(--muted-foreground); font-size: var(--text-lg); line-height: var(--leading-lg); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.hero-copy { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; padding-top: clamp(0rem, 2vw, 1.5rem); }
.hero h1 { font-size: clamp(2.25rem, 6.2vw, 4rem); line-height: 1.04; letter-spacing: var(--tracking-display); font-weight: var(--weight-bold); }
.hero h1 em { font-style: normal; color: var(--primary-text); }
.lede { color: var(--muted-foreground); font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.6; max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 479px) { .cta-row .btn { flex: 1 1 100%; } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); max-width: 36rem; }
.fact { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--muted-foreground); font-size: var(--text-sm); line-height: var(--leading-sm); }
.fact .i { color: var(--primary-text); margin-top: 1px; }
.fact b { display: block; color: var(--foreground); font-weight: var(--weight-semibold); font-size: var(--text-base); line-height: var(--leading-base); }

/* ── Chat (Anchor) ────────────────────────────────────── */
.chat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; min-width: 0; overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--primary-text); flex: none; }
.chat-head b { display: block; font-weight: var(--weight-semibold); }
.chat-head small { display: flex; align-items: center; gap: 6px; color: var(--muted-foreground); font-size: var(--text-sm); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in oklch, var(--success) 25%, transparent); }
.chat-log { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); height: clamp(18rem, 46vh, 26rem); overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--text-base); line-height: 1.55; }
.msg.bot { background: var(--surface-2); align-self: flex-start; border-bottom-left-radius: var(--radius-xs); }
.msg.me { background: var(--primary); color: var(--primary-foreground); align-self: flex-end; border-bottom-right-radius: var(--radius-xs); }
.msg.note { background: transparent; border: 1px dashed var(--border-strong); color: var(--muted-foreground); font-size: var(--text-sm); }
.typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-foreground); animation: blink 1.2s infinite var(--ease-in-out); }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chips { display: flex; gap: var(--space-2); padding: 0 var(--space-5) var(--space-3); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-full); border: 1px solid var(--border-strong); background: transparent; color: var(--foreground); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-medium); cursor: pointer; transition: background var(--duration-fast) var(--ease-out); }
.chip:hover { background: var(--surface-2); }
.chat-form { display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-5) var(--space-4); border-top: 1px solid var(--border); }
.chat-form textarea { flex: 1; min-width: 0; resize: none; min-height: var(--control-h); max-height: 8rem; padding: 10px var(--space-4); line-height: 1.45; }
.icon-btn { width: var(--control-h); min-width: var(--control-h); padding: 0; }
.chat-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 0 var(--space-5) var(--space-4); color: var(--subtle-foreground); font-size: var(--text-xs); }
.chat-foot .btn { color: var(--success-text); background: transparent; border-color: var(--border); }

/* ── Fields ───────────────────────────────────────────── */
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--foreground);
  background: var(--surface-2); border: 1px solid var(--input); border-radius: var(--radius-md);
  min-height: var(--control-h); padding: 0 var(--space-4); width: 100%;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
textarea { padding-block: 10px; }
input::placeholder, textarea::placeholder { color: var(--subtle-foreground); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 30%, transparent); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted-foreground) 50%), linear-gradient(135deg, var(--muted-foreground) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.field .hint { font-size: var(--text-sm); color: var(--muted-foreground); }
.field .err, .consent-wrap .err { font-size: var(--text-sm); color: var(--destructive-text); }
.field.invalid input, .field.invalid select { border-color: var(--destructive); }

/* ── Offers ───────────────────────────────────────────── */
.offers { display: grid; gap: var(--space-5); }
@media (min-width: 860px) { .offers { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; box-shadow: var(--shadow-sm); }
.card h3 { font-size: var(--text-2xl); line-height: var(--leading-2xl); font-weight: var(--weight-bold); }
.card > p { color: var(--muted-foreground); }
.card.vip { border-color: color-mix(in oklch, var(--primary) 55%, var(--border)); box-shadow: var(--glow-primary); }
.tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: var(--radius-sm); background: var(--accent); color: var(--primary-text); font-size: var(--text-xs); font-weight: var(--weight-bold); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.ticks { display: flex; flex-direction: column; gap: var(--space-3); }
.ticks li { display: flex; gap: var(--space-3); }
.ticks .i { color: var(--success-text); margin-top: 2px; }
.price-rows { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.price-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-1) var(--space-4); padding: var(--space-3) var(--space-4); background: var(--surface-2); }
.price-row + .price-row { border-top: 1px solid var(--border); }
.price-row span { color: var(--muted-foreground); font-size: var(--text-sm); }
.price-row b { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: var(--text-lg); }
.hero-metric { display: flex; flex-direction: column; gap: 4px; padding: var(--space-4); border-radius: var(--radius-md); background: color-mix(in oklch, var(--lime) 10%, transparent); border: 1px solid color-mix(in oklch, var(--lime) 30%, transparent); }
.hero-metric b { color: var(--lime-text); font-size: var(--text-3xl); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-display); }
.hero-metric span { color: var(--muted-foreground); font-size: var(--text-sm); }
.small { font-size: var(--text-sm); color: var(--muted-foreground); }

/* ── Route ────────────────────────────────────────────── */
.route { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 900px) { .route { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-4); } }
.step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--space-4); padding-bottom: var(--space-6); }
.step::before { counter-increment: step; content: counter(step); grid-row: 1 / span 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-strong); font-weight: var(--weight-bold); color: var(--primary-text); font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.step::after { content: ""; position: absolute; left: 19.5px; top: 40px; bottom: 0; width: 1px; background: var(--border-strong); }
.step:last-child::after { display: none; }
.step h3 { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-semibold); padding-top: 6px; }
.step p { color: var(--muted-foreground); font-size: var(--text-sm); line-height: var(--leading-sm); }
.step .dur { margin-top: var(--space-2); align-self: start; justify-self: start; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--foreground); background: var(--surface-2); border-radius: var(--radius-sm); padding: 3px 8px; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .step { grid-template-columns: 1fr; row-gap: var(--space-2); padding-bottom: 0; }
  .step::before { grid-row: auto; }
  .step::after { left: 48px; right: calc(-1 * var(--space-4)); top: 19.5px; bottom: auto; width: auto; height: 1px; }
  .step h3 { padding-top: var(--space-2); }
}
.step:last-child::before { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

/* ── Safety ───────────────────────────────────────────── */
.safety { display: grid; gap: var(--space-5); }
@media (min-width: 860px) { .safety { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.zone { border-radius: var(--radius-lg); padding: var(--space-6); border: 1px solid var(--border); background: var(--card); display: flex; flex-direction: column; gap: var(--space-3); }
.zone .label { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-bold); }
.zone.no .label { color: var(--destructive-text); }
.zone.care .label { color: var(--warning-text); }
.zone.yes .label { color: var(--success-text); }
.zone p { color: var(--muted-foreground); font-size: var(--text-sm); line-height: var(--leading-sm); }
.zone strong { color: var(--foreground); font-weight: var(--weight-semibold); }
.pill-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pill { font-size: var(--text-sm); padding: 4px 10px; border-radius: var(--radius-full); background: var(--surface-2); border: 1px solid var(--border); }

/* ── FAQ ──────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: var(--space-3); max-width: 52rem; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 56px; padding: var(--space-4) var(--space-5); font-weight: var(--weight-semibold); font-size: var(--text-lg); line-height: var(--leading-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--primary-text); font-size: 20px; line-height: 1; transition: transform var(--duration-base) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 var(--space-5) var(--space-5); color: var(--muted-foreground); display: flex; flex-direction: column; gap: var(--space-3); max-width: 46rem; }
.faq .answer ul { list-style: disc; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 4px; }

/* ── Dossier ──────────────────────────────────────────── */
.dossier { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 960px) { .dossier { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.dossier-side { display: flex; flex-direction: column; gap: var(--space-5); }
.dossier-side .section-head { margin-bottom: 0; }
.wa-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); }
.wa-card .num { font-size: var(--text-2xl); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; user-select: all; }
.form-card { gap: var(--space-5); }
.grid2 { display: grid; gap: var(--space-4); }
@media (min-width: 600px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--muted-foreground); line-height: var(--leading-sm); }
.consent input { width: 22px; height: 22px; min-height: 0; flex: none; margin: 1px 0 0; padding: 0; accent-color: var(--primary); }
.consent-wrap { display: flex; flex-direction: column; gap: 6px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-status { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-md); font-size: var(--text-sm); }
.form-status.err { background: color-mix(in oklch, var(--destructive) 14%, transparent); color: var(--destructive-text); }
.success { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.success .big { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in oklch, var(--lime) 16%, transparent); color: var(--lime-text); box-shadow: var(--glow-lime); }
.success .big .i { width: 28px; height: 28px; }
.success h3 { font-size: var(--text-2xl); }
.success p { color: var(--muted-foreground); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid color-mix(in oklch, var(--primary-foreground) 35%, transparent); border-top-color: var(--primary-foreground); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer, floating WhatsApp ────────────────────────── */
.footer { border-top: 1px solid var(--border); padding-block: var(--space-10) calc(var(--space-10) + var(--safe-bottom)); color: var(--muted-foreground); font-size: var(--text-sm); }
.footer .wrap { display: flex; flex-direction: column; gap: var(--space-4); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer-links a { color: var(--foreground); min-height: 40px; display: inline-flex; align-items: center; }
.fab {
  position: fixed; z-index: var(--z-sticky);
  right: calc(16px + var(--safe-right)); bottom: calc(16px + var(--safe-bottom));
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--success); color: var(--primary-foreground); box-shadow: var(--shadow-lg);
  transition: transform var(--duration-fast) var(--ease-out);
}
.fab:active { transform: scale(0.96); }
.fab .i { width: 28px; height: 28px; }
@media (min-width: 900px) { .fab { display: none; } }
@media (max-width: 899px) { .footer { padding-bottom: calc(var(--space-10) + 72px + var(--safe-bottom)); } }

/* ── Simple pages (privacy, thanks, 404) ─────────────── */
.page { max-width: 46rem; display: flex; flex-direction: column; gap: var(--space-5); }
.page h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; letter-spacing: var(--tracking-display); }
.page h2 { font-size: var(--text-xl); margin-top: var(--space-4); }
.page p, .page li { color: var(--muted-foreground); }
.page ul { list-style: disc; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .msg { animation: rise var(--duration-base) var(--ease-out); }
  @keyframes rise { from { transform: translateY(6px); opacity: .3; } }
}

/* ── Catalogue (universités) ─────────────────────────── */
.cat-head { display: flex; flex-direction: column; gap: var(--space-3); max-width: 46rem; }
.cat-head h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: var(--tracking-display); }
.cat-head p { color: var(--muted-foreground); font-size: var(--text-lg); line-height: var(--leading-lg); }
.filters { position: sticky; top: calc(var(--header-h) + var(--safe-top)); z-index: var(--z-sticky); display: grid; gap: var(--space-3); padding: var(--space-4); background: color-mix(in oklch, var(--background) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius-lg); }
@media (min-width: 900px) { .filters { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .filters { position: static; } }
.result-count { color: var(--muted-foreground); font-size: var(--text-sm); }
.uni-grid { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .uni-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .uni-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.uni { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); color: var(--foreground); text-decoration: none; min-width: 0; transition: border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
.uni:hover { border-color: var(--border-strong); }
.uni:active { transform: scale(0.99); }
.uni h2, .uni h3 { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-semibold); }
.uni .meta { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; color: var(--muted-foreground); font-size: var(--text-sm); }
.zone-chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: var(--weight-semibold); padding: 3px 8px; border-radius: var(--radius-sm); }
.zone-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.zone-chip.yes { color: var(--success-text); background: color-mix(in oklch, var(--success) 14%, transparent); }
.zone-chip.care { color: var(--warning-text); background: color-mix(in oklch, var(--warning) 14%, transparent); }
.uni .prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.uni .p { display: flex; flex-direction: column; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--surface-2); min-width: 0; }
.uni .p span { font-size: var(--text-xs); color: var(--muted-foreground); }
.uni .p b { font-variant-numeric: tabular-nums; font-size: var(--text-sm); overflow-wrap: anywhere; }
.uni .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.uni .tags span, .tag-list span { font-size: var(--text-xs); padding: 3px 8px; border-radius: var(--radius-full); border: 1px solid var(--border); color: var(--muted-foreground); }
.empty-state { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; padding: var(--space-8); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.uni-detail { display: grid; gap: var(--space-8); }
@media (min-width: 960px) { .uni-detail { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag-list span { font-size: var(--text-sm); color: var(--foreground); background: var(--surface-2); }
.crumb { font-size: var(--text-sm); color: var(--muted-foreground); }
.crumb a { color: var(--muted-foreground); }
.src { font-size: var(--text-sm); color: var(--muted-foreground); overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: 40px; }
@media (max-width: 899px) {
  .filters { grid-template-columns: 1fr 1fr; padding: var(--space-3); }
  .filters .field:first-child { grid-column: 1 / -1; }
  .filters .field:last-child { grid-column: 1 / -1; }
}
@media (max-width: 959px) { .uni-detail > aside { order: -1; } }
