/* ─────────────────────────────────────────────────────────────
   SYNTHOCODE / PRO — AI Terminal Editorial
   A landing for people who'd rather configure than be marketed at.
   ───────────────────────────────────────────────────────────── */

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

:root {
  /* core surfaces */
  --ink: #0A0A0F;
  --ink-2: #0E0E14;
  --ink-3: #14141C;
  --line: rgba(244, 244, 245, 0.07);
  --line-2: rgba(244, 244, 245, 0.14);

  /* paper */
  --paper: #F4F4F5;
  --paper-2: #D4D4D8;
  --paper-3: #A1A1AA;
  --paper-4: #71717A;

  /* signal */
  --cyan: #22D3EE;
  --cyan-2: #06B6D4;
  --violet: #A78BFA;
  --violet-2: #8B5CF6;
  --amber: #FBBF24;
  --emerald: #34D399;
  --rose: #FB7185;

  /* gradients */
  --grad-brain: linear-gradient(120deg, #22D3EE 0%, #A78BFA 100%);
  --grad-brain-soft: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(167,139,250,0.15));

  /* type scale */
  --display: "Fraunces", ui-serif, "Times New Roman", serif;
  --sans: "Geist", "Inter Tight", system-ui, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* shadows */
  --shadow-deep: 0 24px 80px -20px rgba(0, 0, 0, 0.7);
  --glow-cyan: 0 0 60px -10px rgba(34, 211, 238, 0.5);
  --glow-violet: 0 0 60px -10px rgba(167, 139, 250, 0.5);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  /* JS handles smooth scroll with custom easing — disable native */
  scroll-behavior: auto;
}
body {
  background: var(--ink);
  color: var(--paper-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ─── ATMOSPHERIC LAYERS ─────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    radial-gradient(rgba(244,244,245,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 1200px 800px at 50% 0%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 1200px 800px at 50% 0%, #000 30%, transparent 70%);
  opacity: 0.6;
}
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }

::selection { background: var(--cyan); color: var(--ink); }

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

/* ─── LAYOUT PRIMITIVES ──────────────────────────────────────── */
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: 32px; position: relative; z-index: 2; }
@media (max-width: 720px) { .wrap { padding-inline: 20px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.eyebrow::before {
  content: '§';
  color: var(--cyan);
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
}

.divider-ascii {
  font-family: var(--mono);
  color: var(--paper-4);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-align: center;
  margin: 80px 0;
  user-select: none;
}

/* ─── TYPE ───────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--paper);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
h1 { font-size: clamp(48px, 8vw, 112px); }
h2 { font-size: clamp(36px, 5.5vw, 72px); }
h3 { font-size: clamp(22px, 2.6vw, 32px); font-variation-settings: "opsz" 36, "SOFT" 50; }
.italic { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1; }

p { color: var(--paper-2); }
strong { color: var(--paper); font-weight: 500; }

/* gradient ink */
.ink-grad {
  background: var(--grad-brain);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px 14px 26px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  white-space: nowrap;
  isolation: isolate;
}
.btn-primary {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--paper), 0 12px 40px -10px rgba(244,244,245,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--paper), 0 20px 60px -12px rgba(244,244,245,0.45), 0 0 0 4px rgba(244,244,245,0.08);
}
.btn-ghost {
  background: transparent;
  color: var(--paper-2);
  border-color: var(--line-2);
}
.btn-ghost:hover { color: var(--paper); border-color: var(--paper-3); background: rgba(244,244,245,0.03); }

.btn .arrow { display: inline-block; transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-cta {
  padding: 18px 28px 18px 32px;
  font-size: 15px;
  border-radius: 10px;
}

/* terminal kbd */
.kbd {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--paper-3);
  background: var(--ink-3);
}

/* ─── NAV / HEADER ───────────────────────────────────────────── */
.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 1080px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 8px 10px 8px 20px;
  background: rgba(10, 10, 15, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header.scrolled {
  background: rgba(10, 10, 15, 0.85);
  border-color: var(--line-2);
}

.brand {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--display);
  font-style: italic;
  font-size: 24px;
  color: var(--paper);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 36, "SOFT" 50, "WONK" 1;
}
.brand img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.4));
}
/* Footer brand keeps slightly smaller proportions */
footer .brand { font-size: 22px; }
footer .brand img { width: 48px !important; height: 48px !important; }
.brand-mark {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  color: var(--cyan);
  letter-spacing: 0.18em;
  border: 1px solid var(--cyan);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  background: rgba(34, 211, 238, 0.08);
}

.nav-links {
  display: flex; gap: 6px; list-style: none;
  justify-self: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--paper-3);
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--cyan); background: rgba(34,211,238,0.08); }

.header-cta {
  display: inline-flex; align-items: center; gap: 12px;
  justify-self: end;
}
/* Stable CTA width — prevents header shift when toggling FR/EN
   (FR "Essai 7 jours" vs EN "7-day trial" have different widths) */
