/* ============================================================
   Shotbot - stylesheet
   Design: dark / technical / electric lime
   2026 rewrite
   ============================================================ */

/* ─── Custom Properties ───────────────────────────────────── */
:root {
  --bg:          #0a0c10;
  --bg-surface:  #12151d;
  --bg-raised:   #1a1e2a;
  --border:      #252a38;
  --border-lite: #1e2232;

  --text:        #e2e6f0;
  --text-muted:  #8892a4;
  --text-dim:    #7e8699;

  --accent:      #9fef00;
  --accent-dark: #7bc800;
  --accent-hover:#b8ff0d;
  --accent-glow: rgba(159,239,0,.15);
  --accent-dim:  rgba(159,239,0,.08);

  --on-accent:   #0a0c10;
  --header-bg:   rgba(10,12,16,.9);

  --red:         #ff4d4d;
  --amber:       #f59e0b;
  --green-soft:  #22c55e;

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

  --font-head:   'Syne', 'Segoe UI', system-ui, sans-serif;
  --font-body:   'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono:   'IBM Plex Mono', 'Fira Code', monospace;

  --max-w:       clamp(1100px, 94vw, 1600px);
  --col-aside:   300px;
  --header-h:    64px;

  --transition:  0.28s ease;
}

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

.no-transitions, .no-transitions * { transition: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:not(.btn):hover { color: #fff; }

p   { margin-bottom: 1em; }
ul, ol { padding-left: 1.4em; margin-bottom: 1em; }
li  { margin-bottom: .35em; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: .75em;
}
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); color: var(--text); font-weight: 700; letter-spacing: 0; margin-top: 2rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin-top: 1.5rem; }
h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .2em; color: var(--text-muted); font-weight: 600; }

