/* Narra public website: shared base styles (home, product, pricing). Dark mode = html.dark overrides of the Tailwind
   classes the pages use; tokens follow admin/src/abi/design.css. Copied into dist-website by scripts/build-website.mjs. */
body {
  background-color: #ffffff;
  color: #111418;
}

.bg-tech-grid {
  background-image:
    linear-gradient(to right, rgba(228, 228, 231, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(228, 228, 231, 0.4) 1px, transparent 1px);
  background-size: 32px 32px;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1aa; }

.skeleton-bg {
  background: #f4f4f5;
  background-image: linear-gradient(90deg, #f4f4f5 0px, #e4e4e7 40px, #f4f4f5 80px);
  background-size: 1000px 100%;
}

.typing-cursor::after {
  content: '|';
  animation: blink 1s step-start infinite;
  color: #0d9488;
}
@keyframes blink { 50% { opacity: 0; } }

/* in-page links land below the fixed 56 px nav */
#demo, section[id] { scroll-margin-top: 72px; }

/* schema demo button: solid colours so the connector line never shows through */
.schema-line { background: #e4e4e7; }
html.dark .schema-line { background: #3f3f46; }
.schema-btn { background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }
.schema-btn:hover { background: #ccfbf1; }
.schema-btn.is-done, .schema-btn.is-done:hover { background: #ecfdf5; color: #047857; border-color: #a7f3d0; cursor: default; }
html.dark .schema-btn { background: #0f2a28; color: #5eead4; border-color: #115e59; }
html.dark .schema-btn:hover { background: #134e4a; }
html.dark .schema-btn.is-done, html.dark .schema-btn.is-done:hover { background: #0b2a1f; color: #6ee7b7; border-color: #065f46; }

/* product tabs + contact form */
.product-tab-btn[aria-selected="true"] { background: #fff; border-color: #e4e4e7; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
html.dark .product-tab-btn[aria-selected="true"] { background: #27272a; border-color: #3f3f46; }
.ct-input { width: 100%; background: #fafafa; border: 1px solid #e4e4e7; border-radius: 4px; padding: 8px 12px;
            font-size: 14px; color: #18181b; transition: border-color 0.15s; }
.ct-input:focus { outline: none; border-color: #14b8a6; }
html.dark .ct-input { background: #1c1c1f; border-color: #27272a; color: #fafafa; }

.token-key { color: #0f766e; }
.token-string { color: #0369a1; }
.token-array { color: #18181b; }
.token-bracket { color: #a1a1aa; }

/* ── ABI: logo, language switch, dark mode (html.dark; tokens = admin/src/erp/design.css dark) ── */
.abi-logo { background: #18181b; color: #fff; }
.lang-btn[aria-pressed="true"] { background: #ccfbf1; color: #18181b; }
.theme-icon-light { display: none; }
html.dark .theme-icon-light { display: inline; }
html.dark .theme-icon-dark { display: none; }
html.dark { color-scheme: dark; }
html.dark body { background-color: #09090b; color: #fafafa; }
html.dark .abi-logo { background: #fafafa; color: #18181b; }
html.dark .lang-btn[aria-pressed="true"] { background: rgba(20, 184, 166, 0.22); color: #fafafa; }
html.dark .bg-white { background-color: #18181b !important; }
html.dark .bg-white\/80 { background-color: rgba(9, 9, 11, 0.8) !important; }
html.dark .bg-white\/95 { background-color: rgba(9, 9, 11, 0.95) !important; }
html.dark .bg-zinc-50, html.dark .bg-surface-muted { background-color: #1c1c1f !important; }
html.dark .bg-zinc-50\/50 { background-color: rgba(28, 28, 31, 0.6) !important; }
html.dark .bg-zinc-100 { background-color: #27272a !important; }
html.dark .bg-zinc-900 { background-color: #000 !important; }
html.dark .btn-ink { background-color: #fafafa !important; color: #18181b !important; }
html.dark .bg-brand-50, html.dark .bg-brand-50\/50 { background-color: rgba(20, 184, 166, 0.12) !important; }
html.dark .bg-blue-50\/50 { background-color: rgba(59, 130, 246, 0.12) !important; }
html.dark .hover\:bg-zinc-50:hover, html.dark .hover\:bg-white:hover { background-color: #27272a !important; }
html.dark .hover\:bg-zinc-100:hover { background-color: #27272a !important; }
html.dark .hover\:bg-brand-50:hover, html.dark .hover\:bg-brand-100:hover { background-color: rgba(20, 184, 166, 0.18) !important; }
html.dark .border-zinc-200, html.dark .border-zinc-100, html.dark .border-surface-border { border-color: #27272a !important; }
html.dark .border-zinc-300 { border-color: #3f3f46 !important; }
html.dark .border-brand-100, html.dark .border-brand-200, html.dark .border-blue-200 { border-color: rgba(20, 184, 166, 0.3) !important; }
html.dark .text-zinc-900 { color: #fafafa !important; }
html.dark .text-zinc-800 { color: #e4e4e7 !important; }
html.dark .text-zinc-700 { color: #d4d4d8 !important; }
html.dark .text-zinc-600, html.dark .text-zinc-500 { color: #a1a1aa !important; }
html.dark .text-zinc-400 { color: #71717a !important; }
html.dark .text-brand-600, html.dark .text-brand-700 { color: #2dd4bf !important; }
html.dark .hover\:text-zinc-900:hover { color: #fafafa !important; }
html.dark .bg-tech-grid { background-image: linear-gradient(to right, rgba(63, 63, 70, 0.35) 1px, transparent 1px), linear-gradient(to bottom, rgba(63, 63, 70, 0.35) 1px, transparent 1px); }
html.dark .skeleton-bg { background: #27272a; background-image: linear-gradient(90deg, #27272a 0px, #3f3f46 40px, #27272a 80px); background-size: 1000px 100%; }
html.dark .shadow-float { box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 20px 40px -4px rgba(0,0,0,0.6); }
html.dark .token-key { color: #2dd4bf; }
html.dark .token-string { color: #7dd3fc; }
html.dark .token-array { color: #fafafa; }
html.dark select, html.dark input, html.dark textarea { color: #fafafa; }
html.dark ::-webkit-scrollbar-thumb { background: #3f3f46; }
/* Explorer auto-demo: a simulated cursor that clicks through each level until the visitor clicks */
.demo-cursor { position: fixed; left: 0; top: 0; z-index: 120; width: 26px; height: 26px; pointer-events: none; opacity: 0;
  transition: transform 0.8s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.3s; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25)); }
.demo-cursor.is-on { opacity: 1; }
.demo-cursor .demo-ring { position: absolute; left: -11px; top: -11px; width: 24px; height: 24px; border-radius: 9999px;
  border: 2px solid #14b8a6; opacity: 0; }
.demo-cursor.is-click .demo-ring { animation: demo-ring 0.5s ease-out; }
.demo-cursor.is-click svg { transform: scale(0.88); }
.demo-cursor svg { transition: transform 0.12s; transform-origin: 3px 2px; }
@keyframes demo-ring { 0% { opacity: 0.9; transform: scale(0.4); } 100% { opacity: 0; transform: scale(1.6); } }
.demo-target { box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.55); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* product + pricing pages: current nav link, plan cards, comparison table */
.nav-current { color: #0d9488; }
html.dark .nav-current { color: #2dd4bf; }
.cmp-table th, .cmp-table td { padding: 10px 12px; border-bottom: 1px solid #f4f4f5; vertical-align: top; }
html.dark .cmp-table th, html.dark .cmp-table td { border-bottom-color: #27272a; }

/* ── website v2 (2026-11-01, after lqe.fr): high contrast, crisp type ─────────────────────────────────────── */
/* headings: Bricolage Grotesque (Tailwind `font-serif` slot), heavy and tight */
.font-serif { font-weight: 750; letter-spacing: -0.022em; }
h1.font-serif { letter-spacing: -0.032em; }
.font-serif.italic { font-style: normal; }
/* eyebrows (section labels): bold caps in ink with a teal square, instead of light grey mono */
h2.font-mono.uppercase { font-family: 'Public Sans', system-ui, sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em; color: #111418; display: inline-flex; align-items: center; gap: 8px; }
h2.font-mono.uppercase::before { content: ''; width: 9px; height: 9px; background: #0d9488; flex: none; }
.bg-zinc-900 h2.font-mono.uppercase, .bg-zinc-950 h2.font-mono.uppercase { color: #ffffff; }
html.dark h2.font-mono.uppercase { color: #fafafa !important; }
/* menu: heavier links, ink colour */
nav .text-zinc-700 { color: #111418; }
nav a, nav button { font-weight: 600; }
/* dark sections (Security, Enterprise card) keep readable greys after the darker palette */
.bg-zinc-900 .text-zinc-400, .bg-zinc-950 .text-zinc-400 { color: #b4b8bf; }
.bg-zinc-900 .text-zinc-500, .bg-zinc-950 .text-zinc-500 { color: #9aa0a8; }
.bg-zinc-900 .text-zinc-300, .bg-zinc-950 .text-zinc-300 { color: #d7d9dc; }
.bg-zinc-900 .border-zinc-700, .bg-zinc-900 .border-zinc-800 { border-color: #3d4249; }
/* crisp secondary buttons flip with the theme */
html.dark .border-zinc-900 { border-color: #fafafa !important; }
html.dark .text-zinc-900.border-zinc-900 { color: #fafafa !important; }