.header-cta > .btn-primary {
  min-width: 156px;
  justify-content: center;
}
/* Same stable-width treatment for the ghost "Retour / Back" button used on the
   sub-pages (guide, legal). Without it, switching FR→EN ("Retour" vs "Back")
   resizes the button and shakes the whole nav pill. */
.header-cta > .btn-ghost {
  min-width: 132px;
  justify-content: center;
}
/* Stable lang-switch width so cycling FR/EN active state doesn't reflow */
.lang-switch {
  min-width: 56px;
  justify-content: center;
}
.lang-switch {
  display: inline-flex; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--paper-4);
  letter-spacing: 0.08em;
}
.lang-switch a { padding: 4px 6px; transition: color 0.2s; }
.lang-switch a.active { color: var(--cyan); }
.lang-switch a:hover { color: var(--paper); }

/* ─── BURGER MENU ─────────────────────────────────────────── */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.burger:hover { background: rgba(244,244,245,0.05); border-color: var(--paper-3); }
.burger-bars { position: absolute; inset: 0; display: grid; place-items: center; }
.burger-bars::before, .burger-bars::after, .burger-bars span {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--paper);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  margin-left: -9px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.burger-bars::before { top: 14px; }
.burger-bars span    { top: 19px; }
.burger-bars::after  { top: 24px; }
.burger[aria-expanded="true"] .burger-bars::before { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-bars::after  { top: 19px; transform: rotate(-45deg); }
.burger[aria-expanded="true"] .burger-bars span    { opacity: 0; transform: scaleX(0); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  flex-direction: column;
  padding: 80px 24px 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}
.mobile-drawer ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.mobile-drawer li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobile-drawer.open li {
  opacity: 1;
  transform: translateY(0);
}
.mobile-drawer.open li:nth-child(1) { transition-delay: 0.10s; }
.mobile-drawer.open li:nth-child(2) { transition-delay: 0.16s; }
.mobile-drawer.open li:nth-child(3) { transition-delay: 0.22s; }
.mobile-drawer.open li:nth-child(4) { transition-delay: 0.28s; }
.mobile-drawer.open li:nth-child(5) { transition-delay: 0.34s; }
/* Menu nav links — scoped ONLY to anchors inside drawer's nav ul li
   (so we don't break the lang-switch and the CTA button below) */
.mobile-drawer nav ul li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 26px;
  color: var(--paper);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  transition: color 0.2s var(--ease), padding 0.3s var(--ease);
}
.mobile-drawer nav ul li > a:hover { color: var(--cyan); padding-left: 8px; }
.mobile-drawer nav ul li > a::after {
  content: '→';
  font-family: var(--sans);
  font-size: 18px;
  color: var(--paper-4);
  transition: transform 0.3s var(--ease), color 0.2s;
}
.mobile-drawer nav ul li > a:hover::after { color: var(--cyan); transform: translateX(4px); }

/* Drawer CTA button — high contrast, deep colors, glowing */
.mobile-drawer .drawer-cta { width: 100%; padding: 0 4px; }
.mobile-drawer .drawer-cta .btn {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px 28px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 50%),
    linear-gradient(135deg, #06B6D4 0%, #7C3AED 100%);
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.4),
    0 8px 32px rgba(124, 58, 237, 0.35),
    0 4px 12px rgba(6, 182, 212, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.mobile-drawer .drawer-cta .btn:hover {
  color: #FFFFFF !important;
  padding-left: 28px;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.5),
    0 12px 40px rgba(124, 58, 237, 0.45),
    0 4px 16px rgba(6, 182, 212, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.mobile-drawer .drawer-cta .btn::after { content: none; }
.mobile-drawer .drawer-cta .btn .arrow {
  font-family: var(--sans);
  font-size: 16px;
  color: #FFFFFF;
  transition: transform 0.2s var(--ease);
}
.mobile-drawer .drawer-cta .btn:hover .arrow { transform: translateX(3px); }

/* Drawer lang switch — keep small, no border, no big font override */
.mobile-drawer .lang-switch a {
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-3);
  border: none;
  border-radius: 6px;
}
.mobile-drawer .lang-switch a:hover { padding-left: 8px; color: var(--cyan); background: rgba(34, 211, 238, 0.08); }
.mobile-drawer .lang-switch a.active { color: var(--cyan); }
.mobile-drawer .lang-switch a::after { content: none; }

/* ─── Flag-based language switch (FR / GB) ─── */
.lang-switch-flags { gap: 8px; min-width: 0; }
.lang-switch-flags a,
.mobile-drawer .lang-switch-flags a { padding: 2px; background: none; border-radius: 5px; }
.lang-switch-flags a:hover,
.mobile-drawer .lang-switch-flags a:hover { padding: 2px; background: none; }
.lang-switch-flags .flag {
  width: 26px; height: 18px; display: block; border-radius: 4px;
  filter: grayscale(0.6) brightness(0.82); opacity: 0.5;
  transition: filter 0.25s var(--ease), opacity 0.25s, transform 0.25s;
}
.lang-switch-flags a:hover .flag { filter: grayscale(0) brightness(1); opacity: 0.85; transform: translateY(-1px); }
.lang-switch-flags a.active .flag { filter: none; opacity: 1; transform: scale(1.1); }

.drawer-footer {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-4);
}
.drawer-footer .lang-switch { justify-content: flex-start; }
.drawer-cta { margin-top: 8px; }
.drawer-cta .btn { width: 100%; justify-content: center; padding: 18px; }