code, pre {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
code { padding: .15em .4em; }
pre  { padding: 1rem 1.25rem; overflow-x: auto; line-height: 1.55; }
pre code { background: none; border: none; padding: 0; font-size: 1em; }

blockquote {
  border-left: 3px solid var(--accent);
  padding: .75rem 1rem;
  background: var(--accent-dim);
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1em;
}

hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
th { color: var(--text-muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .2em; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-raised); }
@media (max-width: 640px) {
  .table-params,
  .table-params tbody,
  .table-params tr,
  .table-params td { display: block; width: 100%; box-sizing: border-box; }
  .table-params thead { display: none; }
  .table-params tbody tr { border-bottom: 1px solid var(--border); }
  .table-params tbody tr.param-group { border-bottom: none; }
  .table-params tbody tr.param-group:hover td { background: transparent; }
  .table-params tbody tr.param-group:not(:first-child) { margin-top: 1.5rem; }
  .table-params tr:last-child { border-bottom: none; }
  .table-params td { border: none; padding: .15rem .75rem; }
  .table-params td:first-child { padding-top: .75rem; }
  .table-params td:last-child  { padding-bottom: .75rem; }
  .table-params td:nth-child(2),
  .table-params td:nth-child(3) { display: inline; font-size: .78rem; color: var(--text-dim); }
  .table-params td:nth-child(2)::after { content: ' ·'; margin: 0 .15rem; }
}

/* ─── Layout / Container ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.layout-two-col {
  display: grid;
  grid-template-columns: 1fr var(--col-aside);
  gap: 2rem;
  align-items: start;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.col-main { min-width: 0; container-type: inline-size; container-name: col-main; }
.col-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); margin-top: 4rem; }

/* Wide desktops: widen the sidebar and open up the gap between content and aside */
@media (min-width: 1280px) {
  :root { --col-aside: 340px; }
  .layout-two-col { gap: 3rem; }
}

/* ─── Header ──────────────────────────────────────────────── */
.site-header {
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo img { transition: opacity var(--transition); }
/* Explicit pixel size on the logo defeats the global `img { height: auto }`
   reflow path that briefly flashes the SVG at its intrinsic 220x52 size at
   the 900px nav breakpoint. */
.logo-img { width: 131px; height: 35px; max-width: none; }
.logo-img--light { display: none; }
.logo-img--cde   { display: none; }
[data-theme="light"] .logo-img--dark  { display: none; }
[data-theme="light"] .logo-img--light { display: block; }
[data-theme="cde"]   .logo-img--dark  { display: none; }
[data-theme="cde"]   .logo-img--cde   { display: block; }
.logo:hover img { opacity: .85; }

/* ─── Nav ─────────────────────────────────────────────────── */
.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; padding: 0; margin: 0; display: flex; gap: .5rem; align-items: center; }
.main-nav li { margin: 0; }

.main-nav a {
  display: flex;
  align-items: center;
  padding: .45rem .85rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.current { color: var(--text); background: var(--bg-raised); }
.main-nav a.current { color: var(--accent); }
.main-nav a.nav-pro {
  color: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
  padding: calc(.45rem - 1px) .85rem;
}
.main-nav a.nav-pro:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.main-nav a.nav-pro.current { background: color-mix(in srgb, var(--accent) 15%, transparent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: .4rem;
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ─── Nav dropdown ────────────────────────────────────────── */
.nav-has-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex; align-items: center; gap: .3em;
  padding: .45rem .85rem; font-size: .88rem; font-weight: 600; line-height: inherit;
  color: var(--text-muted); border-radius: var(--radius);
  background: none; border: none; cursor: pointer; white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.nav-dropdown-trigger::after {
  content: ''; display: inline-block; width: 0; height: 0;
  border-left: .3em solid transparent; border-right: .3em solid transparent;
  border-top: .38em solid currentColor; opacity: .55;
  transition: transform var(--transition);
}
.nav-has-dropdown:hover .nav-dropdown-trigger,
.nav-has-dropdown:focus-within .nav-dropdown-trigger { color: var(--text); background: var(--bg-raised); }
.nav-has-dropdown.current .nav-dropdown-trigger { color: var(--accent); background: var(--bg-raised); }
.nav-has-dropdown:hover .nav-dropdown-trigger::after,
.nav-has-dropdown:focus-within .nav-dropdown-trigger::after { transform: rotate(180deg); }

.nav-dropdown {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); min-width: 160px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: .5rem 0 .2rem; margin: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.45); z-index: 200; list-style: none;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown { display: block; }
.nav-dropdown li { margin: 0; }
.nav-dropdown a {
  display: block; padding: .4rem 1rem .4rem 1.5rem; font-size: .85rem; font-weight: 500;
  color: var(--text-muted); white-space: nowrap; border-radius: 0;
}
.nav-dropdown li:last-child a { padding-left: 1rem; }
.nav-dropdown a:hover { background: var(--bg-raised); color: var(--accent); }
.nav-dropdown a.current { color: var(--accent); }

/* ─── Theme toggle ────────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .3rem .35rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
/* Show sun in dark mode (→ switch to light), moon in light mode (→ switch to dark) */
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: flex; }

/* ─── Aside widgets ───────────────────────────────────────── */
.widget {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 0rem;
  margin-bottom: 1.25rem;
}
.widget h4 { margin-bottom: 1rem; }

.widget-user-header { text-decoration: none; transition: background .15s; }
.widget-user-header:hover { background: var(--bg-raised); }
.widget-auth { padding-bottom: 1.25rem; }
.widget-auth form { display: flex; flex-direction: column; gap: .6rem; }
.widget-auth-header { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.widget-auth-header h4 { margin-bottom: .1rem; }
.widget-auth-icon { width: 2rem; height: 2rem; color: var(--accent); flex-shrink: 0; }
.widget-auth-sub { font-size: .74rem; color: var(--text-dim); margin: 0; }
.widget-auth-footer { margin-top: .75rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.widget-auth-forgot { font-size: .75rem; color: var(--text-dim); text-decoration: none; transition: color .15s; }
.widget-auth-forgot:hover { color: var(--accent); }
.widget-auth-magic { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 500; color: var(--accent); text-decoration: none; padding: .45rem .75rem; border: 1px solid var(--accent-dim); border-radius: var(--radius); transition: background .15s, color .15s, border-color .15s; }
.widget-auth-magic svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.widget-auth-magic:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.widget-auth-divider { width: 100%; display: flex; align-items: center; gap: .6rem; color: var(--text-dim); font-size: .76rem; }
.widget-auth-divider::before,
.widget-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.back-link-wrap { text-align: center; margin-top: 1.25rem; }
.back-link {
  font-size: .82rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .15s;
  padding: .4rem .6rem;
  display: inline-block;
}
.back-link:hover { color: var(--text-muted); }
@media (max-width: 900px) {
  .back-link {
    display: block;
    font-size: .95rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: .85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-surface);
    margin-top: .25rem;
  }
  .back-link:hover { background: var(--bg-raised); color: var(--text); }
}

.aside-signout-wrap .sb-nav-link { color: #f87171; background: rgba(255,77,77,.08); }
.aside-signout-wrap .sb-nav-link:hover { background: rgba(255,77,77,.15); color: var(--text); }

.sb-nav-link { display:flex; justify-content:space-between; align-items:center; padding:.55rem 1.25rem .55rem 3.5rem; font-size:.95rem; color:var(--text-muted); text-decoration:none; transition:background-color .15s; position: relative; }
.sb-nav-link:hover { background:var(--bg-raised); color:var(--text); }
.sb-nav-link[data-style="dim"]     { color:var(--text-dim); }
.sb-nav-link[data-style="primary"] .nav-icon,
.sb-nav-link[data-style="accent"]  .nav-icon { color: var(--accent); opacity: 1; }
.sb-nav-current { background:var(--accent-dim) !important; color:var(--accent) !important; border-left:3px solid var(--accent); padding-left:calc(3.5rem - 3px) !important; }
.widget-nav { padding: 0; }
.nav-mobile-only { display: none; }
@media (max-width: 900px) {
  .nav-mobile-only { display: revert; }
  .nav-desktop-only { display: none; }
}
.sb-nav-title {
  display: block;
  padding: .7rem 1.25rem .4rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.sb-nav-title.nav-mobile-only { display: none; }
@media (max-width: 900px) {
  .sb-nav-title.nav-mobile-only { display: block; }
}
.sb-nav-sep { height:1px; background:var(--border-lite); margin:.35rem .75rem; }
/* Unified section separator: hide sb-nav-sep, use border-top on the following .sb-nav-title - renders crisp at pixel boundary, no subpixel/clipping artifacts */
.widget-nav .sb-nav-sep { display: none; }
.widget-nav .sb-nav-title {
  padding-top: 1.05rem;
  border-top: 1px solid var(--border-lite);
}
/* First title sits below the apikey div border-bottom - drop its own border to avoid a double line */
.widget-nav .sb-nav-title:first-child { border-top: none; }

/* ─── Sidebar API key chip ───────────────────────────────── */
.sb-apikey-label {
  font-size: .74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--text-dim);
  margin-bottom: .4rem;
  transition: color .15s;
}
.sb-apikey-label.is-copied { color: var(--accent); }
.sb-apikey-row { display:flex; align-items:center; gap:.35rem; }
.sb-apikey-text {
  flex:1; min-width:0;
  font-family: var(--font-mono); font-size:.85rem; line-height:1.2;
  color: var(--text-muted);
  background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: .6rem .75rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: color .15s, border-color .15s, background .15s;
}
.sb-apikey-text:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 25%, var(--border)); }
.sb-apikey.is-revealed .sb-apikey-text {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent-dim);
  cursor: text; user-select: all; -webkit-user-select: all;
}
.sb-apikey.is-revealed .sb-apikey-text:hover { color: var(--accent); }
.sb-apikey-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-dim); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.sb-apikey-btn:hover, .sb-apikey-btn:focus-visible {
  color: var(--accent); border-color: var(--accent); background: var(--accent-dim);
  outline: none;
}
.sb-apikey-btn.is-on { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.sb-apikey-icon-eye-off, .sb-apikey-icon-check { display: none; }
.sb-apikey.is-revealed .sb-apikey-btn[data-act="reveal"] .sb-apikey-icon-eye { display: none; }
.sb-apikey.is-revealed .sb-apikey-btn[data-act="reveal"] .sb-apikey-icon-eye-off { display: block; }
.sb-apikey-btn[data-act="copy"].is-on .sb-apikey-icon-copy { display: none; }
.sb-apikey-btn[data-act="copy"].is-on .sb-apikey-icon-check { display: block; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .6rem 1.25rem;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}
.btn-secondary {
  background: var(--bg-raised);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: none; color: var(--accent); border: 1px solid var(--accent); }
.btn-ghost:hover { background: var(--accent-dim); }
.btn-sm { padding: .4rem .85rem; font-size: .8rem; }
.btn-lg { padding: .8rem 1.75rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-dl { min-width: 10em; }  /* uniform width for log download/expired buttons */

/* ─── Forms ───────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1rem;
}
.form-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .2em;
}
.form-input, .form-textarea, .form-select {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .6rem .85rem;
  border-radius: var(--radius);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint { font-size: .8rem; color: var(--text-dim); }
.form-checkbox { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.form-checkbox input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* ─── iOS-style toggle switch ─────────────────────────────── */
/* Drop-in replacement for `.form-checkbox` | same checkbox-input semantics
   (POST behaviour unchanged), styled as a pill switch. Adds a sibling
   `.form-switch-slider` span that renders the track + animated thumb. */
.form-switch              { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; user-select: none; line-height: 1.3; }
.form-switch input        { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; margin: 0; }
.form-switch-slider       { position: relative; display: inline-block; width: 32px; height: 18px; background: var(--bg-input, rgba(255,255,255,.04)); border: 1px solid var(--border); border-radius: 999px; transition: background .15s ease, border-color .15s ease; flex-shrink: 0; }
.form-switch-slider::before { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; background: var(--text-muted); border-radius: 50%; transition: transform .15s ease, background .15s ease; }
.form-switch input:checked ~ .form-switch-slider          { background: var(--accent); border-color: var(--accent); }
.form-switch input:checked ~ .form-switch-slider::before  { transform: translateX(14px); background: #0a0c10; }
.form-switch input:disabled ~ .form-switch-slider         { opacity: .45; }
.form-switch:has(input:disabled)                          { cursor: not-allowed; }
.form-switch input:focus-visible ~ .form-switch-slider    { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-switch-text         { display: inline-flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.form-switch-text .form-hint { display: inline; margin: 0; white-space: nowrap; }

/* ─── Alerts / Notices ────────────────────────────────────── */
.alert {
  padding: .9rem 1rem;
  border-radius: var(--radius);
  border-left: 3px solid;
  margin-bottom: 1.25rem;
  font-size: .92rem;
}
.alert-warning { background: rgba(245,158,11,.08); border-color: var(--amber); color: var(--text); }
.alert-info    { background: var(--accent-dim);    border-color: var(--accent); color: var(--text); }
.alert-success { background: rgba(34,197,94,.08);  border-color: var(--green-soft); color: var(--text); }
.alert-error   { background: rgba(255,77,77,.08);  border-color: var(--red); color: var(--text); }

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.card > :first-child { margin-top: 0; }
.card > :last-child  { margin-bottom: 0; }
.card-accent { border-left: 3px solid var(--accent); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.card-grid.use-cases-2col { grid-template-columns: repeat(2, 1fr); row-gap: .75rem; margin-bottom: 2.5rem; }
.card-grid.use-cases-2col .card { padding: .85rem 1.25rem; }
.card-grid-3col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--stats { grid-template-columns: repeat(4, 1fr); margin-bottom: 2rem; }
@media (max-width: 1500px) { .card-grid--stats { grid-template-columns: repeat(2, 1fr); } }
.card-grid--stats-narrow { grid-template-columns: repeat(2, 1fr); margin-bottom: 2rem; }
@media (max-width: 1150px) { .card-grid--stats-narrow { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stat-card .stat-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-card .stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .2em;
}
.stat-card-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
}

/* ─── Homepage hero ───────────────────────────────────────── */
.hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.hero-title .accent { color: var(--accent); font-size: .65em; display: block; margin-top: -.15em; overflow-wrap: break-word; }
.hero-title .hl,
.hero-subtitle .hl { background: var(--accent); color: var(--on-accent); padding: .05em .2em; border-radius: 2px; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); letter-spacing: 0; max-width: 540px; margin-bottom: 1.75rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 640px) { .hero-actions { gap: .5rem; } }
.hero-split .hero-actions { margin-top: 14px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: -.25rem 0 1.5rem; align-items: center; }
.hero-trust-badge { font-size: .78rem; color: var(--text-dim); font-family: var(--font-mono); letter-spacing: .2em; display: inline-flex; align-items: center; gap: .35rem; }
.hero-trust-badge::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .6; flex-shrink: 0; }
.hero-trust-badge a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--border-lite); transition: color var(--transition), border-color var(--transition); }
.hero-trust-badge a:hover { color: var(--accent); border-color: var(--accent); }

.hero-shots {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.hero-shots img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}
.hero-shots img:hover { transform: scale(1.04); border-color: var(--accent); }

/* ── Hero shell snippet ───────────────────────────────────── */
.hero-shell { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 8px; margin: 1.5rem 0 1.75rem; overflow: hidden; font-family: var(--font-mono); }
.hero-shell-bar { background: var(--bg-raised); padding: .45rem .75rem; display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid var(--border); }
.hero-shell-dots { display: flex; gap: .38rem; flex-shrink: 0; }
.hero-shell-dots span { width: 10px; height: 10px; border-radius: 50%; }
.hero-shell-dots span { background: var(--border); }
.hero-shell-label { font-size: .72rem; color: var(--text-dim); }
.hero-shell-body { margin: 0; padding: .8rem 1rem; font-size: .8rem; line-height: 1.75; color: var(--text-muted); white-space: pre; overflow-x: auto; }
.sh-ps { color: var(--accent); user-select: none; }
.sh-out { color: var(--text-dim); }
.sh-cur { animation: sh-blink 1.1s step-end infinite; }
@keyframes sh-blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.hl { background: var(--accent); color: var(--on-accent); padding: 0 .2em; border-radius: 2px; font-style: normal; }
.prompt-q { font-family: var(--font-mono); font-size: .82rem; background: var(--bg-surface); border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: .4rem .7rem; margin: .5rem 0 0; color: var(--text-muted); line-height: 1.5; }
.prompt-q + .prompt-q { margin-top: .3rem; }
.prompt-q::before { content: '> '; color: var(--accent); font-weight: 600; }

.shot-samples {
  /* Masonry layout via CSS columns: equal column widths, items keep their natural aspect ratio. */
  /* Gap matches .fmt-bento for visual consistency between sections. */
  column-count: 3;
  column-gap: 1.5rem;
  margin-top: 1.5rem;
}
.shot-samples > .shot-browser {
  /* break-inside:avoid keeps each card on a single column; margin-bottom replaces grid row gap. */
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 1.5rem;
  width: 100%;
}
.shot-browser {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: zoom-in;
  min-width: 0;
  max-width: 100%;
  display: block;
  text-decoration: none;
  color: inherit;
}
a.shot-browser:hover { text-decoration: none; }
.shot-browser:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.shot-chrome {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .6rem;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border-lite);
  user-select: none;
}
.shot-chrome-dots {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.shot-chrome-dots span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.shot-chrome-dots span { background: var(--border); }
.shot-chrome-bar {
  flex: 1;
  min-width: 0;
  font-size: .68rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 3px;
  padding: .18rem .5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot-viewport {
  /* aspect-ratio set inline per card (varies for masonry effect); fallback to 3/2 if missing. */
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.shot-viewport img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
/* hover zoom removed - kept border-color + box-shadow elevation only */
@media (max-width: 860px) { .shot-samples { column-count: 2; } }
@media (max-width: 400px) { .shot-samples { column-count: 1; } }

/* ─── Format demos bento ──────────────────────────────────── */
/* row 1: desktop | mobile (9:16) | fullpage (tall narrow, hints at long page)
   row 2: whitedark split (col 1) - mobile + fullpage span rows 1-2 */
.fmt-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 175px 145px;
  grid-template-rows: 340px 175px;
  gap: 1.5rem;
  margin-top: 2rem;
}
.fmt-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-surface);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.fmt-card:hover { border-color: var(--accent); box-shadow: 0 6px 28px rgba(0,0,0,.32); }
/* ─── Slot system: wrappers take grid placement, titles live outside cards ──── */
.fmt-slot { display: flex; flex-direction: column; min-width: 0; }
.fmt-slot > .fmt-card { flex: 1; min-height: 0; }
.fmt-slot-title {
  font: 500 .68rem/1.4 var(--font-mono);
  color: var(--text-dim);
  text-align: center;
  padding: .3rem .25rem .1rem;
  letter-spacing: .04em;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fmt-slot-info {
  font: 500 .68rem/1.4 var(--font-mono);
  color: var(--text-dim);
  text-align: center;
  padding: .3rem .25rem .1rem;
  letter-spacing: .04em;
  flex-shrink: 0;
}
/* Home bento: slot grid positions */
.fmt-slot-desktop   { grid-column: 1; grid-row: 1; }
/* Col 2: mobile portrait (top, taller) then square (bottom); col 3: fullpage spans both rows. */
.fmt-slot-mobile    { grid-column: 2; grid-row: 1; }
.fmt-slot-square    { grid-column: 2; grid-row: 2; }
.fmt-slot-fullpage  { grid-column: 3; grid-row: 1 / 3; }
/* Whitedark comparison sits in col 1 row 2, desktop above it. */
.fmt-slot-darklight { grid-column: 1; grid-row: 2; }
/* ─── Bento v2: flex-within-grid (home mode only) ─────────────────────── */
/* Col 1 (1fr) = desktop+darklight flex column · Col 2 (145px) = fullpage  */
/* Col 3 (175px) = mobile+square flex column · no shared-row tension.      */
.fmt-bento-v2 { grid-template-columns: 1fr 145px 175px; grid-template-rows: 1fr; align-items: stretch; }
.fmt-v2-col-main { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.fmt-bento-v2 > .fmt-slot-fullpage { grid-column: 2; grid-row: 1; align-self: stretch; }
.fmt-v2-col-side { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.fmt-v2-col-main .fmt-slot-desktop   { flex: 0 0 340px; grid-column: unset; grid-row: unset; }
.fmt-v2-col-main .fmt-slot-darklight { flex: 0 0 175px; grid-column: unset; grid-row: unset; }
.fmt-v2-col-side .fmt-slot-mobile    { flex: 0 0 340px; grid-column: unset; grid-row: unset; }
.fmt-v2-col-side .fmt-slot-square    { flex: 0 0 175px; grid-column: unset; grid-row: unset; }
/* Card decorative styles (no grid positions) */
.fmt-card-mobile    { border-radius: 22px; border-width: 3px; }
.fmt-card-square    { overflow: hidden; }
/* Gallery bento: desktop (col1 row1) + mobile strip (col2 rows 1-2) + info (col1 row2) */
.fmt-bento-gallery .fmt-slot-desktop { grid-column: 1; grid-row: 1; }
.fmt-bento-gallery .fmt-slot-mobile  { grid-column: 2; grid-row: 1 / 3; }
.fmt-bento-gallery .fmt-slot-info    { grid-column: 1; grid-row: 2; }
/* Standalone mobile showcase section (below bento) */
.fmt-mobile-showcase {
  display: flex; gap: 1.5rem; align-items: stretch;
  margin-top: 1.5rem; padding: 0 1.5rem;
}
.fmt-mobile-showcase .fmt-slot-mobile { width: 260px; flex-shrink: 0; }
.fmt-mobile-showcase .fmt-slot-mobile img { width: 100%; height: auto; display: block; }
.fmt-mobile-showcase .fmt-slot-landscape {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; padding: .5rem .5rem .5rem 1.5rem;
  border-left: 1px solid var(--border);
}
.fmt-mobile-showcase .fmt-slot-landscape a { display: block; width: 100%; }
.fmt-mobile-showcase .fmt-slot-landscape img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .fmt-mobile-showcase { flex-direction: column; align-items: center; gap: 1.5rem; }
  .fmt-mobile-showcase .fmt-slot-mobile { width: 100%; max-width: 220px; }
  .fmt-mobile-showcase .fmt-slot-landscape { width: 100%; max-width: 100%; border-left: none; border-top: 1px solid var(--border); padding: 1.25rem .25rem .25rem; }
}
/* Framed capture card (baked-in device frame - no CSS border/radius) */
.fmt-card.fmt-card-framed { border-color: transparent; border-radius: 0; background: transparent; }
.fmt-card-framed { display: block; line-height: 0; }
/* Preset catalog */
.preset-groups { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .25rem; }
.preset-group-lbl {
  display: block; font: 600 .6rem/1 var(--font-mono);
  color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: .5rem;
}
.preset-skyline {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 1rem; padding-bottom: 1.25rem; margin-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.preset-bar { display: flex; flex-direction: column; align-items: center; cursor: default; flex: none; }
.preset-bar-block {
  background: var(--bg-surface); border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 2px;
  transition: border-color .15s, background .15s;
}
[data-theme="light"] .preset-bar-block { border-color: rgba(0,0,0,.18); }
.preset-bar:hover .preset-bar-block { border-color: rgba(132,255,99,.45); background: var(--bg-card); }
.preset-bar--pro .preset-bar-block { border-style: dashed; border-color: rgba(255,255,255,.28); opacity: .65; }
[data-theme="light"] .preset-bar--pro .preset-bar-block { border-color: rgba(0,0,0,.25); }
.preset-bar--pro:hover .preset-bar-block { opacity: 1; border-color: rgba(132,255,99,.45); }
.preset-bar-key {
  font: 600 .58rem/1.3 var(--font-mono); color: var(--text-dim);
  margin-top: .4rem; letter-spacing: .03em;
  text-align: center; white-space: nowrap;
}
.preset-bar--pro .preset-bar-key { color: var(--accent); opacity: .6; }
.preset-bar:hover .preset-bar-key { color: var(--text); opacity: 1; }
/* Device pairs (portrait+landscape bars with shared label) */
.preset-device-group { display: flex; flex-direction: column; align-items: center; flex: none; }
.preset-device-pair { display: flex; gap: .25rem; align-items: flex-end; }
.preset-device-pair .preset-bar-block { cursor: default; }
.preset-device-pair:hover .preset-bar-block { border-color: rgba(132,255,99,.45); background: var(--bg-card); }
.preset-device-lbl {
  font: 600 .58rem/1.3 var(--font-mono); color: var(--text-dim);
  margin-top: .4rem; letter-spacing: .03em; white-space: nowrap;
}
.preset-device-group:hover .preset-device-lbl { color: var(--text); }
/* Banner pills */
.preset-pills { display: flex; flex-direction: row; flex-wrap: wrap; gap: .4rem .75rem; justify-content: center; align-items: center; padding-bottom: .5rem; }
.preset-pill { display: flex; align-items: center; gap: .5rem; }
.preset-pill-key { font: 600 .65rem/1 var(--font-mono); color: var(--text-dim); letter-spacing: .03em; }
.preset-pill-dims { font: 400 .6rem/1 var(--font-mono); color: var(--text-muted); }
.preset-pill--pro .preset-pill-key { color: var(--accent); opacity: .7; }
.preset-pill--pro .preset-pill-dims { color: var(--accent); opacity: .45; }
/* Narrow fullpage chrome: smaller dots/bar so it fits 105px wide */
.fmt-card-fullpage .fmt-chrome { padding: .25rem .35rem; gap: .3rem; }
.fmt-card-fullpage .fmt-chrome-dots span { width: 5px; height: 5px; }

/* ─── Frame catalog ───────────────────────────────────────────────────────── */
.frame-catalog {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .7rem; margin-top: 1rem;
}
.frame-card {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: .85rem .75rem .7rem;
  background: var(--bg-surface); border-radius: 8px;
  text-align: center;
}
.frame-preview-wrap {
  width: 90px; height: 54px;
  display: flex; align-items: center; justify-content: center;
}
.frame-shape {
  width: 80px; height: 50px;
  background: var(--bg-raised); border: 1px solid var(--border);
}
.frame-shape--rounded { border-radius: 8px; }
.frame-shape--shadow {
  border: none; border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.3);
}
[data-theme="light"] .frame-shape--shadow {
  box-shadow: 0 6px 20px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.1);
}
.frame-shape--browser_chrome {
  border-radius: 4px; position: relative; overflow: hidden;
}
.frame-shape--browser_chrome::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 12px; background: #e8e8e8; border-bottom: 1px solid #d0d0d0;
}
/* Traffic dots + URL pill, drawn as one overlay over the title bar. */
.frame-shape--browser_chrome::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(circle at 6px 6px, #ff5f57 1.6px, transparent 2.2px),
    radial-gradient(circle at 12px 6px, #febc2e 1.6px, transparent 2.2px),
    radial-gradient(circle at 18px 6px, #28c840 1.6px, transparent 2.2px),
    linear-gradient(#fff, #fff),
    linear-gradient(#b4b8bd, #b4b8bd);
  background-size: auto, auto, auto, 44px 6px, 48px 8px;
  background-position: 0 0, 0 0, 0 0, 28px 3px, 26px 2px;
}
.frame-shape--mobile {
  width: 30px; height: 53px;
  border-radius: 8px; border: 3px solid #1a1a1a;
  background: linear-gradient(135deg, #5e6f94, #36405c);
}
.frame-shape--tablet {
  width: 52px; height: 65px;
  border-radius: 6px; border: 3px solid #1a1a1a;
  background: linear-gradient(135deg, #5e6f94, #36405c);
}
.frame-shape--shotbot_brand {
  position: relative; background: var(--bg-raised); border: none;
  --cf-size: 16px; --cf-weight: 2px;
}
.frame-shape--shotbot_brand::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent));
  background-size:
    var(--cf-weight) var(--cf-size), var(--cf-size) var(--cf-weight),
    var(--cf-weight) var(--cf-size), var(--cf-size) var(--cf-weight),
    var(--cf-weight) var(--cf-size), var(--cf-size) var(--cf-weight),
    var(--cf-weight) var(--cf-size), var(--cf-size) var(--cf-weight);
  background-position:
    top left, top left, top right, top right,
    bottom left, bottom left, bottom right, bottom right;
  background-repeat: no-repeat;
}
.frame-shape--browser_chrome_dark {
  border-radius: 4px; position: relative; overflow: hidden;
}
.frame-shape--browser_chrome_dark::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 12px; background: #2b2b2b; border-bottom: 1px solid #4a4a4a;
}
.frame-shape--browser_chrome_dark::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(circle at 6px 6px, #ff5f57 1.6px, transparent 2.2px),
    radial-gradient(circle at 12px 6px, #febc2e 1.6px, transparent 2.2px),
    radial-gradient(circle at 18px 6px, #28c840 1.6px, transparent 2.2px),
    linear-gradient(#3a3a3a, #3a3a3a),
    linear-gradient(#5e6266, #5e6266);
  background-size: auto, auto, auto, 44px 6px, 48px 8px;
  background-position: 0 0, 0 0, 0 0, 28px 3px, 26px 2px;
}
.frame-shape--mobile_light {
  width: 28px; height: 50px;
  border-radius: 8px; border: 2px solid #c4c9cf;
  background: linear-gradient(135deg, #5e6f94, #36405c);
}
.frame-shape--tablet_light {
  width: 50px; height: 62px;
  border-radius: 6px; border: 2px solid #c4c9cf;
  background: linear-gradient(135deg, #5e6f94, #36405c);
}
.frame-shape--laptop {
  position: relative; width: 58px; height: 36px;
  border-radius: 4px; border: 2px solid #1a1a1a;
  background: linear-gradient(135deg, #5e6f94, #36405c); margin-bottom: 8px;
}
.frame-shape--laptop::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -8px; width: 60px; height: 7px; background: #c8ccd0; border-radius: 0 0 3px 3px;
}
.frame-shape--laptop::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -6px; width: 16px; height: 2px; border-radius: 1px; background: #9aa0a6; z-index: 1;
}
.frame-shape--polaroid {
  position: relative; width: 54px; height: 62px;
  background: #fff; border: none;
  box-shadow: 0 3px 10px rgba(0,0,0,.28);
}
.frame-shape--polaroid::after {
  content: ''; position: absolute; top: 5px; left: 5px; right: 5px; bottom: 18px;
  background: linear-gradient(135deg, #4a5a7a, #252b3a);
}
.frame-shape--gradient {
  position: relative; width: 64px; height: 60px; border: none; border-radius: 6px;
  background: linear-gradient(135deg, #0a3b2c, #1aa05f, #b6ff3d);
}
.frame-shape--gradient::after {
  content: ''; position: absolute; inset: 10px; border-radius: 3px;
  background: var(--bg-raised); box-shadow: 0 3px 8px rgba(0,0,0,.4);
}
.frame-card-key {
  font-family: var(--font-mono); font-size: .65rem; color: var(--accent);
  letter-spacing: .02em;
}
.frame-card-desc {
  font-size: .75rem; color: var(--text-muted); line-height: 1.35; margin: 0;
}
.frame-catalog-note { font-size: .82rem; color: var(--text-muted); margin-top: .75rem; }

/* ─── Opt-row duo (2 half-width comparisons side by side) ────────────────── */
.opt-row-duo { display: flex; gap: 1rem; align-items: stretch; }
.opt-row-duo-slot { flex: 1 1 0; min-width: 0; }
.opt-row-duo-slot--empty {
  background: var(--bg-surface); border-radius: 8px;
  min-height: 180px;
}
.fmt-card-fullpage .fmt-chrome-bar { font-size: .55rem; padding: .08rem .25rem; }

/* ── Bento brand style: square corners, no chrome mockups, Shotbot brackets ── */
.fmt-bento .fmt-card:hover,
.fmt-bento-gallery .fmt-card:hover { border-color: var(--border); box-shadow: none; }
.fmt-bento .fmt-card,
.fmt-bento-gallery .fmt-card { border-radius: 0; border: 1px solid var(--border); background: transparent; padding: 8px; overflow: visible; }
.fmt-bento .fmt-card-mobile  { border-width: 0; }
.fmt-bento .fmt-chrome,
.fmt-bento-gallery .fmt-chrome { display: none; }
.fmt-bento .fmt-phone-top,
.fmt-bento .fmt-phone-bot { display: none; }
.fmt-bento .fmt-card-desktop::after,
.fmt-bento-gallery .fmt-card-desktop::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  --cf-size: 14px;
  --cf-weight: 2px;
  background-image:
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent));
  background-size:
    var(--cf-weight) var(--cf-size), var(--cf-size) var(--cf-weight),
    var(--cf-weight) var(--cf-size), var(--cf-size) var(--cf-weight),
    var(--cf-weight) var(--cf-size), var(--cf-size) var(--cf-weight),
    var(--cf-weight) var(--cf-size), var(--cf-size) var(--cf-weight);
  background-position:
    top left,     top left,
    top right,    top right,
    bottom left,  bottom left,
    bottom right, bottom right;
  background-repeat: no-repeat;
}
.fmt-label {
  position: absolute;
  bottom: .5rem;
  left: .5rem;
  background: rgba(0,0,0,.82);
  color: #fff;
  font-size: .73rem;
  font-family: var(--font-mono);
  padding: .22rem .52rem;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 4;
  letter-spacing: .04em;
  pointer-events: none;
}
.fmt-rt-badge {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: rgba(0,0,0,.55);
  color: #fff;
  font: 600 .62rem/1 var(--font-mono);
  padding: .22rem .42rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 4;
  letter-spacing: .03em;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .18s ease, transform .18s ease;
}
.fmt-card:hover .fmt-rt-badge,
.fmt-card:focus-visible .fmt-rt-badge {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: none) {
  /* On touch devices: keep badge always visible (no real hover state) */
  .fmt-rt-badge { opacity: 1; transform: none; }
}
.fmt-chrome {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .5rem;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border-lite);
  flex-shrink: 0;
}
.fmt-chrome-dots { display: flex; gap: 3px; flex-shrink: 0; }
.fmt-chrome-dots span { display: block; width: 7px; height: 7px; border-radius: 50%; }
.fmt-chrome-dots span { background: var(--border); }
.fmt-chrome-bar {
  flex: 1; min-width: 0;
  font-size: .6rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 3px;
  padding: .1rem .38rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Mobile phone chrome - URL bar style */
.fmt-phone-top {
  height: 32px;
  border-bottom: 1px solid var(--border-lite);
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .5rem;
  flex-shrink: 0;
}
.fmt-mobile-url {
  flex: 1;
  font-size: .58rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 4px;
  padding: .1rem .4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.fmt-phone-bot {
  height: 20px;
  border-top: 1px solid var(--border-lite);
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fmt-phone-bot::after {
  content: '';
  width: 80px; height: 4px;
  border-radius: 2px;
  background: var(--border);
}
.fmt-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
}
.fmt-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  transition: transform .45s ease;
}
/* Narrow viewport chip: image centered at native width, brackets stay fixed */
.fmt-viewport--narrow {
  background: repeating-conic-gradient(rgba(255,255,255,.025) 0% 25%, transparent 0% 50%) 0 0 / 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fmt-viewport--narrow img {
  width: var(--vp-narrow-w, 1024px);
  max-width: 100%;
  height: auto;
  object-fit: initial;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
/* Mobile phone frame: center horizontally so the captured page sits properly inside the phone (image is wider than the narrow column when cover-scaled). */
.fmt-card-mobile   .fmt-viewport img { object-position: top center; }
.fmt-card-square   .fmt-viewport img { height: 100%; object-fit: cover; object-position: top center; }
.fmt-card-fullpage .fmt-viewport img { object-position: top center; }
/* hover zoom removed - kept border-color + box-shadow elevation only */
.fmt-fade .fmt-viewport::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 65px;
  background: linear-gradient(to bottom, transparent, var(--bg-surface));
  pointer-events: none;
}
.fmt-cta { font-size: .85rem; color: var(--text-dim); margin-top: .65rem; text-align: right; }
.fmt-cta a { color: var(--accent); text-decoration: none; }
.fmt-cta a:hover { text-decoration: underline; }
/* gallery: 2-col bento - fullpage lives in .gallery-split-strip outside the bento */
.fmt-bento-gallery {
  grid-template-columns: minmax(0, 1fr) 260px;
  grid-template-rows: 540px 170px;
}
/* gallery bento without mobile - single column, taller desktop, info shrinks to content */
/* compound selector (0-2-0) beats all 0-1-0 fmt-bento / fmt-bento-gallery rules regardless of source order */
.fmt-bento-gallery.fmt-bento-gallery--no-mobile { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
.fmt-bento-gallery.fmt-bento-gallery--no-mobile .fmt-slot-desktop { aspect-ratio: 16 / 9; }
.fmt-bento-gallery.fmt-bento-gallery--no-mobile .fmt-slot-info { justify-self: center; }
.fmt-bento-gallery.fmt-bento-gallery--no-mobile .fmt-info-body { align-items: center; }

/* ─── Gallery split layout: main content + sticky fullpage strip ─── */
.gallery-split {
  display: grid;
  grid-template-columns: 1fr 185px;
  gap: 1.5rem;
  align-items: start;
  margin-top: 0;
}
.gallery-split-main { min-width: 0; }
.gallery-split-strip {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  height: calc(100dvh - var(--header-h) - 2rem);
}
.gallery-split-strip .fmt-card-fullpage {
  height: 100%;
  width: 100%;
  grid-column: unset;
  grid-row: unset;
}
/* Strip image: scroll-linked via JS (no autonomous CSS animation) */
.gallery-split-strip .fmt-viewport img {
  animation: none !important;
  object-position: 50% 0%;
  transition: object-position .08s linear;
}
@media (min-width: 1400px) {
  .gallery-split { grid-template-columns: 1fr 220px; }
}
@media (max-width: 768px) {
  .gallery-split { display: block; }
  .gallery-split-strip {
    position: static;
    height: 480px;
    margin-bottom: 2rem;
  }
  .gallery-split-strip .fmt-viewport img { animation: none !important; }
  .gallery-split-main h2 { margin-top: 2rem; }
  .opt-compare,
  .opt-compare-fullpage { gap: 1rem; padding-top: 1rem; margin-bottom: 2rem; }
}

/* Card-as-link: full screenshot opens on click. Darklight + info are composites, not clickable. */
.fmt-card-link { text-decoration: none; color: inherit; cursor: zoom-in; }
.fmt-card-link:hover { text-decoration: none; }

/* Fullpage card: subtle endless scroll to actually convey "long page".
   object-position animation walks through the 1280×14000 capture top↔bottom. */
.fmt-card-fullpage .fmt-viewport img {
  animation: fmt-page-scroll 22s cubic-bezier(.5,0,.5,1) infinite;
}
.fmt-card-fullpage:hover .fmt-viewport img { animation-play-state: paused; }
@keyframes fmt-page-scroll {
  0%, 8%   { object-position: 50% 0%; }
  50%, 58% { object-position: 50% 100%; }
  100%     { object-position: 50% 0%; }
}
@media (prefers-reduced-motion: reduce) {
  .fmt-card-fullpage .fmt-viewport img { animation: none; }
}

/* Info card (gallery): interactive viewport_width chips */
.fmt-info-body { padding: 1rem 1.1rem; height: 100%; display: flex; flex-direction: column; gap: .55rem; box-sizing: border-box; justify-content: center; }
.fmt-info-label { font-family: var(--font-mono); font-size: .7rem; color: var(--accent); letter-spacing: .02em; }
.fmt-info-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.fmt-vp-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-mono); font-size: .72rem;
  padding: 0 .55rem; height: 1.75rem; border-radius: 5px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
}
.fmt-vp-chip:hover:not(:disabled):not(.active) { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.fmt-vp-chip.active,
.fmt-vp-chip.active:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); cursor: default; transform: none; }
.fmt-vp-chip:disabled { opacity: .35; cursor: not-allowed; }
.fmt-vp-chip em { font-style: normal; font-size: .58rem; opacity: .7; padding: 0 .25rem; height: 1rem; display: inline-flex; align-items: center; border: 1px solid currentColor; border-radius: 2px; line-height: 1; margin-top: 1px; }
.fmt-info-foot { font-size: .76rem; color: var(--text-muted); line-height: 1.4; }

/* ─── Proof badge (galerie/examples hero) ─────────────────────────────────── */
.proof-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-mono); font-size: .72rem;
  color: var(--accent); margin: 0 0 1rem;
  letter-spacing: .02em;
}

/* ─── Options de rendu - side-by-side comparisons ────────────────────────── */
.opt-list { display: grid; gap: 2rem; margin-top: 1rem; }
.opt-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color var(--transition);
}

.opt-row-head { padding: 1.1rem 1.35rem .65rem; }
.opt-row-code { font-family: var(--font-mono); font-size: .7rem; color: var(--accent); letter-spacing: .02em; }
.opt-row-title { font-size: 1.05rem; margin: .3rem 0 .3rem; font-weight: 600; }
.opt-row-desc  { font-size: .88rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
/* Description moved outside header, rendered after the visual comparison */
.opt-row > .opt-row-desc { padding: 1.1rem 1.35rem 1rem; border-top: 1px solid var(--border-lite); }
.opt-pill-pro {
  display: inline-block; vertical-align: middle;
  font-family: var(--font-mono); font-size: .58rem;
  padding: .12rem .4rem; border-radius: 3px;
  background: var(--accent); color: var(--bg);
  margin-left: .35rem; letter-spacing: .04em;
}
.opt-compare {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .75rem; background: transparent;
  border-top: 1px solid var(--border-lite);
  padding: .75rem 1rem 1rem;
  margin-bottom: 1.5rem;
}
.opt-compare > figure {
  margin: 0; position: relative;
  aspect-ratio: 16/9; overflow: hidden;
  background: var(--bg);
  border-radius: var(--radius);
}
.opt-compare a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.opt-compare img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform .45s ease, opacity .25s;
}
/* hover zoom removed */
.opt-compare figcaption {
  position: absolute; bottom: .55rem; left: .55rem;
  font-family: var(--font-mono); font-size: .7rem;
  background: rgba(0,0,0,.82); color: #fff;
  padding: .22rem .52rem; border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  letter-spacing: .03em;
}
.opt-row-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; color: var(--text-dim);
  font-family: var(--font-mono);
  background: var(--bg-raised);
}
.opt-compare--3col { grid-template-columns: 1fr 1fr 1fr; }
.opt-compare.opt-compare--2img-text { grid-template-columns: 1fr 1fr 1fr; }
.opt-compare-textcol {
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem; text-align: center;
  font-size: .88rem; color: var(--text-muted); line-height: 1.5;
}
@media (max-width: 640px) {
  .opt-compare,
  .opt-compare--3col,
  .opt-compare--2img-text { grid-template-columns: 1fr; }
}

/* Fullpage comparison - tall strips showing full page top→bottom.
   Image scales so its full height fills the strip (height:100% width:auto), letting users
   see the whole page in each side. Off (short page) appears wider and complete.
   On (long page after lazy-load) appears narrower with much more content stacked vertically.
   Click opens the actual full-resolution image. */
.opt-compare-fullpage {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .75rem; background: transparent;
  border-top: 1px solid var(--border-lite);
  padding-top: .75rem;
  margin-bottom: 1.5rem;
}
.opt-compare-fullpage > figure {
  margin: 0; position: relative;
  height: auto; overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
}
.opt-compare-fullpage > figure:nth-child(2) { max-height: 1440px; }
.opt-compare-fullpage a {
  display: block; width: 100%; cursor: zoom-in;
}
.opt-compare-fullpage img {
  width: 100%; height: auto; display: block;
  transition: opacity .25s;
}
.opt-compare-fullpage figcaption {
  position: absolute; bottom: .55rem; left: .55rem;
  font-family: var(--font-mono); font-size: .62rem;
  background: rgba(0,0,0,.72); color: #fff;
  padding: .2rem .45rem; border-radius: 3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  letter-spacing: .03em;
  z-index: 2;
}
@media (max-width: 640px) {
  .opt-compare-fullpage { grid-template-columns: 1fr; }
  .opt-compare-fullpage > figure { height: 520px; }
}

@media (max-width: 900px) { .opt-row-duo { flex-direction: column; } }
@media (max-width: 480px) { .frame-catalog { grid-template-columns: repeat(2, 1fr); } }

/* Format badges (in opt-row-formats) */
.opt-row-formats .opt-row-head { padding-bottom: 1.35rem; }
.fmt-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .85rem; }
.fmt-badges span {
  font-family: var(--font-mono); font-size: .68rem;
  padding: .22rem .55rem; border-radius: 4px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text-dim);
}

/* Pro options - benefit-first: human title + param code, then description */
.opt-pro-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem 1.1rem;
  margin: 0;
  padding: .5rem 1.35rem 1.1rem;
}
.opt-pro-grid > div { display: grid; grid-template-columns: 1fr; gap: .12rem; min-width: 0; }
.opt-pro-grid dt {
  display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap;
  font-size: .85rem; font-weight: 600;
  margin: 0;
}
.opt-pro-grid dt code {
  background: transparent; padding: 0;
  color: var(--text-dim); font-weight: 400; font-size: .68rem;
  font-family: var(--font-mono);
}
.opt-pro-grid dd {
  margin: 0;
  font-size: .8rem; color: var(--text-muted);
  line-height: 1.45;
}

