  :root {
    /* Linear · Midnight Command Center */
    --bg: #08090a;            /* Pitch Black canvas */
    --bg-2: #0f1011;          /* Graphite card */
    --bg-3: #161718;          /* Deep Slate elevated */
    --line: #23252a;          /* Charcoal Grey border */
    --line-strong: #323334;   /* Muted Ash divider */
    --ink: #f7f8f8;           /* Porcelain — primary text */
    --ink-2: #d0d6e0;         /* Light Steel — secondary */
    --ink-3: #8a8f98;         /* Storm Cloud — tertiary */
    --ink-4: #62666d;         /* Fog Grey — meta */

    --accent: #e4f222;        /* Neon Lime — accent texte/bordures (devient encre en thème clair) */
    --accent-warm: #5e6ad2;   /* Aether Blue — informational accent */
    --accent-soft: rgba(228, 242, 34, 0.10);
    --accent-cta: #e4f222;    /* Neon Lime — réservé aux CTA + ::selection (lime dans les 2 thèmes) */
    --accent-cta-ink: #08090a;/* Texte posé sur le lime du CTA (noir dans les 2 thèmes) */

    /* Surfaces translucides (boutons pill, dropdowns) — themables */
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --surface-border: rgba(255, 255, 255, 0.08);
    --surface-border-hover: rgba(255, 255, 255, 0.16);
    --popover-bg: rgba(15, 16, 17, 0.98);

    /* Accents décoratifs des mockups/canvas (glows, rings, code couleur catégories) —
       themables : en clair ils deviennent monochromes pour un rendu N&B cohérent */
    --accent-ring: rgba(228, 242, 34, 0.18);
    --accent-ring-2: rgba(228, 242, 34, 0.25);
    --accent-glow: rgba(228, 242, 34, 0.06);
    --mock-amber: #fcd34d;
    --mock-blue: #5e6ad2;  --mock-blue-ink: #a5b4ff;
    --mock-violet: #a78bfa;

    --shadow-card: rgba(0, 0, 0, 0.4) 0px 2px 4px 0px;
    --shadow-inset: rgb(35, 37, 42) 0px 0px 0px 1px inset;
    --shadow-xl: rgba(8, 9, 10, 0.6) 0px 4px 32px 0px;

    --radius: 6px;
    --radius-lg: 12px;

    --font-display: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  }

  /* ===========================================================
     Light theme · "Linear · Daylight"
     Pendant clair, éditorial et monochrome du thème sombre.
     Principe : --accent (lime) bascule en ENCRE → tout l'accent-texte,
     les bordures actives et le logo SVG passent au noir automatiquement.
     Le lime ne survit que sur les CTA (--accent-cta) et le point "live".
     =========================================================== */
  [data-theme="light"] {
    --bg: #fbfbfa;            /* Papier chaud — canvas */
    --bg-2: #ffffff;          /* Carte blanche pure */
    --bg-3: #f1f1ee;          /* Surface en creux / hover */
    --line: rgba(17, 18, 20, 0.09);
    --line-strong: rgba(17, 18, 20, 0.16);
    --ink: #14161a;           /* Encre — texte primaire */
    --ink-2: #3a3f47;         /* Graphite — secondaire */
    --ink-3: #6a6f78;         /* Ardoise — tertiaire */
    --ink-4: #9aa0aa;         /* Brume — meta */

    /* L'accent texte/bordures devient encre quasi-pure (highlights = noir net) */
    --accent: #050608;
    --accent-soft: rgba(17, 18, 20, 0.06);   /* tint neutre pour chips/pills */
    /* N&B total : le lime disparaît aussi des CTA, du point "live" et de la sélection */
    --accent-cta: var(--ink);
    --accent-cta-ink: var(--bg);

    /* Mockups/canvas en monochrome : glows, rings et code couleur neutralisés */
    --accent-ring: rgba(17, 18, 20, 0.12);
    --accent-ring-2: rgba(17, 18, 20, 0.18);
    --accent-glow: rgba(17, 18, 20, 0.045);
    --mock-amber: var(--ink-3);
    --mock-blue: var(--ink-3);  --mock-blue-ink: var(--ink-2);
    --mock-violet: var(--ink-3);

    --surface: rgba(17, 18, 20, 0.025);
    --surface-hover: rgba(17, 18, 20, 0.05);
    --surface-border: rgba(17, 18, 20, 0.10);
    --surface-border-hover: rgba(17, 18, 20, 0.20);
    --popover-bg: rgba(255, 255, 255, 0.98);

    --shadow-card: rgba(20, 28, 46, 0.06) 0px 1px 2px 0px, rgba(20, 28, 46, 0.08) 0px 4px 12px -4px;
    --shadow-inset: rgba(17, 18, 20, 0.08) 0px 0px 0px 1px inset;
    --shadow-xl: rgba(20, 28, 46, 0.16) 0px 16px 48px -12px;
  }

  /* La grille du hero est faite de lignes --line : la remonter un peu sur fond clair */
  [data-theme="light"] .hero-grid { opacity: 1; }

  /* Objet "document scanné" : reste sombre (objet physique). Ses coins/laser passent
     en gris clair (N&B) pour rester visibles sur le cadre sombre, sans jaune. */
  [data-theme="light"] .flow-pdf__frame,
  [data-theme="light"] .flow-pdf__corner { --accent: #cfd2d6; }

  /* CTA monochromes en clair : bouton encre, texte papier (les variables --accent-cta
     ci-dessus suffisent ; le hover s'éclaircit légèrement) */
  [data-theme="light"] .btn-primary:hover,
  [data-theme="light"] .nav-links a.btn-primary:hover {
    background: color-mix(in oklab, var(--ink) 84%, #fff);
    border-color: color-mix(in oklab, var(--ink) 84%, #fff);
    color: var(--bg);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; font-family: var(--font-body); }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-feature-settings: "cv01","ss03";
    font-variation-settings: "opsz" 18;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    letter-spacing: -0.011em;
    overflow-x: hidden;
  }

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

  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

  .mono { font-family: var(--font-mono); letter-spacing: -0.01em; }
  .display { font-family: var(--font-display); letter-spacing: -0.02em; }

  /* === Layout === */
  .wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
  @media (max-width: 720px) { .wrap { padding: 0 20px; } }

  @media (max-width: 720px) {
    .hero-inner > *,
    .mode > *,
    .pocket > * {
      min-width: 0;
      max-width: 100%;
    }
  }

  /* === Top nav === */
  .nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px);
    background: color-mix(in oklab, var(--bg) 78%, transparent);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
  }
  .brand { display: flex; align-items: center; gap: 10px; }
  .brand-mark {
    width: 34px; height: 34px;
    display: grid; place-items: center;
  }
  .brand-mark svg { width: 100%; height: 100%; overflow: visible; }
  .brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
  }
  .brand-name .hl { color: var(--accent); }

  /* Logo path: subtle draw on first paint, then settles. */
  .brand-path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 0;
    animation: brand-draw 2.4s ease-out 1 both;
  }
  .brand-antenna {
    animation: brand-antenna-fade 2.4s ease-out 1 both;
  }
  /* Dots: staggered pulse, always-on. */
  .brand-dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: brand-dot-pulse 2.6s ease-in-out infinite;
  }
  .brand-dot:nth-child(4) { animation-delay: 0s; }
  .brand-dot:nth-child(5) { animation-delay: 0.35s; }
  .brand-dot:nth-child(6) { animation-delay: 0.7s; }
  .brand-dot:nth-child(7) { animation-delay: 1.05s; }
  .brand-dot:nth-child(8) { animation-delay: 1.4s; }
  .brand-dot:nth-child(9) { animation-delay: 1.75s; }

  @keyframes brand-draw {
    0% { stroke-dashoffset: 1200; opacity: 0.4; }
    100% { stroke-dashoffset: 0; opacity: 1; }
  }
  @keyframes brand-antenna-fade {
    0%, 60% { opacity: 0; }
    100% { opacity: 1; }
  }
  @keyframes brand-dot-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.4); opacity: 1; }
  }
  @media (prefers-reduced-motion: reduce) {
    .brand-path, .brand-antenna, .brand-dot {
      animation: none;
    }
    .brand-path { stroke-dashoffset: 0; }
    .brand-antenna { opacity: 1; }
  }
  .nav-links { display: flex; gap: 28px; align-items: center; }
  .nav-links a {
    font-size: 13px; color: var(--ink-2);
    transition: color .2s;
  }
  .nav-links a:hover { color: var(--ink); }

  .nav-menu-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg-2) 88%, transparent);
    color: var(--ink);
    font-size: 12px;
    font-weight: 590;
    line-height: 1;
  }
  .nav-menu-lines {
    width: 16px;
    height: 12px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
  .nav-menu-lines i {
    display: block;
    width: 16px;
    height: 1.5px;
    border-radius: 1px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }
  .nav-menu-btn[aria-expanded="true"] .nav-menu-lines i:first-child {
    transform: translateY(3.25px) rotate(45deg);
  }
  .nav-menu-btn[aria-expanded="true"] .nav-menu-lines i:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
  }

  @media (max-width: 860px) {
    .nav {
      z-index: 80;
    }
    .nav-inner {
      position: relative;
    }
    .nav-menu-btn {
      display: inline-flex;
    }
    .nav-links {
      position: absolute;
      top: calc(100% + 10px);
      left: 20px;
      right: 20px;
      display: none;
      flex-direction: column;
      align-items: stretch;
      gap: 4px;
      padding: 8px;
      background: color-mix(in srgb, var(--bg-2) 96%, transparent);
      border: 1px solid var(--line);
      border-radius: 14px;
      box-shadow: 0 18px 48px -24px rgba(0,0,0,0.82);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }
    .nav-links.open {
      display: flex;
    }
    .nav-links a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 42px;
      padding: 0 12px;
      border-radius: 8px;
      color: var(--ink-2);
      font-size: 13px;
    }
    .nav-links a:not(.btn)::after {
      content: "→";
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--ink-4);
    }
    .nav-links a:hover {
      background: var(--bg-3);
    }
    .nav-links .country-selector {
      width: 100%;
      margin: 4px 0;
      display: flex;
      flex-direction: column;
      align-items: stretch;
    }
    .nav-links .country-btn {
      width: 100%;
      justify-content: flex-start;
      min-height: 42px;
      border-radius: 8px;
    }
    .nav-links .country-list {
      position: static;
      width: 100%;
      min-width: 0;
      margin-top: 6px;
      transform: none;
      border-radius: 10px;
      box-shadow: none;
      background: color-mix(in srgb, var(--bg) 84%, var(--bg-2));
      animation: country-list-menu-in 160ms ease-out;
    }
    @keyframes country-list-menu-in {
      from { opacity: 0; transform: translateY(-6px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .nav-links a.btn {
      justify-content: center;
      margin-top: 4px;
      min-height: 44px;
      border-radius: 8px;
      color: var(--bg);
    }
  }

  /* Cookie consent banner — Linear · Midnight style */
  .cookie-banner {
    position: fixed;
    bottom: 16px; left: 16px; right: 16px;
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    z-index: 10000;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s ease, transform .3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-body);
    color: var(--ink-2);
  }
  .cookie-banner.active {
    opacity: 1;
    transform: translateY(0);
  }
  .cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .cookie-text { flex: 1; min-width: 0; }
  .cookie-title {
    font-size: 13px;
    font-weight: 590;
    color: var(--ink);
    margin: 0 0 4px 0;
    letter-spacing: -0.005em;
  }
  .cookie-desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-3);
    margin: 0;
  }
  .cookie-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }
  .cookie-btn {
    font-family: inherit;
    font-size: 12px;
    font-weight: 510;
    padding: 8px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    white-space: nowrap;
    line-height: 1;
  }
  .cookie-btn-refuse {
    background: transparent;
    color: var(--ink-3);
    border: 1px solid var(--line-strong);
  }
  .cookie-btn-refuse:hover {
    background: var(--bg-3);
    color: var(--ink-2);
    border-color: var(--line-strong);
  }
  .cookie-btn-accept {
    background: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
    font-weight: 590;
  }
  .cookie-btn-accept:hover {
    background: color-mix(in oklab, var(--accent) 88%, white);
    border-color: color-mix(in oklab, var(--accent) 88%, white);
  }
  @media (max-width: 720px) {
    .cookie-banner {
      bottom: 12px; left: 12px; right: 12px;
      padding: 14px 16px;
    }
    .cookie-content {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
    }
    .cookie-buttons {
      width: 100%;
    }
    .cookie-btn { flex: 1; min-height: 44px; padding: 10px 16px; }
  }

  /* Country / Language / Currency selector — dropdown with flag + meta */
  .country-selector { position: relative; display: inline-flex; align-items: center; }

  .country-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    color: var(--ink-2, var(--ink));
    font-family: inherit;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
  }
  .country-btn:hover {
    border-color: var(--surface-border-hover);
    background: var(--surface-hover);
    color: var(--ink);
  }
  .country-btn:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
  }
  .country-flag {
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
  }
  .country-label { font-weight: 500; }
  .country-currency {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    color: var(--ink-3, rgba(255, 255, 255, 0.5));
    letter-spacing: 0.04em;
  }
  .country-chevron { opacity: 0.5; transition: transform 180ms ease; }
  .country-btn[aria-expanded="true"] .country-chevron { transform: rotate(180deg); }

  .country-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--popover-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 100;
    animation: country-list-in 160ms ease-out;
  }

  @keyframes country-list-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .country-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.2;
    color: var(--ink-2, var(--ink));
    transition: background 140ms ease, color 140ms ease;
  }
  .country-list li:hover { background: var(--surface-hover); color: var(--ink); }
  .country-list li:focus-visible {
    outline: none;
    background: var(--surface-hover);
    box-shadow: inset 0 0 0 1px var(--accent-soft);
  }
  .country-list li[aria-selected="true"] {
    background: var(--accent-soft);
    color: var(--accent);
  }
  .country-list .country-flag { font-size: 18px; }
  .country-list .country-name { flex: 1; font-weight: 500; }
  .country-list .country-meta {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    color: var(--ink-3, rgba(255, 255, 255, 0.5));
    letter-spacing: 0.04em;
  }

  /* Mobile : full-width dropdown */
  @media (max-width: 720px) {
    .country-list {
      right: 50%;
      transform: translateX(50%);
      min-width: 260px;
      animation: country-list-centered-in 160ms ease-out;
    }
    @keyframes country-list-centered-in {
      from { opacity: 0; transform: translate(50%, -6px); }
      to { opacity: 1; transform: translate(50%, 0); }
    }
    .country-btn .country-label { display: none; }
    .country-btn { padding: 6px 10px; }
  }

  .btn, .nav-links a.btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-body);
    font-size: 13px; font-weight: 510;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--ink);
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
    white-space: nowrap;
    line-height: 1;
  }
  .btn:hover, .nav-links a.btn:hover { background: var(--bg-3); border-color: var(--line-strong); color: var(--ink); }
  .btn-primary, .nav-links a.btn-primary {
    background: var(--accent-cta);
    color: var(--accent-cta-ink);
    border-color: var(--accent-cta);
    font-weight: 590;
  }
  .btn-primary:hover, .nav-links a.btn-primary:hover {
    background: color-mix(in oklab, var(--accent-cta) 88%, white);
    color: var(--accent-cta-ink);
    border-color: color-mix(in oklab, var(--accent-cta) 88%, white);
  }
  .btn-primary:active, .nav-links a.btn-primary:active { transform: translateY(1px); }
  .btn-ghost {
    border-color: transparent;
    color: var(--ink-2);
  }
  .btn-ghost:hover { background: var(--bg-2); border-color: var(--line); color: var(--ink); }

  /* === Audit section === */
  .audit {
    border-bottom: 1px solid var(--line);
    background:
      radial-gradient(800px 400px at 80% 0%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 60%),
      var(--bg);
  }
  .audit-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 28px 0;
    cursor: pointer;
    user-select: none;
  }
  .audit-header-left { display: flex; align-items: center; gap: 16px; }
  .audit-pill {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .audit-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
  }
  .audit-toggle {
    width: 36px; height: 36px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--ink-2);
    transition: transform .3s ease;
  }
  .audit.collapsed .audit-toggle { transform: rotate(-90deg); }
  .audit-body {
    overflow: hidden;
    transition: max-height .4s ease, opacity .3s ease, padding .3s;
    max-height: 4000px;
    opacity: 1;
    padding-bottom: 64px;
  }
  .audit.collapsed .audit-body { max-height: 0; opacity: 0; padding-bottom: 0; }

  .verdict {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    padding: 16px 0 56px;
    border-top: 1px solid var(--line);
  }
  @media (max-width: 900px) { .verdict { grid-template-columns: 1fr; gap: 24px; } }
  .verdict-h {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  .verdict-h em {
    font-style: normal;
    color: var(--accent);
    font-weight: 590;
  }
  .verdict-p { color: var(--ink-2); font-size: 15px; max-width: 46ch; }
  .verdict-meta { display: flex; flex-direction: column; gap: 12px; }
  .verdict-row {
    display: grid; grid-template-columns: 90px 1fr; gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13px;
  }
  .verdict-row span:first-child {
    font-family: var(--font-mono);
    color: var(--ink-3);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-top: 1px;
  }

  .findings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .finding {
    background: var(--bg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .finding-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    display: flex; align-items: center; gap: 8px;
  }
  .finding-num .sev {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
  }
  .finding.high .sev { background: var(--accent-warm); }
  .finding.med .sev { background: var(--accent); }
  .finding.low .sev { background: var(--ink-3); }
  .finding-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
  }
  .finding-desc { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
  .finding-fix {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--accent);
    display: flex; gap: 8px;
  }
  .finding-fix::before { content: "→"; }

  /* === Hero === */
  .hero {
    position: relative;
    padding: 96px 0 80px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
  }
  .hero-grid {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 30%, transparent 80%);
    pointer-events: none;
    opacity: 0.6;
  }
  .hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    align-items: center;
  }
  @media (min-width: 1001px) and (max-width: 1180px) {
    .hero {
      padding: 56px 0 64px;
    }
    .hero-inner {
      grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
      gap: 36px;
      align-items: start;
    }
    .hero-h1 {
      font-size: clamp(46px, 5vw, 56px);
    }
  }
  @media (max-width: 1000px) { .hero-inner { grid-template-columns: 1fr; gap: 48px; } }

  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-2);
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-cta);
    box-shadow: 0 0 8px color-mix(in oklab, var(--accent-cta) 60%, transparent);
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
  }

  .hero-h1 {
    font-family: var(--font-display);
    font-weight: 590;
    font-size: clamp(40px, 5.2vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.022em;
    margin: 24px 0 24px;
    text-wrap: balance;
  }
  .hero-h1 .stroke {
    color: var(--ink-2);
    font-weight: 400;
  }
  .hero-h1 .accent {
    color: var(--accent);
    position: relative;
    display: inline-block;
  }
  .hero-h1 .underline {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-size: 100% 4px;
    background-position: 0 100%;
    padding-bottom: 4px;
  }
  .hero-sub {
    font-size: 17px;
    color: var(--ink-2);
    max-width: 52ch;
    margin-bottom: 36px;
    text-wrap: pretty;
  }

  /* Waitlist multi-step */
  .waitlist {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 6px;
    max-width: 520px;
    position: relative;
    overflow: hidden;
  }
  .waitlist::before {
    content: "";
    position: absolute; inset: -1px;
    background: linear-gradient(120deg, transparent 30%, var(--accent-soft), transparent 70%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
    border-radius: inherit;
  }
  .waitlist:focus-within::before { opacity: 1; }

  .waitlist-input-row {
    display: flex; gap: 6px; align-items: stretch;
  }
  .waitlist input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    padding: 16px 18px;
  }
  .waitlist input::placeholder { color: var(--ink-3); }
  .waitlist-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent-cta);
    color: var(--accent-cta-ink);
    font-weight: 600;
    font-size: 14px;
    padding: 0 24px;
    border-radius: 10px;
    transition: transform .2s, background .2s;
  }
  .waitlist-cta:hover { transform: translateX(2px); }
  .waitlist-cta:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

  .waitlist-step-2 {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .waitlist-step-2.active, .waitlist-step-3.active { display: flex; }
  .waitlist-step-2 label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
  }
  .chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
  .chip {
    padding: 8px 14px;
    border-radius: 100px;
    border: 1px solid var(--line-strong);
    font-size: 13px;
    color: var(--ink-2);
    transition: all .15s;
  }
  .chip:hover { border-color: var(--ink-2); color: var(--ink); }
  .chip.selected {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    font-weight: 500;
  }
  .waitlist-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
  .waitlist-step-3 {
    display: none;
    padding: 24px;
    text-align: center;
  }
  .waitlist-step-3 .check {
    width: 48px; height: 48px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    display: grid; place-items: center;
    font-size: 22px;
    animation: pop .4s ease;
  }
  @keyframes pop {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
  }
  .waitlist-step-3 h4 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 4px; }
  .waitlist-step-3 p { color: var(--ink-2); font-size: 14px; }
  .waitlist-rank {
    display: inline-flex;
    margin-top: 16px;
    padding: 8px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-2);
    gap: 8px;
  }
  .waitlist-rank b { color: var(--accent); font-weight: 600; }

  .progress-dots {
    display: flex; gap: 6px;
    padding: 0 18px 12px;
  }
  .progress-dots span {
    flex: 1;
    height: 2px;
    background: var(--line);
    border-radius: 2px;
    transition: background .3s;
  }
  .progress-dots span.active { background: var(--accent); }

  .hero-meta {
    margin-top: 18px;
    display: flex; gap: 18px; align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .hero-meta b { color: var(--ink); font-weight: 500; }

  @media (max-width: 640px) {
    .hero-copy,
    .waitlist,
    .agent-panel {
      width: 100%;
      max-width: 100%;
    }
    .hero-h1,
    .hero-sub,
    .hero-meta {
      max-width: 100%;
    }
    .waitlist-input-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
    }
    .waitlist input {
      min-width: 0;
      padding: 15px 14px;
    }
    .waitlist-cta {
      min-width: 0;
      padding: 0 16px;
      white-space: nowrap;
    }
  }

  @media (max-width: 420px) {
    .waitlist-cta {
      padding: 0 14px;
      font-size: 13px;
    }
    .hero-meta {
      gap: 10px;
      font-size: 9.5px;
    }
  }

  /* Hero visual: terminal/dashboard mock */
  .hero-visual {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .term-chrome {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
  }
  .term-chrome::before {
    content: "● ● ●";
    color: var(--ink-4);
    font-size: 9px;
    letter-spacing: 2px;
    margin-right: 8px;
  }
  .term-body {
    padding: 18px 22px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ink-2);
    line-height: 1.8;
    height: calc(100% - 42px);
    display: flex; flex-direction: column;
  }
  .term-line { display: flex; gap: 10px; align-items: baseline; }
  .term-prompt { color: var(--accent); flex-shrink: 0; }
  .term-key { color: var(--ink-3); }
  .term-val { color: var(--ink); }
  .term-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 10px;
  }
  .term-divider {
    height: 1px;
    background: var(--line);
    margin: 8px 0;
  }
  .term-cursor::after {
    content: "▌";
    color: var(--accent);
    animation: blink 1s infinite;
    margin-left: 2px;
  }
  @keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
  }
  .term-bars {
    display: flex; gap: 4px; align-items: flex-end; height: 36px; margin-top: 8px;
  }
  .term-bars span {
    flex: 1;
    background: var(--accent);
    opacity: 0.4;
    border-radius: 2px 2px 0 0;
    animation: bar 2.4s ease-in-out infinite;
  }
  .term-bars span:nth-child(1) { animation-delay: 0s; }
  .term-bars span:nth-child(2) { animation-delay: .2s; }
  .term-bars span:nth-child(3) { animation-delay: .4s; }
  .term-bars span:nth-child(4) { animation-delay: .6s; }
  .term-bars span:nth-child(5) { animation-delay: .8s; }
  .term-bars span:nth-child(6) { animation-delay: 1.0s; }
  .term-bars span:nth-child(7) { animation-delay: 1.2s; }
  .term-bars span:nth-child(8) { animation-delay: 1.4s; }
  @keyframes bar {
    0%, 100% { height: 30%; opacity: 0.3; }
    50% { height: 100%; opacity: 1; }
  }
  .term-stat {
    margin-top: auto;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .term-stat > div { display: flex; flex-direction: column; gap: 2px; }
  .term-stat .v { font-family: var(--font-display); font-size: 22px; color: var(--ink); font-weight: 600; }
  .term-stat .l { font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }

  /* === Trust strip === */
  .trust {
    border-bottom: 1px solid var(--line);
    padding: 32px 0;
  }
  .trust-inner {
    display: flex; gap: 40px; align-items: center; flex-wrap: wrap;
    justify-content: space-between;
  }
  .trust-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .trust-items { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
  .trust-item {
    display: flex; align-items: center; gap: 10px;
    color: var(--ink-2);
    font-size: 13px;
  }
  .trust-item .badge-pill {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-warm);
    border: 1px solid var(--accent-warm);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* === Section header === */
  .sec { padding: 96px 0; border-bottom: 1px solid var(--line); position: relative; }
  @media (max-width: 900px) { .sec { padding: 64px 0; } }
  .sec-head {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 80px;
    margin-bottom: 64px;
  }
  @media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; gap: 24px; } }
  .sec-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-top: 14px;
    border-top: 1px solid var(--line-strong);
    align-self: start;
  }
  .sec-h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 590;
    letter-spacing: -0.022em;
    line-height: 1.15;
    text-wrap: balance;
  }
  .sec-h2 em { font-style: normal; color: var(--accent); font-weight: 590; }
  .sec-p {
    color: var(--ink-2);
    font-size: 17px;
    max-width: 60ch;
    margin-top: 20px;
    text-wrap: pretty;
  }

  /* === Accessibilité : visuellement masqué mais lu par les lecteurs d'écran === */
  .visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* === Vidéo promo (façade : iframe chargée au clic) === */
  .video-promo {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-2);
    box-shadow:
      inset 0 0 0 1px var(--line),
      0 26px 70px -30px rgba(0, 0, 0, 0.55),
      0 0 64px -22px var(--accent-glow);
    transition: box-shadow .4s ease, transform .4s ease;
  }
  .video-promo:hover {
    transform: translateY(-2px);
    box-shadow:
      inset 0 0 0 1px color-mix(in oklab, var(--accent) 22%, var(--line)),
      0 34px 86px -28px rgba(0, 0, 0, 0.6),
      0 0 104px -18px var(--accent-glow);
  }
  /* Contour stylé : liseré dégradé + reflet d'accent qui tourne autour du cadre */
  @property --vp-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
  }
  .video-promo::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--vp-angle),
      transparent 0%,
      color-mix(in oklab, var(--accent) 78%, transparent) 11%,
      transparent 29%,
      transparent 57%,
      color-mix(in oklab, var(--accent) 62%, transparent) 69%,
      transparent 87%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 4;
    animation: vp-border-rotate 6s linear infinite;
  }
  @keyframes vp-border-rotate { to { --vp-angle: 360deg; } }
  @media (prefers-reduced-motion: reduce) {
    .video-promo::after { animation: none; }
  }
  /* Bouton play : lime sur fond sombre, pastille claire en thème clair (anti noir-sur-noir) */
  [data-theme="light"] .video-promo__play { background: var(--bg); color: var(--ink); }
  .video-promo__btn {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: block;
  }
  .video-promo__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.82);
    transition: filter .25s ease, transform .4s ease;
  }
  .video-promo__btn:hover .video-promo__poster,
  .video-promo__btn:focus-visible .video-promo__poster {
    filter: brightness(0.95);
    transform: scale(1.015);
  }
  .video-promo__play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 76px; height: 76px;
    border-radius: 50%;
    background: var(--accent);
    color: #111;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .video-promo__play svg { width: 30px; height: 30px; margin-left: 3px; }
  .video-promo__btn:hover .video-promo__play,
  .video-promo__btn:focus-visible .video-promo__play {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 10px 38px rgba(0, 0, 0, 0.5);
  }
  .video-promo__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .video-promo__badge {
    position: absolute;
    bottom: 14px; right: 14px;
    font-size: 11px;
    color: var(--ink-1);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--line);
    padding: 4px 8px;
    border-radius: 5px;
    letter-spacing: 0.04em;
  }
  .video-promo iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  @media (max-width: 540px) { .video-promo__play { width: 60px; height: 60px; } .video-promo__play svg { width: 24px; height: 24px; } }
  @media (prefers-reduced-motion: reduce) {
    .video-promo__poster, .video-promo__play { transition: none; }
  }

  /* === Ecosystem grid === */
  .ecosystem {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  @media (max-width: 1100px) { .ecosystem { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 800px)  { .ecosystem { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 540px)  { .ecosystem { grid-template-columns: 1fr; } }
  .eco-card {
    background: var(--bg);
    padding: 24px;
    display: flex; flex-direction: column;
    gap: 10px;
    transition: background .2s;
    cursor: default;
  }
  .eco-card:hover { background: var(--bg-2); }
  .eco-card.featured { background: var(--bg-2); }
  .eco-card.featured h3 { color: var(--accent); }

  .eco-icon {
    width: 36px; height: 36px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    display: grid; place-items: center;
    color: var(--accent);
    margin-bottom: 8px;
  }
  .eco-icon svg { width: 18px; height: 18px; }
  .eco-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 590;
    letter-spacing: -0.011em;
  }
  .eco-card p { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
  .eco-card .meta {
    margin-top: auto;
    padding-top: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .eco-card .tag-beta {
    display: inline-block;
    padding: 2px 7px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-left: 6px;
    vertical-align: middle;
  }

  /* === Flux magique === */
  .flow {
    display: block;
  }
  .flow-list { display: flex; flex-direction: column; gap: 0; }
  .flow-step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 24px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    cursor: pointer;
    transition: background .2s;
  }
  .flow-step:hover { background: linear-gradient(90deg, var(--bg-2), transparent); }
  .flow-step.active .flow-num { color: var(--accent); border-color: var(--accent); }
  .flow-step.active h4 { color: var(--ink); }
  .flow-step:last-child { border-bottom: 1px solid var(--line); }
  .flow-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-3);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    transition: all .25s;
  }
  .flow-step h4 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 6px;
    transition: color .25s;
  }
  .flow-step p { color: var(--ink-3); font-size: 14px; }
  .flow-visual {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: sticky; top: 96px;
    align-self: start;
    min-height: 420px;
    display: flex; flex-direction: column;
  }
  .flow-visual-head {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
  }
  .flow-stage { flex: 1; display: none; flex-direction: column; gap: 12px; }
  .flow-stage.active { display: flex; }
  .flow-doc {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ink-2);
    line-height: 1.7;
  }
  .flow-doc-row { display: flex; justify-content: space-between; padding: 4px 0; }
  .flow-doc-row span:first-child { color: var(--ink-3); }
  .flow-doc-row span:last-child { color: var(--ink); }
  .flow-arrow {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    animation: arrowDown 1.4s infinite;
  }
  @keyframes arrowDown {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(4px); opacity: 0.5; }
  }
  .flow-result {
    background: linear-gradient(135deg, var(--accent-soft), transparent);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink);
  }
  .flow-result b { color: var(--accent); display: block; margin-bottom: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }

  /* === Numbers section — live shared DB stats === */
  .numbers-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 18px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .numbers-head__live {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--accent);
    padding: 3px 9px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-ring);
    border-radius: 4px;
    font-size: 9.5px;
  }
  .numbers-head__live::before {
    content: "";
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--accent-ring);
    animation: agentLivePulse 1.6s infinite;
  }
  .numbers-head__sep { flex: 1; height: 1px; background: var(--line); }
  .numbers-head__updated b { color: var(--ink-2); font-weight: 500; }

  /* Lead paragraph above the cards — explains the chain in plain text */
  .numbers-lead {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 780px;
  }
  .numbers-lead b {
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.005em;
    white-space: nowrap;
  }

  .numbers {
    display: grid;
    /* 4 cards + 3 arrows, arrows take their natural width */
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 16px;
    align-items: stretch;
  }
  .num-arrow {
    align-self: center;
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    color: color-mix(in srgb, var(--accent) 55%, var(--ink-4));
    opacity: 0.45;
    user-select: none;
    padding: 0 4px;
    transition: opacity 240ms, color 240ms;
  }
  .numbers:hover .num-arrow {
    opacity: 0.85;
    color: var(--accent);
  }
  @media (max-width: 980px) {
    .numbers { grid-template-columns: repeat(2, 1fr); }
    .num-arrow { display: none; }
  }
  @media (max-width: 520px) {
    .numbers { grid-template-columns: 1fr; }
  }

  .num-cell {
    position: relative;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 24px 22px;
    display: flex; flex-direction: column;
    gap: 12px;
    overflow: hidden;
    transition: border-color .3s, transform .3s;
  }
  .num-cell:hover { border-color: var(--line-strong); transform: translateY(-2px); }
  .num-cell::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity .3s;
  }
  .num-cell:hover::after { opacity: 0.5; }

  .num-cell__tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex; align-items: center; gap: 6px;
  }
  .num-cell__tag svg { width: 12px; height: 12px; color: var(--accent); }

  .num-v {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--ink);
    display: flex; align-items: baseline; gap: 4px;
  }
  .num-v .plus {
    color: var(--accent);
    font-size: 0.55em;
    font-weight: 500;
  }
  .num-v[data-loading="true"] {
    color: var(--ink-3);
  }

  .num-cell__sub {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.4;
  }
  .num-cell__sub b { color: var(--ink); font-weight: 500; }

  /* Mini-detail row at the bottom of each card */
  .num-cell__detail {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    display: flex; flex-wrap: wrap; gap: 5px;
    min-height: 24px;
  }
  .num-chip {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--ink-2);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 8px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .num-chip--more {
    color: var(--ink-3);
    background: transparent;
    border-style: dashed;
  }

  /* Brand-row variant for the brands cell */
  .num-brands {
    display: flex; gap: -2px; align-items: center;
  }
  .num-brand-mark {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--bg-3);
    border: 1px solid var(--line);
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 600;
    color: var(--ink);
    margin-left: -6px;
  }
  .num-brand-mark:first-child { margin-left: 0; }
  .num-brand-mark--more {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent-ring-2);
    font-family: var(--font-mono);
    font-size: 9px;
  }

  /* Parts qualities row */
  .num-quality { display: flex; gap: 6px; align-items: center; }
  .num-quality span {
    font-family: var(--font-mono);
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 7px;
    border-radius: 4px;
    line-height: 1.2;
  }
  .num-quality .q-oem { color: var(--accent); background: var(--accent-soft); }
  .num-quality .q-comp { color: var(--accent-warm); background: rgba(94,106,210,0.14); }
  .num-quality .q-refurb { color: var(--ink-2); background: var(--bg-3); }

  /* === Vision (Founder) === */
  .vision-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
  @media (max-width: 900px) { .vision-inner { grid-template-columns: 1fr; gap: 32px; } }
  .vision-quote {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  .vision-quote {
    font-style: normal;
    font-weight: 510;
  }
  .vision-quote::before {
    content: "“";
    font-size: 1.5em;
    color: var(--accent);
    line-height: 0;
    vertical-align: -0.4em;
    margin-right: 4px;
  }
  .vision-attr {
    margin-top: 28px;
    display: flex; align-items: center; gap: 14px;
  }
  .vision-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    flex-shrink: 0;
  }
  .vision-attr-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
  .vision-attr-meta b { font-size: 14px; }
  .vision-attr-meta span { font-size: 12px; color: var(--ink-3); font-family: var(--font-mono); }

  .vision-badge {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-ring-2);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .vision-wb-card {
    margin-top: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  }
  .vision-wb-card:hover {
    border-color: rgba(45, 212, 191, 0.4);
    background: var(--bg-3, var(--bg-2));
    transform: translateY(-1px);
  }
  .vision-wb-mascot {
    width: 48px; height: 48px;
    flex-shrink: 0;
  }
  .vision-wb-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
  }
  .vision-wb-name {
    font-size: 14px;
    color: var(--ink-1);
  }
  .vision-wb-desc {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-3);
    letter-spacing: 0.02em;
  }
  .vision-wb-link {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #2DD4BF;
    white-space: nowrap;
    letter-spacing: 0.02em;
  }
  @media (max-width: 600px) {
    .vision-wb-card { flex-wrap: wrap; }
    .vision-wb-link { width: 100%; padding-left: 64px; }
  }

  .vision-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex; flex-direction: column; gap: 20px;
  }
  .vision-card-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-3);
  }
  .vision-list { display: flex; flex-direction: column; gap: 12px; }
  .vision-list-item {
    display: grid; grid-template-columns: 24px 1fr;
    gap: 12px;
    font-size: 14px;
    color: var(--ink-2);
    align-items: start;
  }
  .vision-list-item::before {
    content: "→";
    color: var(--accent);
    font-family: var(--font-mono);
  }

  /* === FAQ === */
  .faq-list { border-top: 1px solid var(--line); }
  .faq-item {
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
    cursor: pointer;
  }
  .faq-q {
    display: flex; justify-content: space-between; align-items: center;
    gap: 24px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
  }
  .faq-q-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    flex-shrink: 0;
    width: 36px;
  }
  .faq-q-text { flex: 1; }
  .faq-toggle {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--ink-2);
    transition: transform .3s;
  }
  .faq-item.open .faq-toggle { transform: rotate(45deg); }
  .faq-a {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .35s ease, opacity .25s, margin-top .3s, padding-left .3s;
    color: var(--ink-2);
    font-size: 15px;
    padding-left: 36px;
    max-width: 70ch;
  }
  .faq-item.open .faq-a {
    max-height: 320px;
    opacity: 1;
    margin-top: 16px;
  }

  /* === CTA final === */
  .cta-final {
    padding: 120px 0;
    background:
      radial-gradient(600px 300px at 50% 0%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 70%),
      var(--bg);
    text-align: center;
    border-bottom: 1px solid var(--line);
  }
  .cta-final h2 {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.4vw, 56px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    text-wrap: balance;
  }
  .cta-final p {
    color: var(--ink-2);
    max-width: 50ch;
    margin: 0 auto 36px;
    font-size: 17px;
  }
  .cta-final .waitlist { margin: 0 auto; }

  /* Footer */
  footer { padding: 48px 0 36px; }
  .foot {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-wrap: wrap; gap: 16px;
  }
  .foot-brand {
    max-width: 56ch;
  }
  .foot-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
  }
  .foot a { color: var(--ink-3); transition: color .2s; }
  .foot a:hover { color: var(--ink); }

  @media (max-width: 720px) {
    footer {
      padding: 36px 0 28px;
    }
    .foot {
      align-items: stretch;
      gap: 18px;
      font-size: 10px;
      line-height: 1.55;
    }
    .foot-brand {
      max-width: none;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--line);
    }
    .foot-links {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .foot-links a {
      min-height: 40px;
      display: flex;
      align-items: center;
      padding: 0 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--bg-2);
    }
  }

  /* Tweaks z layer */
  body[data-tweaks-on] { padding-top: 0; }

  /* Density */
  [data-density="compact"] .sec { padding: 80px 0; }
  [data-density="compact"] .hero { padding: 64px 0 56px; }
  [data-density="compact"] .num-cell { padding: 36px 24px; }
  [data-density="compact"] .sec-head { margin-bottom: 40px; }

  /* Animations off */
  [data-animations="off"] *, [data-animations="off"] *::before, [data-animations="off"] *::after {
    animation: none !important;
    transition: none !important;
  }

  /* ============================================
     AGENT CHAT (hero visual)
     ============================================ */
  .agent-panel {
    position: relative;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    height: min(620px, calc(100vh - 160px));
    min-height: 520px;
    box-shadow:
      0 30px 60px -25px rgba(0,0,0,0.5),
      0 12px 28px -10px rgba(0,0,0,0.4);
  }

  /* Window chrome */
  .agent-chrome {
    height: 36px;
    background: var(--bg-3);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center;
    padding: 0 14px;
    gap: 6px;
    flex-shrink: 0;
  }
  .agent-chrome__dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--line-strong);
  }
  .agent-chrome__addr {
    margin-left: 14px;
    flex: 1;
    background: var(--bg);
    height: 20px;
    border-radius: 5px;
    display: flex; align-items: center;
    padding: 0 12px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-3);
    letter-spacing: 0.02em;
    max-width: 280px;
  }
  .agent-chrome__addr b { color: var(--accent); font-weight: 500; }
  .agent-chrome__pill {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 9px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-ring);
    border-radius: 4px;
    display: flex; align-items: center; gap: 5px;
  }
  .agent-chrome__pill::before {
    content: "";
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--accent-ring);
    animation: agentLivePulse 1.6s infinite;
  }
  @keyframes agentLivePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }

  /* App body — split chat | canvas */
  .agent-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 240px;
    min-height: 0;
  }
  @media (max-width: 1100px) {
    .agent-body { grid-template-columns: 1fr 210px; }
    .agent-call {
      min-width: 0;
    }
    .agent-call .fn {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .agent-call.compound .fn {
      display: block;
    }
    .agent-prompt,
    .agent-reply {
      overflow-wrap: anywhere;
    }
  }
  @media (max-width: 600px) {
    .agent-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  }

  /* Chat column */
  .agent-chat {
    padding: 18px 20px 14px;
    display: flex; flex-direction: column; gap: 10px;
    overflow: hidden;
    min-width: 0;
    background: var(--bg);
  }

  /* Animation helpers — single 14s cycle, infinite, individual keyframes per step */
  .hp { opacity: 0; animation-duration: 14s; animation-iteration-count: infinite; animation-fill-mode: both; animation-timing-function: cubic-bezier(.2,.6,.3,1); }
  .hp-1 { animation-name: hpSeq1; }
  .hp-2 { animation-name: hpSeq2; }
  .hp-3 { animation-name: hpSeq3; }
  .hp-4 { animation-name: hpSeq4; }
  .hp-5 { animation-name: hpSeq5; }
  .hp-6 { animation-name: hpSeq6; }
  .hp-7 { animation-name: hpSeq7; }

  /* Each step appears at its % within the 14s loop, holds, fades on reset */
  @keyframes hpSeq1 { 0%, 4% { opacity:0; transform:translateY(8px); } 9%, 88% { opacity:1; transform:translateY(0); } 95%, 100% { opacity:0; } }
  @keyframes hpSeq2 { 0%, 11% { opacity:0; transform:translateY(8px); } 16%, 88% { opacity:1; transform:translateY(0); } 95%, 100% { opacity:0; } }
  @keyframes hpSeq3 { 0%, 16% { opacity:0; transform:translateY(8px); } 21%, 88% { opacity:1; transform:translateY(0); } 95%, 100% { opacity:0; } }
  @keyframes hpSeq4 { 0%, 21% { opacity:0; transform:translateY(8px); } 26%, 88% { opacity:1; transform:translateY(0); } 95%, 100% { opacity:0; } }
  @keyframes hpSeq5 { 0%, 28% { opacity:0; transform:translateY(8px); } 33%, 88% { opacity:1; transform:translateY(0); } 95%, 100% { opacity:0; } }
  @keyframes hpSeq6 { 0%, 36% { opacity:0; transform:translateY(8px); } 41%, 88% { opacity:1; transform:translateY(0); } 95%, 100% { opacity:0; } }
  @keyframes hpSeq7 { 0%, 44% { opacity:0; transform:translateY(8px); } 49%, 88% { opacity:1; transform:translateY(0); } 95%, 100% { opacity:0; } }

  /* User prompt bubble */
  .agent-prompt {
    align-self: flex-end;
    background: var(--bg-3);
    color: var(--ink);
    padding: 10px 14px;
    border-radius: 14px 14px 4px 14px;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    max-width: 88%;
  }

  /* Tool call lines (compact) */
  .agent-call {
    display: flex; align-items: baseline; gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.45;
    color: var(--ink-3);
    padding: 4px 0;
  }
  .agent-call .idx { color: var(--ink-4); font-size: 10px; flex-shrink: 0; width: 18px; }
  .agent-call .fn { color: var(--accent); }
  .agent-call .ref { color: var(--accent-warm); }
  .agent-call .meta { margin-left: auto; color: var(--ink-4); font-size: 10px; flex-shrink: 0; display: flex; align-items: center; gap: 5px; }
  .agent-call .ok { color: #4ade80; }

  /* Compound tool call (with chain refs) */
  .agent-call.compound {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 7px 11px;
    color: var(--ink-2);
  }
  .agent-call.compound .fn { color: var(--ink); }
  .agent-call.compound .fn b { color: var(--accent); font-weight: 500; }

  /* Agent reply */
  .agent-reply {
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 13.5px;
    line-height: 1.55;
    padding: 4px 4px 0;
  }
  .agent-reply b { color: var(--ink); font-weight: 600; }
  .agent-reply .accent { color: var(--accent); font-weight: 600; }

  /* Composer */
  .agent-composer {
    margin-top: auto;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 9px 9px 9px 16px;
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-body);
    font-size: 12.5px;
    color: var(--ink-4);
  }
  .agent-composer__send {
    margin-left: auto;
    width: 28px; height: 28px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .agent-composer__send svg { width: 13px; height: 13px; stroke-width: 2.4; }

  /* Canvas column (slide-in) */
  .agent-canvas {
    background: var(--bg-2);
    border-left: 1px solid var(--line);
    display: flex; flex-direction: column;
    overflow: hidden;
    animation: hpCanvas 14s infinite cubic-bezier(.2,.6,.3,1) both;
  }
  @keyframes hpCanvas {
    0%, 36% { opacity: 0; transform: translateX(40px); }
    44%, 88% { opacity: 1; transform: translateX(0); }
    95%, 100% { opacity: 0; transform: translateX(0); }
  }
  @media (max-width: 600px) {
    .agent-canvas { border-left: 0; border-top: 1px solid var(--line); }
    @keyframes hpCanvas {
      0%, 36% { opacity: 0; transform: translateY(20px); }
      44%, 88% { opacity: 1; transform: translateY(0); }
      95%, 100% { opacity: 0; }
    }
  }

  .agent-canvas__head {
    padding: 11px 13px;
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 8px;
  }
  .agent-canvas__title { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; color: var(--ink); }
  .agent-canvas__sub { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
  .agent-canvas__pin {
    margin-left: auto;
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--accent-ring);
  }

  .agent-canvas__body {
    flex: 1;
    padding: 12px 13px;
    display: flex; flex-direction: column;
    gap: 10px;
  }

  /* Mini ticket inside canvas */
  .agent-tk {
    display: flex; flex-direction: column; gap: 9px;
  }
  .agent-tk__id {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-3);
  }
  .agent-tk__id b { color: var(--ink); font-weight: 600; }
  .agent-tk__client {
    display: flex; align-items: center; gap: 8px;
  }
  .agent-tk__avatar {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-warm), #8b97e8);
    color: #fff;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
  }
  .agent-tk__client-name { font-size: 12.5px; color: var(--ink); font-weight: 500; }
  .agent-tk__client-meta { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-3); }

  .agent-tk__device {
    background: var(--bg-3);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--line);
  }
  .agent-tk__device svg { width: 13px; height: 13px; color: var(--ink-3); flex-shrink: 0; }
  .agent-tk__device-name { font-size: 11.5px; color: var(--ink); font-weight: 500; }

  .agent-tk__line {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-top: 2px;
    font-size: 11.5px;
    color: var(--ink-2);
  }
  .agent-tk__line .p { font-family: var(--font-mono); font-size: 11px; color: var(--ink); }

  .agent-tk__total {
    border-top: 1px dashed var(--line);
    padding-top: 8px;
    display: flex; justify-content: space-between; align-items: baseline;
  }
  .agent-tk__total .l { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
  .agent-tk__total .v { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }

  .agent-tk__pills {
    display: flex; flex-wrap: wrap; gap: 5px;
    margin-top: 2px;
  }
  .agent-tk__pill {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 7px;
    border-radius: 999px;
    line-height: 1;
  }
  .agent-tk__pill--ok { color: var(--accent); background: var(--accent-soft); }
  .agent-tk__pill--info { color: var(--accent-warm); background: rgba(94,106,210,0.14); }
  .agent-tk__pill svg { width: 9px; height: 9px; }

  @media (max-width: 640px) {
    .hero { padding: 30px 0 52px; }
    .hero-inner { gap: 34px; }

    .agent-panel {
      height: auto;
      min-height: 0;
      border-radius: 16px;
      box-shadow:
        0 18px 44px -24px rgba(0,0,0,0.65),
        0 0 0 1px rgba(255,255,255,0.02) inset;
    }

    .agent-chrome {
      height: 34px;
      padding: 0 10px;
    }
    .agent-chrome__dot { width: 7px; height: 7px; }
    .agent-chrome__addr {
      margin-left: 8px;
      min-width: 0;
      max-width: none;
      height: 18px;
      padding: 0 8px;
      font-size: 9px;
      white-space: nowrap;
      overflow: hidden;
    }
    .agent-chrome__pill {
      padding: 3px 7px;
      font-size: 8.5px;
      letter-spacing: 0.06em;
    }

    .agent-body {
      display: flex;
      flex-direction: column;
      min-height: 0;
      background: var(--bg);
    }

    .agent-chat {
      padding: 14px;
      gap: 8px;
      overflow: visible;
    }

    .agent-prompt {
      max-width: 94%;
      padding: 9px 12px;
      font-size: 12.5px;
      line-height: 1.45;
    }

    .agent-call {
      width: fit-content;
      max-width: 100%;
      padding: 5px 8px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--bg-2);
      font-size: 9.5px;
      line-height: 1.2;
      overflow: hidden;
    }
    .agent-call .idx { display: none; }
    .agent-call .fn {
      max-width: 168px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .agent-call .meta {
      margin-left: 4px;
      font-size: 9px;
    }
    .agent-call.hp-3,
    .agent-call.hp-4 { display: none; }

    .agent-reply {
      padding: 6px 2px 0;
      font-size: 12.8px;
      line-height: 1.48;
    }

    .agent-composer {
      margin-top: 2px;
      padding: 8px 8px 8px 13px;
      font-size: 11.5px;
    }
    .agent-composer__send {
      width: 26px;
      height: 26px;
    }

    .agent-canvas {
      margin: 0 14px 14px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--bg-2);
      box-shadow: 0 12px 30px -22px rgba(0,0,0,0.8);
    }
    .agent-canvas__head {
      padding: 10px 12px;
    }
    .agent-canvas__sub { display: none; }
    .agent-canvas__body {
      padding: 11px 12px 12px;
    }

    .agent-tk {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 9px 10px;
      align-items: center;
    }
    .agent-tk__id,
    .agent-tk__client,
    .agent-tk__device,
    .agent-tk__line,
    .agent-tk__total,
    .agent-tk__pills { grid-column: 1 / -1; }
    .agent-tk__client-name,
    .agent-tk__device-name,
    .agent-tk__line,
    .agent-tk__client-meta { font-size: 11px; }
    .agent-tk__device {
      padding: 7px 9px;
    }
    .agent-tk__total .v { font-size: 16px; }
    .agent-tk__pill--info { display: none; }
  }

  /* ============================================
     FLOW VISUAL — graphical workflow
     Pattern: ERP AnalysisProgressModal (pipeline + PDF scan + live stream)
     ============================================ */
  .flow-canvas {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    padding: 28px 32px 26px;
    border-radius: var(--radius-lg);
    background:
      radial-gradient(ellipse at top, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%),
      linear-gradient(var(--bg-2), var(--bg-2));
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
    box-shadow:
      0 24px 80px -20px color-mix(in srgb, var(--accent) 22%, transparent),
      0 12px 36px -10px rgba(0, 0, 0, 0.6),
      0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent) inset;
    color: var(--ink);
    display: flex; flex-direction: column;
    gap: 18px;
    overflow: hidden;
  }
  /* Subtle horizontal scanlines on the whole panel (terminal feel) */
  .flow-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
      to bottom,
      transparent 0 2px,
      color-mix(in srgb, var(--ink) 2%, transparent) 2px 3px
    );
    opacity: 0.5;
    z-index: 0;
  }
  .flow-canvas > * { position: relative; z-index: 1; }

  /* ============ HEAD ======================================================== */
  .flow-canvas__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  }
  .flow-canvas__pulse {
    position: relative;
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .flow-canvas__pulse i {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    opacity: 0.6;
    animation: flow-ripple 1.6s ease-out infinite;
    width: 8px; height: 8px;
  }
  .flow-canvas__pulse i:nth-child(2) { animation-delay: 0.4s; }
  .flow-canvas__pulse i:nth-child(3) {
    animation: none;
    background: var(--accent);
    border: none;
    opacity: 1;
    box-shadow: 0 0 10px var(--accent);
  }
  @keyframes flow-ripple {
    0%   { width: 8px; height: 8px; opacity: 0.7; }
    100% { width: 24px; height: 24px; opacity: 0; }
  }
  .flow-canvas[data-status="done"] .flow-canvas__pulse i { animation: none; opacity: 0; }
  .flow-canvas[data-status="done"] .flow-canvas__pulse i:nth-child(3) { opacity: 1; }

  .flow-canvas__head-text {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 3px;
  }
  .flow-canvas__title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.1;
  }
  .flow-canvas__file {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-3);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .flow-canvas__ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    box-shadow: 0 0 8px -2px color-mix(in srgb, var(--accent) 40%, transparent);
    animation: flow-stream-pulse 2.4s ease-in-out infinite;
  }
  .flow-canvas__clock {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink-2);
    font-feature-settings: 'tnum';
    letter-spacing: 0.05em;
    padding: 4px 9px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--bg) 60%, var(--bg-3));
    border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  }

  /* ============ COLS (pipeline + PDF) ====================================== */
  .flow-canvas__cols {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 22px;
    align-items: stretch;
  }
  @media (max-width: 1100px) {
    .flow-canvas__cols { grid-template-columns: 1fr 150px; gap: 16px; }
  }
  @media (max-width: 700px) {
    .flow-canvas__cols { grid-template-columns: 1fr; gap: 18px; }
  }

  /* ============ PIPELINE (vertical 4 phases) =============================== */
  .flow-pipe {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-direction: column;
  }
  .flow-pipe__step {
    position: relative;
    display: grid;
    grid-template-columns: 34px 1fr 12px;
    align-items: center;
    gap: 14px;
    padding: 8px 8px 8px 0;
    min-height: 50px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 160ms;
  }
  .flow-pipe__step:hover {
    background: color-mix(in srgb, var(--accent) 4%, transparent);
  }
  .flow-pipe__connector {
    position: absolute;
    left: 16px;
    top: -8px;
    width: 2px;
    height: calc(50% + 8px);
    background: color-mix(in srgb, var(--ink) 10%, transparent);
    z-index: 0;
  }
  .flow-pipe__step:first-child .flow-pipe__connector { display: none; }
  .flow-pipe__step[data-state="done"] .flow-pipe__connector,
  .flow-pipe__step[data-state="active"] .flow-pipe__connector {
    background: var(--accent);
    box-shadow: 0 0 4px color-mix(in srgb, var(--accent) 60%, transparent);
  }

  .flow-pipe__node {
    position: relative;
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid color-mix(in srgb, var(--ink) 18%, transparent);
    color: var(--ink-3);
    z-index: 1;
    transition: border-color 320ms, color 320ms, background 320ms, transform 320ms;
  }
  .flow-pipe__ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    opacity: 0;
    transition: opacity 240ms;
  }
  .flow-pipe__icon { display: inline-flex; }
  .flow-pipe__check { display: none; }

  /* ACTIVE: spinning ring + glow */
  .flow-pipe__step[data-state="active"] .flow-pipe__node {
    border-color: var(--accent);
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, var(--bg));
    box-shadow:
      0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent),
      0 0 22px color-mix(in srgb, var(--accent) 50%, transparent);
    transform: scale(1.06);
  }
  .flow-pipe__step[data-state="active"] .flow-pipe__ring {
    border-color: var(--accent);
    border-top-color: transparent;
    opacity: 1;
    animation: flow-spin 0.9s linear infinite;
  }
  .flow-pipe__step[data-state="active"] .flow-pipe__icon {
    animation: flow-icon-pulse 0.9s ease-in-out infinite;
  }
  @keyframes flow-spin { to { transform: rotate(360deg); } }
  @keyframes flow-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.88); }
  }

  /* DONE: filled node + check */
  .flow-pipe__step[data-state="done"] .flow-pipe__node {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg);
  }
  .flow-pipe__step[data-state="done"] .flow-pipe__icon { display: none; }
  .flow-pipe__step[data-state="done"] .flow-pipe__check {
    display: inline-flex;
    color: var(--bg);
    animation: flow-check-in 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
  }
  @keyframes flow-check-in {
    from { opacity: 0; transform: scale(0.4); }
    to { opacity: 1; transform: scale(1); }
  }

  /* WAITING: dashed orange ring */
  .flow-pipe__step[data-state="waiting"] .flow-pipe__node {
    border-color: transparent;
    background: color-mix(in srgb, var(--mock-amber) 6%, var(--bg));
    color: var(--mock-amber);
  }
  .flow-pipe__step[data-state="waiting"] .flow-pipe__node::before {
    content: '';
    position: absolute;
    inset: -2px;
    border: 1.5px dashed color-mix(in srgb, var(--mock-amber) 55%, transparent);
    border-radius: 50%;
    pointer-events: none;
    animation: flow-stream-pulse 1.6s ease-in-out infinite;
  }
  .flow-pipe__step[data-state="waiting"] .flow-pipe__label { color: var(--ink-2); }
  .flow-pipe__step[data-state="waiting"] .flow-pipe__hint { color: var(--mock-amber); opacity: 1; }

  /* Pipeline body */
  .flow-pipe__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .flow-pipe__label {
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink-2);
    line-height: 1.2;
    transition: color 320ms;
  }
  .flow-pipe__step[data-state="active"] .flow-pipe__label,
  .flow-pipe__step[data-state="done"] .flow-pipe__label {
    color: var(--ink);
  }
  .flow-pipe__step[data-state="active"] .flow-pipe__label { font-weight: 600; }
  .flow-pipe__hint {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-3);
    letter-spacing: 0.02em;
    opacity: 0.7;
    transition: opacity 320ms, color 320ms;
  }
  .flow-pipe__step[data-state="active"] .flow-pipe__hint {
    opacity: 1;
    color: color-mix(in srgb, var(--accent) 60%, var(--ink-2));
  }

  .flow-pipe__bullet { width: 10px; display: flex; justify-content: flex-end; }
  .flow-pipe__bullet-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    opacity: 0;
  }
  .flow-pipe__step[data-state="active"] .flow-pipe__bullet-dot {
    opacity: 1;
    animation: flow-bullet-blink 0.8s ease-in-out infinite;
  }
  .flow-pipe__step[data-state="done"] .flow-pipe__bullet-dot {
    opacity: 0.55;
    background: var(--accent);
    box-shadow: none;
    width: 4px; height: 4px;
    animation: none;
  }
  @keyframes flow-bullet-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.5); }
  }

  /* ============ PDF PREVIEW (right col) ==================================== */
  .flow-pdf {
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    padding-top: 4px;
  }
  .flow-pdf__frame {
    position: relative;
    width: 100%;
    max-width: 170px;
    aspect-ratio: 1 / 1.35;
    padding: 7px;
    background: #1a1a1a;
    border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
    border-radius: 6px;
    box-shadow:
      0 8px 24px -6px color-mix(in srgb, var(--accent) 30%, transparent),
      0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent) inset;
  }
  .flow-pdf__corner {
    position: absolute;
    width: 11px; height: 11px;
    border: 1.6px solid var(--accent);
    filter: drop-shadow(0 0 3px color-mix(in srgb, var(--accent) 60%, transparent));
    pointer-events: none; z-index: 2;
  }
  .flow-pdf__corner--tl { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
  .flow-pdf__corner--tr { top: -5px; right: -5px; border-left: 0; border-bottom: 0; }
  .flow-pdf__corner--bl { bottom: -5px; left: -5px; border-right: 0; border-top: 0; }
  .flow-pdf__corner--br { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }

  .flow-pdf__sheet {
    position: relative;
    width: 100%; height: 100%;
    padding: 10px 9px 9px;
    background: #f5f3ee;
    border-radius: 3px;
    overflow: hidden;
    display: flex; flex-direction: column;
    gap: 7px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
  .flow-pdf__head {
    display: flex; flex-direction: column;
    gap: 4px;
    padding-bottom: 5px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.18);
  }
  .flow-pdf__body {
    flex: 1;
    display: flex; flex-direction: column;
    gap: 5px;
  }
  .flow-pdf__row { display: flex; align-items: center; gap: 5px; }
  .flow-pdf__foot {
    display: flex; gap: 6px;
    justify-content: flex-end;
    padding-top: 5px;
    border-top: 1px dashed rgba(0, 0, 0, 0.18);
  }
  .flow-pdf__bar {
    display: block;
    height: 4px;
    background: #2a2a2a;
    border-radius: 1px;
    flex-shrink: 0;
  }
  .flow-pdf__bar.w55 { width: 55%; }
  .flow-pdf__bar.w40 { width: 40%; }
  .flow-pdf__bar.w30 { width: 30%; }
  .flow-pdf__bar.w25 { width: 25%; }
  .flow-pdf__bar.w20 { width: 20%; }
  .flow-pdf__bar.w16 { width: 16%; }
  .flow-pdf__bar.w15 { width: 15%; }

  .flow-pdf__scan {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 30px;
    background: linear-gradient(
      180deg,
      transparent,
      color-mix(in srgb, var(--accent) 12%, transparent) 35%,
      var(--accent),
      color-mix(in srgb, var(--accent) 12%, transparent) 65%,
      transparent
    );
    filter: drop-shadow(0 0 6px var(--accent));
    transform: translate3d(0, 0%, 0);
    transition: transform 280ms linear;
    mix-blend-mode: screen;
    z-index: 3;
    pointer-events: none;
  }
  .flow-pdf__scan::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 50%; height: 1px;
    background: var(--accent);
    box-shadow: 0 0 5px var(--accent);
  }
  .flow-canvas[data-status="done"] .flow-pdf__scan { opacity: 0; transition: opacity 280ms; }

  .flow-pdf__caption {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--ink-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  /* ============ STREAM AREA (drop zone + live stream stacked) ============== */
  .flow-stream-area {
    position: relative;
    /* Fixed footprint = drop zone & stream height (head 32 + body 200) */
    height: 232px;
  }
  .flow-drop,
  .flow-stream {
    position: absolute;
    inset: 0;
  }

  /* Drop zone — idle / stage 1 */
  .flow-drop {
    border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
    border-radius: 8px;
    background:
      radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 70%),
      var(--bg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 320ms;
  }
  .flow-stream-area.streaming .flow-drop { opacity: 0; pointer-events: none; }
  .flow-stream-area:not(.streaming) .flow-stream { opacity: 0; pointer-events: none; }
  .flow-drop__head {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 12px;
    background: color-mix(in srgb, var(--ink-3) 6%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .flow-drop__head-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ink-3);
    opacity: 0.55;
    animation: flow-drop-idle 2.4s ease-in-out infinite;
  }
  @keyframes flow-drop-idle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
  }
  .flow-drop__head-title { font-weight: 600; }

  .flow-drop__zone {
    flex: 1;
    position: relative;
    display: flex; flex-direction: column;
    align-items: center; justify-content: space-between;
    padding: 14px 16px 16px;
    gap: 10px;
  }

  /* Animated file falling into the target */
  .flow-drop__file {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px 8px 8px;
    border-radius: 8px;
    background: var(--bg-2);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
    box-shadow:
      0 6px 18px -4px rgba(0, 0, 0, 0.5),
      0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
    animation: flow-drop-fall 3.5s cubic-bezier(0.6, 0, 0.4, 1) infinite;
    transform-origin: center;
  }
  @keyframes flow-drop-fall {
    0%   { opacity: 0; transform: translateY(-18px) scale(0.96); }
    14%  { opacity: 1; transform: translateY(-8px) scale(1); }
    62%  { opacity: 1; transform: translateY(34px) scale(1); }
    74%  { opacity: 1; transform: translateY(56px) scale(0.78); filter: drop-shadow(0 0 12px var(--accent)); }
    84%  { opacity: 0; transform: translateY(68px) scale(0.5); }
    100% { opacity: 0; transform: translateY(-18px) scale(0.96); }
  }

  .flow-drop__file-icon {
    position: relative;
    width: 32px; height: 38px;
    display: grid; place-items: center;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    border-radius: 4px;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  }
  .flow-drop__file-tag {
    position: absolute;
    bottom: -6px; right: -6px;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    color: var(--bg);
    background: var(--accent);
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.04em;
  }
  .flow-drop__file-meta {
    display: flex; flex-direction: column; gap: 2px;
    min-width: 0;
  }
  .flow-drop__file-name {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.005em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
  }
  .flow-drop__file-info {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-3);
    letter-spacing: 0.04em;
  }

  /* Target zone — dashed receiver at the bottom */
  .flow-drop__target {
    position: relative;
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1.5px dashed color-mix(in srgb, var(--accent) 35%, transparent);
    background: color-mix(in srgb, var(--accent) 4%, transparent);
    color: color-mix(in srgb, var(--accent) 60%, var(--ink-2));
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    overflow: hidden;
    animation: flow-drop-target-pulse 3.5s cubic-bezier(0.6, 0, 0.4, 1) infinite;
  }
  @keyframes flow-drop-target-pulse {
    0%, 60%   { box-shadow: 0 0 0 0 transparent; border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
    74%       { box-shadow: 0 0 24px 4px color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
    100%      { box-shadow: 0 0 0 0 transparent; border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
  }
  .flow-drop__target-pulse {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 24px; height: 24px;
    pointer-events: none;
  }
  .flow-drop__target-pulse i {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0;
    animation: flow-drop-target-ring 3.5s cubic-bezier(0.6, 0, 0.4, 1) infinite;
  }
  .flow-drop__target-pulse i:nth-child(2) { animation-delay: 0.15s; }
  @keyframes flow-drop-target-ring {
    0%, 68%  { opacity: 0; transform: scale(0.6); }
    74%      { opacity: 0.8; transform: scale(1); }
    100%     { opacity: 0; transform: scale(2.4); }
  }
  .flow-drop__target-label {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 11.5px;
    color: var(--ink-2);
  }
  .flow-drop__target svg { color: var(--accent); flex-shrink: 0; }

  /* ============ LIVE STREAM ================================================ */
  .flow-stream {
    border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
    border-radius: 8px;
    background:
      radial-gradient(ellipse at top, color-mix(in srgb, var(--accent) 6%, transparent), transparent 60%),
      var(--bg);
    overflow: hidden;
    transition: opacity 320ms;
  }
  .flow-stream.visible { opacity: 1; }
  .flow-stream__head {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 12px;
    background: color-mix(in srgb, var(--accent) 5%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-2);
  }
  .flow-stream__pulse {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: flow-stream-pulse 1s ease-in-out infinite;
  }
  @keyframes flow-stream-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
  }
  .flow-stream__title {
    font-weight: 600;
    color: var(--accent);
  }
  .flow-stream__count {
    margin-left: auto;
    font-weight: 500;
    color: var(--ink-3);
    font-feature-settings: 'tnum';
  }
  .flow-stream__count b { color: var(--ink); font-weight: 600; }

  .flow-stream__list {
    list-style: none;
    margin: 0; padding: 4px 0;
    /* Fixed height (not just max-height) so the canvas footprint
     * doesn't grow as items stream in. */
    height: 200px;
    overflow-y: auto;
    scroll-behavior: smooth;
    mask-image: linear-gradient(to bottom, transparent 0, black 24px, black calc(100% - 4px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 24px, black calc(100% - 4px), transparent 100%);
  }
  .flow-stream__list::-webkit-scrollbar { width: 4px; }
  .flow-stream__list::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--accent) 25%, transparent);
    border-radius: 2px;
  }

  .flow-stream__row {
    display: grid;
    grid-template-columns: 28px 76px minmax(140px, 1fr) minmax(120px, auto) 36px 64px;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    font-size: 11px;
    color: var(--ink);
    animation: flow-stream-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 4%, transparent);
  }
  .flow-stream__row:last-child { border-bottom: 0; }
  @keyframes flow-stream-in {
    0% { opacity: 0; transform: translateX(14px); clip-path: inset(0 0 0 100%); }
    50% { opacity: 1; transform: translateX(-2px); clip-path: inset(0 0 0 0); }
    100% { transform: translateX(0); }
  }
  .flow-stream__idx {
    font-family: var(--font-mono);
    font-size: 8.5px;
    color: var(--ink-3);
    letter-spacing: 0.06em;
  }
  .flow-stream__cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--accent-warm) 14%, transparent);
    color: color-mix(in srgb, var(--accent-warm) 90%, white);
    border: 1px solid color-mix(in srgb, var(--accent-warm) 32%, transparent);
    line-height: 1;
    white-space: nowrap;
  }
  .flow-stream__cat[data-cat="appareil"] { background: color-mix(in srgb, var(--mock-blue) 16%, transparent); color: var(--mock-blue-ink);     border-color: color-mix(in srgb, var(--mock-blue) 38%, transparent); }
  .flow-stream__cat[data-cat="pice"],
  .flow-stream__cat[data-cat="pièce"]    { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 36%, transparent); }
  .flow-stream__cat[data-cat="outils"]   { background: color-mix(in srgb, var(--mock-violet) 14%, transparent); color: var(--mock-violet);     border-color: color-mix(in srgb, var(--mock-violet) 36%, transparent); }
  .flow-stream__cat[data-cat="autres"]   { background: color-mix(in srgb, var(--mock-amber) 14%, transparent); color: var(--mock-amber);     border-color: color-mix(in srgb, var(--mock-amber) 36%, transparent); }
  .flow-stream__name {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .flow-stream__device {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-2);
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .flow-stream__device-arrow {
    color: var(--accent);
    font-style: normal;
    font-size: 11px;
    line-height: 1;
    opacity: 0.85;
  }
  .flow-stream__qty {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-2);
    text-align: center;
    font-feature-settings: 'tnum';
  }
  .flow-stream__price {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-align: right;
    font-feature-settings: 'tnum';
  }
  @media (max-width: 720px) {
    .flow-stream__row {
      grid-template-columns: 22px 66px 1fr 28px 56px;
      gap: 8px;
    }
    .flow-stream__device { display: none; }
  }

  /* ============ PROGRESS BAR =============================================== */
  .flow-canvas__progress {
    position: relative;
    height: 4px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--ink) 8%, transparent);
    overflow: visible;
    margin-top: 2px;
  }
  .flow-canvas__progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, white));
    border-radius: 4px;
    transition: width 320ms ease-out;
    box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent);
    position: relative;
    overflow: hidden;
  }
  .flow-canvas__progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, white 60%, transparent), transparent);
    background-repeat: no-repeat;
    background-size: 30% 100%;
    animation: flow-shimmer 1.8s ease-in-out infinite;
  }
  @keyframes flow-shimmer {
    0% { background-position: -30% 0; }
    100% { background-position: 130% 0; }
  }
  .flow-canvas[data-status="done"] .flow-canvas__progress-fill::after { animation: none; opacity: 0; }
  .flow-canvas__progress-pct {
    position: absolute;
    top: 10px;
    right: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-3);
    font-weight: 600;
    font-feature-settings: 'tnum';
  }

  /* ============ SUMMARY (revealed at end) ==================================
   * Both progress + summary always present (height reserved) — only their
   * opacity flips on data-status. Prevents the canvas from changing size
   * between stages and causing layout shift on the rest of the page. */
  .flow-summary {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 320ms ease-out;
    pointer-events: none;
  }
  .flow-canvas[data-status="done"] .flow-summary {
    opacity: 1;
    pointer-events: auto;
  }
  .flow-canvas__progress { transition: opacity 320ms ease-out; }
  .flow-canvas[data-status="done"] .flow-canvas__progress { opacity: 0; }
  @keyframes flow-pop {
    from { opacity: 0; transform: scale(0.96) translateY(6px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }
  .flow-summary__metric {
    flex: 1;
    display: flex; flex-direction: column; gap: 4px;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--bg) 70%, var(--bg-3));
    border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
    border-radius: 8px;
  }
  .flow-summary__metric--accent {
    background: color-mix(in srgb, var(--accent) 10%, var(--bg));
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
    box-shadow: 0 0 14px -6px color-mix(in srgb, var(--accent) 40%, transparent);
  }
  .flow-summary__metric-value {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    font-feature-settings: 'tnum';
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .flow-summary__metric--accent .flow-summary__metric-value { color: var(--accent); }
  .flow-summary__metric-value em {
    font-style: normal;
    font-size: 12px;
    color: var(--ink-3);
    margin-left: 2px;
    font-weight: 500;
  }
  .flow-summary__metric-value--mono {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  .flow-summary__metric-label {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--ink-3);
    text-transform: uppercase;
  }

  @media (max-width: 720px) {
    .flow-canvas {
      width: 100%;
      max-width: 100%;
      min-height: 612px;
      padding: 16px 14px 14px;
      border-radius: 16px;
      gap: 12px;
      box-shadow:
        0 18px 48px -28px color-mix(in srgb, var(--accent) 18%, transparent),
        0 0 0 1px color-mix(in srgb, var(--accent) 7%, transparent) inset;
    }

    .flow-canvas__head {
      gap: 9px;
      padding-bottom: 12px;
    }
    .flow-canvas__pulse {
      width: 20px;
      height: 20px;
    }
    @keyframes flow-ripple {
      0%   { width: 7px; height: 7px; opacity: 0.7; }
      100% { width: 20px; height: 20px; opacity: 0; }
    }
    .flow-canvas__title {
      font-size: 13px;
    }
    .flow-canvas__file {
      max-width: 210px;
      font-size: 9px;
    }
    .flow-canvas__clock {
      padding: 3px 7px;
      font-size: 9.5px;
    }

    .flow-canvas__cols {
      display: block;
    }
    .flow-pdf {
      display: none;
    }

    .flow-pipe {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .flow-pipe__step {
      min-height: 74px;
      grid-template-columns: 24px 1fr;
      gap: 8px;
      align-items: start;
      padding: 10px;
      border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
      border-radius: 10px;
      background: color-mix(in srgb, var(--bg) 54%, var(--bg-2));
    }
    .flow-pipe__step[data-state="active"] {
      border-color: color-mix(in srgb, var(--accent) 45%, transparent);
      background: color-mix(in srgb, var(--accent) 8%, var(--bg));
    }
    .flow-pipe__step[data-state="done"] {
      border-color: color-mix(in srgb, var(--accent) 28%, transparent);
    }
    .flow-pipe__connector,
    .flow-pipe__bullet {
      display: none;
    }
    .flow-pipe__node {
      width: 22px;
      height: 22px;
      border-width: 1.5px;
    }
    .flow-pipe__icon svg,
    .flow-pipe__check {
      width: 11px;
      height: 11px;
    }
    .flow-pipe__step[data-state="active"] .flow-pipe__node {
      transform: none;
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent);
    }
    .flow-pipe__body {
      gap: 4px;
    }
    .flow-pipe__label {
      font-size: 11.5px;
      line-height: 1.22;
    }
    .flow-pipe__hint {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      min-height: 26px;
      overflow: hidden;
      font-size: 8.5px;
      line-height: 1.35;
      letter-spacing: 0.01em;
    }

    .flow-stream-area {
      height: 218px;
    }
    .flow-drop__head,
    .flow-stream__head {
      min-height: 30px;
      padding: 7px 10px;
      font-size: 8px;
      letter-spacing: 0.11em;
    }
    .flow-stream__title {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .flow-drop__zone {
      padding: 13px 12px 14px;
      justify-content: center;
      gap: 18px;
    }
    .flow-drop__file {
      width: 100%;
      max-width: 278px;
      padding: 8px 10px 8px 8px;
    }
    .flow-drop__file-icon {
      width: 30px;
      height: 36px;
    }
    .flow-drop__file-name {
      max-width: 210px;
      font-size: 11.5px;
    }
    .flow-drop__file-info {
      font-size: 9px;
    }
    .flow-drop__target {
      width: 100%;
      justify-content: center;
      padding: 9px 10px;
      font-size: 9px;
    }
    .flow-drop__target svg {
      width: 18px;
      height: 18px;
    }
    .flow-drop__target-label {
      font-size: 10.5px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .flow-stream__list {
      height: 188px;
      padding: 3px 0;
      mask-image: linear-gradient(to bottom, transparent 0, black 18px, black calc(100% - 3px), transparent 100%);
      -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 18px, black calc(100% - 3px), transparent 100%);
    }
    .flow-stream__row {
      grid-template-columns: 20px 58px minmax(0, 1fr) 26px 52px;
      gap: 6px;
      padding: 7px 9px;
      min-height: 34px;
      font-size: 10px;
    }
    .flow-stream__idx {
      font-size: 7.5px;
    }
    .flow-stream__cat {
      padding: 2px 5px;
      font-size: 7.5px;
      letter-spacing: 0.05em;
    }
    .flow-stream__name {
      font-size: 10px;
    }
    .flow-stream__qty {
      font-size: 8.5px;
    }
    .flow-stream__price {
      font-size: 9px;
    }

    .flow-canvas__progress {
      height: 24px;
      margin-top: 0;
      padding-top: 10px;
      background: transparent;
      overflow: visible;
    }
    .flow-canvas__progress-fill {
      height: 4px;
      background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 72%, white));
    }
    .flow-canvas__progress-pct {
      top: 0;
      font-size: 8.5px;
    }

    .flow-summary {
      min-height: 78px;
      margin-top: -2px;
      display: grid;
      grid-template-columns: 0.74fr 1fr 1.08fr;
      gap: 6px;
    }
    .flow-summary__metric {
      min-width: 0;
      padding: 9px 8px;
      gap: 5px;
    }
    .flow-summary__metric-value {
      font-size: 15px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .flow-summary__metric-value em {
      font-size: 9px;
    }
    .flow-summary__metric-value--mono {
      font-size: 9.5px;
    }
    .flow-summary__metric-label {
      font-size: 7px;
      letter-spacing: 0.08em;
      line-height: 1.2;
    }
  }

  @media (max-width: 420px) {
    .flow-canvas {
      min-height: 620px;
    }
    .flow-pipe__step {
      min-height: 78px;
      padding: 9px 8px;
    }
    .flow-pipe__label {
      font-size: 10.8px;
    }
    .flow-pipe__hint {
      font-size: 8px;
    }
    .flow-drop__file-name {
      max-width: 184px;
    }
    .flow-summary {
      min-height: 82px;
    }
  }

  /* File card (input) */
  .flow-file {
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 16px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: 0 12px 30px -16px rgba(0,0,0,.5);
    transition: all .5s cubic-bezier(.4,0,.2,1);
  }
  .flow-file.dim { opacity: 0.45; transform: scale(0.96) translateY(-6px); }
  .flow-file-icon {
    width: 40px; height: 48px;
    background: linear-gradient(180deg, var(--accent-soft), transparent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    position: relative;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 9px;
    display: grid; place-items: center;
  }
  .flow-file-icon::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    border-style: solid;
    border-width: 0 0 8px 8px;
    border-color: transparent transparent var(--accent) transparent;
  }
  .flow-file-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
  .flow-file-meta .name { font-size: 13px; color: var(--ink); font-weight: 500; }
  .flow-file-meta .info { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }

  /* Agent processing badge */
  .flow-agent {
    align-self: center;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    background: var(--bg-3);
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    box-shadow: 0 0 30px -10px var(--accent);
    opacity: 0; transform: scale(0.9);
    transition: all .4s ease;
  }
  .flow-agent.on { opacity: 1; transform: scale(1); }
  .flow-agent .ring {
    width: 10px; height: 10px;
    border: 1.5px solid var(--accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
  }

  /* Connector line (animated) */
  .flow-line {
    align-self: center;
    width: 1px; flex: 0 0 24px;
    background: linear-gradient(180deg, var(--line-strong), transparent);
    position: relative;
  }
  .flow-line.flowing::after {
    content: "";
    position: absolute;
    left: -1px; top: 0;
    width: 3px; height: 8px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent);
    animation: flowDown 1.4s linear infinite;
  }
  @keyframes flowDown {
    0% { transform: translateY(-8px); opacity: 0; }
    20%, 80% { opacity: 1; }
    100% { transform: translateY(28px); opacity: 0; }
  }

  /* ============================================
     Station d'analyse — grille de cards (pattern ERP "mn-ai-card")
     ============================================ */
  .flow-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .flow-card {
    position: relative;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    overflow: hidden;
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    animation: cardIn .45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: border-color 160ms, transform 160ms;
  }
  @keyframes cardIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .flow-card__head {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 4px;
  }
  .flow-card__status {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .flow-card__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
  }
  .flow-card__id {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--ink-4);
    letter-spacing: 0.06em;
  }

  .flow-card__name {
    font-size: 12.5px;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.005em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .flow-card__meta {
    margin-top: 2px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-3);
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .flow-card__amount {
    margin-top: 8px;
    display: flex; align-items: baseline; gap: 6px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    font-feature-settings: 'tnum';
  }
  .flow-card__amount .amount-unit {
    font-size: 10.5px;
    font-weight: 400;
    color: var(--ink-3);
  }
  .flow-card__amount .amount-qty {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--accent-soft);
    line-height: 1;
  }

  /* ===== STATE: ANALYZED (success — lime accent) ===== */
  .flow-card[data-state="analyzed"] {
    border-color: color-mix(in srgb, var(--accent) 32%, transparent);
    background:
      radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
      var(--bg);
  }
  .flow-card[data-state="analyzed"] .flow-card__status { color: var(--accent); }

  /* ===== STATE: PROCESSING (scan-line animation) ===== */
  .flow-card[data-state="processing"] {
    border-color: color-mix(in srgb, var(--accent-warm) 55%, transparent);
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--accent-warm) 16%, transparent),
      0 8px 28px color-mix(in srgb, var(--accent-warm) 14%, transparent);
  }
  .flow-card[data-state="processing"] .flow-card__status { color: var(--accent-warm); }
  .flow-card[data-state="processing"] .flow-card__dot {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-warm) 22%, transparent);
    animation: dotPulse 1s ease-in-out infinite;
  }
  .flow-card[data-state="processing"]::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg,
        transparent 0%,
        color-mix(in srgb, var(--accent-warm) 18%, transparent) 48%,
        color-mix(in srgb, var(--accent-warm) 40%, transparent) 50%,
        color-mix(in srgb, var(--accent-warm) 18%, transparent) 52%,
        transparent 100%);
    background-size: 100% 240%;
    background-repeat: no-repeat;
    background-position-y: -120%;
    animation: scanLine 2.2s ease-in-out infinite;
    mix-blend-mode: screen;
  }
  .flow-card[data-state="processing"]::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(color-mix(in srgb, var(--accent-warm) 12%, transparent) 1px, transparent 1px);
    background-size: 100% 4px;
    opacity: 0.4;
    mix-blend-mode: overlay;
  }
  @keyframes scanLine {
    0% { background-position-y: -120%; }
    100% { background-position-y: 220%; }
  }
  @keyframes dotPulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
  }

  /* ===== STATE: PENDING (in queue) ===== */
  .flow-card[data-state="pending"] {
    border-color: color-mix(in srgb, var(--ink-3) 28%, transparent);
    opacity: 1;
  }
  .flow-card[data-state="pending"] .flow-card__status { color: var(--ink-2); }
  .flow-card[data-state="pending"] .flow-card__dot { animation: dotPulse 1.4s ease-in-out infinite; }
  .flow-card[data-state="pending"] .flow-card__name { color: var(--ink-2); }

  /* Thinking dots (processing label suffix) */
  .flow-card__dots {
    display: inline-flex; align-items: center;
    gap: 2px; margin-left: 3px; vertical-align: middle;
  }
  .flow-card__dots i {
    display: inline-block;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.35;
    animation: thinkDot 1.1s ease-in-out infinite;
  }
  .flow-card__dots i:nth-child(2) { animation-delay: 0.15s; }
  .flow-card__dots i:nth-child(3) { animation-delay: 0.30s; }
  @keyframes thinkDot {
    0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-2px); }
  }

  /* Telemetry strip (OCR_PARSE + hex stream + confidence bar) */
  .flow-card__telemetry {
    position: relative;
    margin: 8px -12px -10px;
    padding: 6px 12px 7px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    border-top: 1px solid color-mix(in srgb, var(--accent-warm) 14%, transparent);
    background: color-mix(in srgb, var(--accent-warm) 5%, transparent);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--ink-3);
    overflow: hidden;
  }
  .flow-card__telemetry-label {
    color: var(--accent-warm);
    font-weight: 600;
    letter-spacing: 0.14em;
  }
  .flow-card__telemetry-stream {
    color: color-mix(in srgb, var(--accent-warm) 70%, var(--ink));
    font-feature-settings: 'tnum';
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    animation: streamSlide 3.2s linear infinite;
    mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
  }
  @keyframes streamSlide {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-30%); }
  }
  .flow-card__telemetry-confidence {
    position: relative;
    display: inline-block;
    width: 38px; height: 3px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--accent-warm) 12%, transparent);
    overflow: hidden;
  }
  .flow-card__telemetry-bar {
    position: absolute;
    inset: 0;
    width: 0%;
    background: linear-gradient(90deg,
      color-mix(in srgb, var(--accent-warm) 55%, transparent),
      var(--accent-warm));
    border-radius: inherit;
    animation: confBar 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
  @keyframes confBar {
    0%   { width: 8%;  opacity: 0.5; }
    60%  { width: 92%; opacity: 1;   }
    85%  { width: 96%; opacity: 1;   }
    100% { width: 8%;  opacity: 0.5; }
  }

  /* Parse result card */
  .flow-parse {
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 0 30px -10px var(--accent);
  }
  .flow-parse-head {
    display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--line);
  }
  .flow-parse-head b {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .flow-parse-head .conf {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-2);
  }
  .flow-parse-rows { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 11.5px; }
  .flow-parse-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .flow-parse-rows > div .k { color: var(--ink-3); flex-shrink: 0; }
  .flow-parse-rows > div .v { color: var(--ink); text-align: right; min-width: 0; word-break: break-word; }

  /* Stock updated final */
  .flow-final {
    background: linear-gradient(135deg, var(--accent-soft), transparent);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 18px;
  }
  .flow-final b {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 8px;
  }
  .flow-final-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line-strong);
  }
  .flow-final-stats > div { display: flex; flex-direction: column; }
  .flow-final-stats .v { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1; }
  .flow-final-stats .l { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

  /* ============================================
     MODES SECTION — three interface modes (caisse / agentique / admin)
     Stacked full-width, each row = intro + live ERP mockup
     ============================================ */
  .modes-stack {
    display: flex; flex-direction: column;
    gap: 32px;
  }
  .mode {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: stretch;
  }
  @media (max-width: 980px) { .mode { grid-template-columns: 1fr; gap: 16px; } }
  .mode--reverse { grid-template-columns: 1fr 320px; }
  @media (max-width: 980px) { .mode--reverse { grid-template-columns: 1fr; } }
  .mode--reverse .mode__intro { order: 2; }
  .mode--reverse .mode__mockup { order: 1; }
  @media (max-width: 980px) {
    .mode--reverse .mode__intro { order: 1; }
    .mode--reverse .mode__mockup { order: 2; }
  }

  .mode__intro {
    display: flex; flex-direction: column;
    padding: 8px 0;
  }
  .mode__num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .mode__num::after {
    content: "";
    width: 28px; height: 1px;
    background: var(--line-strong);
  }
  .mode__title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--ink);
    line-height: 1.05;
    margin: 14px 0 0;
  }
  .mode__title em {
    font-style: normal;
    color: var(--accent);
  }
  .mode__tag {
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--ink-2);
    line-height: 1.55;
    margin: 12px 0 0;
    max-width: 30ch;
  }
  .mode__points {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex; flex-direction: column;
    gap: 9px;
    border-top: 1px dashed var(--line);
    padding-top: 16px;
  }
  .mode__points li {
    font-family: var(--font-body);
    font-size: 12.5px;
    color: var(--ink-2);
    line-height: 1.5;
    padding-left: 18px;
    position: relative;
  }
  .mode__points li::before {
    content: "";
    position: absolute;
    left: 0; top: 7px;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
  }
  .mode__route {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-3);
    margin-top: 18px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .mode__route b { color: var(--accent); font-weight: 500; }

  /* — Mockup chrome: window with traffic-light dots — */
  .mode__mockup {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    min-height: 380px;
    position: relative;
    transition: border-color .3s, transform .3s;
  }
  .mode__mockup:hover { border-color: var(--line-strong); }
  .mockup__chrome {
    height: 32px;
    background: var(--bg-3);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center;
    padding: 0 12px;
    gap: 6px;
    flex-shrink: 0;
  }
  .mockup__dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--line-strong);
  }
  .mockup__addr {
    margin-left: 12px;
    flex: 1;
    background: var(--bg);
    height: 18px;
    border-radius: 4px;
    display: flex; align-items: center;
    padding: 0 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-3);
    letter-spacing: 0.02em;
    max-width: 260px;
  }
  .mockup__addr b { color: var(--accent); font-weight: 500; }
  .mockup__pill {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 4px;
  }

  .mockup__body {
    flex: 1;
    display: grid;
    min-height: 0;
  }

  /* — Mode 01: Caisse — 3 cols (mode menu / workspace / cart) — */
  .mockup--caisse .mockup__body {
    grid-template-columns: 132px 1fr 220px;
  }
  @media (max-width: 720px) { .mockup--caisse .mockup__body { grid-template-columns: 96px 1fr 180px; } }

  .caisse__menu {
    border-right: 1px solid var(--line);
    padding: 14px 10px;
    display: flex; flex-direction: column;
    gap: 6px;
    background: var(--bg-2);
  }
  .caisse__menu-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 4px 6px;
  }
  .caisse__menu-item {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 10px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--ink-2);
    cursor: default;
  }
  .caisse__menu-item svg { width: 14px; height: 14px; stroke-width: 1.7; flex-shrink: 0; }
  .caisse__menu-item.active {
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
  }

  .caisse__work {
    padding: 18px 20px;
    display: flex; flex-direction: column;
    gap: 14px;
    background: var(--bg);
    overflow: hidden;
  }
  .caisse__crumb {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .caisse__crumb b { color: var(--ink); }
  .caisse__device {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    display: flex; gap: 14px; align-items: center;
  }
  .caisse__device-icon {
    width: 48px; height: 60px;
    background: linear-gradient(135deg, var(--bg-3), var(--bg));
    border: 1px solid var(--line);
    border-radius: 6px;
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .caisse__device-icon svg { width: 22px; height: 22px; color: var(--ink-3); }
  .caisse__device-name { font-size: 14px; color: var(--ink); font-weight: 600; }
  .caisse__device-sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
  .caisse__device-price { margin-left: auto; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); }

  .caisse__repairs { display: flex; flex-direction: column; gap: 6px; }
  .caisse__repair {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    background: var(--bg-2);
    border-radius: 6px;
  }
  .caisse__repair.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  .caisse__repair__name { font-size: 12px; color: var(--ink-2); }
  .caisse__repair.selected .caisse__repair__name { color: var(--ink); }
  .caisse__repair__price { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink); }
  .caisse__repair__check {
    width: 14px; height: 14px;
    border: 1.4px solid var(--ink-4);
    border-radius: 3px;
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .caisse__repair.selected .caisse__repair__check {
    background: var(--accent);
    border-color: var(--accent);
  }
  .caisse__repair.selected .caisse__repair__check::after {
    content: "";
    width: 7px; height: 4px;
    border-left: 1.6px solid #08090a;
    border-bottom: 1.6px solid #08090a;
    transform: rotate(-45deg) translate(0.5px, -1px);
  }

  .caisse__cart {
    background: var(--bg-2);
    border-left: 1px solid var(--line);
    padding: 14px;
    display: flex; flex-direction: column;
    gap: 10px;
  }
  .caisse__cart-tag {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .caisse__cart-line {
    display: grid; grid-template-columns: 1fr auto;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 11.5px;
  }
  .caisse__cart-line:last-of-type { border-bottom: 0; }
  .caisse__cart-line span:first-child { color: var(--ink-2); }
  .caisse__cart-line span:last-child { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink); }
  .caisse__cart-totals {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .caisse__cart-totals > div { display: flex; justify-content: space-between; }
  .caisse__cart-totals .grand { font-family: var(--font-display); font-size: 16px; color: var(--ink); text-transform: none; letter-spacing: -0.01em; font-weight: 600; margin-top: 4px; }
  .caisse__cart-cta {
    margin-top: auto;
    background: var(--accent);
    color: var(--bg);
    padding: 11px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    border: 0;
  }

  /* — Mode 02: Agentique — 3 cols (history / chat / canvas) — */
  .mockup--agentique .mockup__body {
    grid-template-columns: 156px 1fr 268px;
  }
  @media (max-width: 720px) { .mockup--agentique .mockup__body { grid-template-columns: 116px 1fr 200px; } }

  .agnt__nav {
    border-right: 1px solid var(--line);
    padding: 12px 8px;
    background: var(--bg-2);
    display: flex; flex-direction: column;
    gap: 4px;
  }
  .agnt__new {
    background: var(--accent);
    color: var(--bg);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 8px;
  }
  .agnt__new svg { width: 12px; height: 12px; stroke-width: 2.4; }
  .agnt__nav-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 8px 4px;
  }
  .agnt__hist {
    padding: 7px 10px;
    border-radius: 5px;
    font-size: 11.5px;
    color: var(--ink-2);
    line-height: 1.3;
    cursor: default;
  }
  .agnt__hist.active { background: var(--bg); color: var(--ink); }
  .agnt__hist-time { font-family: var(--font-mono); font-size: 9px; color: var(--ink-4); margin-top: 2px; }

  .agnt__chat {
    background: var(--bg);
    padding: 14px 16px 12px;
    display: flex; flex-direction: column;
    gap: 10px;
    overflow: hidden;
    min-width: 0;
  }
  .agnt__msg {
    max-width: 90%;
    font-family: var(--font-body);
    font-size: 12.5px;
    line-height: 1.5;
  }
  .agnt__msg--u {
    align-self: flex-end;
    background: var(--bg-3);
    color: var(--ink);
    padding: 9px 13px;
    border-radius: 12px 12px 3px 12px;
  }
  .agnt__msg--a {
    color: var(--ink-2);
    padding: 0 4px;
  }
  .agnt__msg--a b { color: var(--ink); font-weight: 600; }
  .agnt__call {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 5px 9px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 5px;
    align-self: flex-start;
    color: var(--ink-3);
  }
  .agnt__call .fn { color: var(--accent); }
  .agnt__call .ok { color: #4ade80; margin-left: 5px; }

  .agnt__input {
    margin-top: auto;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 11px;
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-body);
    font-size: 11.5px;
    color: var(--ink-4);
  }
  .agnt__input::after {
    content: "↵";
    margin-left: auto;
    width: 22px; height: 22px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 5px;
    display: grid; place-items: center;
    font-weight: 600;
  }

  .agnt__canvas {
    background: var(--bg-2);
    border-left: 1px solid var(--line);
    display: flex; flex-direction: column;
    overflow: hidden;
  }
  .agnt__canvas-head {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 8px;
  }
  .agnt__canvas-title { font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--ink); }
  .agnt__canvas-sub { font-family: var(--font-mono); font-size: 9px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
  .agnt__canvas-pin {
    margin-left: auto;
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--accent-ring);
  }
  .agnt__canvas-rows {
    flex: 1;
    display: flex; flex-direction: column;
  }
  .agnt__canvas-row {
    display: grid; grid-template-columns: 18px 1fr auto;
    gap: 8px;
    padding: 8px 12px;
    align-items: center;
    border-bottom: 1px dashed var(--line);
    font-size: 11px;
    color: var(--ink-2);
  }
  .agnt__canvas-row.checked { background: var(--accent-soft); }
  .agnt__canvas-row .amt { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink); }
  .agnt__canvas-foot {
    padding: 9px 12px;
    border-top: 1px solid var(--line);
    background: var(--bg-3);
    display: flex; align-items: center; gap: 6px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .agnt__canvas-foot b { color: var(--accent); }
  .agnt__canvas-cta {
    margin-left: auto;
    background: var(--accent);
    color: var(--bg);
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  @media (max-width: 720px) {
    .modes-stack { gap: 36px; }
    .mode { gap: 18px; }
    .mode__intro { padding: 0; }
    .mode__title {
      font-size: 28px;
      line-height: 1.08;
      margin-top: 12px;
    }
    .mode__tag {
      max-width: none;
      font-size: 14px;
    }
    .mode__points {
      margin-top: 18px;
      padding-top: 14px;
      gap: 8px;
    }

    .mode__mockup {
      min-height: 0;
      border-radius: 16px;
    }
    .mockup__chrome {
      height: 34px;
      padding: 0 10px;
    }
    .mockup__dot {
      width: 7px;
      height: 7px;
    }
    .mockup__addr {
      min-width: 0;
      max-width: none;
      margin-left: 8px;
      padding: 0 8px;
      font-size: 9px;
      white-space: nowrap;
      overflow: hidden;
    }
    .mockup__pill {
      padding: 3px 7px;
      font-size: 8.5px;
      letter-spacing: 0.06em;
      white-space: nowrap;
    }

    .mockup--caisse .mockup__body {
      display: flex;
      flex-direction: column;
    }
    .caisse__menu {
      flex-direction: row;
      border-right: 0;
      border-bottom: 1px solid var(--line);
      padding: 10px;
      gap: 6px;
      background: var(--bg-2);
    }
    .caisse__menu-tag { display: none; }
    .caisse__menu-item {
      flex: 1 1 0;
      justify-content: center;
      min-width: 0;
      padding: 8px 6px;
      font-size: 11px;
      white-space: nowrap;
    }
    .caisse__menu-item svg {
      width: 13px;
      height: 13px;
    }

    .caisse__work {
      padding: 14px;
      gap: 11px;
      overflow: visible;
    }
    .caisse__crumb {
      font-size: 9px;
      letter-spacing: 0.06em;
    }
    .caisse__device {
      display: grid;
      grid-template-columns: 40px 1fr auto;
      gap: 10px;
      padding: 12px;
    }
    .caisse__device-icon {
      width: 40px;
      height: 48px;
    }
    .caisse__device-name {
      font-size: 12.5px;
      line-height: 1.25;
    }
    .caisse__device-sub {
      font-size: 9px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 150px;
    }
    .caisse__device-price {
      margin-left: 0;
      font-size: 16px;
    }
    .caisse__repair {
      gap: 8px;
      padding: 8px 10px;
    }
    .caisse__repair__name {
      flex: 1;
      min-width: 0;
      font-size: 11.5px;
      line-height: 1.3;
    }
    .caisse__repair__price {
      flex-shrink: 0;
      font-size: 10px;
    }

    .caisse__cart {
      border-left: 0;
      border-top: 1px solid var(--line);
      padding: 12px 14px 14px;
      gap: 8px;
      background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
    }
    .caisse__cart-tag {
      font-size: 9px;
      letter-spacing: 0.08em;
    }
    .caisse__cart-line { display: none; }
    .caisse__cart-totals {
      margin-top: 0;
      padding-top: 0;
      border-top: 0;
      gap: 3px;
    }
    .caisse__cart-totals > div:not(.grand) { display: none; }
    .caisse__cart-totals .grand {
      align-items: center;
      font-size: 20px;
      margin-top: 0;
    }
    .caisse__cart-cta {
      margin-top: 2px;
      width: 100%;
      padding: 12px;
      font-size: 13px;
    }

    .mockup--agentique .mockup__body {
      display: flex;
      flex-direction: column;
      background: var(--bg);
    }
    .agnt__nav { display: none; }
    .agnt__chat {
      padding: 14px;
      gap: 9px;
      overflow: visible;
    }
    .agnt__msg {
      max-width: 94%;
      font-size: 12.3px;
      line-height: 1.45;
    }
    .agnt__call {
      width: fit-content;
      max-width: 100%;
      padding: 5px 8px;
      border-radius: 999px;
      font-size: 9.5px;
      overflow: hidden;
      white-space: nowrap;
    }
    .agnt__call .fn {
      display: inline-block;
      max-width: 156px;
      overflow: hidden;
      text-overflow: ellipsis;
      vertical-align: bottom;
    }
    .agnt__input {
      margin-top: 2px;
      border-radius: 999px;
      padding: 8px 9px 8px 12px;
    }
    .agnt__input::after {
      width: 24px;
      height: 24px;
      border-radius: 50%;
    }

    .agnt__canvas {
      margin: 0 14px 14px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--bg-2);
    }
    .agnt__canvas-head {
      padding: 10px 12px;
    }
    .agnt__canvas-rows {
      flex: initial;
      max-height: 138px;
      overflow: hidden;
    }
    .agnt__canvas-row {
      grid-template-columns: 16px minmax(0, 1fr) auto;
      gap: 7px;
      padding: 8px 10px;
      font-size: 10.8px;
    }
    .agnt__canvas-row .amt {
      font-size: 10px;
    }
    .agnt__canvas-row:nth-child(n+5) { display: none; }
    .agnt__canvas-foot {
      padding: 9px 10px;
      font-size: 9px;
    }
  }

  @media (max-width: 420px) {
    .mockup__pill { display: none; }
    .caisse__menu-item {
      gap: 0;
      padding: 8px 5px;
    }
    .caisse__menu-item svg { display: none; }
    .caisse__device {
      grid-template-columns: 36px 1fr;
    }
    .caisse__device-price {
      grid-column: 1 / -1;
      justify-self: end;
      margin-top: -4px;
    }
    .agnt__call .fn { max-width: 132px; }
  }

  /* — Mode 03: Admin — sidebar + dashboard — */
  .mockup--admin .mockup__body {
    grid-template-columns: 168px 1fr;
  }
  @media (max-width: 720px) { .mockup--admin .mockup__body { grid-template-columns: 120px 1fr; } }

  .admin__nav {
    background: var(--bg-2);
    border-right: 1px solid var(--line);
    padding: 14px 10px;
    display: flex; flex-direction: column;
    gap: 2px;
  }
  .admin__nav-brand {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    padding: 0 8px 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
  }
  .admin__nav-brand::before {
    content: "";
    width: 14px; height: 14px;
    background: var(--accent);
    border-radius: 3px;
  }
  .admin__nav-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--ink-4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 8px 4px;
  }
  .admin__nav-item {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 8px;
    border-radius: 5px;
    font-size: 11.5px;
    color: var(--ink-3);
    cursor: default;
  }
  .admin__nav-item svg { width: 13px; height: 13px; stroke-width: 1.7; flex-shrink: 0; }
  .admin__nav-item.active {
    background: var(--bg-3);
    color: var(--ink);
  }
  .admin__nav-item.active svg { color: var(--accent); }
  .admin__nav-item .badge {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 9px;
    background: var(--accent);
    color: var(--bg);
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 600;
  }

  .admin__main {
    background: var(--bg);
    padding: 16px 18px;
    display: flex; flex-direction: column;
    gap: 14px;
    overflow: hidden;
  }
  .admin__h {
    display: flex; align-items: center; gap: 8px;
  }
  .admin__h-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
  .admin__h-sub { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }

  .admin__kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .admin__kpi {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
  }
  .admin__kpi-tag { font-family: var(--font-mono); font-size: 9px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; }
  .admin__kpi-v { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); margin-top: 4px; letter-spacing: -0.02em; }
  .admin__kpi-v .cur { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-left: 2px; font-weight: 400; }
  .admin__kpi-d { font-family: var(--font-mono); font-size: 9.5px; margin-top: 3px; }
  .admin__kpi-d.up { color: #4ade80; }
  .admin__kpi-d.down { color: #f87171; }

  .admin__chart {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    flex: 1;
    min-height: 120px;
    display: flex; flex-direction: column;
    gap: 8px;
  }
  .admin__chart-h {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .admin__chart-h b { color: var(--ink); font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
  .admin__chart-h .legend {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 4px;
  }
  .admin__chart-h .legend::before {
    content: ""; width: 8px; height: 2px; background: var(--accent); border-radius: 1px;
  }
  .admin__chart-svg { flex: 1; width: 100%; min-height: 80px; }

  @media (max-width: 720px) {
    .mockup--admin .mockup__body {
      display: flex;
      flex-direction: column;
      background: var(--bg);
    }

    .admin__nav {
      flex-direction: row;
      border-right: 0;
      border-bottom: 1px solid var(--line);
      padding: 10px;
      gap: 6px;
      overflow: hidden;
    }
    .admin__nav-brand,
    .admin__nav-tag,
    .admin__nav-item {
      display: none;
    }
    .admin__nav-item:nth-of-type(2),
    .admin__nav-item:nth-of-type(3),
    .admin__nav-item:nth-of-type(5) {
      display: flex;
      flex: 1 1 0;
      justify-content: center;
      min-width: 0;
      padding: 8px 6px;
      font-size: 11px;
      white-space: nowrap;
    }
    .admin__nav-item svg {
      width: 13px;
      height: 13px;
    }
    .admin__nav-item .badge {
      margin-left: 2px;
      padding: 1px 4px;
    }

    .admin__main {
      padding: 14px;
      gap: 12px;
      overflow: visible;
    }
    .admin__h {
      justify-content: space-between;
      align-items: baseline;
    }
    .admin__h-title {
      font-size: 15px;
    }
    .admin__h-sub {
      font-size: 9px;
    }

    .admin__kpis {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .admin__kpi {
      min-width: 0;
      padding: 10px;
    }
    .admin__kpi:first-child {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 4px 10px;
      align-items: end;
    }
    .admin__kpi:first-child .admin__kpi-tag,
    .admin__kpi:first-child .admin__kpi-d {
      grid-column: 1;
    }
    .admin__kpi:first-child .admin__kpi-v {
      grid-column: 2;
      grid-row: 1 / span 2;
      align-self: center;
      margin-top: 0;
      font-size: 22px;
    }
    .admin__kpi-tag {
      font-size: 8.5px;
      letter-spacing: 0.08em;
    }
    .admin__kpi-v {
      font-size: 17px;
    }
    .admin__kpi-d {
      font-size: 9px;
    }

    .admin__chart {
      min-height: 150px;
      padding: 10px;
      gap: 7px;
    }
    .admin__chart-h {
      font-size: 8.8px;
      letter-spacing: 0.06em;
    }
    .admin__chart-h b {
      font-size: 11.5px;
    }
    .admin__chart-svg {
      min-height: 112px;
    }
  }

  @media (max-width: 420px) {
    .admin__nav-item:nth-of-type(2),
    .admin__nav-item:nth-of-type(3),
    .admin__nav-item:nth-of-type(5) {
      gap: 0;
      padding: 8px 5px;
    }
    .admin__nav-item svg { display: none; }
    .admin__chart-h .legend { display: none; }
  }

  /* ============================================
     POCKET — Agent mobile section
     ============================================ */
  .pocket {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  @media (max-width: 980px) {
    .pocket { grid-template-columns: 1fr; gap: 28px; }
  }

  .pocket__intro {
    display: flex; flex-direction: column;
    max-width: 32ch;
  }
  .pocket__num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .pocket__num::after {
    content: "";
    width: 28px; height: 1px;
    background: var(--line-strong);
  }
  .pocket__title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--ink);
    line-height: 1.05;
    margin: 14px 0 0;
  }
  .pocket__title em {
    font-style: normal;
    color: var(--accent);
  }
  .pocket__tag {
    font-family: var(--font-body);
    font-size: 15.5px;
    color: var(--ink-2);
    line-height: 1.55;
    margin: 16px 0 0;
  }
  .pocket__points {
    list-style: none;
    margin: 24px 0 0;
    padding: 18px 0 0;
    border-top: 1px dashed var(--line);
    display: flex; flex-direction: column;
    gap: 10px;
  }
  .pocket__points li {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
  }
  .pocket__points li::before {
    content: "";
    position: absolute;
    left: 0; top: 7px;
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
  }
  .pocket__points li b { color: var(--ink); font-weight: 600; }

  /* — Phones stage — */
  .pocket__stage {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
  }
  .pocket__stage::before {
    content: "";
    position: absolute;
    inset: 10% 8%;
    background: radial-gradient(ellipse at center, var(--accent-glow), transparent 65%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
  }

  .phone {
    position: relative;
    width: 260px;
    height: 528px;
    background: #0b0c0d;
    border: 1px solid #2a2c30;
    border-radius: 38px;
    padding: 9px;
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.04) inset,
      0 30px 60px -20px rgba(0,0,0,0.7),
      0 12px 28px -8px rgba(0,0,0,0.5);
    z-index: 1;
    transition: transform .35s ease, box-shadow .35s ease;
  }
  .phone--a {
    transform: rotate(-5deg) translateX(20px);
    z-index: 2;
  }
  .phone--b {
    transform: rotate(4deg) translateX(-30px) translateY(-12px);
    margin-left: -56px;
    z-index: 1;
  }
  .pocket__stage:hover .phone--a { transform: rotate(-3deg) translateX(8px); }
  .pocket__stage:hover .phone--b { transform: rotate(2deg) translateX(-18px) translateY(-6px); }

  @media (max-width: 720px) {
    .pocket {
      gap: 20px;
    }
    .pocket__intro {
      max-width: none;
    }
    .pocket__title {
      font-size: 29px;
      line-height: 1.08;
    }
    .pocket__tag {
      font-size: 14px;
      margin-top: 12px;
    }
    .pocket__points {
      margin-top: 18px;
      padding-top: 14px;
      gap: 8px;
    }
    .pocket__points li {
      font-size: 12.5px;
      padding-left: 18px;
    }

    .pocket__stage {
      width: 100%;
      max-width: 100%;
      min-height: 382px;
      overflow: hidden;
      perspective: 1000px;
    }
    .pocket__stage::before {
      inset: 14% 14%;
      opacity: 0.75;
    }
    .phone {
      width: 184px;
      height: 386px;
      border-radius: 30px;
      padding: 7px;
    }
    .phone--a {
      transform: rotate(-1.5deg) translateX(28px);
    }
    .phone--b {
      transform: rotate(1.5deg) translateX(-22px) translateY(10px);
      margin-left: -72px;
      opacity: 0.72;
    }
    .pocket__stage:hover .phone--a {
      transform: rotate(-1deg) translateX(24px);
    }
    .pocket__stage:hover .phone--b {
      transform: rotate(1deg) translateX(-20px) translateY(8px);
    }

    .phone__screen {
      border-radius: 24px;
    }
    .phone__island {
      width: 76px;
      height: 22px;
      top: 8px;
    }
    .phone__status {
      height: 39px;
      padding: 0 18px;
      font-size: 11.5px;
    }
    .phone__head {
      padding: 5px 12px 8px;
      gap: 8px;
    }
    .phone__head-title {
      font-size: 12px;
    }
    .phone__head-sub {
      font-size: 8px;
    }
    .phone__chat {
      padding: 12px 10px 7px;
      gap: 7px;
    }
    .phone__msg {
      font-size: 11.2px;
      line-height: 1.4;
    }
    .phone__call {
      max-width: 100%;
      padding: 4px 7px;
      font-size: 8.4px;
      gap: 5px;
      overflow: hidden;
    }
    .phone__call .fn {
      max-width: 102px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .phone__kpi,
    .phone__sms {
      width: 90%;
    }
    .phone__kpi {
      padding: 9px 10px;
    }
    .phone__kpi-v {
      font-size: 18px;
    }
    .phone__bar {
      padding: 7px 9px 13px;
    }
    .phone__bar-input {
      padding: 7px 10px;
      font-size: 10.5px;
    }
    .phone__mic {
      width: 31px;
      height: 31px;
    }
    .phone__home {
      width: 86px;
    }
  }

  /* Side buttons */
  .phone::before, .phone::after {
    content: "";
    position: absolute;
    background: #2a2c30;
    border-radius: 1.5px;
    z-index: 0;
  }
  .phone::before { left: -2px; top: 110px; width: 3px; height: 50px; }
  .phone::after { right: -2px; top: 130px; width: 3px; height: 70px; }

  .phone__screen {
    position: relative;
    width: 100%; height: 100%;
    background: var(--bg);
    border-radius: 30px;
    overflow: hidden;
    display: flex; flex-direction: column;
  }

  /* Dynamic Island */
  .phone__island {
    position: absolute;
    top: 9px; left: 50%;
    transform: translateX(-50%);
    width: 92px; height: 26px;
    background: #000;
    border-radius: 14px;
    z-index: 5;
  }

  /* Status bar (time + indicators) */
  .phone__status {
    height: 44px;
    padding: 0 22px;
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    flex-shrink: 0;
  }
  .phone__status-r {
    display: flex; align-items: center; gap: 5px;
  }
  .phone__status-r svg { width: 14px; height: 10px; }

  /* App header */
  .phone__head {
    padding: 6px 14px 10px;
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
  }
  .phone__head-back {
    width: 22px; height: 22px;
    display: grid; place-items: center;
    color: var(--accent);
  }
  .phone__head-back svg { width: 14px; height: 14px; stroke-width: 2.4; }
  .phone__head-title {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.1;
  }
  .phone__head-sub {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
  }
  .phone__head-dot {
    margin-left: auto;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ring);
  }

  /* App body — chat-like */
  .phone__chat {
    flex: 1;
    padding: 14px 12px 8px;
    display: flex; flex-direction: column;
    gap: 8px;
    overflow: hidden;
  }
  .phone__msg {
    max-width: 86%;
    font-family: var(--font-body);
    font-size: 12.5px;
    line-height: 1.45;
  }
  .phone__msg--u {
    align-self: flex-end;
    background: var(--bg-3);
    color: var(--ink);
    padding: 8px 11px;
    border-radius: 13px 13px 4px 13px;
  }
  .phone__msg--a {
    color: var(--ink-2);
    padding: 0 6px;
  }
  .phone__msg--a b { color: var(--ink); font-weight: 600; }
  .phone__msg--a .accent { color: var(--accent); font-weight: 600; }

  .phone__call {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 9.5px;
    padding: 4px 9px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--ink-3);
    display: inline-flex; align-items: center; gap: 6px;
  }
  .phone__call .fn { color: var(--accent); }
  .phone__call .ok { color: #4ade80; }

  .phone__kpi {
    align-self: flex-start;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    width: 86%;
    display: flex; flex-direction: column; gap: 2px;
  }
  .phone__kpi-tag { font-family: var(--font-mono); font-size: 9px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; }
  .phone__kpi-v { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
  .phone__kpi-v .cur { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-left: 2px; font-weight: 400; }
  .phone__kpi-d { font-family: var(--font-mono); font-size: 9.5px; color: #4ade80; }

  .phone__sms {
    align-self: flex-start;
    background: var(--accent-soft);
    border: 1px solid var(--accent-ring-2);
    border-radius: 8px;
    padding: 9px 11px;
    width: 86%;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.45;
    color: var(--ink);
  }
  .phone__sms-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    display: flex; align-items: center; gap: 5px;
  }

  /* Composer / mic */
  .phone__bar {
    flex-shrink: 0;
    padding: 8px 10px 14px;
    display: flex; align-items: center; gap: 8px;
  }
  .phone__bar-input {
    flex: 1;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 11.5px;
    color: var(--ink-4);
    display: flex; align-items: center; gap: 6px;
  }
  .phone__mic {
    width: 34px; height: 34px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    display: grid; place-items: center;
    flex-shrink: 0;
    position: relative;
  }
  .phone__mic svg { width: 14px; height: 14px; stroke-width: 2; }
  .phone__mic.recording::before {
    content: "";
    position: absolute;
    inset: -6px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0.4;
    animation: micPulse 1.4s ease-out infinite;
  }
  @keyframes micPulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 0; }
  }

  /* Home indicator bar */
  .phone__home {
    position: absolute;
    bottom: 6px; left: 50%;
    transform: translateX(-50%);
    width: 100px; height: 4px;
    background: var(--ink-2);
    border-radius: 2px;
    opacity: 0.7;
    z-index: 6;
  }

  /* Voice waveform pill (above mic when recording) */
  .phone__voice {
    align-self: center;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 6px 12px 6px 10px;
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .phone__voice-bars {
    display: inline-flex; gap: 2px; align-items: center;
    height: 14px;
  }
  .phone__voice-bars span {
    display: inline-block;
    width: 2px;
    background: var(--accent);
    border-radius: 1px;
    animation: voiceBar 1.1s ease-in-out infinite;
  }
  .phone__voice-bars span:nth-child(1) { height: 40%; animation-delay: -0.4s; }
  .phone__voice-bars span:nth-child(2) { height: 80%; animation-delay: -0.2s; }
  .phone__voice-bars span:nth-child(3) { height: 60%; animation-delay: -0.6s; }
  .phone__voice-bars span:nth-child(4) { height: 100%; animation-delay: 0s; }
  .phone__voice-bars span:nth-child(5) { height: 50%; animation-delay: -0.3s; }
  @keyframes voiceBar {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
  }

  @media (max-width: 720px) {
    .phone__screen {
      border-radius: 24px;
    }

    .phone__island {
      top: 8px;
      width: 52px;
      height: 15px;
      border-radius: 999px;
      opacity: 0.92;
    }

    .phone__status {
      height: 28px;
      padding: 0 14px;
      font-size: 0;
      color: transparent;
    }
    .phone__status-r {
      display: none;
    }

    .phone__head {
      padding: 8px 11px 8px;
      gap: 8px;
    }
    .phone__head-back {
      width: 18px;
      height: 18px;
    }
    .phone__head-back svg {
      width: 12px;
      height: 12px;
    }
    .phone__head-title {
      font-size: 11.5px;
    }
    .phone__head-sub {
      font-size: 7.5px;
      letter-spacing: 0.05em;
    }

    .phone__chat {
      padding: 11px 10px 7px;
      gap: 6px;
    }
    .phone__msg {
      font-size: 10.7px;
      line-height: 1.36;
    }
    .phone__msg--u {
      padding: 7px 9px;
      border-radius: 11px 11px 4px 11px;
    }
    .phone__msg--a {
      padding: 0 4px;
    }

    .phone__call {
      max-width: 100%;
      padding: 3px 7px;
      font-size: 7.8px;
      gap: 5px;
      overflow: hidden;
    }
    .phone__call .fn {
      max-width: 92px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .phone__kpi,
    .phone__sms {
      width: 91%;
    }
    .phone__kpi {
      padding: 8px 9px;
    }
    .phone__kpi-tag,
    .phone__sms-tag {
      font-size: 7.8px;
      letter-spacing: 0.07em;
    }
    .phone__kpi-v {
      font-size: 17px;
    }
    .phone__kpi-v .cur {
      font-size: 9px;
    }
    .phone__kpi-d {
      font-size: 8.2px;
    }
    .phone__sms {
      padding: 8px 9px;
      font-size: 10.2px;
      line-height: 1.36;
    }

    .phone__voice {
      padding: 5px 9px;
      font-size: 8px;
      gap: 6px;
    }
    .phone__voice-bars {
      height: 11px;
    }

    .phone__bar {
      padding: 7px 8px 13px;
    }
    .phone__bar-input {
      padding: 7px 9px;
      font-size: 9.8px;
    }
    .phone__mic {
      width: 29px;
      height: 29px;
    }
    .phone__mic svg {
      width: 12px;
      height: 12px;
    }
    .phone__home {
      bottom: 6px;
      width: 78px;
      height: 3px;
    }
  }


  /* === Notre Histoire === */
  .history {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  @media (max-width: 900px) { .history { grid-template-columns: 1fr; } }
  .history-phase {
    background: var(--bg);
    padding: 36px 32px;
    display: flex; flex-direction: column;
    gap: 14px;
    position: relative;
  }
  .history-phase-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .history-phase-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }
  .history-phase-desc { color: var(--ink-2); font-size: 14px; line-height: 1.6; }

  .philosophy {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  @media (max-width: 900px) { .philosophy { grid-template-columns: 1fr; } }
  .philo-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex; flex-direction: column;
    gap: 10px;
  }
  .philo-card-icon {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--accent);
    margin-bottom: 6px;
  }
  .philo-card-icon svg { width: 16px; height: 16px; }
  .philo-card-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
  .philo-card-desc { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }

  /* === Tarifs === */
  .founder-banner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    padding: 20px 28px;
    margin-bottom: 32px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    background:
      linear-gradient(120deg, var(--accent-soft), transparent 60%),
      var(--bg-2);
    flex-wrap: wrap;
  }
  .founder-banner-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .founder-banner-pill {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .founder-banner-text { font-size: 14.5px; color: var(--ink); }
  .founder-banner-text b { color: var(--accent); font-weight: 600; }
  .founder-banner-spots {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  @media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
  .plan {
    background: var(--bg);
    padding: 36px 32px;
    display: flex; flex-direction: column;
    gap: 18px;
    position: relative;
  }
  .plan.popular { background: var(--bg-2); }
  .plan-popular-tag {
    position: absolute; top: 16px; right: 16px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 3px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .plan-name {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-3);
  }
  .plan-price {
    display: flex; align-items: baseline; gap: 4px;
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.025em;
  }
  .plan-price .currency { font-size: 22px; color: var(--ink-2); margin-right: 2px; }
  .plan-price .period {
    font-size: 13px;
    color: var(--ink-3);
    font-weight: 400;
    letter-spacing: 0;
    font-family: var(--font-mono);
    margin-left: 4px;
  }
  .plan-tagline {
    color: var(--ink-3);
    font-size: 13px;
    font-family: var(--font-mono);
    margin-top: -8px;
  }
  .plan-features {
    display: flex; flex-direction: column;
    gap: 10px;
    flex: 1;
    margin-top: 4px;
  }
  .plan-feature {
    display: grid; grid-template-columns: 18px 1fr;
    gap: 10px;
    font-size: 13.5px;
    color: var(--ink-2);
    align-items: start;
    line-height: 1.5;
  }
  .plan-feature::before {
    content: "✓";
    color: var(--accent);
    font-family: var(--font-mono);
    line-height: 1.5;
  }
  .plan-cta {
    margin-top: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    transition: all .2s;
    cursor: pointer;
  }
  .plan-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .plan.popular .plan-cta {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    font-weight: 600;
  }
  .plan.popular .plan-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

  /* === Linear-style on-enter reveal — non-blocking (visible by default, just animate fade-up once) === */
  @keyframes revealUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .sec-head.revealed,
  .ecosystem.revealed,
  .flow.revealed,
  .modes-stack.revealed,
  .pocket.revealed,
  .numbers.revealed,
  .history.revealed,
  .philosophy.revealed,
  .vision-inner.revealed,
  .pricing.revealed,
  .faq-list.revealed,
  .trust-inner.revealed {
    animation: revealUp .55s cubic-bezier(.2,.6,.3,1) both;
  }
  @media (prefers-reduced-motion: reduce) {
    .sec-head.revealed,
    .ecosystem.revealed,
    .flow.revealed,
    .modes-stack.revealed,
    .pocket.revealed,
    .numbers.revealed,
    .history.revealed,
    .philosophy.revealed,
    .vision-inner.revealed,
    .faq-list.revealed,
    .trust-inner.revealed { animation: none; }
  }

  /* === Subtle card hover lift (Linear-feel) === */
  .eco-card, .philo-card, .plan, .history-phase {
    transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  }
  .eco-card:not(.featured):hover,
  .philo-card:hover,
  .history-phase:hover {
    background: var(--bg-3);
  }
  .plan:not(.popular):hover { background: var(--bg-2); }
  .plan.popular { box-shadow: var(--shadow-inset); }

  /* Linear-style sticky nav: tighter & cleaner */
  .nav { background: color-mix(in oklab, var(--bg) 80%, transparent); }
  .nav-links a { font-weight: 510; letter-spacing: -0.011em; }

  /* Buttons — Linear weight */
  .btn { font-weight: 510; }
  .btn-primary { font-weight: 590; }
  .waitlist-cta { font-weight: 590; }
  .plan-cta { font-weight: 510; }
  .plan.popular .plan-cta { font-weight: 590; }

  /* Refine agent avatar glow — softer lime */
  .agent-avatar { background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 50%, var(--accent-warm))); }
  @keyframes agentPulse {
    0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 40%, transparent); }
    100% { box-shadow: 0 0 0 10px transparent; }
  }

  /* Tighter hero meta */
  .hero-meta { font-weight: 400; }

  /* Subtle grain backdrop on the canvas — Linear-esque depth */
  body::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.5;
    mix-blend-mode: overlay;
  }
  body > * { position: relative; z-index: 1; }

  /* === Presse / featured (Anthropic) === */
  .press-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding: 11px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--bg-2);
    text-decoration: none;
    line-height: 1;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  }
  .press-badge:hover {
    border-color: var(--accent);
    background: var(--bg-3, var(--bg-2));
    transform: translateY(-1px);
  }
  .press-badge__label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-3);
  }
  .press-badge__sep {
    width: 1px;
    height: 18px;
    background: var(--line-strong);
  }
  .press-badge__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
  }
  .press-badge__icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
  }
  .press-badge__word {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  .wb-press {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-3);
  }
  .wb-press a {
    color: var(--ink-3);
    text-decoration: none;
    border-bottom: 1px solid var(--line-strong);
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .wb-press a:hover {
    color: var(--ink-2);
    border-color: var(--ink-3);
  }
  .wb-press b { color: var(--ink); font-weight: 600; }

  /* === Pricing === */
  .pricing-toggle {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    margin: -24px 0 40px;
  }
  .pricing-switch {
    display: inline-flex; gap: 4px;
    padding: 4px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .pricing-toggle-btn {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-body);
    font-size: 13px; font-weight: 510;
    padding: 7px 16px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--ink-3);
    transition: color .15s ease, background .15s ease;
  }
  .pricing-toggle-btn.is-active {
    background: var(--bg-3);
    color: var(--ink);
    box-shadow: var(--shadow-card);
  }
  .pricing-switch-save {
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.02em;
  }
  .pricing-toggle-hint { font-size: 12px; color: var(--ink-3); }

  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: stretch;
  }
  @media (max-width: 1080px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }

  .pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-card);
  }
  .pricing-card.is-popular {
    border-color: var(--accent);
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--accent);
  }
  .pricing-badge {
    position: absolute;
    top: -11px; left: 24px;
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bg);
    background: var(--accent);
    padding: 4px 10px;
    border-radius: 999px;
  }
  .pricing-name {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 590;
    letter-spacing: -0.02em;
  }
  .pricing-for {
    margin-top: 4px;
    font-size: 13px;
    color: var(--ink-3);
    min-height: 34px;
  }
  .pricing-from {
    display: block;
    min-height: 15px;
    margin-top: 18px;
    font-size: 12px;
    color: var(--ink-3);
  }
  .pricing-price-wrap {
    margin: 2px 0 18px;
    min-height: 70px;
  }
  .pricing-price {
    display: flex; align-items: baseline; gap: 2px;
  }
  .pricing-annual-note {
    margin-top: 6px;
    font-size: 12px;
    color: var(--ink-3);
  }
  .pricing-annual-note s { color: var(--ink-4); margin-right: 2px; }
  .pricing-amount {
    font-family: var(--font-display);
    font-size: 38px; font-weight: 620;
    letter-spacing: -0.03em;
    line-height: 1;
  }
  .pricing-cur { font-size: 18px; font-weight: 510; color: var(--ink-2); }
  .pricing-per { font-size: 13px; color: var(--ink-3); margin-left: 2px; }

  /* Monthly / annual swap */
  .pricing-grid .pm-annual { display: none; }
  .pricing-grid.is-annual .pm-monthly { display: none; }
  .pricing-grid.is-annual .pm-annual { display: revert; }

  .pricing-cta {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
  }
  .pricing-incl {
    margin: 22px 0 12px;
    font-size: 12px; font-weight: 590;
    color: var(--ink-2);
  }
  .pricing-feats {
    list-style: none;
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 18px;
  }
  .pricing-incl + .pricing-feats { margin-top: 0; }
  .pricing-feats li {
    position: relative;
    padding-left: 22px;
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.4;
  }
  .pricing-feats li::before {
    content: "";
    position: absolute;
    left: 0; top: 4px;
    width: 13px; height: 13px;
    background: var(--accent-soft);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--accent);
  }
  .pricing-feats li::after {
    content: "";
    position: absolute;
    left: 4px; top: 7px;
    width: 5px; height: 3px;
    border-left: 1.5px solid var(--accent);
    border-bottom: 1.5px solid var(--accent);
    transform: rotate(-45deg);
  }
  /* WrenchBoard bundled feature row — mascot replaces the check, text aligned with other rows */
  .pricing-wb-feat::before, .pricing-wb-feat::after { display: none; }
  .pricing-wb-mascot {
    position: absolute;
    left: -2px; top: 1px;
    width: 18px; height: 18px;
  }
  .pricing-wb-link {
    color: var(--ink-2);
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 3px;
    transition: color .15s ease, text-decoration-color .15s ease;
  }
  .pricing-wb-link:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
  }

  .pricing-foot {
    margin-top: 32px;
    font-size: 12px;
    color: var(--ink-3);
    line-height: 1.6;
    max-width: 760px;
  }
  .pricing-foot b { color: var(--ink-2); font-weight: 600; }

  /* ===========================================================
     Theme toggle (dark ⇄ light)
     Pilule icône dans la nav. Soleil = "passer en clair",
     Lune = "passer en sombre". Crossfade + rotation au switch.
     =========================================================== */
  .theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 34px;
    height: 34px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    color: var(--ink-2);
    cursor: pointer;
    line-height: 1;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .1s ease;
  }
  .theme-toggle:hover {
    background: var(--surface-hover);
    border-color: var(--surface-border-hover);
    color: var(--ink);
  }
  .theme-toggle:active { transform: scale(0.93); }
  .theme-toggle:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
  }
  .theme-toggle__track {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
  }
  .theme-toggle__icon {
    grid-area: 1 / 1;
    width: 18px;
    height: 18px;
    transition: opacity .2s ease, transform .4s cubic-bezier(.34, 1.4, .5, 1);
  }
  /* Défaut (sombre) : soleil visible, lune masquée */
  .theme-toggle__icon--moon { opacity: 0; transform: rotate(-90deg) scale(0.4); }
  .theme-toggle__icon--sun  { opacity: 1; transform: rotate(0) scale(1); }
  [data-theme="light"] .theme-toggle__icon--sun  { opacity: 0; transform: rotate(90deg) scale(0.4); }
  [data-theme="light"] .theme-toggle__icon--moon { opacity: 1; transform: rotate(0) scale(1); }
  .theme-toggle__label { display: none; }

  @media (prefers-reduced-motion: reduce) {
    .theme-toggle__icon { transition: opacity .2s ease; transform: none !important; }
  }

  /* Mobile : devient une ligne pleine largeur dans le menu déroulant */
  @media (max-width: 860px) {
    .nav-links .theme-toggle {
      width: 100%;
      justify-content: flex-start;
      gap: 10px;
      min-height: 42px;
      padding: 0 12px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 500;
      color: var(--ink-2);
    }
    .nav-links .theme-toggle .theme-toggle__label { display: inline; }
  }