body.drawer-open { overflow: hidden; }

/* ─── DUAL-LANGUAGE INLINE TOGGLE (true single-page i18n) ─────
   Pattern: <span data-lang="fr">FR text</span><span data-lang="en">EN text</span>
   CSS hides the opposite language based on <html lang="…">.
   The default rule shows EN element as inline because it's the
   second sibling; the html[lang] rule controls visibility.
   Spans default to inline so they don't break paragraph flow.
*/
[data-lang] { display: inline; }
html[lang="fr"] [data-lang="en"],
html[lang="en"] [data-lang="fr"] {
  display: none !important;
}
/* Block-level elements that have data-lang need to keep their flow */
h1 > [data-lang],
h2 > [data-lang],
h3 > [data-lang],
p > [data-lang]:only-of-type { display: block; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .header { grid-template-columns: auto 1fr auto; gap: 12px; }
  /* On mobile only the burger stays in the header. The primary CTA and the
     sub-page "← Retour / Back" ghost button are hidden — the drawer already
     offers "Retour à l'accueil". Keeping them here overflowed the pill and
     pushed the burger outside its rounded border. */
  .header-cta .btn-primary,
  .header-cta .btn-ghost { display: none; }
  .header-cta .lang-switch { display: none; }
  .header-cta { gap: 0; }
  .burger { display: block; }
  /* Keep the brand on one line so it can't wrap inside the pill. */
  .brand { font-size: 20px; gap: 10px; }
  .brand span:not(.brand-mark) { white-space: nowrap; }
  .brand img { width: 42px; height: 42px; }
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
}
.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(34, 211, 238, 0.18), transparent 70%),
    radial-gradient(ellipse 700px 500px at 80% 20%, rgba(167, 139, 250, 0.16), transparent 70%),
    radial-gradient(ellipse 800px 400px at 50% 80%, rgba(251, 191, 36, 0.06), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(20px, -20px, 0) scale(1.05); }
}

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 64px; position: relative; z-index: 2; }

.hero-meta {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin-bottom: 28px;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(244,244,245,0.02);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--paper-2);
}
.status-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse 2s ease-in-out infinite;
}
.status-pill .dot.cyan { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  max-width: 14ch;
}
/* ═══════════════════════════════════════════════════════════
   « THE AI STRIKE » — signature hero crossout
   A glowing comet draws the line (white hot-spot built into the
   gradient's leading edge), the line carries a chromatic split,
   the comet bursts at the end, then the bar comes alive with a
   spectral flow while the word "manuel" is deprecated.
   Pure CSS · GPU props only (transform / opacity / box-shadow /
   background-position) · honours prefers-reduced-motion.
   Timeline: 1.7s draw start → 2.6s burst → 3.2s "alive" loop.
   ═══════════════════════════════════════════════════════════ */
.hero h1 .strike {
  position: relative;
  display: inline-block;
  /* the word loses its glow and dims — it's now obsolete.
     NB: never animate opacity here — it would also fade the ::after bar. */
  animation: strike-depr 1s 2.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  will-change: color;
}

/* ── THE BAR ── draws via scaleX; the gradient's bright tip lives at
   the leading (right) edge during the draw = built-in comet tail.
   After the draw, strike-flow slides the full spectrum through it. ── */
.hero h1 .strike::after {
  content: '';
  position: absolute;
  left: -5%; right: -5%;
  top: 56%;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg,
    #818cf8 0%, #22d3ee 24%, #f43f5e 50%, #fb7185 74%, #ffffff 100%);
  background-size: 200% 100%;
  background-position: 100% 0;          /* window shows rose→white tip */
  /* chromatic aberration (rose ghost above, cyan ghost below) + bloom */
  box-shadow:
    0 -1.5px 0 rgba(244, 63, 94, 0.5),
    0  1.5px 0 rgba(34, 211, 238, 0.5),
    0 0 12px rgba(244, 63, 94, 0.45),
    0 0 26px rgba(34, 211, 238, 0.20);
  transform: rotate(-2.5deg) scaleX(0);
  transform-origin: left center;
  animation:
    strike-draw  0.9s 1.7s cubic-bezier(0.6, 0, 0.25, 1) forwards,
    strike-flow  5s 3.2s ease-in-out infinite,
    strike-pulse 3s 3.2s ease-in-out infinite;
  will-change: transform, background-position, box-shadow;
}