/* Pro block - accent border + banner strip */
.opt-row-pro { border-color: var(--accent); }
.opt-pro-banner {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .6rem 1.35rem;
  background: var(--accent-dim);
  border-bottom: 1px solid rgba(159,239,0,.2);
}
.opt-pro-banner-text { font-size: .8rem; color: var(--text-muted); }
.opt-pro-banner a { margin-left: auto; flex-shrink: 0; }

/* Timing callout - render-time range across demo captures */
.timing-callout {
  display: inline-flex; align-items: baseline; gap: .45rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .72rem;
  color: var(--text-dim); margin: .6rem 0 0;
}
.timing-callout strong { color: var(--accent); font-size: .82rem; font-weight: 600; }
.timing-callout-sep { opacity: .4; }
.opt-pro-perks {
  list-style: none;
  margin: 0; padding: .85rem 1.35rem 1.2rem;
  border-top: 1px solid var(--border-lite);
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.opt-pro-perks li {
  font-size: .78rem; color: var(--text-dim);
  padding: .25rem .6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
}
.opt-pro-perks li code {
  background: transparent; padding: 0;
  font-size: inherit; color: var(--text-dim);
}
@media (max-width: 640px) {
  .opt-pro-grid { grid-template-columns: 1fr; }
}

/* ≥1600px: container maxed - grow side cols so desktop card stays near 16:9 */
@media (min-width: 1600px) {
  .fmt-bento { grid-template-columns: minmax(0, 1fr) 225px 190px; grid-template-rows: 380px 225px; }
  .fmt-bento-v2 { grid-template-columns: 1fr 185px 225px; grid-template-rows: 1fr; }
  .fmt-v2-col-main .fmt-slot-desktop   { flex-basis: 400px; }
  .fmt-v2-col-main .fmt-slot-darklight { flex-basis: 225px; }
  .fmt-v2-col-side .fmt-slot-mobile    { flex-basis: 400px; }
  .fmt-v2-col-side .fmt-slot-square    { flex-basis: 225px; }
}
/* 900-1150px: col-aside visible, col-main narrowed - shrink fixed cols */
@media (max-width: 1150px) {
  .fmt-bento         { grid-template-columns: minmax(0, 1fr) 140px 115px; grid-template-rows: 300px 140px; }
  .fmt-bento-gallery { grid-template-columns: minmax(0, 1fr) 185px; grid-template-rows: 380px 120px; }
  /* v2: 1-col full-width stack between 560px and 1150px - all formats visible */
  .fmt-bento-v2 { grid-template-columns: 1fr; grid-template-rows: auto; gap: 1.5rem; }
  .fmt-v2-col-main  { grid-column: 1; grid-row: auto; }
  .fmt-v2-col-side  { grid-column: 1; grid-row: auto; }
  .fmt-bento-v2 > .fmt-slot-fullpage { grid-column: 1; grid-row: auto; aspect-ratio: 9/16; }
  .fmt-v2-col-main .fmt-slot-desktop   { flex-basis: auto; aspect-ratio: 16/9; }
  .fmt-v2-col-main .fmt-slot-darklight { flex-basis: auto; aspect-ratio: 16/9; }
  .fmt-v2-col-side .fmt-slot-mobile    { flex-basis: auto; aspect-ratio: 9/16; }
  .fmt-v2-col-side .fmt-slot-square    { flex-basis: auto; aspect-ratio: 1; }
}
/* Below 900px: col-aside hidden, bento goes full col-main width */
@media (max-width: 900px) {
  .fmt-bento         { grid-template-columns: minmax(0, 1fr) 175px 145px; grid-template-rows: 290px 175px; }
  .fmt-bento-gallery { grid-template-columns: minmax(0, 1fr) 195px; grid-template-rows: 400px 130px; }
  /* v2: override .fmt-bento fixed rows + reset display values cleanly */
  .fmt-bento-v2 { grid-template-columns: 1fr; grid-template-rows: auto; }
  .fmt-v2-col-main  { grid-column: 1; grid-row: auto; display: flex; }
  .fmt-v2-col-side  { grid-column: 1; grid-row: auto; display: flex; flex-direction: column; }
  .fmt-bento-v2 > .fmt-slot-fullpage { display: flex; grid-column: 1; grid-row: auto; aspect-ratio: 9/16; }
  .fmt-v2-col-main .fmt-slot-desktop   { flex-basis: auto; aspect-ratio: 16/9; }
  .fmt-v2-col-main .fmt-slot-darklight { flex-basis: auto; aspect-ratio: 16/9; }
  .fmt-v2-col-side .fmt-slot-mobile    { flex-basis: auto; aspect-ratio: 9/16; }
  .fmt-v2-col-side .fmt-slot-square    { flex-basis: auto; aspect-ratio: 1; }
}
/* ≤865px: bento 2-col - desktop pleine largeur, puis fullpage+mobile, puis darklight+square */
@media (max-width: 865px) {
  .fmt-bento-v2 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 1rem; }
  /* Aplatir les wrappers : les 5 slots deviennent items directs de la grille */
  .fmt-v2-col-main { display: contents; }
  .fmt-v2-col-side { display: contents; }
  /* Placement explicite (l'ordre source ne dicte plus le placement) */
  .fmt-v2-col-main .fmt-slot-desktop   { grid-column: 1 / -1; grid-row: 1; flex-basis: auto; aspect-ratio: 16/9; }
  .fmt-bento-v2 > .fmt-slot-fullpage   { display: block; grid-column: 1; grid-row: 2; align-self: auto; aspect-ratio: 9/16; }
  .fmt-v2-col-side .fmt-slot-mobile    { grid-column: 2; grid-row: 2; flex-basis: auto; aspect-ratio: 9/16; }
  .fmt-v2-col-main .fmt-slot-darklight { grid-column: 1; grid-row: 3; flex-basis: auto; align-self: start; aspect-ratio: 16/9; }
  .fmt-v2-col-side .fmt-slot-square    { grid-column: 2; grid-row: 3; flex-basis: auto; aspect-ratio: 1; }
}
/* Phone: full-width column stack - each format gets a section-divider title above. */
@media (max-width: 560px) {
  .fmt-bento, .fmt-bento-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.6rem;
  }
  .fmt-bento .fmt-slot-desktop,
  .fmt-bento-gallery .fmt-slot-desktop { grid-column: 1; grid-row: auto; aspect-ratio: 16/9; }
  .fmt-bento .fmt-slot-mobile,
  .fmt-bento-gallery .fmt-slot-mobile  { grid-column: 1; grid-row: auto; aspect-ratio: 9/16; }
  .fmt-bento .fmt-slot-square          { grid-column: 1; grid-row: auto; aspect-ratio: 1; }
  .fmt-bento .fmt-slot-fullpage        { grid-column: 1; grid-row: auto; aspect-ratio: 9/16; }
  .fmt-bento .fmt-slot-darklight       { grid-column: 1; grid-row: auto; aspect-ratio: 16/9; }
  .fmt-bento-gallery .fmt-slot-info    { grid-column: 1; grid-row: auto; min-height: 90px; aspect-ratio: auto; }
  /* v2: restore all formats, reset display overrides from ≤865px */
  .fmt-v2-col-main  { grid-column: 1; grid-row: auto; display: flex; }
  .fmt-v2-col-side  { grid-column: 1; grid-row: auto; display: flex; flex-direction: column; }
  .fmt-bento-v2 > .fmt-slot-fullpage { display: flex; grid-column: 1; grid-row: auto; aspect-ratio: 9/16; }
  .fmt-v2-col-main .fmt-slot-desktop   { flex-basis: auto; aspect-ratio: 16/9; }
  .fmt-v2-col-main .fmt-slot-darklight { flex-basis: auto; aspect-ratio: 16/9; }
  .fmt-v2-col-side .fmt-slot-mobile    { flex-basis: auto; aspect-ratio: 9/16; }
  .fmt-v2-col-side .fmt-slot-square    { flex-basis: auto; aspect-ratio: 1; align-self: auto; }

  /* Section-divider headers: title moves above the card, sits on a horizontal rule.
     Reads as ──── [ Desktop · 1280px ] ──── - structure the eye can latch onto. */
  .fmt-bento .fmt-slot-title,
  .fmt-bento .fmt-slot-square > .fmt-slot-info,
  .fmt-bento-gallery .fmt-slot-title {
    order: -1;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 0 0 .55rem;
    font-size: .78rem;
    color: var(--text);
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }
  .fmt-bento .fmt-slot-title::before,
  .fmt-bento .fmt-slot-title::after,
  .fmt-bento .fmt-slot-square > .fmt-slot-info::before,
  .fmt-bento .fmt-slot-square > .fmt-slot-info::after,
  .fmt-bento-gallery .fmt-slot-title::before,
  .fmt-bento-gallery .fmt-slot-title::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--border);
    min-width: 0;
  }
}

/* ─── Light/dark comparison card ─────────────────────────── */
.fmt-compare-viewport {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
  position: relative;
}
.fmt-compare-half {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.fmt-compare-half { cursor: zoom-in; }
.fmt-compare-half img {
  width: 145%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  transition: transform .45s ease;
}
.fmt-compare-half-r img { object-position: top left; }
.fmt-card:hover .fmt-compare-half img { transform: scale(1.04); }
.fmt-compare-half-l::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,.2);
  z-index: 2;
}
.fmt-compare-badge {
  position: absolute;
  top: .35rem;
  font-size: .67rem;
  font-family: var(--font-mono);
  padding: .15rem .38rem;
  border-radius: 4px;
  pointer-events: none;
  z-index: 3;
  background: rgba(0,0,0,.82);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.fmt-compare-half-l .fmt-compare-badge { left: .35rem; }
.fmt-compare-half-r .fmt-compare-badge { right: .35rem; }

/* ─── Capture form ────────────────────────────────────────── */
.capture-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.capture-form-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--bg-raised);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.capture-form-row .btn {
  border-radius: 0 var(--radius) var(--radius) 0;
}
.capture-form-row .form-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.capture-form-row .form-input:focus {
  border-color: transparent;
  box-shadow: none;
  outline: none;
}
[data-theme="cde"] .capture-form-row {
  border-top:    2px solid var(--cde-shadow);
  border-left:   2px solid var(--cde-shadow);
  border-right:  2px solid var(--cde-light);
  border-bottom: 2px solid var(--cde-light);
  box-shadow: none;
}
[data-theme="cde"] .capture-form-row .form-input {
  border: none;
  box-shadow: none;
  outline: none;
}

/* ─── Quota bar ───────────────────────────────────────────── */
.quota-bar-wrap { margin: .75rem 0; }
.quota-bar {
  height: 6px;
  background: var(--bg-raised);
  border-radius: 3px;
  overflow: hidden;
}
.quota-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width .4s ease;
}
.quota-bar-fill.warn { background: var(--amber); }
.quota-bar-fill.full { background: var(--red); }
.quota-label { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }

/* ─── Pricing / Packs ─────────────────────────────────────── */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.pack-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  transition: border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.pack-card:hover, .pack-card.selected {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.pack-card.selected { background: var(--accent-dim); }
.pack-name { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.pack-credits { font-size: 1.5rem; font-weight: 800; font-family: var(--font-head); color: var(--accent); }
.pack-unit { font-size: .75rem; color: var(--text-muted); margin-top: -.5rem; }
.pack-price { font-size: 1.8rem; font-weight: 800; font-family: var(--font-head); }
.pack-per { font-size: .75rem; color: var(--text-dim); }

/* ─── Screenshots gallery (public) ───────────────────────── */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .75rem;
}
.shot-thumb {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition);
}
.shot-thumb:hover { border-color: var(--accent); }
.shot-thumb img { width: 100%; height: auto; display: block; }

/* ─── Code blocks (API docs) ──────────────────────────────── */
.code-example { position: relative; margin: 1.5rem 0; }
details.code-example > div { position: relative; }
.code-example pre { margin: 0; font-size: .83rem; padding-top: 2rem; }
.code-lang {
  position: absolute;
  top: .6rem; left: .75rem;
  font-size: .7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .2em;
  z-index: 1;
}
.code-copy-btn {
  position: absolute;
  top: .45rem; right: .5rem;
  padding: .25rem .55rem;
  background: var(--bg-raised);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
}
.code-copy-btn:hover {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.code-copy-btn.copied {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

/* ─── Admin layout ────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 252px 1fr;
  min-height: 100vh;
  gap: 0;
}
.admin-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar .logo { margin-bottom: 2rem; }
.admin-nav { list-style: none; padding: 0; }
.admin-nav li { margin-bottom: .25rem; }
.admin-nav a {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .75rem;
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all var(--transition);
}
.admin-nav a:hover, .admin-nav a.current {
  background: var(--bg-raised);
  color: var(--text);
}
.admin-nav a.current { color: var(--accent); }
.admin-nav a svg { width: 13px; height: 13px; flex-shrink: 0; opacity: .85; position: relative; top: 1px; }
.admin-nav a:hover svg, .admin-nav a.current svg { opacity: 1; }
.admin-content { padding: 2rem; }
.admin-section-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: var(--text-dim); margin: 1.25rem 0 .5rem .75rem; }

/* ─── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .18em .48em;
  font-size: .68rem;
  font-weight: 600;
  border-radius: 99px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-left: .4em;
}
.badge-green  { background: rgba(34,197,94,.15);  color: #4ade80; }
.badge-amber  { background: rgba(245,158,11,.15); color: #fbbf24; }
.badge-red    { background: rgba(255,77,77,.15);  color: #f87171; }
.badge-blue   { background: var(--bg-raised); color: var(--text-muted); border: 1px solid var(--border); }
.badge-private { background: rgba(168,85,247,.16); color: #c084fc; gap: .32em; }
a.badge-private { text-decoration: none; }
a.badge-private:hover { background: rgba(168,85,247,.30); color: #d8b4fe; }
.badge-private--off { background: var(--bg-raised); color: var(--text-muted); }
.badge-public { background: rgba(56,189,248,.14); color: #7dd3fc; gap: .32em; }
a.badge-public { text-decoration: none; }
a.badge-public:hover { background: rgba(56,189,248,.28); color: #bae6fd; }
.badge-private svg, .badge-public svg { width: .9em; height: .9em; }
.badge-api    { background: var(--accent-dim); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.badge-lime   { background: var(--accent-dim);    color: var(--accent); }
.badge-sm     { font-size: .64rem; padding: .12em .45em; letter-spacing: .15em; }
.badge-topup {
  padding: .4em .9em;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
}
.badge-topup:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); }

/* ─── Password strength bar ───────────────────────────────── */
.pwd-strength { margin-top: .35rem; }
.pwd-bar {
  height: 4px;
  background: var(--bg-raised);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: .3rem;
}
.pwd-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition: width .2s ease, background .2s;
}
.pwd-label { font-size: .78rem; color: var(--text-dim); }

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  background: var(--bg-surface);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand p {
  font-size: .88rem;
  color: var(--text-muted);
  margin: .85rem 0 1.25rem;
  line-height: 1.6;
}
.footer-cta { display: flex; gap: .5rem; flex-wrap: wrap; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.footer-links h4 {
  margin: 0 0 .75rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--text-dim);
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { font-size: .85rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  position: relative;
}
.footer-bottom p { font-size: .78rem; color: var(--text-dim); margin: 0; }
.footer-legal {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.footer-legal a { color: var(--text-dim); transition: color var(--transition); }
.footer-legal a:hover { color: var(--accent); }
.footer-legal span { color: var(--text-dim); }
.footer-lang-flag { display: inline-block; vertical-align: middle; margin-right: 4px; position: relative; top: -1px; }
.cde-egg {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font: inherit;
  padding: 0 .1rem;
  opacity: .7;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: opacity var(--transition), color var(--transition);
  vertical-align: baseline;
}
.cde-egg:hover { opacity: 1; color: var(--text-muted); text-decoration-style: solid; }
[data-theme="cde"]  .cde-egg { opacity: 1; color: var(--accent); }
[data-theme="term"] .logo-img--dark  { display: block; }
[data-theme="term"] .logo-img--light { display: none; }
[data-theme="term"] .logo-img--cde   { display: none; }

/* ─── Utilities ───────────────────────────────────────────── */
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-dim     { color: var(--text-dim); }
.link-subtle  { color: var(--accent); opacity: .7; text-decoration: none; transition: opacity var(--transition); }
.link-subtle:hover { opacity: 1; }
.text-center  { text-align: center; }
.text-mono    { font-family: var(--font-mono); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: .5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── Animation ───────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .35s ease forwards; }

@keyframes nav-slide-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes nav-slide-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}

/* ─── Capture Frame - Shotbot brand device ───────────────────
   Four corner brackets in electric lime, evoking a screenshot-
   selection rectangle. Applied to structural brand surfaces
   (hero, form, stat cards) which use square / near-square
   corners so the bracket geometry reads cleanly.
   --cf-size / --cf-weight set on the parent element.
──────────────────────────────────────────────────────────── */
.capture-frame {
  position: relative;
  --cf-size:   12px;
  --cf-weight: 2px;
}

.capture-frame::after {
  content: '';
  position: absolute;
  pointer-events: none;
  background-image:
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent));
  background-size:
    var(--cf-weight) var(--cf-size), var(--cf-size) var(--cf-weight),
    var(--cf-weight) var(--cf-size), var(--cf-size) var(--cf-weight),
    var(--cf-weight) var(--cf-size), var(--cf-size) var(--cf-weight),
    var(--cf-weight) var(--cf-size), var(--cf-size) var(--cf-weight);
  background-position:
    top left,    top left,
    top right,   top right,
    bottom left, bottom left,
    bottom right,bottom right;
  background-repeat: no-repeat;
  transition: opacity var(--transition);
}