/* ── THE COMET ── a blurred, trailing head that rides the leading edge
   (left keyed only 0%/100% → single interval → tracks the draw exactly),
   then bursts open at the end. ── */
.hero h1 .strike::before {
  content: '';
  position: absolute;
  top: 56%;
  left: -5%;
  width: 24px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff 0%, #fecdd3 42%, rgba(244, 63, 94, 0) 76%);
  box-shadow:
    -11px 0 16px 2px rgba(244, 63, 94, 0.5),
    -24px 0 24px 1px rgba(244, 63, 94, 0.22),
    0 0 24px 6px rgba(255, 255, 255, 0.55);
  opacity: 0;
  filter: blur(0.4px);
  transform: translate(-50%, -50%) rotate(-2.5deg) scale(0.4);
  animation: strike-comet 0.9s 1.7s cubic-bezier(0.6, 0, 0.25, 1) forwards;
  z-index: 2;
  pointer-events: none;
}

@keyframes strike-draw {
  0%   { transform: rotate(-2.5deg) scaleX(0); }
  100% { transform: rotate(-2.5deg) scaleX(1); }
}
@keyframes strike-comet {
  0%   { left: -5%;  opacity: 0; transform: translate(-50%, -50%) rotate(-2.5deg) scaleX(0.4) scaleY(0.6); }
  12%  { opacity: 1; }
  85%  { opacity: 1; transform: translate(-50%, -50%) rotate(-2.5deg) scaleX(1) scaleY(1); }
  100% { left: 105%; opacity: 0; transform: translate(-50%, -50%) rotate(-2.5deg) scaleX(2.4) scaleY(1.7); }
}
/* living spectral flow once the bar is drawn */
@keyframes strike-flow {
  0%   { background-position: 100% 0; }
  50%  { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}
/* breathing bloom — keeps the chromatic split while pulsing the glow */
@keyframes strike-pulse {
  0%, 100% {
    box-shadow:
      0 -1.5px 0 rgba(244, 63, 94, 0.45),
      0  1.5px 0 rgba(34, 211, 238, 0.45),
      0 0 12px rgba(244, 63, 94, 0.4),
      0 0 26px rgba(34, 211, 238, 0.18);
  }
  50% {
    box-shadow:
      0 -1.5px 0 rgba(244, 63, 94, 0.7),
      0  1.5px 0 rgba(34, 211, 238, 0.7),
      0 0 18px rgba(244, 63, 94, 0.75),
      0 0 40px rgba(34, 211, 238, 0.4);
  }
}
/* the word "manuel" deprecates: highlight flares as the bar crosses, then dims */
@keyframes strike-depr {
  0%   { color: var(--paper); text-shadow: none; }
  35%  { color: #fff; text-shadow: 0 0 18px rgba(244, 63, 94, 0.55); }
  100% { color: var(--paper-4); text-shadow: none; }
}

.hero-sub {
  margin-top: 32px;
  font-size: clamp(17px, 1.6vw, 21px);
  max-width: 52ch;
  color: var(--paper-2);
  line-height: 1.5;
}
.hero-sub strong { color: var(--paper); font-weight: 500; border-bottom: 1px dashed var(--cyan); padding-bottom: 1px; }

.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 40px; align-items: center;
}
.hero-reass {
  margin-top: 24px;
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--paper-4);
  letter-spacing: 0.04em;
}
.hero-reass span::before { content: '◆ '; color: var(--cyan); }

/* ─── TERMINAL MOCKUP ────────────────────────────────────────── */
.terminal {
  margin-top: 80px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.04), rgba(167, 139, 250, 0.02)),
    var(--ink-2);
  box-shadow: var(--shadow-deep), 0 0 80px -20px rgba(34, 211, 238, 0.25);
  overflow: hidden;
  position: relative;
}
.terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.4), transparent 40%, rgba(167, 139, 250, 0.3));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.terminal-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.2);
}
.term-dots { display: inline-flex; gap: 6px; }
.term-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}
.term-dots span:nth-child(1) { background: #FB7185; }
.term-dots span:nth-child(2) { background: var(--amber); }
.term-dots span:nth-child(3) { background: var(--emerald); }

.term-url {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-3);
  text-align: center;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0,0,0,0.3);
}
.term-url .lock { color: var(--emerald); }

.term-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--paper-4);
}

.terminal-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 480px;
}
@media (max-width: 720px) { .terminal-body { grid-template-columns: 1fr; } .term-side { display: none; } }

.term-side {
  border-right: 1px solid var(--line);
  padding: 20px 0;
  background: rgba(0,0,0,0.2);
}
.term-side-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--paper-4);
  letter-spacing: 0.12em;
  padding: 8px 20px;
  text-transform: uppercase;
}
.term-side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  color: var(--paper-3);
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.term-side-item.active {
  color: var(--paper);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.08), transparent);
  border-left-color: var(--cyan);
}
.term-side-ico {
  width: 14px; height: 14px;
  color: var(--paper-4);
}
.term-side-item.active .term-side-ico { color: var(--cyan); }