/* Bracket positioning: tous les insets = 0 pour que les brackets se posent AU
   coin de l'element (au lieu de flotter en dehors). Tout reste a largeur
   naturelle, alignement automatique avec les voisins, plus de mismatch
   hero/form/card/stage. */

/* Hero: no radius; same bracket arm as form so both align visually. */
.capture-frame--hero { --cf-size: 16px; padding: 1rem 1.25rem; }
.capture-frame--hero::after { inset: 0; z-index: 0; opacity: 0.28; }

/* Capture form: near-square corners to match bracket form; tight bracket */
.capture-form.capture-frame { border-radius: 3px; --cf-size: 16px; }
.capture-form.capture-frame::after { inset: 0; z-index: 2; }

/* Stat grid: single bracket around the 4-card section at hero opacity */
.card-grid--stats.capture-frame,
.card-grid--stats-narrow.capture-frame { --cf-size: 16px; }
.card-grid--stats.capture-frame::after,
.card-grid--stats-narrow.capture-frame::after { inset: 0; z-index: 2; opacity: 0.28; }
.card-grid--stats.capture-frame .stat-card,
.card-grid--stats-narrow.capture-frame .stat-card { border-radius: 0; }

/* Cards with bracket (e.g. scheduled add form) */
.card.capture-frame { border-radius: 3px; --cf-size: 16px; }
.card.capture-frame::after { inset: 0; z-index: 2; }

/* CDE / Motif theme: suppress (bevel aesthetic is incompatible) */
[data-theme="cde"] .capture-frame::after { display: none; }
[data-theme="cde"] .capture-frame--hero { padding: 0; }

/* Geo-regions map (/captures-geolocalisees/, /geolocated-screenshots/) :
   un cran plus sombre que le reste des cartes pour que la map "punche", avec
   coins carres et brackets hero pour l'effet brand.
   margin-bottom 4rem (vs 1.5rem hérité de .card) : la map est dense, laisser
   respirer avant le h2 suivant. */
.geo-map-card { background: var(--bg); border-radius: 0; padding: 1.25rem; margin-bottom: 4rem; }
.geo-map-card .geo-map { width: 100%; height: auto; display: block; }
/* Spec table sous la map : mono, tight, ledger-grid. Centree (width: auto +
   margin auto) pour ne pas s'accrocher au bord gauche de la card. */
/* Horizontal scroll wrapper so the spec table doesn't overflow the card
   on narrow viewports. Negative margins extend the scroll surface to the
   card edges. */
.geo-map-card .region-spec-wrap { overflow-x: auto; margin: 3.5rem -1.25rem 0; padding: 0 1.25rem; -webkit-overflow-scrolling: touch; }
.geo-map-card .region-spec { width: auto; margin: 0 auto; border-collapse: collapse; font-family: var(--font-mono); font-size: .85rem; }
.geo-map-card .region-spec td { padding: .4rem 1.5rem; border-top: 1px solid var(--border); color: var(--text-muted); }
.geo-map-card .region-spec tr:first-child td { border-top: 0; }
.geo-map-card .region-spec td:first-child { color: var(--accent); padding-left: 0; }
.geo-map-card .region-spec td:last-child  { padding-right: 0; text-align: right; }
.geo-map-card .region-spec td:nth-child(2) { color: var(--text); }
.geo-map-card .region-spec code { background: transparent; padding: 0; }
.img-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 9999; align-items: center; justify-content: center; cursor: zoom-out; }
.img-lightbox.open { display: flex; }
.img-lightbox img { max-width: 92vw; max-height: 88vh; display: block; border-radius: 4px; cursor: zoom-out; }
.img-lightbox-close { position: fixed; top: 1rem; right: 1.25rem; background: none; border: none; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; opacity: .7; padding: .25rem .5rem; }
.img-lightbox-close:hover { opacity: 1; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .layout-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .col-aside { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }

  /* ── header bar ── */
  .site-header .container { gap: .5rem; }
  .nav-toggle { display: flex; padding: .6rem .65rem; }
  .nav-toggle span { width: 22px; }
  .theme-toggle { margin-left: auto; padding: .6rem calc(.65rem + 4px); border: none; }

  /* ── panel ── */
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    /* +2px covers the subpixel gap between viewport bottom and max-height calc */
    max-height: calc(100vh - var(--header-h) + 2px);
    background: var(--bg);
    border-top: 2px solid var(--accent);
    z-index: 200;
    overflow-y: auto;
    padding-bottom: 2rem;
    animation: nav-slide-in .28s ease forwards;
  }
  .main-nav.is-closing { animation: nav-slide-out .22s ease forwards; }
  @media (prefers-reduced-motion: reduce) {
    .main-nav.open, .main-nav.is-closing { animation: none; }
  }
  [data-theme="cde"] .main-nav.open,
  [data-theme="cde"] .main-nav.is-closing { animation: none; }

  .main-nav.open > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .main-nav.open > ul > li.sb-nav-title {
    padding-top: 1.05rem;
    border-top: 1px solid var(--border-lite);
  }
  .main-nav.open a:not(.btn):not(.badge) {
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0;
    padding: .95rem 1.25rem .95rem 3.7rem;
    color: var(--text-dim);
    border-radius: 0;
    white-space: normal;
  }
  .main-nav.open a:not(.btn):hover { background: var(--bg-raised); color: var(--text); }
  .main-nav.open a.current {
    border-left: 3px solid var(--accent);
    padding-left: calc(3.7rem - 3px);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    color: var(--accent);
  }
  .main-nav.open a.nav-pro {
    color: var(--text-dim);
    font-weight: 500;
    box-shadow: none;
    padding: .95rem 1.25rem .95rem 3.7rem;
  }
  .main-nav.open a.nav-pro .nav-icon { color: var(--accent); opacity: 1; }
  .main-nav.open a.nav-pro:hover { background: var(--bg-raised); }
  .main-nav.open a.nav-pro.current {
    border-left: 3px solid var(--accent);
    padding-left: calc(3.7rem - 3px);
  }

  /* ── Documentation group ── */
  .nav-has-dropdown { position: static; background: none; }
  .main-nav.open > ul > li.nav-has-dropdown {
    padding-top: 1.05rem;
    border-top: 1px solid var(--border-lite);
  }
  .nav-dropdown-trigger {
    width: 100%;
    display: block;
    text-align: left;
    padding: 0 1.25rem .4rem;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-dim);
    background: none;
    border: none;
    border-radius: 0;
    cursor: default;
  }
  .nav-dropdown-trigger::after { display: none; }
  .nav-has-dropdown:hover .nav-dropdown-trigger,
  .nav-has-dropdown:focus-within .nav-dropdown-trigger,
  .nav-has-dropdown.current .nav-dropdown-trigger { background: none; color: var(--text-dim); }
  .nav-dropdown {
    display: block; position: static; transform: none;
    box-shadow: none; border: none; background: none;
    padding: 0; margin: 0; min-width: 0; list-style: none;
  }
  .main-nav.open .nav-dropdown li { border: none; }
  .main-nav.open .nav-dropdown a {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0;
    padding: .95rem 1.25rem .95rem 3.7rem;
    border-radius: 0;
    color: var(--text-dim);
  }
  .main-nav.open .nav-dropdown li:last-child { border-top: 1px solid var(--border-lite); }
  .main-nav.open .nav-dropdown a:hover { background: var(--bg-raised); color: var(--text); }
  .main-nav.open .nav-dropdown a.current { color: var(--accent); }

  /* ── Aside widget inside open mobile nav ── */
  .main-nav.open .col-aside {
    display: block;
    position: static;
    margin: 0;
    padding: 0;
    border-bottom: none;
  }
  .main-nav.open .widget {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    overflow: visible !important;
  }
  /* Logged-out auth form needs its own container padding so inputs/buttons
     don't bleed to the viewport edges */
  .main-nav.open .widget-auth {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
  }
  /* Mobile auth buttons need more vertical breathing room */
  .main-nav.open .widget-auth .btn { padding: .95rem 1.25rem; font-size: 1rem; }
  /* Forgot-password text link - block + text-align center so it sits properly in the column */
  .main-nav.open .widget-auth-forgot {
    display: block;
    width: 100%;
    text-align: center;
    padding: .25rem 0;
    font-size: .9rem;
    font-weight: 400;
    color: var(--text-muted);
  }
  .main-nav.open .widget-nav { padding: 0; }
  .main-nav.open .sb-nav-link {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0;
    padding: .95rem 1.25rem .95rem 3.7rem;
    color: var(--text-dim);
  }
  .main-nav.open .sb-nav-link[data-style="primary"],
  .main-nav.open .sb-nav-link[data-style="accent"] { color: var(--text-dim); font-weight: 500; }
  .main-nav.open .sb-nav-link[data-style="primary"] .nav-icon,
  .main-nav.open .sb-nav-link[data-style="accent"] .nav-icon { color: var(--accent); opacity: 1; }
  .main-nav.open .sb-nav-link[data-style="dim"] { color: var(--text-dim); font-weight: 500; }
  .main-nav.open .sb-nav-link[data-style="sub"] { padding-left: 3.7rem; font-size: 1.05rem; font-weight: 500; letter-spacing: 0; color: var(--text-dim); }
  .main-nav.open .badge { display: inline-flex; padding: .2em .55em; font-size: .72rem; font-weight: 600; border-radius: 99px; }
  .main-nav.open .aside-signout-wrap .sb-nav-link {
    color: #f87171;
    background: rgba(255,77,77,.08);
  }
  .main-nav.open .aside-signout-wrap .sb-nav-link:hover { background: rgba(255,77,77,.15); }

  /* Hairline nav icons - sit inside the 2.95rem padding-left
     via absolute positioning so they don't push the text. */
  .main-nav.open > ul > li > a,
  .main-nav.open .sb-nav-link,
  .main-nav.open .nav-dropdown a,
  .main-nav.open .nav-dropdown-trigger { position: relative; }
  .main-nav.open .nav-icon {
    position: absolute;
    left: 1rem;
    margin-left: .75rem;
    top: 50%;
    transform: translateY(calc(-50% + 1px));
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: .35;
    color: currentColor;
    pointer-events: none;
  }
  .main-nav.open .nav-icon svg { width: 100%; height: 100%; }
  /* Compensate the 3px left border on .current so the icon column stays aligned */
  .main-nav.open a.current .nav-icon,
  .main-nav.open a.sb-nav-current .nav-icon { margin-left: calc(.75rem - 3px); }
  /* Mobile widget current items: keep them at the mobile padding (override the global desktop padding rule on .sb-nav-current) */
  .main-nav.open .sb-nav-current { padding-left: calc(3.7rem - 3px) !important; }
  /* Documentation trigger renders as a section header in mobile - no icon */
  .main-nav.open .nav-dropdown-trigger .nav-icon { display: none; }
}

/* Base nav-icon - shared mobile + desktop sidebar */
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: currentColor;
  /* Default size: prevents the inner `svg { width:100%; height:100% }` from
     expanding to fill its parent during the 900px breakpoint reflow when
     neither the mobile (14px) nor the desktop sidebar (12px) override
     happens to be matched mid-paint. */
  width: 14px;
  height: 14px;
}
.nav-icon svg { width: 100%; height: 100%; }
/* Desktop: hide icons on top-level header nav (only show in sidebar widget) */
@media (min-width: 901px) {
  .main-nav > ul .nav-icon { display: none; }
  .widget-nav .nav-icon,
  .aside-signout-wrap .nav-icon {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    opacity: .35;
  }
  /* compensate for .current's 3px left border */
  .widget-nav .sb-nav-current .nav-icon { left: calc(2rem - 3px); }
}

@media (max-width: 640px) {
  .hero-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  h2 { margin-top: 2rem; margin-bottom: calc(1rem + 5px); }
  .pack-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-3col { grid-template-columns: 1fr; }
  .card-grid.use-cases-2col { grid-template-columns: 1fr; }
  .card-grid--stats { grid-template-columns: 1fr; }
  .card-grid--stats-narrow { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { height: auto; position: static; }
}

@media (max-width: 380px) {
  .pack-grid { grid-template-columns: 1fr; }
}


/* ─── Mobile nav backdrop ─────────────────────────────────── */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn .22s ease forwards;
}
@media (prefers-reduced-motion: reduce) {
  .nav-backdrop { animation: none; opacity: 1; }
}
[data-theme="cde"] .nav-backdrop { animation: none; opacity: 1; }



/* ══════════════════════════════════════════════════════════════
   THEMES
   ══════════════════════════════════════════════════════════════ */

/* ─── Light ───────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:          #faf8f5;
  --bg-surface:  #ffffff;
  --bg-raised:   #f3ede6;
  --border:      #e0d8ce;
  --border-lite: #ece6df;
  --text:        #1c1410;
  --text-muted:  #5a5048;
  --text-dim:    #7c6e65;
  --accent:      #4a7c00;
  --accent-dark: #375c00;
  --accent-hover:#5a9200;
  --accent-glow: rgba(74,124,0,.2);
  --accent-dim:  rgba(74,124,0,.08);
  --on-accent:   #ffffff;
  --header-bg:   rgba(250,248,245,.94);
}
/* Titres h3 : pas de couleur d'accentuation en light mode */
[data-theme="light"] h3 { color: var(--text); }
/* Nav mobile light : text-dim (#7c6e65) trop pâle sur fond clair - utiliser text-muted */
[data-theme="light"] .main-nav.open a:not(.btn)             { color: var(--text-muted); }
[data-theme="light"] .main-nav.open .nav-dropdown a          { color: var(--text-muted); }
[data-theme="light"] .main-nav.open .nav-dropdown-trigger    { color: var(--text-dim); }
[data-theme="light"] .main-nav.open a:not(.btn):hover        { background: var(--bg-raised); color: var(--text); }
[data-theme="light"] .main-nav.open .nav-dropdown a:hover    { background: var(--bg-raised); color: var(--text); }


/* ─── CDE / Motif ─────────────────────────────────────────── */
[data-theme="cde"] {
  --bg:          #8890a8;
  --bg-surface:  #9aa0b8;
  --bg-raised:   #c4c8dc;
  --border:      #585e7a;
  --border-lite: #7880a0;
  --text:        #000000;
  --text-muted:  #181830;
  --text-dim:    #38385a;
  --accent:      #aa4870;
  --accent-dark: #882050;
  --accent-hover:#c05880;
  --accent-glow: rgba(170,72,112,.18);
  --accent-dim:  rgba(170,72,112,.1);
  --on-accent:   #ffffff;
  --header-bg:   #aa4870;
  --radius:      0px;
  --radius-lg:   0px;
  --font-head:   'Helvetica', 'Arial', sans-serif;
  --font-body:   'Helvetica', 'Arial', sans-serif;
  --font-mono:   'Courier New', 'Courier', monospace;
  --transition:  0s;
  --cde-light:   #d4d8ec;
  --cde-shadow:  #383e5a;
}