.term-main {
  padding: 24px 28px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--paper-2);
}
.term-prompt { color: var(--paper-4); }
.term-prompt::before { content: '$ '; color: var(--cyan); }
.term-cmd { color: var(--paper); }
.term-cmd .flag { color: var(--violet); }
.term-cmd .str { color: var(--amber); }

.term-out { margin-left: 14px; color: var(--paper-3); }
.term-out .key { color: var(--cyan); }
.term-out .val { color: var(--paper); }
.term-out .ok::before { content: '✓ '; color: var(--emerald); }

.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--cyan);
  vertical-align: bottom;
  animation: type 2.5s steps(48, end) 0.5s 1 both, blink 0.9s step-end infinite;
  max-width: 0;
}
@keyframes type {
  from { max-width: 0; }
  to { max-width: 100%; }
}
@keyframes blink {
  50% { border-color: transparent; }
}

.typewriter-2 {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  animation: type 2s steps(36, end) 3.2s 1 both;
  max-width: 0;
}
.typewriter-3 {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  animation: type 1.6s steps(28, end) 5.4s 1 both;
  max-width: 0;
}

.fade-in { opacity: 0; animation: fadeIn 0.6s 7.2s var(--ease) forwards; }
@keyframes fadeIn { to { opacity: 1; } }

.fade-in-late { opacity: 0; animation: fadeIn 0.6s 8s var(--ease) forwards; }

/* ─── STATS ──────────────────────────────────────────────────── */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.stat {
  background: var(--ink);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: background 0.3s var(--ease);
}
.stat:hover { background: var(--ink-2); }
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--paper-4);
  text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.stat-label .num {
  color: var(--cyan);
  font-size: 10px;
}
.stat-value {
  font-family: var(--display);
  font-size: clamp(38px, 4vw, 56px);
  color: var(--paper);
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.stat-foot {
  font-size: 13px;
  color: var(--paper-3);
  line-height: 1.4;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .stats-grid { grid-template-columns: 1fr; } }

/* ─── SECTION GENERIC ────────────────────────────────────────── */
section { padding: 140px 0; position: relative; }

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 80px; }
.section-head h2 { max-width: 18ch; }
.section-head-right { color: var(--paper-3); font-size: 17px; line-height: 1.6; max-width: 44ch; justify-self: end; }
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section-head-right { justify-self: start; }
}

/* ─── FEATURES (Bento) ───────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
}
.bento-card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.bento-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.bento-card .num {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--paper-4);
  letter-spacing: 0.12em;
}
.bento-card h3 {
  margin: 18px 0 12px;
  max-width: 18ch;
}
.bento-card p {
  color: var(--paper-3);
  font-size: 15px;
  max-width: 38ch;
}
.bento-card .gain {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.06);
  border-radius: 999px;
}

.feat-a { grid-column: span 4; grid-row: span 2; }
.feat-b { grid-column: span 2; grid-row: span 2; }
.feat-c { grid-column: span 2; }
.feat-d { grid-column: span 4; }

/* feature visuals (CSS-only illustrations) */
.feat-vis {
  position: relative;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), rgba(167, 139, 250, 0.05));
  border: 1px solid var(--line);
  padding: 16px;
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 24px;
  min-height: 140px;
}
.feat-a .feat-vis { min-height: 220px; }

.vis-label { color: var(--paper-4); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.vis-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--paper-3); }
.vis-row:last-child { border-bottom: none; }
.vis-row .v { color: var(--paper); }
.vis-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.vis-tag {
  font-size: 10px;
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--paper-2);
}
.vis-tag.hl { border-color: var(--cyan); color: var(--cyan); background: rgba(34, 211, 238, 0.08); }

.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  font-size: 18px;
}
.lang-grid span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
  transition: all 0.3s var(--ease);
}
.lang-grid span:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  transform: scale(1.05);
}

.bulk-bar {
  position: relative;
  height: 8px;
  background: var(--ink-3);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0;
}
.bulk-bar::after {
  content: '';
  position: absolute; inset: 0;
  width: 73%;
  background: var(--grad-brain);
  border-radius: 999px;
  box-shadow: 0 0 16px var(--cyan);
}
.bulk-progress {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--paper-3);
  margin-bottom: 6px;
}
.bulk-progress .pct { color: var(--cyan); }

.alt-mock {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
}
.alt-img {
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  position: relative;
  overflow: hidden;
}
.alt-img::after {
  content: '✦';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(0,0,0,0.4);
  font-size: 22px;
}
.alt-line { font-size: 11px; line-height: 1.5; color: var(--paper-3); }
.alt-line .key { color: var(--paper-4); }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feat-a, .feat-d { grid-column: span 2; grid-row: auto; }
  .feat-b, .feat-c { grid-column: span 2; grid-row: auto; }
}

/* ─── HOW IT WORKS ───────────────────────────────────────────── */
.how {
  background: var(--ink);
  position: relative;
}
.how::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.02) 50%, transparent),
    repeating-linear-gradient(90deg, transparent 0, transparent 60px, var(--line) 60px, var(--line) 61px);
  mask-image: radial-gradient(ellipse at center, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 80%);
  pointer-events: none;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; z-index: 2; }
.step {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ink-2);
}
.step-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 72px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--cyan);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
}
.step h3 { margin-bottom: 12px; }
.step p { color: var(--paper-3); font-size: 15px; }
.step .cmd {
  display: block;
  margin-top: 20px;
  padding: 10px 14px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
}
.step .cmd::before { content: '$ '; color: var(--paper-4); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ─── PRICING ────────────────────────────────────────────────── */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; max-width: 1100px; margin-inline: auto; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; gap: 32px; } }

/* ═══════════════════════════════════════════════════════════
   4-TIER PRICING (Solo / Pro / Business / Unlimited)
   ═══════════════════════════════════════════════════════════ */
.billing-toggle{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--ink-2);font-family:var(--mono);font-size:12px;letter-spacing:.05em;margin:0 auto 56px;align-items:center;justify-self:center}
.section-head .billing-toggle{display:inline-flex}
.pricing #pricing,.pricing-section .billing-toggle{display:inline-flex}
/* center toggle on its own line below H2 */
#pricing .section-head{display:flex;flex-direction:column;align-items:center;gap:0}
#pricing .billing-toggle{margin:0 auto 48px}
.billing-tab{padding:8px 18px;border:none;background:transparent;color:var(--paper-3);cursor:pointer;border-radius:999px;font:inherit;letter-spacing:inherit;transition:background .2s var(--ease),color .2s var(--ease)}
.billing-tab:hover{color:var(--paper)}
.billing-tab.is-active{background:linear-gradient(135deg,var(--cyan) 0%,var(--violet) 100%);color:var(--ink-1);font-weight:600}
.billing-saving{font-size:10px;background:rgba(34,211,238,.18);color:var(--cyan);padding:2px 6px;border-radius:4px;margin-left:6px;letter-spacing:0}
.billing-tab.is-active .billing-saving{background:rgba(10,10,15,.25);color:var(--ink-1)}

.pricing-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;max-width:1200px;margin-inline:auto;align-items:stretch}
.pricing-grid.pricing-grid-3{grid-template-columns:repeat(3,1fr);max-width:1100px;gap:24px}
@media(max-width:1100px){.pricing-grid,.pricing-grid.pricing-grid-3{grid-template-columns:repeat(2,1fr);gap:24px}}
@media(max-width:640px){.pricing-grid,.pricing-grid.pricing-grid-3{grid-template-columns:1fr}}

.price-card.price-card-solo,.price-card.price-card-pro,.price-card.price-card-business,.price-card.price-card-unlimited{padding:32px 24px;background:var(--ink-2);border:1px solid var(--line);border-radius:18px;position:relative;display:flex;flex-direction:column;gap:20px;transition:border-color .2s var(--ease),transform .2s var(--ease)}
.price-card.price-card-pro.is-featured{border-color:var(--cyan);box-shadow:0 0 0 1px rgba(34,211,238,.4),0 30px 60px -20px rgba(34,211,238,.3);transform:translateY(-8px);overflow:visible}
.price-card.price-card-pro.is-featured::after{display:none}
@media(max-width:1100px){.price-card.price-card-pro.is-featured{transform:none}}
.price-card:hover{border-color:var(--paper-4)}
.price-card.is-featured:hover{border-color:var(--cyan)}

.pc-badge{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:linear-gradient(135deg,var(--cyan) 0%,var(--violet) 100%);color:var(--ink-1);padding:5px 14px;border-radius:999px;font-family:var(--mono);font-size:11px;font-weight:700;letter-spacing:.08em;white-space:nowrap}