/* CDE: no blur, no rounded corners on header */
[data-theme="cde"] .site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: static;
}
@media (max-width: 900px) {
  [data-theme="cde"] .site-header { position: relative; }
  [data-theme="cde"] .main-nav.open a.nav-pro { color: var(--text-dim); box-shadow: none; }
  [data-theme="cde"] .main-nav.open a.nav-pro .nav-icon { color: var(--accent); opacity: 1; }
  [data-theme="cde"] .main-nav.open .aside-signout-wrap .sb-nav-link { color: #8b0000; background: rgba(139,0,0,.12); }
  [data-theme="cde"] .main-nav.open .aside-signout-wrap .sb-nav-link:hover { background: rgba(139,0,0,.22); }
  [data-theme="cde"] .main-nav.open .nav-dropdown { border: none; }
  [data-theme="cde"] .main-nav.open a.nav-pro:hover { background: var(--bg-raised); color: var(--text); }
  [data-theme="cde"] .main-nav.open .widget { border: none; }
}

/* CDE: 3D raised effect on cards and panels */
[data-theme="cde"] .card,
[data-theme="cde"] .widget,
[data-theme="cde"] .capture-form,
[data-theme="cde"] .pack-card,
[data-theme="cde"] .stat-card {
  border-top:    2px solid var(--cde-light);
  border-left:   2px solid var(--cde-light);
  border-right:  2px solid var(--cde-shadow);
  border-bottom: 2px solid var(--cde-shadow);
  box-shadow: none;
}
[data-theme="cde"] .pack-card:hover,
[data-theme="cde"] .pack-card.selected {
  transform: none;
  box-shadow: none;
}

/* CDE: 3D raised buttons */
[data-theme="cde"] .btn {
  border-top:    2px solid var(--cde-light);
  border-left:   2px solid var(--cde-light);
  border-right:  2px solid var(--cde-shadow);
  border-bottom: 2px solid var(--cde-shadow);
}
[data-theme="cde"] .btn:active {
  border-top:    2px solid var(--cde-shadow);
  border-left:   2px solid var(--cde-shadow);
  border-right:  2px solid var(--cde-light);
  border-bottom: 2px solid var(--cde-light);
}
[data-theme="cde"] .btn-ghost { border: 2px solid var(--border); }

/* CDE: sunken inputs */
[data-theme="cde"] .form-input,
[data-theme="cde"] .form-textarea,
[data-theme="cde"] .form-select {
  border-top:    2px solid var(--cde-shadow);
  border-left:   2px solid var(--cde-shadow);
  border-right:  2px solid var(--cde-light);
  border-bottom: 2px solid var(--cde-light);
}
[data-theme="cde"] .form-input:focus,
[data-theme="cde"] .form-textarea:focus,
[data-theme="cde"] .form-select:focus {
  box-shadow: none;
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* CDE: theme toggle gets pressed-button feel */
[data-theme="cde"] .theme-toggle,
[data-theme="cde"] .nav-toggle {
  border-top:    2px solid var(--cde-light);
  border-left:   2px solid var(--cde-light);
  border-right:  2px solid var(--cde-shadow);
  border-bottom: 2px solid var(--cde-shadow);
  background: var(--bg-raised);
  color: var(--text);
}
[data-theme="cde"] .theme-toggle:hover {
  background: var(--bg-raised);
  border-color: inherit;
  color: var(--accent);
}
[data-theme="cde"] .nav-toggle span { background: currentColor; }
[data-theme="cde"] .nav-toggle:hover {
  background: var(--bg-raised);
  border-color: inherit;
  color: var(--accent);
}
@media (max-width: 900px) {
  [data-theme="cde"] .nav-toggle   { padding: calc(.6rem + 1px) .65rem; }
  [data-theme="cde"] .theme-toggle { padding: .6rem calc(.65rem + 3px); }
}
[data-theme="cde"] .nav-toggle:active {
  border-top:    2px solid var(--cde-shadow);
  border-left:   2px solid var(--cde-shadow);
  border-right:  2px solid var(--cde-light);
  border-bottom: 2px solid var(--cde-light);
}
[data-theme="cde"] .nav-dropdown { border: 2px solid var(--border); border-radius: 0; }
[data-theme="cde"] .nav-dropdown-trigger { border-radius: 0; }
@media (min-width: 901px) {
  [data-theme="cde"] .main-nav a.nav-pro { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
  [data-theme="cde"] .main-nav a.nav-pro:hover { background: rgba(255,255,255,.18); color: #fff; }
  [data-theme="cde"] .main-nav a.nav-pro.current { background: var(--bg-raised); color: var(--accent); box-shadow: none; }
}

/* CDE desktop sidebar widget hover: force dark text on light bg (matches sub-item behavior) */
[data-theme="cde"] .sb-nav-link:hover { color: var(--text); background: var(--bg-raised); }


/* ══════════════════════════════════════════════════════════════
   PAGE-SPECIFIC COMPONENTS (consolidated from inline CSS)
   ══════════════════════════════════════════════════════════════ */

/* ─── Tabs (API docs, examples) ───────────────────────────── */
.tab-nav {
  display: flex;
  gap: .25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: .6rem 1rem;
  font-family: var(--font-mono);
  font-size: .88rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}
.tab-btn:hover  { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content h2 { margin-top: 3rem; }
.tab-content h2:first-child { margin-top: 0; }
.tab-content h3 { margin-top: 2.5rem; }

details.code-example summary {
  list-style: none;
  cursor: pointer;
  padding: .6rem 1rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--text-muted);
}
details.code-example summary::-webkit-details-marker { display: none; }
details.code-example summary:hover { color: var(--accent); }

/* ─── Pack picker rows (shared by all /tarifs/, /pricing/, /recharger/, /top-up/, /cle-api-screenshot/, /screenshot-api-key/) */
.rrow-list { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0 1.25rem; }
.rrow {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  transition: border-color .15s, background .15s;
}
.rrow[data-pack] { cursor: pointer; user-select: none; }
.rrow:hover      { border-color: var(--text-muted); }
.rrow.popular    { border-color: #fff; padding-top: 1.5rem; }
.rrow.selected   { border-color: var(--accent); background: var(--accent-dim); }
.rrow-pop {
  position: absolute;
  top: -.65rem; left: 1.5rem;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: .2em .7em;
  border-radius: 99px;
  white-space: nowrap;
  font-family: var(--font-head);
}

/* Left col: count + "sans expiration" tag below it */
.rrow-left {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  width: 220px;
  flex-shrink: 0;
}
.rrow-count { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.rrow-n   { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.rrow-u   { font-size: .8rem; color: var(--text-dim); }
.rrow-tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-left: .55rem;
  margin-top: .35rem;
  border-left: 2px solid var(--accent);
  white-space: nowrap;
}

/* Right col: prices on top, "soit X €/cap" note, then CTA (badge + button) */
.rrow-r { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex-shrink: 0; min-width: 0; }
.rrow-per { font-size: .72rem; color: var(--text-dim); white-space: nowrap; padding-bottom: 5px; }
.rrow-p { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--text); }
.rrow-p--disc {
  display: inline-flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  justify-content: flex-end;
}
.rrow-p-orig {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dim);
  text-decoration: line-through;
  font-family: var(--font-head);
}
.rrow-p-new { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--text); }

/* Consent checkbox before pack checkout (withdrawal-right waiver) */
.rrow-consent { margin: 1rem 0; }
.rrow-consent-box {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .9rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--bg-surface);
  font-size: .83rem; line-height: 1.5; color: var(--text-muted);
  cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
  user-select: none; -webkit-user-select: none;
}
.rrow-consent-box:hover { border-color: var(--accent-dark); }
.rrow-consent-box:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); box-shadow: 0 0 0 1px var(--accent-dim); }
.rrow-consent-box strong { color: var(--text); font-weight: 600; }
.rrow-consent-link { display: inline-block; margin-top: .55rem; font-size: .8rem; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
.rrow-consent-link:hover { border-bottom-color: var(--accent); }

/* Custom lime checkbox (shared by pack + Pro consent) */
.rrow-consent-box input, .pro-consent-box input {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 auto; width: 1.3rem; height: 1.3rem; margin: .05rem 0 0;
  border: 1.5px solid var(--border); border-radius: 5px; background: var(--bg);
  cursor: pointer; display: grid; place-content: center;
  transition: border-color .15s, background .15s;
}
.rrow-consent-box input::before, .pro-consent-box input::before {
  content: ""; width: .68rem; height: .68rem; transform: scale(0); transition: transform .13s ease-in-out;
  box-shadow: inset 1rem 1rem var(--on-accent);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.rrow-consent-box input:checked, .pro-consent-box input:checked { background: var(--accent); border-color: var(--accent); }
.rrow-consent-box input:checked::before, .pro-consent-box input:checked::before { transform: scale(1); }
.rrow-consent-box input:focus-visible, .pro-consent-box input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* CTA: discount badge + bordered action button, inline */
.rrow-cta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.rrow-btn {
  display: inline-block;
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: .42rem 1.1rem;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.rrow[data-pack]:hover .rrow-btn,
.rrow.selected .rrow-btn,
.rrow-btn--link:hover { background: var(--accent); color: var(--on-accent); }

/* Mobile: 2 rows. Count+tag inline on top; prices, per-cap, cta stacked on right (full width). */
@media (max-width: 640px) {
  .rrow { padding: .9rem 1rem; flex-wrap: wrap; row-gap: .5rem; gap: .75rem; }
  .rrow-left {
    flex: 1 1 100%;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .6rem;
  }
  .rrow-tag { margin-top: 0; align-self: auto; }
  .rrow-r { width: 100%; align-items: flex-end; }
}

/* ─── Tarifs rows ─────────────────────────────────────────── */
/* Single viewport breakpoint at 1060 px: wrap once, never bounce. We accept that
   between 751-900 px (sidebar hidden) the card stays stacked even though there's
   horizontal room - the alternative (container queries / two breakpoints) caused
   paint flicker during active resize. */
.tarif-plan-row   { display: flex; align-items: stretch; }
.tarif-plan-price { flex: 0 0 260px; min-width: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.75rem 1.5rem; text-align: center; background: rgba(255,255,255,.02); }
@media (max-width: 900px) {
  .tarif-plan-row   { flex-wrap: wrap; }
  .tarif-plan-price { flex: 0 0 100%; min-width: 0; }
}
.tarif-feat-list { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-direction: column; gap: .35rem; }
.tarif-feat-list li { font-size: .9rem; color: var(--text-muted); padding-left: 1.1rem; position: relative; }
.tarif-feat-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-size: .8rem; }

/* ─── API key steps ───────────────────────────────────────── */
.key-steps { counter-reset: kstep; display: flex; flex-direction: column; gap: .9rem; margin: 1.25rem 0 0; }
.key-step  { counter-increment: kstep; display: flex; align-items: flex-start; gap: 1rem; }
.key-step-num {
  flex-shrink: 0;
  width: 2rem; height: 2rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: .8rem; font-weight: 800; color: var(--accent);
}
.key-step-num::before { content: counter(kstep); }
.key-step-body  { padding-top: .2rem; }
.key-step-title { font-weight: 600; font-size: .95rem; color: var(--text); margin-bottom: .15rem; }
.key-step-desc  { font-size: .85rem; color: var(--text-muted); margin: 0; }
.key-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 600px) { .key-two-col { grid-template-columns: 1fr; } }

/* ─── Capture result page ─────────────────────────────────── */
@keyframes sb-spin { to { transform: rotate(360deg); } }

.capture-layout { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.capture-preview img {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: block;
}
.preview-cap { max-height: min(80vh, 900px); overflow: hidden; position: relative; }
.preview-cap-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(transparent, var(--bg-surface)); pointer-events: none; }
.preview-cap.expanded { max-height: none; }
.preview-cap.expanded .preview-cap-fade { display: none; }

/* ── Phone mockup - mobile captures (viewport ≤ 480 px, non-fullpage, non-PDF) */
.phone-frame {
  position: relative;
  display: block;
  width: fit-content;
  background: #0e0e0e;
  border: 6px solid #272727;
  border-radius: 38px;
  padding: 52px 8px 26px;
  margin: .25rem auto .5rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 16px 40px rgba(0,0,0,.45);
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 5px;
  border-radius: 3px;
  background: #2e2e2e;
}
.phone-frame::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  border-radius: 2px;
  background: #2e2e2e;
}
.phone-frame .capture-preview-img { border: none; border-radius: 3px; }
[data-theme="light"] .phone-frame { background: #ccc; border-color: #aaa; box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 8px 24px rgba(0,0,0,.18); }
[data-theme="light"] .phone-frame::before,
[data-theme="light"] .phone-frame::after { background: #aaa; }
[data-theme="cde"] .phone-frame { border-radius: 4px; }

/* ── Tablet frame ─────────────────────────────────────────────── */
.tablet-frame {
  position: relative;
  display: block;
  width: fit-content;
  background: #0e0e0e;
  border: 10px solid #272727;
  border-radius: 18px;
  padding: 22px 10px 36px;
  margin: .25rem auto .5rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 16px 40px rgba(0,0,0,.45);
}
.tablet-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e2e2e;
}
.tablet-frame::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #2e2e2e;
  background: none;
}
.tablet-frame .capture-preview-img { border: none; border-radius: 2px; }
[data-theme="light"] .tablet-frame { background: #ccc; border-color: #aaa; box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 8px 24px rgba(0,0,0,.18); }
[data-theme="light"] .tablet-frame::before { background: #aaa; }
[data-theme="light"] .tablet-frame::after { border-color: #aaa; }
[data-theme="cde"] .tablet-frame { border-radius: 4px; }

/* ── Browser / desktop frame ──────────────────────────────────── */
.browser-frame { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin: .25rem auto .5rem; }
.browser-chrome {
  display: flex;
  align-items: center;
  height: 34px;
  background: #1c1c1c;
  border-bottom: 1px solid #2a2a2a;
  padding: 0 10px;
  gap: 8px;
  flex-shrink: 0;
}
.browser-dots { display: flex; gap: 5px; flex-shrink: 0; }
.browser-dots span { display: block; width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; }
.browser-dots span:first-child { background: #e05252; }
.browser-dots span:nth-child(2) { background: #e0a852; }
.browser-dots span:last-child { background: #52c052; }
.browser-url {
  flex: 1;
  min-width: 0;
  font-size: .68rem;
  font-family: var(--font-mono);
  color: #777;
  background: #2a2a2a;
  border-radius: 4px;
  padding: 3px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-frame .capture-preview-img { border: none; border-radius: 0; display: block; width: 100%; }
[data-theme="light"] .browser-frame { border-color: #d0d0d0; }
[data-theme="light"] .browser-chrome { background: #e8e8e8; border-bottom-color: #d0d0d0; }
[data-theme="light"] .browser-url { color: #555; background: #fff; }
[data-theme="light"] .browser-dots span { background: #bbb; }
[data-theme="light"] .browser-dots span:first-child { background: #e05252; }
[data-theme="light"] .browser-dots span:nth-child(2) { background: #e0a852; }
[data-theme="light"] .browser-dots span:last-child { background: #52c052; }
[data-theme="cde"] .browser-frame { border-radius: 0; }

/* ── Capture preview (sans .card) ────────────────────────────── */
.capture-preview { margin-bottom: 1.5rem; max-width: min(100%, var(--cap-w, 100%)); margin-left: auto; margin-right: auto; }
/* Breathing room for bare (unframed, non-fullpage) captures */
.capture-preview > a { display: block; padding: 1.25rem 0; }

/* ── Capture opts (subtle pills) ──────────────────────────────── */
.capture-opts {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .4rem;
  justify-content: center;
  margin-top: .85rem;
  font-size: .76rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: .04em;
}
.capture-opt-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.04);
  padding: 2px 8px;
  border-radius: 3px;
}
[data-theme="light"] .capture-opt-chip { background: rgba(0,0,0,.04); }

/* ── Quality note (sous les boutons d'action) ─────────────────── */
.capture-quality-note {
  font-size: .78rem;
  color: var(--text-dim);
  text-align: center;
  margin: .85rem 0 0;
  font-style: italic;
}

/* ── Section autopromo ────────────────────────────────────────── */
.capture-promo {
  position: relative;
  margin-top: 3.5rem;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}
.capture-promo-eyebrow {
  font-size: .72rem;
  font-family: var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.capture-promo-title { font-size: clamp(2.2rem, 5.5vw, 3.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin-bottom: .7rem; }
.capture-promo-sub { color: var(--text-muted); margin-bottom: 1.25rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.capture-promo-feats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: .8rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.capture-promo-ctas { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.capture-token-info { text-align: center; margin: 1rem auto 0; opacity: .55; font-size: .82rem; }
.token-copy-btn { position: relative; background: none; border: none; padding: 0; cursor: pointer; color: inherit; font: inherit; border-bottom: 1px dashed currentColor; opacity: .9; transition: opacity .15s; }
.token-copy-btn:hover { opacity: 1; }
.token-copy-btn code { pointer-events: none; transition: opacity .12s; }
.token-copy-btn.copied code { opacity: 0; }
.token-copy-btn::after { content: attr(data-ok); position: absolute; inset: 0; color: var(--accent); font-family: var(--font-mono); font-size: inherit; opacity: 0; transition: opacity .12s; white-space: nowrap; }
.token-copy-btn.copied::after { opacity: 1; }

/* ── Related captures (même site) ─────────────────────────────────────── */
.related-captures { margin: 1.5rem auto 0; max-width: min(100%, 860px); }
.related-captures-label { font-size: .8rem; color: var(--text-dim); margin: 0 0 .6rem; text-align: center; }
.related-captures-label strong { font-weight: 600; color: var(--text-muted); }
.related-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.related-thumb { display: block; flex: 0 0 auto; }
.related-thumb img { display: block; width: 140px; height: 88px; object-fit: cover; object-position: top; border-radius: var(--radius); border: 1px solid var(--border); transition: border-color .15s, opacity .15s; }
.related-thumb:hover img { border-color: var(--accent); opacity: .85; }

/* ── WOW amplification : frame depth, stage, hero stats, animations ── */

/* Brand-tinted shadow sur les device frames */
.phone-frame, .tablet-frame, .browser-frame {
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 24px 50px rgba(0,0,0,.5),
    0 8px 24px rgba(159,239,0,.05);
}
[data-theme="light"] .phone-frame,
[data-theme="light"] .tablet-frame,
[data-theme="light"] .browser-frame {
  box-shadow:
    0 0 0 1px rgba(0,0,0,.07),
    0 16px 32px rgba(0,0,0,.18),
    0 6px 16px rgba(159,239,0,.06);
}

/* Capture stage : encadrement de scène brand-functional autour du device.
   Bracket geometry mirrors .capture-frame--hero so the result-page brackets
   read at the same scale as the hero brackets on landing pages. */
.capture-stage {
  position: relative;
  padding: 1.5rem 1rem 1.25rem;
  background: radial-gradient(ellipse 70% 50% at 50% 35%, rgba(159,239,0,.04), transparent 65%);
  --cf-size: 16px;
  --cf-weight: 2px;
}
.capture-stage.capture-frame::after { inset: 0; opacity: .28; }

/* Frame max-width adaptatif selon viewport natif de la capture */
.capture-preview .phone-frame,
.capture-preview .tablet-frame,
.capture-preview .browser-frame {
  max-width: min(100%, calc(var(--cap-w, 1280px) + 40px));
}
.phone-frame .capture-preview-img,
.tablet-frame .capture-preview-img,
.browser-frame .capture-preview-img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Baked-frame captures (worker-side smartphone/browser_chrome/shadow/etc.) :
   render at natural size, centered, and DROP the generic .capture-preview img
   border + radius (the frame is part of the image | a CSS border around it
   would look like a thin green ring around the smartphone bezel). */
.baked-frame-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem;
}
.baked-frame-wrap img {
  border: none;
  border-radius: 0;
  display: block;
  max-width: 100%;
  height: auto;
}

/* Capture actions : row flex pour bouton télécharger + boutons copy */
.capture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  align-items: center;
}
.capture-copy-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; flex-basis: 100%; margin-top: 5px; }
[data-theme="light"] .capture-stage { background: radial-gradient(ellipse at center, rgba(0,0,0,.025), transparent 65%); }
[data-theme="cde"] .capture-stage { background: none; padding: 1rem 0; }

/* Hero stats ribbon : info dense, séparateur middle-dot sans glow */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin: .35rem 0 0;
  font-size: .78rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: .04em;
}
.hero-stats span { display: inline-flex; align-items: center; }
.hero-stats span + span::before { content: '·'; margin-right: 1rem; color: var(--accent); opacity: .6; }

/* Promo : brackets + sizing + hl extension */
.capture-promo { --cf-size: 18px; --cf-weight: 2px; }
.capture-promo.capture-frame::after { inset: 0; opacity: .4; }
.capture-promo-sub { font-size: 1.05rem; max-width: 540px; }
.capture-promo-ctas .btn { padding: .8rem 1.6rem; font-size: .95rem; }
.capture-promo-ctas .btn-primary:hover { transform: translateY(-1px); }
.capture-promo-title .hl {
  background: var(--accent);
  color: var(--on-accent);
  padding: .05em .25em;
  border-radius: 2px;
}
[data-theme="cde"] .capture-promo { padding: 2rem 0; }

/* Embed inputs : contraste mono lime */
.capture-embed .form-input.input-copy {
  background: var(--bg);
  border-color: var(--border);
  color: var(--accent);
  font-size: .78rem;
}
.capture-embed .form-input.input-copy:focus { border-color: var(--accent); }

/* Hero title plus grand sur page résultat */
.capture-result-page .hero-title { font-size: clamp(2.2rem, 6vw, 3.8rem); }

/* Fade-up animations cascadées */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-d1 { animation-delay: .1s; }
.fade-up-d2 { animation-delay: .22s; }
.fade-up-d3 { animation-delay: .35s; }

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
  margin: 1rem 0 0;
}
.thumb-card {
  display: block;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: .75rem;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}
.thumb-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.thumb-meta { font-size: .78rem; margin: 0 0 .5rem; }
.thumb-card img {
  display: block; width: 100%; height: auto;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid var(--border);
}
@media (max-width: 900px) {
  .capture-layout { grid-template-columns: 1fr; }
  .thumb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .thumb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ─── Confidentialité / legal ─────────────────────────────── */
.sb-privacy-hero {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text-dim);
  margin-bottom: .75rem;
}
.breadcrumb-bar a { color: var(--text-dim); }
.breadcrumb-bar a:hover { color: var(--accent); }
.sb-privacy-hero h1 { margin-bottom: .35rem; }

.sb-privacy-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2.5rem 0 3rem;
}
.sb-toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.sb-toc-title {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-dim); margin-bottom: .75rem;
}
.sb-toc-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
  counter-reset: toc;
}
.sb-toc-list li { counter-increment: toc; }
.sb-toc-list a {
  display: flex; align-items: baseline; gap: .45rem;
  font-size: .82rem; color: var(--text-muted);
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: var(--radius);
  line-height: 1.4;
  transition: background var(--transition), color var(--transition);
}
.sb-toc-list a::before {
  content: counter(toc) ".";
  font-size: .72rem; color: var(--text-dim); flex-shrink: 0;
}
.sb-toc-list a:hover,
.sb-toc-list a.active { background: var(--accent-dim); color: var(--accent); }
.sb-toc-list a.active::before { color: var(--accent); }

.sb-privacy-body { min-width: 0; }
.sb-section { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); }
.sb-section h2 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0 0 1rem; font-family: var(--font-head); }
.sb-section p  { font-size: .9rem; color: var(--text-muted); line-height: 1.8; margin: 0 0 .85rem; }
.sb-section a:not(.btn)       { color: var(--accent); }
.sb-section a:not(.btn):hover { color: var(--text); }

.sb-list { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-direction: column; gap: .4rem; }
.sb-list li { font-size: .9rem; color: var(--text-muted); line-height: 1.6; padding-left: 1.1rem; position: relative; }
.sb-list li::before { content: "-"; position: absolute; left: 0; color: var(--text-dim); }

.sb-table {
  width: 100%; border-collapse: collapse; font-size: .88rem;
  margin-top: .85rem;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
}
.sb-table th, .sb-table td {
  padding: .6rem 1rem; text-align: left;
  border-bottom: 1px solid var(--border);
  line-height: 1.55; vertical-align: top;
}
.sb-table tr:last-child th, .sb-table tr:last-child td { border-bottom: none; }
.sb-table th { background: var(--bg-raised); font-weight: 600; color: var(--text); width: 36%; }
.sb-table--cookies th:first-child, .sb-table--cookies td:first-child { width: 20%; }
.sb-table--cookies { display: block; overflow-x: auto; }
.sb-table td { color: var(--text-muted); }
.sb-table a  { color: var(--accent); }

.sb-cta-box {
  margin-top: 1.5rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.sb-cta-box p { font-size: .88rem; color: var(--text-muted); margin: 0; }

@container col-main (max-width: 700px) {
  .sb-privacy-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .sb-toc { position: static; border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; }
}

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.faq-cat {
  font-size: 1rem; font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .06em;
  margin: 2rem 0 .5rem;
  font-family: var(--font-body);
}
h2.faq-cat[hidden] { display: none; }
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: .98rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem; color: var(--accent);
  flex-shrink: 0; line-height: 1;
  transition: transform var(--transition);
}
.faq-item[open] summary::after  { content: "−"; }
.faq-item[open] summary { color: var(--accent); border-bottom: 1px solid var(--border); }
.faq-answer { padding: 1rem 1.25rem; color: var(--text-muted); font-size: .93rem; }
.faq-answer p { margin: 0 0 .75em; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--accent); }

/* FAQ controls : search + pills */
.faq-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}
.faq-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.faq-search-icon {
  position: absolute;
  left: .85rem;
  color: var(--text-dim);
  pointer-events: none;
}
.faq-search {
  width: 100%;
  padding: .7rem 2.4rem .7rem 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.faq-search::placeholder { color: var(--text-dim); }
.faq-search::-webkit-search-cancel-button { display: none; }
.faq-search-clear {
  position: absolute;
  right: .55rem;
  width: 1.6rem; height: 1.6rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--transition), border-color var(--transition);
}
.faq-search-clear:hover { color: var(--accent); border-color: var(--accent); }
.faq-search-clear[hidden] { display: none; }

.faq-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.faq-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  white-space: nowrap;
}
.faq-pill:hover {
  color: var(--text);
  border-color: var(--text-dim);
}
.faq-pill.active {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}
.faq-pill-count {
  display: inline-block;
  min-width: 1.4em;
  padding: .05rem .35rem;
  background: var(--bg-raised);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}
.faq-pill.active .faq-pill-count {
  background: rgba(10,12,16,.18);
  color: var(--on-accent);
}

.faq-item.is-hidden { display: none; }
.faq-item.is-fading {
  opacity: .45;
  mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 95%);
  pointer-events: none;
}
.faq-item.is-fading summary::after { color: var(--text-dim); }

.faq-empty {
  padding: 2rem 1rem;
  text-align: center;
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.faq-more {
  display: flex;
  justify-content: center;
  margin-top: -1.5rem;
  padding: 1.5rem 0 .5rem;
  position: relative;
  z-index: 1;
}
.faq-more[hidden] { display: none; }

/* ─── Glossaire ───────────────────────────────────────────── */
.gloss-section[hidden] { display: none; }
.gloss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .75rem;
  margin-top: .75rem;
  margin-bottom: 1rem;
}
.gloss-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  scroll-margin-top: 5rem;
}
.gloss-item.is-hidden { display: none; }
.gloss-term {
  font-weight: 700;
  font-family: var(--font-head);
  font-size: .98rem;
  color: var(--text);
  margin: 0 0 .45rem;
}
.gloss-term a {
  color: inherit;
  text-decoration: none;
}
.gloss-term a:hover { color: var(--accent); }
.gloss-def {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.gloss-def a { color: var(--accent); }
.gloss-def code {
  font-size: .82em;
  font-family: var(--font-mono);
  background: rgba(159, 239, 0, .08);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: .05rem .3rem;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .gloss-grid { grid-template-columns: 1fr; }
}

/* ─── Galerie compte ──────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.gallery-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  --cf-size: 14px;
  --cf-weight: 2px;
}
.gallery-card::after {
  content: '';
  position: absolute;
  pointer-events: none;
  inset: -4px;
  z-index: 2;
  background-image:
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent));
  background-size:
    var(--cf-weight) var(--cf-size), var(--cf-size) var(--cf-weight),
    var(--cf-weight) var(--cf-size), var(--cf-size) var(--cf-weight),
    var(--cf-weight) var(--cf-size), var(--cf-size) var(--cf-weight),
    var(--cf-weight) var(--cf-size), var(--cf-size) var(--cf-weight);
  background-position:
    top left,    top left,
    top right,   top right,
    bottom left, bottom left,
    bottom right,bottom right;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-card:hover::after { opacity: 1; }
[data-theme="cde"] .gallery-card::after { display: none; }

/* Delete button: discreet, top-right, hover-revealed */
.gallery-delete { position: absolute; top: 6px; right: 6px; z-index: 3; margin: 0; opacity: 0; transition: opacity var(--transition); }
.gallery-card:hover .gallery-delete,
.gallery-delete:focus-within { opacity: 1; }
.gallery-delete button {
  width: 28px; height: 28px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.18); color: #fff;
  cursor: pointer; transition: background var(--transition), border-color var(--transition);
}
.gallery-delete button:hover { background: rgba(200,40,40,.85); border-color: rgba(255,255,255,.35); }
.gallery-delete button svg { display: block; }
.gallery-thumb {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-raised);
}
.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block;
}
.gallery-info { padding: .6rem .75rem; }
.gallery-host {
  display: block;
  font-size: .82rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-decoration: none;
}
.gallery-host:hover { color: var(--accent); }
.gallery-meta { font-size: .75rem; color: var(--text-dim); margin-top: .15rem; }

/* ─── Planifier (scheduled jobs) ─────────────────────────── */
.sj-list { display: flex; flex-direction: column; gap: .75rem; }
.sj-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem;
  transition: border-color var(--transition);
}
.sj-card:hover { border-color: var(--accent); }
.sj-main   { flex: 1; min-width: 0; }
.sj-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .4rem; flex-wrap: wrap; }
.sj-host   { font-weight: 600; font-size: .95rem; color: var(--text); text-decoration: none; word-break: break-all; }
.sj-host:hover { color: var(--accent); }
.sj-meta    { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .78rem; color: var(--text-dim); }
.sj-opts    { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .5rem; }
.sj-badge-btn { border: none; cursor: pointer; transition: box-shadow var(--transition), filter var(--transition); }
.sj-badge-btn:hover { box-shadow: 0 0 0 1.5px currentColor; filter: brightness(1.2); }
.sj-badge-btn:disabled { cursor: not-allowed; opacity: .4; }
.badge-muted { background: rgba(255,255,255,.06); color: var(--text-dim); }
.sj-del-btn { background: none; border: none; cursor: pointer; font-family: inherit; font-size: .78rem; color: var(--text-dim); padding: .15rem .4rem; border-radius: var(--radius); transition: color var(--transition); flex-shrink: 0; margin-left: auto; }
.sj-del-btn:hover { color: var(--red); }
@media (max-width: 640px) {
  .sj-card { flex-direction: column; align-items: flex-start; }
}

/* Empty-state: starter use-cases */
.sj-empty { margin-bottom: 2rem; }
.sj-empty-lead { color: var(--text-muted); font-size: .95rem; margin: 0 0 1rem; }
.sj-starter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.sj-starter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem 1.1rem;
  display: flex; flex-direction: column; gap: .5rem;
  transition: border-color var(--transition), transform var(--transition);
}
.sj-starter-card:hover { border-color: var(--accent); }
.sj-starter-pill {
  align-self: flex-start;
  font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-dim);
  padding: .15rem .5rem;
  border-radius: 999px;
}
.sj-starter-title { font-size: 1rem; font-weight: 600; color: var(--text); margin: 0; line-height: 1.3; }
.sj-starter-desc  { font-size: .82rem; color: var(--text-dim); margin: 0; line-height: 1.45; flex: 1; }
.sj-starter-url   { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; color: var(--text-muted); word-break: break-all; }
.sj-starter-btn   { margin-top: .25rem; align-self: flex-start; }

/* Empty-state: ghost preview card */
.sj-preview-label {
  font-size: .78rem; color: var(--text-dim); margin: 0 0 .5rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.sj-preview-ghost {
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem;
  opacity: .65;
  pointer-events: none;
  user-select: none;
}
.sj-preview-ghost .sj-host { color: var(--text-muted); pointer-events: none; }

@media (max-width: 880px) {
  .sj-starter-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sj-preview-ghost { flex-direction: column; align-items: flex-start; }
}


/* ══════════════════════════════════════════════════════════════
   ADMIN-SPECIFIC COMPONENTS
   ══════════════════════════════════════════════════════════════ */

/* ─── Admin: shots grid ───────────────────────────────────── */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.shots-grid .shot-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s;
}
.shots-grid .shot-card:hover { border-color: var(--accent); }
.shots-grid .shot-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: top;
  background: var(--bg-raised);
}
.shots-grid .shot-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-raised);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: .75rem;
}
.shots-grid .shot-info { padding: .6rem .75rem .75rem; }
.shots-grid .shot-url {
  font-size: .78rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: .35rem;
}
.shots-grid .shot-meta { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }

/* ─── Admin: edit user ────────────────────────────────────── */
.edit-grid { display: grid; grid-template-columns: 1fr 380px; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .edit-grid { grid-template-columns: 1fr; } }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.info-row {
  display: flex; gap: .5rem;
  font-size: .82rem; color: var(--text-muted);
  flex-wrap: wrap; padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row strong { color: var(--text); min-width: 120px; flex-shrink: 0; }

/* ─── Admin: errors log ───────────────────────────────────── */
.badge-exception { background: rgba(245,158,11,.13); color: #f59e0b; border: 1px solid rgba(245,158,11,.33); }
.badge-fatal     { background: rgba(229,85,85,.13);  color: #e55;    border: 1px solid rgba(229,85,85,.33); }
.msg-cell  { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.path-cell { font-size: .75rem; font-family: var(--font-mono); color: var(--text-muted); white-space: nowrap; }
.url-cell  { font-size: .78rem; font-family: var(--font-mono); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.err-row--expandable:hover { cursor: pointer; }
.err-row--expandable:hover td { background: var(--bg-raised); }
.err-expand-hint { color: var(--text-dim); font-size: .75rem; margin-left: .2rem; }

/* ─── Admin: incidents ────────────────────────────────────── */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.status-dot.ongoing  { background: var(--amber); }
.status-dot.resolved { background: var(--accent); }
#resolved-at-wrap { transition: opacity .15s; }

/* ─── Admin: FAQ drag-reorder ─────────────────────────────── */
.faq-handle { color: var(--text-dim); cursor: grab; user-select: none; padding: 0 .25rem; font-size: 1rem; line-height: 1; }
.faq-handle:active { cursor: grabbing; }
tr.faq-row { transition: opacity .15s; }
tr.faq-row.is-dragging { opacity: .3; }
tr.faq-row.drag-over-top    td { box-shadow: inset 0  2px 0 0 var(--accent); }
tr.faq-row.drag-over-bottom td { box-shadow: inset 0 -2px 0 0 var(--accent); }
#reorder-status { font-size: .8rem; margin-left: .75rem; opacity: 0; transition: opacity .4s; color: var(--accent); }
#reorder-status.visible { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   CAPTURE OPTIONS (shared by capture form + tester)
   Migrated out of inline <style> in lib/capture_form.php so the
   tester page (which renders its own form) picks them up too.
   ══════════════════════════════════════════════════════════════ */
.capture-options { margin-top: 1rem; }
.capture-options-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.capture-options-row .form-group { flex: 1; min-width: 140px; margin: 0; }
@media (max-width: 1050px) { .capture-options-row .form-group { min-width: 100% !important; } }
.capture-flags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem .75rem;
  user-select: none;
}
.capture-flags .form-hint { display: inline; margin: 0; white-space: nowrap; }
@media (max-width: 1050px) { .capture-flags { grid-template-columns: 1fr; } }
.capture-options.disabled { opacity: .45; pointer-events: none; user-select: none; }
.capture-options.is-pdf      .opt-img-only { display: none; }
.capture-options:not(.is-pdf) .opt-pdf-only { display: none; }
.capture-progress {
  display: none;
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  align-items: center;
  gap: .75rem;
}
.capture-progress.active { display: flex; }
#capture-url-area { min-height: 2.75rem; }
#capture-url-area .capture-progress { margin-top: 0; }
.capture-spinner {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: sb-spin .7s linear infinite;
}
@keyframes sb-spin { to { transform: rotate(360deg); } }

/* ─── Anonymous "Advanced options" disclosure (homepage try-it) ─────────────
   Mirrors .faq-item summary so the affordance matches the rest of the site. */
.capture-nojs-anon { margin: .85rem 0 .25rem; }
.adv-options {
  margin-top: .75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.adv-options summary {
  padding: .75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: .92rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: color var(--transition);
  color: var(--text-muted);
}
.adv-options summary::-webkit-details-marker { display: none; }
.adv-options summary::after {
  content: "+";
  font-size: 1.25rem; color: var(--accent);
  flex-shrink: 0; line-height: 1;
}
.adv-options[open] summary::after { content: "−"; }
.adv-options[open] summary {
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}
.adv-options-body { padding: 1rem; }
.adv-options-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
}
.adv-options-cta .form-hint { margin: 0; }
.adv-options-cta-buttons { display: flex; gap: .5rem; flex-shrink: 0; }

/* ─── Inline result panel (homepage try-it) ─────────────────────────────── */
.capture-result {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  animation: sb-fade-in .35s ease-out;
}
.capture-result[hidden] { display: none; }
@keyframes sb-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.capture-result-head {
  display: flex;
  align-items: center;
  margin-bottom: .75rem;
}
.capture-result-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
}
.capture-result-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
}
.capture-result-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .85rem;
}
.capture-result-actions .btn { flex: 0 0 auto; }
.capture-result-cta {
  margin: .85rem 0 0;
  padding-top: .75rem;
  border-top: 1px dashed var(--border);
}

/* ══════════════════════════════════════════════════════════════
   LIVE API TESTER (/tester/api/)
   Three-row layout: Paramètres / Requête HTTP / Code prêt à coller.
   ══════════════════════════════════════════════════════════════ */
.tester-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.tester-form-pane,
.tester-request,
.tester-snippets,
.tester-result {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.tester-pane-title { margin: 0 0 .75rem; font-size: .95rem; }
.tester-pane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .5rem;
}
.tester-pane-head .tester-pane-title { margin: 0; }
.tester-pane-hint { font-size: .8rem; }

.tester-tab-nav {
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.tester-snippets .code-example,
.tester-request  .code-example {
  margin: .5rem 0 0;
}

.tester-submit { margin-top: .5rem; }
.tester-error  { margin-top: .75rem; }
.tester-progress {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .75rem;
  padding: .65rem .85rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tester-progress[hidden] { display: none; }
.tester-progress-text { font-size: .85rem; }

.tester-cta-block {
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px dashed var(--border);
}
.tester-cta-block .form-hint { margin-bottom: .65rem; }
.tester-cta-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.tester-cta-buttons .btn { flex: 1; min-width: 140px; text-align: center; }

.tester-result-title { margin: 0 0 .75rem; font-size: .95rem; }
.tester-result-body { display: flex; flex-direction: column; gap: .75rem; }
.tester-result-img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
}
.tester-result-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.tester-result-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--bg-raised);
  padding: .35rem .55rem;
  border-radius: var(--radius);
  font-size: .8rem;
  color: var(--text-muted);
}
.tester-result-json summary {
  cursor: pointer;
  font-size: .82rem;
  color: var(--text-muted);
  padding: .25rem 0;
}
.tester-result-json summary:hover { color: var(--accent); }
.tester-result-json[open] pre { margin-top: .5rem; }
.tester-result-teaser .text-muted { margin: 0; }

.form-group-flex-end { display: flex; align-items: flex-end; }
.form-group-full     { flex: 1 1 100%; }
.tester-pdf-landscape { margin: 0; }

/* ─── Terminal (phosphor) theme - easter egg² ────────────── */
[data-theme="term"] {
  --bg:          #080808;
  --bg-surface:  #0d0d0d;
  --bg-raised:   #111111;
  --border:      #1a3a1a;
  --border-lite: #122012;
  --text:        #33ff33;
  --text-muted:  #22aa22;
  --text-dim:    #197019;
  --accent:      #33ff33;
  --accent-dark: #22cc22;
  --accent-hover:#66ff66;
  --accent-glow: rgba(51,255,51,.25);
  --accent-dim:  rgba(51,255,51,.08);
  --on-accent:   #000000;
  --header-bg:   rgba(8,8,8,.97);
  --radius:      0px;
  --radius-lg:   0px;
  --font-head:   'IBM Plex Mono', 'Courier New', monospace;
  --font-body:   'IBM Plex Mono', 'Courier New', monospace;
  --font-mono:   'IBM Plex Mono', 'Courier New', monospace;
  --transition:  0s;
}

/* phosphor glow on headings + accent spans */
[data-theme="term"] h1,
[data-theme="term"] h2,
[data-theme="term"] h3,
[data-theme="term"] .accent,
[data-theme="term"] .hero-title {
  text-shadow: 0 0 12px rgba(51,255,51,.7), 0 0 30px rgba(51,255,51,.3);
}

/* CRT scan lines overlay */
html[data-theme="term"]::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,.12) 3px,
    rgba(0,0,0,.12) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

/* blinking block cursor on the egg button */
[data-theme="term"] .cde-egg {
  opacity: 1;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
  animation: term-blink 1s step-end infinite;
}
@keyframes term-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* no shadows or blurs */
[data-theme="term"] .site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: static;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) {
  [data-theme="term"] .site-header { position: relative; }
}
[data-theme="term"] .btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 10px rgba(51,255,51,.4);
}
[data-theme="term"] .btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 18px rgba(51,255,51,.6);
}
[data-theme="term"] .card,
[data-theme="term"] .stat-card,
[data-theme="term"] .capture-form,
[data-theme="term"] .pack-card {
  box-shadow: none;
  border-color: var(--border);
}