/* ── Badge "Meilleur choix" : 3D incliné, or premium ── */
.price-card.price-card-pro .pc-badge{
  top:-18px; left:auto; right:20px;
  transform:perspective(420px) rotateX(14deg) rotate(6deg);
  transform-origin:center bottom;
  background:linear-gradient(150deg,#FFE9A8 0%,#FFC640 42%,#F59E0B 100%);
  color:#3a2300;
  padding:8px 16px;
  border-radius:11px;
  border:1px solid rgba(255,255,255,.45);
  font-size:12px;
  font-weight:800;
  letter-spacing:.05em;
  text-shadow:0 1px 0 rgba(255,255,255,.55);
  box-shadow:
    0 2px 0 #c47e0c,
    0 4px 0 #a4690a,
    0 6px 0 #855408,
    0 12px 22px -5px rgba(245,158,11,.6),
    inset 0 1px 0 rgba(255,255,255,.7);
  z-index:4;
  animation:badge-float 4.5s ease-in-out infinite;
}
@keyframes badge-float{
  0%,100%{transform:perspective(420px) rotateX(14deg) rotate(6deg) translateY(0)}
  50%{transform:perspective(420px) rotateX(14deg) rotate(6deg) translateY(-4px)}
}
@media(max-width:1100px){
  .price-card.price-card-pro .pc-badge{right:50%;transform:perspective(420px) rotateX(14deg) rotate(6deg) translateX(50%)}
  @keyframes badge-float{
    0%,100%{transform:perspective(420px) rotateX(14deg) rotate(6deg) translateX(50%) translateY(0)}
    50%{transform:perspective(420px) rotateX(14deg) rotate(6deg) translateX(50%) translateY(-4px)}
  }
}
.pc-head{display:flex;flex-direction:column;gap:6px}
.pc-stamp{font-family:var(--mono);font-size:12px;color:var(--cyan);letter-spacing:.1em;text-transform:uppercase;font-weight:600}
.pc-tag{font-size:12px;color:var(--paper-3);margin:0;line-height:1.4}
.pc-price{display:flex;align-items:baseline;gap:4px;border-top:1px solid var(--line);padding-top:18px}
.pc-amount{font-family:var(--display);font-style:italic;font-size:48px;line-height:1;color:var(--paper);font-variation-settings:"opsz" 96,"SOFT" 50}
.pc-period{font-family:var(--mono);font-size:13px;color:var(--paper-3);letter-spacing:.05em}
.pc-sites{font-family:var(--mono);font-size:11px;color:var(--paper-4);letter-spacing:.1em;text-transform:uppercase;margin:0}
.pc-feats{list-style:none;padding:0;margin:0;flex:1;display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:1.5;color:var(--paper-2);border-top:1px solid var(--line);padding-top:18px}
.pc-feats li{display:flex;gap:6px}
.pc-feats strong{color:var(--paper);font-weight:600}
.pc-cta{width:100%;justify-content:center}

.pricing-trust{display:flex;flex-wrap:wrap;justify-content:center;gap:24px;margin-top:48px;font-family:var(--mono);font-size:11px;color:var(--paper-4);letter-spacing:.05em;text-align:center}

.price-pitch h2 { max-width: 14ch; margin-bottom: 24px; }
.price-pitch p { font-size: 17px; max-width: 42ch; color: var(--paper-3); margin-bottom: 16px; }
.price-pitch p strong { color: var(--paper); }

.price-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.05), rgba(167, 139, 250, 0.03)),
    var(--ink-2);
  border-radius: 16px;
  padding: 44px 40px;
  box-shadow: var(--shadow-deep), 0 0 80px -20px rgba(167, 139, 250, 0.35);
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, var(--cyan), transparent 50%, var(--violet));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}
.price-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15), transparent 70%);
  pointer-events: none;
}

.price-stamp {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
  border-radius: 999px;
  margin-bottom: 24px;
}

.price-amount {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 4px;
}
.price-amount .currency {
  font-family: var(--display);
  font-style: italic;
  font-size: 48px;
  color: var(--paper-3);
  line-height: 1;
}
.price-amount .num {
  font-family: var(--display);
  font-size: 124px;
  color: var(--paper);
  line-height: 0.9;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.03em;
}
.price-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-3);
  letter-spacing: 0.06em;
  margin-bottom: 32px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.price-meta .sep { color: var(--line-2); }
.price-meta .hl { color: var(--cyan); }

.price-features { list-style: none; margin: 28px 0; display: grid; gap: 12px; }
.price-features li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  color: var(--paper-2);
}
.price-features .ck {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
}
.price-features li strong { color: var(--paper); font-weight: 500; }

.price-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.price-trust {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--paper-4);
  display: flex; gap: 14px; flex-wrap: wrap;
}

/* ─── TESTIMONIALS ───────────────────────────────────────────── */
.testimonials {
  background: var(--ink);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.testi {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-2);
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color 0.3s var(--ease);
}
.testi:hover { border-color: var(--line-2); }
.testi-quote {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.4;
  color: var(--paper);
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.testi-quote::before {
  content: '"';
  font-family: var(--display);
  font-style: italic;
  font-size: 48px;
  color: var(--cyan);
  line-height: 0;
  vertical-align: -18px;
  margin-right: 4px;
}
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-brain);
  display: grid; place-items: center;
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
  font-family: var(--mono);
}
.testi-meta { line-height: 1.3; }
.testi-name { font-size: 14px; color: var(--paper); font-weight: 500; }
.testi-role { font-size: 12px; color: var(--paper-4); }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* featured pull quote */
.pull {
  margin: 80px 0 0;
  padding: 64px 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  position: relative;
}
.pull-quote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.3;
  color: var(--paper);
  max-width: 28ch;
  margin-inline: auto;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.pull-quote .accent { color: var(--cyan); }