/* ─── Preferences page ───────────────────────────────────── */
.pref-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--border-lite);
  cursor: pointer;
  user-select: none;
  position: relative;
  isolation: isolate;
}
.pref-section-body .pref-row:last-child { border-bottom: none; }
.pref-row::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -1.25rem; right: -1.25rem;
  background: transparent;
  transition: background var(--transition);
  z-index: -1;
}
.pref-row:hover::before { background: var(--bg-raised); }
.pref-row-hl::before { display: none; }
.pref-row-hl:hover { background: rgba(159,239,0,.13); }
.pref-row-hl {
  background: var(--accent-dim);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
  padding: .9rem 1.25rem .9rem calc(1.25rem - 3px);
  margin: 0 -1.25rem;
  width: calc(100% + 2.5rem);
  box-sizing: border-box;
  border-bottom: none;
}
.pref-row-icon {
  flex-shrink: 0;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pref-row-hl .pref-row-icon { color: var(--accent); }
.pref-row-body { flex: 1; min-width: 0; }
.pref-row-label { display: block; font-weight: 500; color: var(--text); }
.pref-row-desc { display: block; font-size: .83rem; color: var(--text-muted); line-height: 1.5; margin-top: .2rem; }
.pref-toggle {
  flex-shrink: 0;
  position: relative;
  width: 36px;
  height: 20px;
}
.pref-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.pref-toggle-track {
  display: block;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: var(--bg-raised);
  border: 1.5px solid var(--border);
  position: relative;
  transition: background var(--transition), border-color var(--transition);
}
.pref-toggle input:checked ~ .pref-toggle-track {
  background: var(--accent);
  border-color: var(--accent);
}
.pref-toggle input:focus-visible ~ .pref-toggle-track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pref-toggle-thumb {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border);
  transform: translateY(-50%);
  transition: transform var(--transition), background var(--transition);
}
.pref-toggle input:checked ~ .pref-toggle-track .pref-toggle-thumb {
  transform: translateY(-50%) translateX(16px);
  background: #0a0c10;
}
.pref-section-hd {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.pref-section-body + .pref-section-hd { border-top: 1px solid var(--border); }
.pref-section-hd-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
}
.pref-section-sep  { font-size: .72rem; color: var(--text-dim); }
.pref-section-login { font-size: .78rem; color: var(--text-dim); }
.pref-section-body { padding: 0 1.25rem; }
.pref-pro-badge {
  font-size: .72rem;
  background: var(--accent);
  color: #0a0c10;
  padding: .1rem .45rem;
  border-radius: 3px;
  font-weight: 700;
}
.pref-disable-all {
  margin-left: auto;
  font-size: .75rem;
  color: var(--text-dim);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pref-disable-all:hover { color: var(--text-muted); }
.pref-upsell { font-size: .88rem; color: var(--text-muted); padding: 1rem 0; margin: 0; }
.pref-row-locked { opacity: .45; text-decoration: none; color: inherit; }
.pref-row-locked:hover { opacity: .65; }
.pref-row-locked::before { display: none; }
#save-btn { width: 10rem; }
.pref-lang-select {
  flex-shrink: 0;
  background: var(--bg-raised);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: .3rem .5rem;
  font-size: .85rem;
  font-family: inherit;
  cursor: pointer;
  appearance: auto;
}
.pref-lang-select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─── Utilities (replaces inline styles) ─────────────────── */

/* Spacing */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-section { margin-top: 4.5rem; }

/* Text */
.text-sm  { font-size: .85rem; }
.text-center { text-align: center; }

/* Link that inherits surrounding color (used inside coloured contexts) */
.link-inherit { color: inherit; text-decoration: underline; }

/* Card used as anchor - strips decoration */
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { text-decoration: none; color: inherit; }

/* "Learn more →" spans inside card-link */
.card-more { font-size: .85rem; }

/* Gallery browse link paragraph */
.gallery-link-row { font-size: .85rem; margin-top: .75rem; }

/* Button / CTA row */
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn-row--lg { gap: .75rem; }

/* Two-column feature card: prose on the left, single CTA on the right */
.card-split { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.card-split-cta { flex-shrink: 0; align-self: center; }

/* Dark-chrome variant for fullpage format card */
.fmt-chrome--dark { background: #080808; border-color: #1a1a1a; }
.fmt-chrome-bar--dark { background: #050505; color: #555; }

/* Gallery/bento info card text rows */
.fmt-info-sub { font-size: .82rem; color: var(--text-dim); line-height: 1.4; }

/* Section intro paragraph (immediately after a section heading) */
.section-intro { margin: .6rem 0 1.25rem; }
/* Centred attribution note below a demo section */
.section-note  { margin: 2rem 0 0; text-align: center; }
/* Full-width separator before bottom CTA */
.section-sep { border-top: 1px solid var(--border); margin: 3rem 0 2rem; }
/* Centred CTA link after demo section */
.section-cta   { margin-top: 1rem; text-align: center; justify-content: center; flex-direction: column; align-items: center; gap: .75rem; }

/* Breadcrumb nav */
.breadcrumb { margin-bottom: 1.5rem; font-size: .85rem; color: var(--text-dim); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { margin: 0 .4rem; color: var(--border); }

/* Narrow card (activate / narrow forms) */
.card--narrow { max-width: 400px; }

/* Card with accent-border on all four sides (contrast to card-accent which is left-only) */

/* Pagination / pager row */
.pager-row { display: flex; gap: .4rem; margin-top: 1.5rem; flex-wrap: wrap; align-items: center; }
.pager-row--sm { gap: .5rem; align-items: center; }
.pager-dots { padding: 0 .15rem; color: var(--text-dim); }

/* Gallery header row (title + count) */
.gallery-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.gallery-header p { margin: .25rem 0 0; }

/* Gallery filter form */
.gallery-filter { margin-bottom: 1.5rem; display: flex; gap: .5rem; align-items: stretch; }
.gallery-filter .form-input, .gallery-filter .btn { height: 2.4rem; }
.gallery-filter .btn { padding-top: 0; padding-bottom: 0; }
.gallery-filter .form-input { max-width: 300px; background: transparent; }
.gallery-filter .btn-ghost {
  border-color: var(--border);
  background: var(--bg-raised);
  color: var(--text-dim);
  padding-left: .9rem; padding-right: .9rem;
}
.gallery-filter .btn-ghost svg { display: block; }
.gallery-filter .btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-raised); }

/* Card with no padding (full-bleed table/content) */
.card--flush { padding: 0; overflow: hidden; }

/* Scrollable wrapper for wide tables */
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 560px; }

/* Inline stat/tag text in log tables */
.log-url       { width: 100%; overflow-wrap: anywhere; word-break: break-word; font-size: .85rem; }
.log-url a     { color: var(--text-muted); text-decoration: none; }
.log-url a:hover { text-decoration: underline; }
.log-path      { color: var(--text-dim); }
.log-error     { font-size: .75rem; color: #f87171; font-family: var(--font-mono); }
.log-meta { font-size: .78rem; color: var(--text-dim); white-space: nowrap; }
.log-empty td { padding: 2.5rem; text-align: center; color: var(--text-dim); }

/* Badge variants for neutral/dim states (no colour meaning) */
.badge-neutral { background: var(--bg-raised); color: var(--text-muted); }
.badge-dim     { background: var(--bg-raised); color: var(--text-dim); }

/* Prevent text wrapping */
.text-nowrap { white-space: nowrap; }

/* Full-column empty-state block inside a CSS grid */
.grid-full-col { grid-column: 1 / -1; padding: 2rem 0; text-align: center; }
.gallery-empty { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 3rem 1rem; }
.gallery-empty p { margin-bottom: 0; }

/* Card row: space-between flex with baseline alignment */
.card-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
/* Tighter card row for section headers with center-align */
.card-row--center { align-items: center; }

/* Quota bar fixed height */
.quota-bar--sm { height: 6px; }

/* Quota stats label (mono small) */
.quota-stats { font-size: .8rem; font-family: var(--font-mono); color: var(--text-muted); }

/* Credit reserve line */
.credit-reserve { margin-top: .5rem; font-size: .8rem; color: var(--accent); }

/* Chart canvas */
.chart-canvas { width: 100%; display: block; }

/* API key input (grows to fill) */
.input-flex { display: flex; gap: .5rem; align-items: center; }
.input-flex .form-input { flex: 1; cursor: copy; }

/* Recent captures list */
.recent-shots { display: flex; flex-direction: column; }
.recent-shot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.recent-shot--sep { border-top: 1px solid var(--border-lite); }
.recent-shot-url { font-size: .88rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.recent-shot-date { font-size: .78rem; color: var(--text-dim); flex-shrink: 0; }

/* Card section header with trailing action link */
.card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* Stat value sub-label (e.g. "/ 500" after the big number) */
.stat-sub { font-size: 1rem; color: var(--text-dim); font-weight: 400; }

/* Spacing helper for card stacks */
.mb-section { margin-bottom: 1.5rem; }

/* CTA button inside an alert - breaks to its own line */
.alert-cta { display: block; width: fit-content; margin-top: .5rem; }

/* Extra-small bottom margin for tight card sub-headers */
.mb-xs { margin-bottom: .6rem; }
.mb-sm { margin-bottom: .75rem; }
.mb-md { margin-bottom: 1.25rem; }

/* Additional spacing utilities */
.m-0  { margin: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-xs { margin-top: .5rem; }
.mt-sm { margin-top: .75rem; }
.mt-md { margin-top: 1.25rem; }
.mt-lg { margin-top: 1.5rem; }
.mb-lg { margin-bottom: 1.5rem; }

/* Display helpers */
.d-none  { display: none; }
.d-block { display: block; }
.text-right { text-align: right; }
.overflow-x { overflow-x: auto; }
.flex-shrink-0 { flex-shrink: 0; }
.text-transparent { color: transparent; }
.opacity-muted { opacity: .6; }

/* Full-viewport centering for standalone (no-template) pages */
.page-center { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1.5rem; }
.page-center-col { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 2rem 1rem; }

/* Code / pre block inside cards (not .code-example - just raw <pre>) */
.pre-block { background: var(--surface-2, var(--surface)); padding: .85rem 1rem; border-radius: 6px; overflow-x: auto; font-size: .82rem; margin: .75rem 0; }
.pre-block--flush { margin: 0; }

/* Prose list inside a .card - strips default margins */
.card-list { padding-left: 1.25rem; line-height: 1.9; margin: 0; }
.card-list-loose { padding-left: 1.25rem; line-height: 1.8; }

/* Section CTA row - flex wrap, consistent gap */
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.cta-row--center { justify-content: center; }
.cta-row--mt { margin-top: 1.5rem; }

/* Divider row inside a card */
.card-divider { border-top: 1px solid var(--border); margin: 1.25rem 0; padding-top: 1.25rem; }
.card-divider--flex { border-top: 1px solid var(--border); margin: 1.25rem 0; padding-top: 1.25rem; display: flex; gap: .75rem; flex-wrap: wrap; }

/* Accent quote / callout block inside prose */
.callout-accent { border-left: 3px solid var(--accent); padding-left: 1.5rem; margin-top: 1.5rem; }

/* ─── Auth standalone page layout ────────────────────────── */

/* Inner wrapper in standalone auth pages (login, sign-up, etc.) */
.auth-wrap { width: 100%; max-width: 400px; }

/* Logo link centered with bottom margin */
.auth-logo { display: flex; justify-content: center; margin-bottom: 2rem; }

/* Footer area inside auth card (links to other auth pages) */
.auth-footer { margin-top: 1rem; display: flex; flex-direction: column; gap: .4rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.auth-footer a { font-size: .88rem; color: var(--text-muted); }

/* Card headings inside auth/form cards */
.card-title       { font-size: 1.25rem; margin: 0 0 1.25rem; }
.card-title--sm   { font-size: 1.25rem; margin: 0 0 1rem; }
.card-title--tight{ font-size: 1.25rem; margin: 0 0 .25rem; }

/* Subtitle / hint paragraph under a card heading */
.text-hint { font-size: .85rem; color: var(--text-muted); margin: 0 0 1.25rem; }

/* Off-screen honeypot / decoy inputs (anti-spam) */
.sr-decoy { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Password-strength label line */
.pwd-label-hint { font-size: .75rem; color: var(--text-dim); margin-top: .25rem; }

/* Password field wrapper with toggle button */
.pwd-wrap { position: relative; }
.pwd-wrap .form-input { padding-right: 2.5rem; }
.toggle-pwd {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-dim); padding: 0; line-height: 1;
}

/* Password-match feedback line */
.match-msg { font-size: .75rem; margin-top: .25rem; color: var(--text-dim); }

/* Checkbox label row (newsletter opt-in, etc.) */
.label-check { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; }
.check-input  { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; margin-top: .2rem; flex-shrink: 0; }
.check-title  { display: block; font-weight: 500; color: var(--text); }
.check-desc   { display: block; font-size: .83rem; color: var(--text-muted); line-height: 1.5; margin-top: .2rem; }

/* Optional-label suffix */
.text-dim-opt { color: var(--text-dim); }

/* ─── widget-auth-footer (login/sign-in cards) ───────────── */
/* Existing .widget-auth-footer gets border via the class below when used standalone */
.auth-card-footer { padding-top: 1rem; border-top: 1px solid var(--border); }

/* ─── Confirmation / error pages ─────────────────────────── */

/* Payment confirmed wrapper */
.payment-confirm-wrap {
  max-width: 560px; margin: 4rem auto; text-align: center;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 3rem 2.5rem 2.75rem;
  position: relative; overflow: hidden;
}
.payment-confirm-wrap::before {
  content: ""; position: absolute; top: -45%; left: 50%; transform: translateX(-50%);
  width: 340px; height: 340px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
}
.payment-confirm-wrap > * { position: relative; z-index: 1; }
.confirm-badge {
  width: 88px; height: 88px; margin: 0 auto 1.6rem; border-radius: 50%;
  display: grid; place-content: center;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 8px var(--accent-dim), 0 10px 34px rgba(159,239,0,.28);
  animation: confirm-pop .45s cubic-bezier(.18,.89,.32,1.28) both;
}
.confirm-badge svg { width: 46px; height: 46px; display: block; }
.confirm-badge svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: confirm-check .4s .28s ease forwards; }
@keyframes confirm-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes confirm-check { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .confirm-badge { animation: none; }
  .confirm-badge svg path { animation: none; stroke-dashoffset: 0; }
}
/* CTA row centered with gap */
.cta-flex { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* Error page (404, 500) */
.error-page { text-align: center; padding: 4rem 0; }
.error-code  { font-family: var(--font-head); font-size: 6rem; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -.02em; }
.error-h1    { margin: .5rem 0 .75rem; }
.error-body  { margin-bottom: 2rem; }

/* ─── Pro page ────────────────────────────────────────────── */

/* Pricing cards in hero: monthly + annual side by side */
.pro-plans              { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 720px; margin: 1.5rem 0 .75rem; }
.pro-plan               { position: relative; padding: 1.5rem 1.4rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-surface); display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: .3rem; }
.pro-plan--featured     { border-color: var(--accent); background: var(--accent-dim); }
.pro-plan-ribbon        { position: absolute; top: -.7rem; right: 1rem; background: var(--accent); color: #0a0c10; font-size: .68rem; font-weight: 700; letter-spacing: .03em; padding: .22em .7em; border-radius: 999px; text-transform: uppercase; }
.pro-plan-label         { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); }
.pro-plan--featured .pro-plan-label { color: var(--accent); }
.pro-plan-price         { font-family: var(--font-head); font-size: clamp(2.2rem, 6vw, 2.8rem); font-weight: 800; color: var(--accent); line-height: 1; margin: .15rem 0 .25rem; white-space: nowrap; }
.pro-plan-per           { font-size: .38em; font-weight: 600; color: var(--text-muted); margin-left: .1em; white-space: nowrap; }
.pro-plan-note          { font-size: .82rem; color: var(--text-dim); min-height: 1.2em; }
.pro-plan-form          { width: 100%; margin-top: auto; padding-top: .75rem; }
.pro-plan-form .btn     { width: 100%; }
.pro-consent            { margin-bottom: .7rem; text-align: left; }
.pro-consent-box        { display: flex; gap: .65rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-surface); font-size: .79rem; line-height: 1.45; color: var(--text-muted); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; user-select: none; -webkit-user-select: none; }
.pro-consent-box:hover  { border-color: var(--accent-dark); }
.pro-consent-box:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); box-shadow: 0 0 0 1px var(--accent-dim); }
.pro-consent-link       { display: inline-block; margin-top: .45rem; font-size: .76rem; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
.pro-consent-link:hover { border-bottom-color: var(--accent); }
.pro-plan-cta           { width: 100%; margin-top: auto; }
.pro-plan-foot          { font-size: .8rem; color: var(--text-muted); max-width: 720px; margin: .25rem 0 1.5rem; }

/* Stack cards when main column is narrow:
   - <600px: viewport itself is narrow (no aside)
   - 901-1050px: aside (300px) is visible but main col can't fit 2 cards comfortably */
@media (max-width: 600px),
       (min-width: 901px) and (max-width: 1050px) {
  .pro-plans { grid-template-columns: 1fr; }
  .pro-plan-form, .pro-plan-cta { margin-top: 1rem; }
}

/* Dedicated box (highlighted upsell block) */
.dedicated-box     { border: 2px solid var(--accent); border-radius: var(--radius-lg); padding: 2rem 1.75rem; margin: 2rem 0; background: var(--accent-dim); }
.dedicated-box--soft { border: 1px solid var(--border); background: var(--bg-surface); }
.dedicated-eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6rem; }
.dedicated-h2      { font-size: 1.7rem; margin: 0 0 .6rem; }
.dedicated-desc    { color: var(--text-muted); margin: 0 0 1.5rem; max-width: 520px; }
.dedicated-stats   { display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.dedicated-stat-val{ font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.dedicated-stat-lbl{ font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }

/* ─── API key / recharger pages ──────────────────────────── */

/* Two-column grid for viewport/format info tables */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }

/* FAQ section header inside a card */
.faq-card-head { margin-top: 0; font-size: 1.05rem; margin-bottom: .75rem; }

/* Collapsible FAQ items inside a card */
.faq-details { margin-bottom: .5rem; }
.faq-summary  { cursor: pointer; font-weight: 500; padding: .35rem 0; }
.faq-answer   { padding: .5rem 0 .25rem 0; }

/* Pack list intro paragraph with flex-wrap links */
.pack-links { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Stat value with transform (infinity symbol) */
.stat-value--xl { transform: scale(1.6); }

/* Alert inner CTA margin */
.alert-inner-cta { margin-top: .75rem; }

/* White-label card: flex split with shrink-0 CTA */
.wl-card { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.wl-card-body p { margin: .3rem 0 0; }

/* Steps CTA button row inside key-steps card */
.steps-cta { margin-top: 1.5rem; display: flex; gap: .75rem; flex-wrap: wrap; }

/* Comparison table: flush card variant already covered by .card--flush */

/* Pro table: centered th/td */
.tbl-center { text-align: center; }
.tbl-highlight td { background: var(--surface-accent, rgba(132,204,22,.06)); font-weight: 600; }
.tbl-highlight td:first-child { border-left: 2px solid var(--accent); padding-left: calc(.75rem - 2px); }
.tbl-sep td { background: var(--surface-muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); padding: .35rem .75rem; pointer-events: none; }
.tbl-sep[hidden] { display: none; }

/* ─── Overline label (small-caps eyebrow above a heading) ─── */
.label-overline { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem; }

/* ─── Hero footnote (dim note beneath hero CTAs) ──────────── */
.hero-footnote { font-size: .85rem; margin-top: 1rem; }

/* ─── Ordered/unordered list with comfortable line-height ─── */
.list-body { padding-left: 1.25rem; line-height: 1.8; }

/* ─── Dedicated page stat bar ─────────────────────────────── */
.ded-stats      { display: flex; padding: 0; overflow: hidden; margin-top: 2rem; }
.ded-stat       { flex: 1; text-align: center; padding: 1.1rem .75rem; }
.ded-stat--sep  { border-right: 1px solid var(--border); }
.ded-stat-val   { font-family: var(--font-head); font-size: clamp(1.3rem,4vw,2rem); font-weight: 800; color: var(--accent); white-space: nowrap; }
.ded-stat-label { font-size: .78rem; color: var(--text-muted); margin-top: .25rem; }

/* ─── Dedicated "who is it for" card sub-text ─────────────── */
.who-card-sub { margin: .4rem 0 0; font-size: .88rem; }

/* ─── Dedicated page bottom CTA card ──────────────────────── */
.ded-cta-card  { margin-top: 2.5rem; text-align: center; padding: 2rem 1.5rem; }
.ded-cta-title { font-size: 1.4rem; }
.ded-cta-sub   { max-width: 480px; margin: .75rem auto 1.5rem; }
.ded-cta-note  { font-size: .82rem; margin-top: 1rem; }

/* ─── Pricing plan card body + feature grid ───────────────── */
.tarif-plan-body { flex: 1; padding: 1.75rem 2rem; }
.tarif-plan-head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
/* auto-fit + minmax(180px, 1fr) = grid switches between 2-col and 1-col automatically
   based on available width (no discrete breakpoint). 2 cols when ≥ ~392 px, 1 col below. */
.tarif-plan-feat { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .45rem 2rem; font-size: .875rem; }
.tarif-plan-feat li { display: flex; gap: .5rem; }
.tarif-tick     { color: var(--accent); font-weight: 700; flex-shrink: 0; }
.tarif-plan-val  { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1; white-space: nowrap; }
.tarif-plan-unit { font-size: .35em; font-weight: 600; color: var(--text-muted); margin-left: .15em; }
.tarif-plan-sub  { color: var(--text-dim); font-size: .8rem; margin: .4rem 0 1rem; }
/* Comparison callback-mode strip: CTA side */
.tarif-cb-actions { flex-shrink: 0; display: flex; gap: .5rem; flex-wrap: wrap; }

/* ─── Contact form helpers ─────────────────────────────────── */
.textarea--tall     { min-height: 180px; }
.contact-submit-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-top: .5rem; }

/* ─── CLI reference tables ─────────────────────────────────── */
.card--table     { overflow-x: auto; padding: 0; }
.cli-table       { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cli-thead tr    { background: var(--surface-muted); text-align: left; }
.cli-th          { padding: .6rem .8rem; }
.cli-td          { padding: .5rem .8rem; }
.cli-tr-highlight { background: var(--surface-accent, rgba(132,204,22,.07)); }
.cli-td--nowrap  { white-space: nowrap; }

/* ─── Generic page-bottom action row ──────────────────────── */
.page-actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── Card modifier: centred content ──────────────────────── */
.card--center { text-align: center; }

/* ─── Pricing plan card layout modifiers ──────────────────── */
.tarif-plan-free { margin: 2rem 0; padding: 0; overflow: hidden; border-left: 4px solid var(--accent); }
.tarif-plan-pro  { margin: 2rem 0; padding: 0; overflow: hidden; border: 1px solid var(--accent); }
/* Subtle background tint on the price column gives visual separation
   without a border-toggle (border-left desktop ↔ border-top mobile),
   which used to paint at stale coordinates during the 900px reflow
   and caused brief white bars during active resize. */
/* Price button: full-width */
.tarif-plan-btn { width: 100%; box-sizing: border-box; }
/* Plan section heading */
.tarif-plan-h { font-size: 1.1rem; margin-bottom: 1.25rem; }

/* ─── Card-grid with custom min-column sizes ──────────────── */
.card-grid--auto-180 { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); }
.card-grid--auto-220 { grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
/* Fixed 3-col grid (responsive 3 → 2 → 1) + plus de gap pour respirer. Eviter
   l'orphelin "N+1" qu'on a avec auto-fit quand on a 6 cards.
   Container-query sur col-main (pas @media) : ces grilles vivent dans la colonne
   de contenu de la mise en page sidenav, plus etroite que le viewport. */
.card-grid--3col { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@container col-main (max-width: 720px) { .card-grid--3col { grid-template-columns: repeat(2, 1fr); } }
@container col-main (max-width: 440px) { .card-grid--3col { grid-template-columns: 1fr; } }

/* Red text color helper */
.text-red { color: var(--red); }

/* ─── Account pages: shared helpers ─────────────────────── */

/* Inline badge with raised background (log/callback options column) */
.badge-raised     { background: var(--bg-raised); color: var(--text-muted); }
.badge-raised-dim { background: var(--bg-raised); color: var(--text-dim); }

/* Alert with small bottom margin (stacked error list) */
.alert-mb { margin-bottom: .6rem; }

/* Pager info text between Prev/Next buttons */
.pager-info { font-size: .83rem; color: var(--text-dim); padding: 0 .25rem; }

/* Back button with top margin */
.back-btn-mt { margin-top: 1rem; }

/* Export page paragraphs */
.export-p-0 { margin-top: 0; }
.export-sub { color: var(--text-muted); font-size: .88rem; }

/* Success state: circular icon + text layout */
.success-box  { display: flex; align-items: flex-start; gap: 1rem; }
.success-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.success-title  { font-weight: 600; color: var(--text); margin-bottom: .3rem; }
.success-sub    { font-size: .88rem; color: var(--text-muted); }
.success-footer { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.success-footer--flex { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); display: flex; gap: .75rem; flex-wrap: wrap; }

/* Static (read-only) field display */
.form-static {
  padding: .6rem .75rem; background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .9rem; color: var(--text-muted);
}

/* Form bottom action row */
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Password field right padding (for toggle button) */
.pwd-input-pr { padding-right: 2.8rem; }

/* Password match label */
.match-label { margin-top: .3rem; font-size: .78rem; }

/* Prefs page: save button row */
.prefs-save-row { margin-top: 1.25rem; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }

/* Prefs page: security card flex layout */
.prefs-sec-card { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.prefs-sec-body { flex: 1; min-width: 240px; }
.prefs-sec-h3   { margin: 0 0 .35rem; }
.prefs-sec-p    { margin: 0; font-size: .88rem; color: var(--text-muted); }

/* Prefs page: other-actions card h3 */
.card-h3-actions {
  margin-top: 0; color: var(--text-muted); font-size: .85rem;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}

/* Card with explicit top margin */
.card-mt-2 { margin-top: 2rem; }

/* Details panel inner box */
.details-box {
  margin-top: 1rem; padding: 1rem; background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: var(--radius);
}

/* Details / summary base styles */
.details-summary {
  cursor: pointer; font-size: .88rem; color: var(--text-muted);
  list-style: none; display: flex; align-items: center; gap: .4rem; user-select: none;
}
.details-arrow { font-size: .7rem; transition: transform .2s; }

/* Danger zone: red-bordered card */
.danger-card { border-color: rgba(255,77,77,.3); }

/* Danger zone: inner form box */
.danger-box {
  margin-top: 1rem; padding: 1rem; background: rgba(255,77,77,.04);
  border: 1px solid rgba(255,77,77,.2); border-radius: var(--radius);
}

/* Danger zone: summary in red */
.danger-summary {
  cursor: pointer; font-size: .88rem; color: var(--red);
  list-style: none; display: flex; align-items: center; gap: .4rem; user-select: none;
}

/* Inline label hint (mono, dim, small) */
.form-label-hint { font-family: var(--font-mono); color: var(--text-dim); font-size: .85em; }

/* Form input with max-width constraint */
.input-max-sm { max-width: 320px; }

/* Delete account submit button base style */
.delete-btn { background: var(--red); color: #fff; border-color: var(--red); }

/* Note under delete button */
.delete-note { margin-top: .6rem; font-size: .78rem; color: var(--text-dim); }

/* Regen form-group inside details */
.regen-group { margin-bottom: .75rem; }

/* ─── Scheduled captures form ──────────────────────────── */

/* 2-col grid: format + viewport */
.sj-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

/* 2-col checkbox grid */
.sj-checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .75rem; margin-bottom: 1rem; user-select: none; }

/* 2-col grid with bottom margin (cookies + wait) */
.sj-grid-2-mb { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }

/* form-group with no margin (inside grid) */
.form-group-m0 { margin: 0; }

/* Dimmed checkbox label (Pro-gated) */
.check-dim { opacity: .65; }

/* Inline form-hint (inside label) */
.form-hint-inline    { display: inline; margin: 0; }
.form-hint-inline--nw { display: inline; margin: 0; white-space: nowrap; }

/* form-hint with small top margin (after checkbox) */
.form-hint-mt { margin: .25rem 0 0; }

/* Mail delivery divider section */
.mail-divider      { border-top: 1px solid var(--border); margin: 1.25rem 0; padding-top: 1.25rem; }
.mail-divider--flex { border-top: 1px solid var(--border); margin: 1.25rem 0; padding-top: 1.25rem; display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.mail-pro-body  { flex: 1; min-width: 0; }
.mail-pro-title { margin: 0 0 .25rem; font-weight: 600; font-size: .9rem; }

/* ─── Reports: timeline and KPI ────────────────────────── */

/* Year tab row */
.rpt-year-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.75rem; }

/* Year tab pill */
.rpt-year-tab { display: inline-block; padding: .35rem .8rem; border-radius: 4px; font-size: .85rem; font-weight: 400; text-decoration: none; color: var(--text-muted); border: 1px solid var(--border); }
.rpt-year-tab--active { font-weight: 700; background: var(--accent); color: #0a0c10; border-color: transparent; }

/* Report timeline flex container */
.rpt-timeline { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; line-height: 1; }

/* Report timeline pills */
.rpt-pill-year  { display: inline-flex; align-items: center; padding: .45rem 1rem; border-radius: 4px; font-size: .88rem; font-weight: 700; text-decoration: none; background: var(--accent); color: #0a0c10; white-space: nowrap; }
.rpt-pill-month { display: inline-flex; align-items: center; padding: .45rem 1rem; border-radius: 4px; font-size: .88rem; font-weight: 600; text-decoration: none; border: 1px solid var(--accent); color: var(--accent); background: transparent; white-space: nowrap; }
.rpt-pill-week  { display: inline-flex; align-items: center; padding: .35rem .75rem; border-radius: 4px; font-size: .82rem; font-weight: 400; text-decoration: none; border: 1px solid var(--border); color: var(--text-muted); background: var(--bg-raised); white-space: nowrap; }
.rpt-pill-sep   { display: inline-block; width: 1px; height: 22px; background: var(--border); margin: 0 .35rem; vertical-align: middle; }

/* Weekly reports tip */
.rpt-tip   { font-size: .83rem; color: var(--text-dim); margin-top: 1.25rem; }
.rpt-tip a { color: var(--accent); }

/* H1 with small bottom margin */
.rpt-h1 { margin-bottom: .25rem; }

/* Report content wrapper */
.rpt-wrap { margin-top: 1.5rem; }

/* Period subtitle (weekly date range) */
.rpt-subtitle { color: var(--text-dim); font-size: .85rem; margin-top: .25rem; }

/* KPI 3-col grid */
.rpt-kpi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; margin-bottom: 1.5rem; }

/* KPI card */
.rpt-kpi-card  { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.rpt-kpi-lbl   { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--text-dim); margin-bottom: .5rem; }
.rpt-kpi-val   { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.rpt-kpi-sub   { font-size: .8rem; color: var(--text-muted); margin-top: .35rem; }
.rpt-kpi-quota { font-size: .8rem; color: var(--text-dim); margin-top: .35rem; }
.rpt-delta     { margin-top: .5rem; font-size: .8rem; }

/* Horizontal bar row (domain/format/etc charts) */
.rpt-bar-row   { display: flex; align-items: center; gap: .75rem; margin-bottom: .55rem; }
.rpt-bar-label { width: 9rem; flex-shrink: 0; font-size: .85rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpt-bar-track { flex: 1; background: var(--border-lite); border-radius: 99px; height: 7px; overflow: hidden; }
.rpt-bar-fill  { height: 100%; border-radius: 99px; } /* width set inline (dynamic) */
.rpt-bar-pct   { width: 5.5rem; text-align: right; font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
.rpt-bar-pct-dim { color: var(--text-dim); }

/* Section heading (accent left border) */
.rpt-sec-h2 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); border-left: 3px solid var(--accent); padding-left: .6rem; margin: 2rem 0 .9rem; }

/* Sub-section label (Distribution, Avg render by format, etc.) */
.rpt-subsec-lbl    { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin: 0 0 .6rem; }
.rpt-subsec-lbl--mt { margin: 1.25rem 0 .6rem; }

/* Active days/months note */
.rpt-stat-note { font-size: .82rem; color: var(--text-dim); margin: .5rem 0 0; }

/* Prev/Next report navigation */
.rpt-nav { display: flex; justify-content: space-between; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }

/* Report type badge */
.rpt-badge          { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .15rem .5rem; border-radius: 3px; vertical-align: middle; margin-left: .5rem; }
.rpt-badge--accent  { background: var(--accent); color: #0a0c10; }
.rpt-badge--neutral { background: var(--bg-raised); color: var(--text-muted); border: 1px solid var(--border); }

/* ─── Sessions page ─────────────────────────────────────── */

.sess-intro    { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 60ch; }
.sess-ip       { font-family: var(--font-mono); font-size: .82rem; cursor: copy; }
.sess-id-code  { font-family: var(--font-mono); font-size: .82rem; color: var(--text-muted); }
.sess-date     { white-space: nowrap; color: var(--text-muted); }
.sess-right    { text-align: right; }
.sess-row-form  { margin: 0; }
.sess-kill-form { margin-top: 1.5rem; display: flex; justify-content: flex-end; }
.sess-note     { margin-top: 2rem; font-size: .83rem; color: var(--text-dim); max-width: 60ch; }
.sess-note a   { color: var(--text-muted); }
.loc-dim       { color: var(--text-dim); }
/* Lime badge without background (current session indicator) */
.badge-lime--ghost { background-color: transparent !important; }

/* ─── Waitlist page ─────────────────────────────────────── */

.wl-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: .5rem; }
.wl-badge   { font-size: .85rem; padding: .35em .7em; }
.wl-form    { display: inline; }
.wl-date    { font-size: .78rem; color: var(--text-dim); white-space: nowrap; }
/* Table with enforced minimum width */
.tbl-min420 { min-width: 420px; }
.tbl-min560 { min-width: 560px; }
.tbl-min580 { min-width: 580px; }
.tbl-log    { width: 100%; }

/* ─── Weekly reports table ──────────────────────────────── */

.wkly-detail-sum  { cursor: pointer; font-size: .83rem; color: var(--text-muted); }
.wkly-detail-body { margin-top: .5rem; font-size: .82rem; line-height: 1.7; color: var(--text-muted); }
.fw-600 { font-weight: 600; }

/* ─── Capture result / pending page utilities ───────────────── */

/* Standalone pending-page body layout (no template, flex-centered) */
.capture-pending-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; }

/* Logo link at the top of pending/queue pages */
.capture-pending-logo { display: block; margin-bottom: 2.5rem; text-align: center; }

/* Max-width wrapper for pending card */
.capture-pending-wrap { width: 100%; max-width: 480px; }

/* Small stat chip card (avg time, reliability, position) */
.stat-chip { padding: .55rem 1rem; text-align: center; flex: 0 0 auto; width: 7rem; min-width: 0; }
.stat-chip-val { font-size: 1.05rem; font-weight: 700; }
.stat-chip-val--accent { font-size: 1.05rem; font-weight: 700; color: var(--accent); }
.stat-chip-label { font-size: .72rem; margin-top: .15rem; }

/* Row of stat chips (avg / position / reliability) */
.stats-row { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }

/* Tip / action row below stat chips */
.tip-row { margin-top: 1.5rem; }

/* Card with generous padding */
.card--padded    { padding: 2.5rem 2rem; }
.card--padded-xl { padding: 3rem 2rem; }

/* Spinning indicator (no SVG - pure CSS border trick) */
.spinner-circle { margin: 1.75rem auto; width: 52px; height: 52px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--accent); animation: sb-spin 1s linear infinite; }

/* Countdown SVG wrapper */
.countdown-wrap { margin: 1.5rem auto; display: inline-block; }

/* Phase label (transitions between steps) */
.phase-label { min-height: 1.5em; transition: opacity .3s; }

/* "Patience" message below countdown */
.phase-label-msg { font-size: .88rem; margin-bottom: 1rem; }

/* Code URL truncated inside a chip or inline paragraph */
.code-url { max-width: min(42ch, 80vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }

/* Error page: URL line under heading */
.capture-error-url { font-size: .88rem; margin: .4rem 0 1rem; }

/* Partial screenshot wrapper */
.capture-partial-img { margin: 1.5rem 0; }

/* Partial screenshot caption */
.capture-partial-caption { font-size: .78rem; margin-top: .4rem; }

/* Fail action buttons row */
.capture-fail-btns { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Hero h1 tight bottom margin */
.hero-title-mb { margin-bottom: .25rem; }

/* Force word break for long URLs */
.word-break-all { word-break: break-all; }

/* Capture result layout: top margin */
.capture-layout-top { margin-top: 1.5rem; }

/* Embed card h2 */
.capture-embed-h2 { margin-top: 0; font-size: 1.1rem; }

/* Small label inside a field (monospace hint) */
.field-label-sm { font-size: .78rem; margin: .5rem 0; }

/* Inline input + copy button row */
.field-input-row { display: flex; gap: .5rem; }

/* Input with copy cursor, fills available space */
.input-copy { cursor: copy; flex: 1; min-width: 0; }

/* Compact copy icon button */
.btn-copy-icon { flex-shrink: 0; padding: .3rem .5rem; display: inline-flex; align-items: center; gap: .3rem; }

/* Compact share / icon button */
.btn-copy-sm { padding: .3rem .45rem; line-height: 1; display: inline-flex; align-items: center; }

/* Copy-link button with label */
.btn-copy-lnk { padding: .3rem .6rem; line-height: 1; display: inline-flex; align-items: center; gap: .35rem; }

/* Full capture preview image (v2 result) */
.capture-preview-img { max-width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: var(--radius-lg); }

/* Preview image with standard radius (partial / v1 thumb) */
.capture-preview-img--border { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); }

/* Simple preview image, no border */
.capture-preview-img--simple { max-width: 100%; height: auto; }

/* Download center block below preview */
.capture-dl-center { text-align: center; margin-top: .5rem; }

/* Small download / preview link */
.capture-dl-link { font-size: .82rem; }

/* Preview label (format . dimensions) */
.capture-preview-label { font-size: .8rem; margin-bottom: .75rem; }

/* 2-column grid for PDF download / open buttons */
.grid-2col-sm { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

/* Small top margin (PDF full-width button below grid) */
.mt-btn-sm { margin-top: .5rem; }

/* Card with accent left border (archive / permanent note) */
.card--accent-left { border-left: 3px solid var(--accent); padding-left: 1.5rem; }

/* Share row - v2 result page (no top border) */
.share-actions--v2 { padding: .5rem 0; margin-top: .5rem; display: flex; gap: .5rem; flex-wrap: nowrap; align-items: flex-start; }

/* Share row - v1 result page (with top border separator) */
.share-actions--v1 { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); display: flex; gap: .5rem; flex-wrap: nowrap; align-items: flex-start; }

/* "Partager" / "Share" label before share icons */
.share-label-sm { font-size: .78rem; padding-top: .4rem; flex-shrink: 0; }
.share-icons { display: flex; flex-wrap: wrap; gap: .375rem; flex: 1; min-width: 0; }

/* Field with top margin (second / third field in embed card) */
.field-mt { margin-top: 1rem; }

/* Justify flex children to center */
.justify-center { justify-content: center; }

/* Display flex */
.d-flex { display: flex; }

/* Flex column direction */
.d-flex-col { display: flex; flex-direction: column; }

/* Push a button/link to the bottom of a flex-col card */
.btn-push-end { margin-top: auto; align-self: flex-start; }

/* Negative top margin helper */
.mt-neg-xs { margin-top: -.5rem; }

/* ─── API doc / examples page utilities ──────────────────────── */

/* Alert with inline CTA on the right */
.alert--flex { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }

/* Param-group table row background */
.param-group-bg { background: var(--accent-dim); }

/* Param-group section label cell */
.param-group-cell { padding: .45rem .75rem 8px; font-size: .69rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }

/* Param-group section label cell with top border separator */
.param-group-cell--bordered { border-top: 2px solid var(--border); }

/* Inner padding for <details> body */
.details-inner { padding: 0 1rem 1rem; }

/* Details element without padding */
.details-flush { padding: 0; }

/* Table with small top margin */
.table-mt-sm { margin-top: .5rem; }

/* Slightly smaller body text note */
.text-note-sm { font-size: .875rem; }

/* Action link row at the bottom of API / examples pages */
.page-footer-links { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.page-footer-links--sm { margin-top: 2rem; display: flex; gap: .75rem; flex-wrap: wrap; }

/* Card-grid with top margin (use-case sub-grid) */
.card-grid-mt { margin-top: 1rem; }

/* Badge positioned inline with text */
.badge-inline { vertical-align: middle; font-size: .7rem; }

/* Bottom callout / CTA card with accent left border */
.card-callout { margin-top: 2rem; border-left: 3px solid var(--accent); padding-left: 1.5rem; }

/* Card-accent with explicit top margin */
.card-accent-mt { margin-top: 2rem; }

/* ─── Privacy page utilities ────────────────────────────────── */

/* Last section in privacy layout - no bottom border */
.sb-section--last { border-bottom: none; }

/* Dim muted note paragraph (GDPR contact footer) */
.text-note-muted { margin-top: .75rem; font-size: .88rem; color: var(--text-muted); }

/* Scheduled list with bottom margin */
.sj-list--mb { margin-bottom: 2rem; }

/* Inert ghost delete button (preview state, no pointer) */
.sj-del-btn--inert { cursor: default; }

/* display:contents - makes form invisible to flex/grid layout */
.d-contents { display: contents; }

/* Page intro paragraph: slightly larger, capped width */
.page-intro  { font-size: 1.05rem; max-width: 560px; }
/* Card with slightly reduced font size */
.card--sm-text { font-size: .95rem; }
/* Small font size utility (.9rem) */
.text-xs     { font-size: .9rem; }

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

/* CLI hub : version badge next to each language name (PHP / Python / Node.js).
   Auto-populated from each CLI source file via lib/cli_versions.php.
   The h3 wrapping the pill becomes a flex container so the 5 px gap is
   structural | the pill itself carries no margin. */
h3:has(> .cli-version-badge) {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.cli-version-badge {
  display: inline-block;
  margin: 0;
  padding: .1rem .45rem;
  font-family: var(--font-mono);
  font-size: .65em;
  font-weight: 400;
  color: var(--text-dim);
  background: rgba(159, 239, 0, .08);
  border: 1px solid var(--border);
  border-radius: 3px;
  vertical-align: middle;
  white-space: nowrap;
}