.pull-attrib {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-3);
  letter-spacing: 0.06em;
}

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-list { max-width: 880px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  gap: 24px;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--paper-4);
  letter-spacing: 0.1em;
}
.faq-item[open] summary .faq-num { color: var(--cyan); }
.faq-item summary .faq-q {
  font-family: var(--display);
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--paper);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  line-height: 1.3;
}
.faq-item summary .faq-icon {
  font-family: var(--mono);
  color: var(--paper-3);
  font-size: 22px;
  text-align: center;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); color: var(--cyan); }
.faq-item .faq-body {
  padding: 0 56px 28px;
  color: var(--paper-3);
  font-size: 15px;
  line-height: 1.65;
  max-width: 60ch;
}

/* ─── FINAL CTA ──────────────────────────────────────────────── */
.final {
  padding: 160px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-glow {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle 600px at 30% 30%, rgba(34, 211, 238, 0.15), transparent 60%),
    radial-gradient(circle 600px at 70% 70%, rgba(167, 139, 250, 0.15), transparent 60%),
    radial-gradient(circle 400px at 50% 90%, rgba(251, 191, 36, 0.08), transparent 60%);
  pointer-events: none;
}
.final-inner { position: relative; z-index: 2; }
.final h2 { margin-bottom: 28px; max-width: 18ch; margin-inline: auto; }
.final p { font-size: 18px; color: var(--paper-3); max-width: 48ch; margin: 0 auto 40px; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-4);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p { color: var(--paper-3); max-width: 32ch; margin-top: 12px; font-family: var(--sans); font-size: 14px; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-3);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a {
  color: var(--paper-2);
  font-family: var(--sans);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.status-foot { display: inline-flex; align-items: center; gap: 8px; }
.status-foot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}
@media (max-width: 720px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    justify-items: center;
  }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-brand p { margin-inline: auto; }
  .footer-col h4 { text-align: center; }
  .footer-col ul { justify-items: center; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* ─── REVEAL ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─── LEGAL PAGES ────────────────────────────────────────────── */
.legal {
  padding: 160px 0 120px;
  position: relative;
}
.legal-head {
  max-width: 760px;
  margin: 0 auto 80px;
  text-align: center;
}
.legal-head .eyebrow { margin-bottom: 24px; }
.legal-head h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 24px;
}
.legal-head .last-update {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-4);
  letter-spacing: 0.08em;
}
.legal-body {
  max-width: 760px;
  margin-inline: auto;
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper-2);
}
.legal-body h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 56px 0 16px;
  color: var(--paper);
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h2::before {
  content: '§ ';
  color: var(--cyan);
  font-style: italic;
  margin-right: 4px;
}
.legal-body h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.01em;
  margin: 28px 0 10px;
}
.legal-body p { margin-bottom: 16px; }
.legal-body p strong { color: var(--paper); }
.legal-body ul, .legal-body ol {
  margin: 12px 0 24px 24px;
  display: grid;
  gap: 8px;
}
.legal-body li { color: var(--paper-2); }
.legal-body a {
  color: var(--cyan);
  border-bottom: 1px dashed var(--cyan);
  transition: opacity 0.2s;
}
.legal-body a:hover { opacity: 0.7; }
.legal-body code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--ink-2);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--cyan);
}
.legal-body .callout {
  margin: 24px 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  border-radius: 8px;
  background: var(--ink-2);
  font-size: 15px;
}
.legal-body .callout strong { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.legal-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 64px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-2);
}
.legal-toc-item {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-3);
  padding: 6px 0;
  border-bottom: 1px dashed transparent;
  transition: color 0.2s, border-color 0.2s;
}
.legal-toc-item:hover { color: var(--cyan); border-color: var(--cyan); }
.legal-toc-item .toc-num { color: var(--paper-4); }

/* ─── Guide / Mode d'emploi (reuses .legal styling) ──────────── */
.legal-body.guide-body h2::before { content: '→ '; font-style: normal; }
.legal-body.guide-body .step-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 10px;
}
.legal-body.guide-body .tip {
  border-left: 2px solid #f59e0b;
  background: var(--ink-2);
  padding: 12px 18px;
  border-radius: 8px;
  margin: 12px 0 20px;
  font-size: 14px;
}
.legal-body.guide-body .tip strong { color: #f59e0b; }
.legal-body.guide-body ol { list-style: decimal; }
/* Long URLs / inline code must wrap so the guide never forces a horizontal
   scrollbar (which would offset the centered fixed nav pill on mobile). */
.legal-body { min-width: 0; overflow-wrap: anywhere; }
.legal-body a, .legal-body code { overflow-wrap: anywhere; word-break: break-word; }

/* ─── Back-to-top button (all pages) ─────────────────────────── */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(10, 10, 15, 0.65);
  color: var(--paper-2);
  cursor: pointer;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0.3s var(--ease), border-color 0.3s var(--ease),
              color 0.3s var(--ease);
}
.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.to-top:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px) scale(1);
}
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 600px) {
  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* ─── AJAX swap fade ─────────────────────────────────────────── */
body { transition: opacity 0.18s var(--ease); }
body.is-loading { opacity: 0.55; pointer-events: none; }

/* ─── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
