/* =========================================================
   qr7 — Design ClicQR
   Instrument Serif (display) · Geist (body) · Geist Mono
   Apple-spacious · warm cream · premium micro-interactions
   ========================================================= */

/* ── Skip link (WCAG 2.4.1 — Niveau A) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 10px 20px;
  background: var(--accent, #7c5cff);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ── Texte lisible uniquement par les lecteurs d'écran (sr-only) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  /* Fonts */
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-serif:   'Instrument Serif', 'Times New Roman', serif;
  --font-body:    'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'Geist Mono', 'SF Mono', Menlo, ui-monospace, monospace;

  /* Accent — violet */
  --accent-50:  #f3f0ff;
  --accent-100: #e8e2ff;
  --accent-200: #d5c9ff;
  --accent-300: #b8a4ff;
  --accent-400: #9a7fff;
  --accent-500: #7c5cff;
  --accent-600: #6645f0;
  --accent-700: #5232d0;
  --accent-800: #4226a8;
  --accent-900: #341e84;
  --accent-ink-deep: #1e1057;

  --accent:      var(--accent-500);
  --accent-soft: color-mix(in oklch, var(--accent) 11%, transparent);
  --accent-ink:  var(--accent-900);
  --accent-strong: color-mix(in oklch, var(--accent) 92%, black);

  /* Warm cream palette */
  --bg:       #fafaf7;
  --bg-2:     #f3f1ec;
  --bg-3:     #e8e5dc;
  --surface:  #ffffff;
  --surface-2:#f3f1ec;

  /* Ink scale */
  --ink-900: #15140f;
  --ink-800: #2d2b24;
  --ink-700: #3a3833;
  --ink-500: #6b685f;
  --ink-400: #a8a59b;
  --ink-300: #c9c6bc;

  /* Lines */
  --line:        rgba(20, 18, 12, 0.08);
  --line-strong: rgba(20, 18, 12, 0.14);

  /* Card */
  --card:        var(--surface);
  --card-elev:   0 1px 2px rgba(20,18,12,.04), 0 12px 40px -12px rgba(20,18,12,.10);
  --card-elev-hi:0 1px 2px rgba(20,18,12,.04), 0 30px 80px -20px rgba(20,18,12,.18);

  /* Shadows */
  --shadow-soft: 0 1px 0 rgba(20,18,12,.03), 0 1px 2px rgba(20,18,12,.04), 0 4px 12px -4px rgba(20,18,12,.06);
  --shadow-card: 0 1px 0 rgba(20,18,12,.03), 0 1px 2px rgba(20,18,12,.05), 0 12px 32px -8px rgba(20,18,12,.10), 0 32px 60px -20px rgba(20,18,12,.08);
  --shadow-pop:  0 1px 0 rgba(20,18,12,.04), 0 2px 4px rgba(20,18,12,.06), 0 24px 48px -12px rgba(20,18,12,.16), 0 48px 80px -24px rgba(20,18,12,.14);
  --shadow-glow: 0 0 0 1px rgba(124,92,255,.18), 0 1px 2px rgba(20,18,12,.06), 0 24px 60px -16px rgba(124,92,255,.28), 0 48px 100px -24px rgba(124,92,255,.22);
  --shadow-inset:inset 0 1px 0 rgba(255,255,255,.6), inset 0 0 0 1px rgba(255,255,255,.2);

  /* Radii */
  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12:48px; --space-16:64px; --space-20:80px; --space-24:96px; --space-32:128px;

  --container: 1240px;
  --section-y: var(--space-24);

  /* Grid background */
  --grid-line: rgba(20, 18, 12, 0.045);
}

[data-theme="dark"] {
  --bg:       #0e0e0c;
  --bg-2:     #161613;
  --bg-3:     #1f1d18;
  --surface:  #181712;
  --surface-2:#1f1d18;

  --ink-900: #f5f3ec;
  --ink-800: #e0ddd3;
  --ink-700: #d3d0c6;
  --ink-500: #918d80;
  --ink-400: #5b5850;
  --ink-300: #3a3833;

  --line:        rgba(245, 243, 236, 0.08);
  --line-strong: rgba(245, 243, 236, 0.14);

  --accent-soft: rgba(124,92,255,.14);
  --accent-ink:  var(--accent-200);

  --card-elev:   0 1px 0 rgba(255,255,255,.03) inset, 0 12px 40px -12px rgba(0,0,0,.6);
  --card-elev-hi:0 1px 0 rgba(255,255,255,.04) inset, 0 30px 80px -20px rgba(0,0,0,.8);

  --shadow-soft: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  --shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -8px rgba(0,0,0,.45), 0 32px 60px -20px rgba(0,0,0,.4);
  --shadow-pop:  0 1px 2px rgba(0,0,0,.5), 0 24px 48px -12px rgba(0,0,0,.6), 0 48px 80px -24px rgba(0,0,0,.5);
  --shadow-glow: 0 0 0 1px rgba(167,139,250,.25), 0 24px 60px -16px rgba(124,58,237,.5);
  --shadow-inset:inset 0 1px 0 rgba(255,255,255,.05);

  --grid-line: rgba(245, 243, 236, 0.045);
}

[data-density="compact"] { --section-y: var(--space-16); }
[data-density="spacious"] { --section-y: var(--space-32); }

/* ============ Reset ============ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .018;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
[data-theme="dark"] body::before { mix-blend-mode: overlay; opacity: .04; }

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
  font-weight: 400;
}
p { margin: 0; text-wrap: pretty; }

/* ============ Layout ============ */

.container {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 var(--space-8);
}
.container-narrow {
  width: 100%; max-width: 920px;
  margin: 0 auto; padding: 0 var(--space-8);
}
.section { padding: var(--section-y) 0; position: relative; }
.section-tight { padding: calc(var(--section-y) * .7) 0; position: relative; }

.bg-grid {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
}
.bg-glow { position: relative; }
.bg-glow::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 18% 12%, color-mix(in oklch, var(--accent) 14%, transparent), transparent 60%),
    radial-gradient(45% 45% at 88% 80%, color-mix(in oklch, var(--accent) 10%, transparent), transparent 60%);
  pointer-events: none; z-index: 0;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--bg-2);
  color: var(--ink-500);
  font-size: 12px; font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 22%, transparent);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 22%, transparent); }
  50%       { box-shadow: 0 0 0 6px color-mix(in oklch, var(--accent) 12%, transparent); }
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-12);
}
.section-head h2 {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 400;
  margin: var(--space-5) 0 var(--space-4);
  letter-spacing: -0.03em;
}
.section-head h2 em {
  font-style: italic;
  color: var(--accent);
}
.section-head p {
  font-size: 18px;
  color: var(--ink-500);
  line-height: 1.6;
}

.ornament {
  display: inline-flex; gap: 6px;
  margin-bottom: var(--space-4);
}
.ornament span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-300);
}
.ornament span:nth-child(2) { background: var(--accent-500); }
.ornament span:nth-child(3) { background: var(--accent-700); }

/* ============ Buttons ============ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s, background .15s, color .15s;
  position: relative;
  isolation: isolate;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: var(--ink-900);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 20px -6px rgba(20,18,12,.4);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 12px 28px -8px rgba(20,18,12,.5);
}

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 24px -6px color-mix(in oklch, var(--accent) 60%, transparent);
}
.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 14px 30px -8px color-mix(in oklch, var(--accent) 70%, transparent);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink-900);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
}
.btn-secondary:hover {
  border-color: var(--accent-300);
  background: color-mix(in oklch, var(--accent) 4%, var(--surface));
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-700);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--ink-400); }

.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border: 1.5px solid var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--accent-300);
  color: var(--accent-ink);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }

/* CTA banner outline variant */
.cta-banner .btn-outline {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.cta-banner .btn-outline:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.65);
  color: #fff;
  transform: translateY(-2px);
}

/* ============ Header / Glass Pill Nav ============ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 12px 16px 0;
  pointer-events: none;
}

.nav {
  pointer-events: all;
  max-width: var(--container);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
  padding: 0 14px 0 20px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--surface) 80%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 4px 24px -8px rgba(20,18,12,.12);
  gap: var(--space-8);
  transition: background .25s, box-shadow .25s, border-color .25s;
}
[data-theme="dark"] .nav {
  background: color-mix(in oklch, var(--surface) 75%, transparent);
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 4px 24px -8px rgba(0,0,0,.5);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* QR pixel mark */
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--ink-900);
  position: relative; overflow: hidden;
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px; padding: 4px;
}
.brand-mark::before, .brand-mark::after { display: none; }

/* Generate pixel cells via background pattern */
.brand-mark {
  background-image:
    /* 3×3 grid with center empty = QR mark */
    radial-gradient(circle, var(--bg) 45%, transparent 46%);
  background-size: 33.33% 33.33%;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-color: var(--ink-900);
}

.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
  flex: 1; justify-content: center;
}
.nav-links a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-500);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink-900); background: var(--bg-2); }

.nav-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  align-items: center; justify-content: center;
  color: var(--ink-700);
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
}

.mobile-menu {
  display: none;
  pointer-events: all;
  max-width: var(--container);
  margin: 8px auto 0;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(20px);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-card);
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.mobile-menu a { padding: 11px 14px; display: block; font-weight: 500; color: var(--ink-900); border-radius: 12px; }
.mobile-menu a:hover { background: var(--bg-2); }

/* Auth header (pages login/register) */
.auth-header {
  padding: var(--space-5) var(--space-8);
}
.auth-header .brand {
  font-size: 20px;
}

/* ============ Hero ============ */

.hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 var(--section-y);
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 15% 15%, color-mix(in oklch, var(--accent-200) 55%, transparent), transparent 65%),
    radial-gradient(ellipse 55% 45% at 88% 20%, color-mix(in oklch, #fbcfe8 80%, transparent), transparent 65%),
    radial-gradient(ellipse 60% 45% at 72% 82%, color-mix(in oklch, var(--accent-100) 70%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 35% at 5% 88%, #fde68a, transparent 70%);
  filter: saturate(90%);
  opacity: .6;
}
[data-theme="dark"] .hero-bg { opacity: .28; filter: saturate(110%); }

.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 25%, transparent 75%);
  opacity: .5;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
}
@media (max-width: 1024px) { .hero-inner { grid-template-columns: 1fr; gap: var(--space-12); } }

.hero h1 {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  letter-spacing: -0.035em;
  margin-top: var(--space-5);
  line-height: 0.98;
}
.hero h1 .accent {
  font-style: italic;
  color: var(--accent);
}
.hero p.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-500);
  margin-top: var(--space-5);
  max-width: 560px;
  line-height: 1.6;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: var(--space-8);
}
.hero-trust {
  display: flex; flex-wrap: wrap; gap: var(--space-5);
  margin-top: var(--space-8);
  color: var(--ink-400); font-size: 13px;
  align-items: center;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { color: var(--accent); }
.hero-trust .sep { width: 1px; height: 14px; background: var(--line-strong); }
.hero-trust .stars { color: #f59e0b; letter-spacing: 1px; font-size: 12px; }

/* ============ Generator card ============ */

.gen-card {
  background: color-mix(in oklch, var(--surface) 82%, transparent);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-glow);
  position: relative;
  isolation: isolate;
}
[data-theme="dark"] .gen-card {
  background: color-mix(in oklch, var(--surface) 68%, transparent);
  border-color: var(--line);
}
.gen-card::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,.65) 0%, transparent 35%, color-mix(in oklch, var(--accent) 28%, transparent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.gen-card-chip {
  position: absolute;
  top: -14px; right: 24px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--ink-900);
  color: var(--bg);
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 4px 14px -2px rgba(20,18,12,.3);
}

.gen-stepper {
  display: flex; gap: 6px;
  margin-bottom: var(--space-5);
}
.gen-step {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-2);
  font-size: 12.5px;
  color: var(--ink-500);
  font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  transition: all .25s;
  border: 1px solid transparent;
}
.gen-step .num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--ink-500);
  font-family: var(--font-mono);
}
.gen-step.is-active {
  background: color-mix(in oklch, var(--accent) 8%, var(--surface));
  color: var(--accent-ink);
  border-color: color-mix(in oklch, var(--accent) 25%, transparent);
}
.gen-step.is-active .num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 18%, transparent);
}
.gen-step.is-done .num { background: var(--accent); border-color: var(--accent); color: #fff; }
.gen-step.is-done .num::after { content: "✓"; }
.gen-step.is-done .num span { display: none; }

.type-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 6px;
  margin-bottom: var(--space-4);
}
.type-tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px;
  border-radius: 14px;
  background: var(--bg-2);
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .18s cubic-bezier(.2,.8,.2,1);
}
.type-tab:hover {
  color: var(--ink-900);
  transform: translateY(-1px);
  background: var(--surface);
  border-color: var(--line-strong);
}
.type-tab svg { width: 20px; height: 20px; transition: transform .2s; }
.type-tab:hover svg { transform: scale(1.1); }
.type-tab.is-active {
  background: var(--surface);
  color: var(--accent-ink);
  border-color: color-mix(in oklch, var(--accent) 30%, transparent);
  box-shadow: 0 4px 12px -4px color-mix(in oklch, var(--accent) 25%, transparent);
}

.gen-form { display: grid; gap: 12px; margin-bottom: var(--space-4); }
.gen-form .field { display: grid; gap: 6px; }
.gen-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gen-form label { font-size: 12.5px; font-weight: 500; color: var(--ink-700); letter-spacing: .005em; font-family: var(--font-mono); }
.gen-form input, .gen-form select, .gen-form textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink-900);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.gen-form input:focus, .gen-form select:focus, .gen-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 14%, transparent);
}
[data-theme="dark"] .gen-form input,
[data-theme="dark"] .gen-form select,
[data-theme="dark"] .gen-form textarea {
  background: var(--bg-2); border-color: var(--line);
}

.gen-color-row {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: var(--space-4);
}
.gen-color-row label { font-size: 12.5px; color: var(--ink-500); font-family: var(--font-mono); flex: 1; }
.gen-color-row input[type="color"] {
  width: 36px; height: 36px;
  padding: 2px; border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface); cursor: pointer;
}

/* QR preview */
.qr-preview-wrap {
  display: flex; align-items: center; justify-content: center;
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.04),
    0 1px 2px rgba(0,0,0,.04),
    0 24px 60px -20px rgba(20,18,12,.22);
  margin-bottom: var(--space-4);
}
.qr-preview-wrap img, .qr-preview-wrap canvas { max-width: 100%; height: auto; }

/* ============ Feature cards ============ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--card-elev);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .15s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--card-elev-hi); border-color: var(--line-strong); }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: var(--space-5);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.feature-card p { font-size: 14px; color: var(--ink-500); line-height: 1.6; }

/* ============ QR Types grid ============ */

.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.type-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  box-shadow: var(--card-elev);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s;
  cursor: pointer;
}
.type-card:hover { transform: translateY(-4px); box-shadow: var(--card-elev-hi); }

.type-card svg { margin: 0 auto var(--space-3); color: var(--accent); }
.type-card .name { font-size: 14px; font-weight: 500; color: var(--ink-900); }
.type-card .desc { font-size: 12.5px; color: var(--ink-500); margin-top: 4px; }

/* ============ Pricing ============ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--card-elev);
  position: relative;
}
.pricing-card.is-featured {
  border-color: color-mix(in oklch, var(--accent) 35%, transparent);
  box-shadow: var(--shadow-glow);
}

.pricing-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 500;
  font-family: var(--font-mono);
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 52px;
  letter-spacing: -0.04em;
  color: var(--ink-900);
  line-height: 1;
  margin: var(--space-5) 0 var(--space-3);
}
.pricing-price sup { font-size: 24px; vertical-align: top; margin-top: 12px; }
.pricing-price .period { font-family: var(--font-body); font-size: 16px; color: var(--ink-500); font-weight: 400; }

.pricing-desc { color: var(--ink-500); font-size: 14.5px; margin-bottom: var(--space-6); }

.pricing-features {
  list-style: none; padding: 0; margin: 0 0 var(--space-8);
  display: grid; gap: 10px;
}
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink-700);
}
.pricing-features li svg { flex-shrink: 0; margin-top: 1px; color: var(--accent); }

/* ============ FAQ ============ */

.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%; text-align: left;
  padding: var(--space-6) 0;
  font-size: 16px; font-weight: 500; color: var(--ink-900);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
}
.faq-q svg { flex-shrink: 0; color: var(--ink-400); transition: transform .25s; }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 0 var(--space-6);
  color: var(--ink-500); font-size: 15px; line-height: 1.65;
}
.faq-item.is-open .faq-a { display: block; }

/* ============ CTA Banner ============ */

.cta-banner {
  background: var(--ink-900);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-12);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 20%, color-mix(in oklch, var(--accent) 25%, transparent), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, color-mix(in oklch, var(--accent) 18%, transparent), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--bg); font-size: clamp(32px, 4vw, 52px); position: relative; z-index: 1; }
.cta-banner p { color: rgba(245,243,236,.65); font-size: 17px; margin-top: var(--space-4); position: relative; z-index: 1; }
.cta-banner .cta-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: var(--space-8); position: relative; z-index: 1;
}

/* ============ Marquee (trusted by) ============ */

@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee {
  display: flex; gap: 64px;
  width: max-content;
  animation: scroll-x 40s linear infinite;
  align-items: center;
}
.marquee img { height: 28px; width: auto; filter: grayscale(1); opacity: .45; }

/* ============ Stats ============ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  background: var(--surface);
  padding: var(--space-8);
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: -0.04em;
  color: var(--ink-900);
  line-height: 1;
}
.stat-label { font-size: 13px; color: var(--ink-500); margin-top: var(--space-2); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }

/* ============ Footer ============ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-20) 0 var(--space-10);
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--space-12);
  padding-bottom: var(--space-16);
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p {
  margin-top: var(--space-5);
  color: var(--ink-500); font-size: 14px; line-height: 1.65; max-width: 260px;
}

.social {
  display: flex; gap: 8px; margin-top: var(--space-6);
}
.social a {
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-500);
  transition: border-color .15s, color .15s, background .15s;
}
.social a:hover { border-color: var(--ink-900); color: var(--ink-900); background: var(--bg); }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-700); transition: color .15s; }
.footer-col a:hover { color: var(--ink-900); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-500);
}
.footer-bottom .links { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.footer-bottom a { color: var(--ink-500); transition: color .15s; }
.footer-bottom a:hover { color: var(--ink-900); }

/* ============ Auth pages ============ */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.auth-card {
  width: 100%; max-width: 420px;
  margin: auto;
  padding: var(--space-10) var(--space-10);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.auth-card h1 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-2);
}
.auth-card .sub {
  color: var(--ink-500); font-size: 14.5px; margin-bottom: var(--space-8);
}

.auth-form { display: grid; gap: var(--space-4); }
.auth-field { display: grid; gap: 6px; }
.auth-field label { font-size: 12.5px; font-weight: 500; color: var(--ink-700); font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.auth-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 15px;
  color: var(--ink-900);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.auth-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 14%, transparent);
}

.auth-sep {
  display: flex; align-items: center; gap: var(--space-4);
  color: var(--ink-400); font-size: 13px;
  margin: var(--space-2) 0;
}
.auth-sep::before, .auth-sep::after {
  content: ""; flex: 1; height: 1px; background: var(--line-strong);
}

.auth-switch {
  text-align: center; font-size: 14px; color: var(--ink-500); margin-top: var(--space-5);
}
.auth-switch a { color: var(--ink-900); font-weight: 500; }
.auth-switch a:hover { text-decoration: underline; }

.auth-error {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff0f1;
  border: 1px solid #fecdd3;
  color: #be123c;
  font-size: 14px;
}
[data-theme="dark"] .auth-error { background: rgba(190,18,60,.12); border-color: rgba(190,18,60,.3); color: #fda4af; }
.auth-error.is-visible { display: block; }

/* ============ Dashboard ============ */

.dash-shell {
  min-height: 100vh;
  padding-top: var(--space-8);
}

.dash-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.dash-header h1 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: var(--space-8);
}
.dash-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--card-elev);
}
.dash-stat .label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--space-2); }
.dash-stat .value { font-family: var(--font-display); font-size: 36px; letter-spacing: -0.04em; color: var(--ink-900); line-height: 1; }

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.qr-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-elev);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s;
  position: relative;
}
.qr-card:hover { transform: translateY(-4px); box-shadow: var(--card-elev-hi); }

.qr-card-preview {
  background: white;
  padding: var(--space-6);
  display: flex; align-items: center; justify-content: center;
  min-height: 160px;
  border-bottom: 1px solid var(--line);
}
.qr-card-preview img { max-width: 120px; height: auto; }

.qr-card-info { padding: var(--space-4) var(--space-5); }
.qr-card-info .name { font-weight: 500; font-size: 15px; color: var(--ink-900); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-card-info .meta { font-size: 12px; color: var(--ink-500); font-family: var(--font-mono); }

.qr-card-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-family: var(--font-mono); font-weight: 500;
}
.qr-card-badge.dynamic { background: color-mix(in oklch, var(--accent) 12%, transparent); color: var(--accent-ink); }
.qr-card-badge.static  { background: var(--bg-2); color: var(--ink-500); border: 1px solid var(--line); }

.qr-card-actions {
  display: flex; gap: 6px; padding: var(--space-3) var(--space-5) var(--space-4);
}
.qr-card-actions .btn { flex: 1; }

/* Empty state */
.qr-empty {
  text-align: center; padding: var(--space-20) 0;
  color: var(--ink-500);
}
.qr-empty svg { margin: 0 auto var(--space-5); color: var(--ink-300); }
.qr-empty h3 { font-size: 18px; font-weight: 400; margin-bottom: var(--space-3); color: var(--ink-700); }

/* ============ Create QR modal ============ */

.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(20,18,12,.55);
  backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: var(--space-6);
}
.modal-overlay.is-open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-pop);
  position: relative;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--space-6);
}
.modal-header h2 { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.modal-close {
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-500);
  transition: background .15s;
}
.modal-close:hover { background: var(--bg-2); }

/* ============ Info / Legal pages ============ */

.info-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-8);
}
.info-shell h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}
.info-shell .intro {
  font-size: 17px;
  color: var(--ink-500);
  line-height: 1.65;
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--line);
}
.info-shell section { margin-bottom: var(--space-8); }
.info-shell h2 {
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-4);
}
.info-shell ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.info-shell ul li {
  display: flex; gap: 10px;
  font-size: 15px; color: var(--ink-700); line-height: 1.6;
}
.info-shell ul li::before {
  content: "—"; color: var(--ink-400); flex-shrink: 0;
}
.info-shell p.text { font-size: 15px; color: var(--ink-700); line-height: 1.65; }
.info-shell .cta-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--space-10);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink-900);
  color: var(--bg);
  font-size: 15px; font-weight: 500;
  transition: transform .2s, box-shadow .2s;
}
.info-shell .cta-link:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(20,18,12,.4); }

/* ============ API docs ============ */

.api-doc-shell { padding: var(--space-12) 0; }
.api-endpoint {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  overflow: hidden;
}
.api-endpoint-header {
  display: flex; align-items: center; gap: 12px;
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
}
.api-method {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  padding: 4px 8px; border-radius: 6px;
  min-width: 60px; text-align: center;
  text-transform: uppercase;
}
.api-method.get  { background: color-mix(in oklch, #10b981 12%, transparent); color: #047857; }
.api-method.post { background: color-mix(in oklch, var(--accent) 12%, transparent); color: var(--accent-ink); }
.api-method.patch{ background: color-mix(in oklch, #f59e0b 12%, transparent); color: #92400e; }
.api-method.delete{ background: color-mix(in oklch, #ef4444 12%, transparent); color: #991b1b; }
[data-theme="dark"] .api-method.get { color: #6ee7b7; }
[data-theme="dark"] .api-method.post { color: var(--accent-200); }
[data-theme="dark"] .api-method.patch { color: #fcd34d; }
[data-theme="dark"] .api-method.delete { color: #fca5a5; }

.api-path { font-family: var(--font-mono); font-size: 14px; color: var(--ink-900); }
.api-body { padding: var(--space-5); border-top: 1px solid var(--line); }
pre {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--space-4) var(--space-5);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-800);
  margin: 0;
  line-height: 1.6;
}

/* ============ Tweaks panel ============ */

.tweaks-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 46px; height: 46px;
  border-radius: 999px;
  background: var(--ink-900);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px -4px rgba(20,18,12,.4);
  transition: transform .2s;
}
.tweaks-fab:hover { transform: scale(1.08) rotate(30deg); }

.tweaks-panel {
  display: none;
  position: fixed; bottom: 80px; right: 24px; z-index: 60;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: var(--space-5) var(--space-5);
  box-shadow: var(--shadow-pop);
}
.tweaks-panel.is-open { display: block; }
.tweaks-panel h4 {
  font-size: 14px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-500);
}
.tw-close {
  width: 24px; height: 24px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-500);
}
.tweak-section { margin-bottom: var(--space-4); }
.tw-label { font-size: 11px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-500); display: block; margin-bottom: 8px; }
.tw-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tw-chip {
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: var(--bg-2); color: var(--ink-700);
  border: 1px solid var(--line);
  transition: background .15s, color .15s, border-color .15s;
}
.tw-chip.is-active, .tw-chip:hover { background: var(--ink-900); color: var(--bg); border-color: var(--ink-900); }
.tw-swatch {
  width: 28px; height: 28px; border-radius: 999px;
  border: 2px solid transparent;
  outline: 2px solid transparent; outline-offset: 2px;
  transition: outline-color .15s;
}
.tw-swatch.is-active, .tw-swatch:hover { outline-color: var(--ink-900); }

/* ============ Simple shell (404, etc.) ============ */

.simple-shell {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: var(--space-12) var(--space-8);
}
.simple-shell h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: var(--space-4); }
.simple-shell p { color: var(--ink-500); margin-bottom: var(--space-8); }

/* ============ Floating QR animation ============ */

@keyframes float-qr {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  33%       { transform: translate(8px, -10px) rotate(2deg); }
  66%       { transform: translate(-6px, 6px) rotate(-1deg); }
}
.float-qr { animation: float-qr 9s ease-in-out infinite; }
.float-qr.delay-1 { animation-delay: -3s; }
.float-qr.delay-2 { animation-delay: -6s; }

/* Pulse dot */
.pulse-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 60%, transparent);
  animation: pulse 2s infinite;
  display: inline-block;
}
@keyframes pulse {
  0%  { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 10px color-mix(in oklch, var(--accent) 0%, transparent); }
  100%{ box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 0%, transparent); }
}

/* Word reveal */
.word-reveal { display: inline-block; overflow: hidden; vertical-align: top; }
.word-reveal > span {
  display: inline-block;
  transform: translateY(110%); opacity: 0;
  transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity 1s;
}
.word-reveal.in > span { transform: none; opacity: 1; }

/* Shimmer text */
.text-shimmer {
  background: linear-gradient(110deg, var(--ink-900) 35%, var(--accent) 50%, var(--ink-900) 65%);
  background-size: 200% 100%;
  background-clip: text; -webkit-background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 100% 0; }
  50%       { background-position: 0 0; }
}

/* Slide underline link */
.ulink {
  color: var(--ink-700); text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%; background-repeat: no-repeat;
  background-size: 100% 1px;
  transition: background-size .25s;
}
.ulink:hover { background-size: 0 1px; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-400); }

/* ============ Responsive helpers ============ */

@media (max-width: 768px) {
  .container { padding: 0 var(--space-5); }
  .auth-card { padding: var(--space-8) var(--space-6); }
  .cta-banner { padding: var(--space-10) var(--space-6); }
  .info-shell { padding: var(--space-10) var(--space-5); }
  .dash-header { flex-direction: column; align-items: flex-start; }
  .site-header { padding: 8px 10px 0; }
  .nav { padding: 0 10px 0 16px; height: 50px; }
}

/* ============================================================
   AUTH — scène & panel
   ============================================================ */

.auth-scene {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}
@media (max-width: 768px) { .auth-scene { grid-template-columns: 1fr; } }

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-12) var(--space-8);
  gap: var(--space-6);
}

.auth-illustration {
  background: linear-gradient(135deg, var(--accent-50) 0%, var(--accent-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) { .auth-illustration { display: none; } }

.auth-main-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, transform .12s;
}
.auth-main-btn:hover { background: var(--accent-700); transform: translateY(-1px); }
.auth-main-btn:active { transform: translateY(0); }

.auth-message {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: var(--space-4);
}
.auth-message.error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.auth-message.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* ============================================================
   DASHBOARD — grille & panneaux
   ============================================================ */

.dash-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-6);
  padding: var(--space-8) 0;
}
@media (max-width: 1024px) { .dash-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-head {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-head h2, .panel-head h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
}

.dash-form {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.dash-account {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.dash-type-fields { display: flex; flex-direction: column; gap: var(--space-3); }

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 600px) { .field-row-2 { grid-template-columns: 1fr; } }

.color-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.color-row input[type="color"] {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2px;
  cursor: pointer;
  background: var(--surface);
}

.logo-upload-wrap {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.logo-upload-wrap:hover { border-color: var(--accent); background: var(--accent-soft); }
.logo-upload-preview {
  width: 64px; height: 64px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin: 0 auto var(--space-2);
  display: block;
}
.logo-upload-hint { font-size: .8rem; color: var(--ink-500); }

.hidden { display: none !important; }
.hidden-file-input { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, transform .12s;
  text-decoration: none;
}
.btn-solid:hover { background: var(--accent-700); transform: translateY(-1px); }

.form-message {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
}
.form-message.ok  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.form-message.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.qr-list { display: flex; flex-direction: column; gap: var(--space-3); }

.qr-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s, box-shadow .18s;
}
.qr-item:hover { border-color: var(--accent-300); box-shadow: var(--shadow-sm); }

.qr-thumb {
  width: 52px; height: 52px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.qr-info { flex: 1; min-width: 0; }
.qr-info strong { display: block; font-weight: 600; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-info span { font-size: .8rem; color: var(--ink-500); }

.qr-actions { display: flex; gap: var(--space-2); flex-shrink: 0; }

/* ============================================================
   HOME — Générateur hero
   ============================================================ */

.hero-text { max-width: 560px; }
.hero-text h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.hero-text p { font-size: 1.1rem; color: var(--ink-500); margin-top: var(--space-4); }

.customizer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow: var(--shadow-md);
}

.color-input {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.color-input input[type="color"] {
  width: 36px; height: 36px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
}
.color-input input[type="text"] {
  font-family: var(--font-mono);
  font-size: .8rem;
  width: 80px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink-900);
}

.style-toggle {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.style-toggle button {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink-700);
  font-size: .8rem;
  cursor: pointer;
  transition: all .16s;
}
.style-toggle button.active,
.style-toggle button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.gen-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  min-height: 200px;
}

.qr-canvas-wrap canvas,
.qr-canvas-wrap img {
  max-width: 180px;
  max-height: 180px;
  border-radius: var(--radius-sm);
  display: block;
}

.gen-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}

.dl-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-700);
  background: var(--surface);
  cursor: pointer;
  text-decoration: none;
  transition: all .16s;
}
.dl-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ============================================================
   HOME — Sections marketing
   ============================================================ */

.trusted {
  padding: var(--space-10) 0;
  text-align: center;
}
.trusted-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: var(--space-5);
}
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  opacity: .5;
  filter: grayscale(1);
}
.logo-row img { height: 28px; object-fit: contain; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-5);
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
@media (max-width: 768px) { .compare { grid-template-columns: 1fr; } }

.compare-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.compare-card.featured { border-color: var(--accent-300); box-shadow: 0 0 0 3px var(--accent-soft); }

.compare-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-700);
  margin-bottom: var(--space-3);
}

.compare-list { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: flex; flex-direction: column; gap: var(--space-2); }
.compare-list li { display: flex; align-items: center; gap: var(--space-2); font-size: .9rem; color: var(--ink-700); }
.compare-list li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.compare-list li.miss { color: var(--ink-400); }
.compare-list li.miss::before { content: '✕'; color: var(--ink-300); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-6);
  counter-reset: steps;
}
.step { display: flex; flex-direction: column; gap: var(--space-3); }
.step-num {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-700);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-visual {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
}

/* ============================================================
   HOME — Dashboard mockup section
   ============================================================ */

.dash-section { padding: var(--space-16) 0; }
.dash-section-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-10);
  align-items: center;
}
@media (max-width: 900px) { .dash-section-grid { grid-template-columns: 1fr; } }

.dash-mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.dash-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.dash-toolbar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }

.dash-tabs {
  display: flex;
  gap: 0;
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.dash-tabs button {
  padding: 10px 16px;
  border: none;
  background: none;
  font-size: .85rem;
  color: var(--ink-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.dash-tabs button.active { color: var(--accent); border-color: var(--accent); font-weight: 600; }

.dash-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }

.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.kpi {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.kpi .title { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); margin-bottom: var(--space-1); }
.kpi strong { font-size: 1.4rem; font-weight: 700; color: var(--ink-900); }
.delta { font-size: .75rem; font-weight: 600; }
.delta.up   { color: #16a34a; }
.delta.down { color: #dc2626; }

.dash-chart {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.bar {
  flex: 1;
  background: var(--accent-soft);
  border-radius: 3px 3px 0 0;
  transition: background .15s;
}
.bar:hover { background: var(--accent); }

.dash-rows { display: flex; flex-direction: column; gap: var(--space-2); }
.dash-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.dash-row:last-child { border-bottom: none; }
.country { font-size: .85rem; font-weight: 500; color: var(--ink-700); flex: 1; }
.flag { font-size: 1.1rem; flex-shrink: 0; }
.pct { font-size: .8rem; font-weight: 600; color: var(--ink-500); flex-shrink: 0; min-width: 40px; text-align: right; }
.dots {
  display: flex;
  gap: 3px;
  align-items: center;
}
.dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-300); }
.dots span.filled { background: var(--accent); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stars { display: flex; gap: 3px; color: #f59e0b; font-size: .9rem; }
.quote { font-size: .95rem; color: var(--ink-700); line-height: 1.6; font-style: italic; flex: 1; }
.person { display: flex; align-items: center; gap: var(--space-3); }
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-700);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person strong { font-size: .9rem; font-weight: 600; color: var(--ink-900); }
.role { font-size: .78rem; color: var(--ink-400); }

/* ============================================================
   API DOCUMENTATION
   ============================================================ */

.api-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 768px) { .api-grid { grid-template-columns: 1fr; } }

.api-list {
  position: sticky;
  top: calc(var(--space-8) + 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.api-list a {
  display: block;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: var(--ink-700);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.api-list a:hover, .api-list a.active { background: var(--accent-soft); color: var(--accent-700); }

.endpoint {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-5);
}
.endpoint-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.tk-method {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.tk-method.get    { background: #ecfdf5; color: #15803d; }
.tk-method.post   { background: #eff6ff; color: #1d4ed8; }
.tk-method.patch  { background: #fffbeb; color: #b45309; }
.tk-method.delete { background: #fef2f2; color: #b91c1c; }

.tk-path {
  font-family: var(--font-mono);
  font-size: .875rem;
  color: var(--ink-800);
  font-weight: 500;
}

.code-block {
  background: #0e0e0c;
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: .82rem;
  margin: var(--space-4) 0;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #181712;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.code-head span { font-size: .72rem; color: rgba(255,255,255,.4); font-weight: 500; }
.code-head button {
  font-size: .72rem;
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
  background: transparent;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.code-head button:hover { color: #fff; border-color: rgba(255,255,255,.4); }

.code-body {
  padding: var(--space-4) var(--space-5);
  color: #e2e0d8;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}

.tk-key  { color: #7c9ef8; }
.tk-str  { color: #a3e6a0; }
.tk-com  { color: rgba(255,255,255,.3); font-style: italic; }

/* ============================================================
   BLOG
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { border-color: var(--accent-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.blog-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-2);
  display: block;
}

.blog-meta {
  padding: var(--space-4) var(--space-5) 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: .75rem;
  color: var(--ink-400);
  font-weight: 500;
}

.blog-body { padding: var(--space-4) var(--space-5) var(--space-5); flex: 1; display: flex; flex-direction: column; gap: var(--space-2); }
.blog-body h3 { font-size: 1rem; font-weight: 700; color: var(--ink-900); margin: 0; line-height: 1.4; }
.blog-body p  { font-size: .875rem; color: var(--ink-500); margin: 0; line-height: 1.5; flex: 1; }

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: .825rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: var(--space-2);
}
.blog-link:hover { color: var(--accent-700); }

/* ============================================================
   Responsive complémentaire
   ============================================================ */

@media (max-width: 768px) {
  .dash-grid        { grid-template-columns: 1fr; }
  .dash-kpis        { grid-template-columns: 1fr 1fr; }
  .auth-scene       { grid-template-columns: 1fr; }
  .compare          { grid-template-columns: 1fr; }
  .api-grid         { grid-template-columns: 1fr; }
  .api-list         { position: static; }
  .dash-section-grid{ grid-template-columns: 1fr; }
  .field-row-2      { grid-template-columns: 1fr; }
  .types            { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .blog-grid        { grid-template-columns: 1fr; }
  .testimonials     { grid-template-columns: 1fr; }
  .feature-grid     { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PATCH — Correspondance exacte des classes EJS
   Ces règles correspondent exactement aux classes utilisées
   dans les templates, prioritaires sur les définitions précédentes.
   ============================================================ */

/* ---- PRICING ---- */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-4);
  box-shadow: var(--card-elev);
  position: relative;
}
.price-card.is-featured {
  border-color: color-mix(in oklch, var(--accent) 35%, transparent);
  box-shadow: var(--shadow-glow);
}
.price-name {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink-500);
}
.price-amount {
  font-family: var(--font-display); font-size: 52px;
  letter-spacing: -0.04em; color: var(--ink-900); line-height: 1;
}
.price-amount .currency { font-size: 24px; vertical-align: top; margin-top: 12px; display: inline-block; }
.price-amount .period { font-family: var(--font-body); font-size: 16px; color: var(--ink-500); font-weight: 400; }
.price-tag {
  font-size: 13px; color: var(--ink-500);
  padding: 5px 12px; background: var(--bg-2);
  border-radius: 999px; width: fit-content;
  border: 1px solid var(--line);
}
.price-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.price-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink-700);
}
.price-list li svg { flex-shrink: 0; margin-top: 1px; color: var(--accent); }

/* ---- TYPES alias (.types-grid → .types) ---- */
.types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.type-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-5) var(--space-4);
  box-shadow: var(--card-elev); cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .15s;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.type-card:hover { transform: translateY(-3px); box-shadow: var(--card-elev-hi); border-color: var(--accent-300); }
.type-card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.type-card h4 { font-size: 13px; font-weight: 600; color: var(--ink-900); margin: 0; }
.type-card p  { font-size: 12px; color: var(--ink-500); margin: 0; line-height: 1.4; }
.type-card .arrow { color: var(--accent); font-size: 14px; margin-top: auto; }

/* ---- FEATURE GRID alias (.features-grid → .feature-grid) ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-5);
}

/* ---- FAQ avec <details> ---- */
.faq { display: flex; flex-direction: column; max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  padding: var(--space-5) 0;
  font-size: 16px; font-weight: 500; color: var(--ink-900);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; font-weight: 300;
  color: var(--ink-400); flex-shrink: 0; transition: transform .2s;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-content {
  padding: 0 0 var(--space-5);
  color: var(--ink-500); font-size: 15px; line-height: 1.65;
}
.faq-content p { margin: 0; }

/* ---- AUTH form (label > input direct, sans .auth-field) ---- */
.auth-form { display: flex; flex-direction: column; gap: var(--space-4); width: 100%; }
.auth-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink-700);
  font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
}
.auth-form input {
  width: 100%; height: 44px; padding: 0 14px;
  border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--bg); font-size: 15px; color: var(--ink-900);
  outline: none; transition: border-color .15s, box-shadow .15s;
  font-family: var(--font-body);
}
.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 14%, transparent);
}
.auth-main-btn {
  width: 100%; height: 46px; padding: 0 20px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 12px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .18s, transform .12s;
  margin-top: var(--space-2);
}
.auth-main-btn:hover { background: var(--accent-700); transform: translateY(-1px); }
.auth-main-btn:active { transform: translateY(0); }
.auth-message {
  font-size: 13px; font-weight: 500; min-height: 20px;
  padding: 0 2px; margin-top: var(--space-1);
}
.auth-message.error   { color: #be123c; }
.auth-message.success { color: #15803d; }

/* ---- CUSTOMIZER (palette dans .gen-card) ---- */
.customizer {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; padding: 4px 0 8px;
}
.customizer .row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 10px;
  background: var(--bg-2); border-radius: 10px;
  font-size: 12px; color: var(--ink-700); font-weight: 500;
}
input.color-input {
  width: 30px; height: 30px; padding: 2px;
  border-radius: 6px; border: 1px solid var(--line-strong);
  background: var(--surface); cursor: pointer;
}
.style-toggle { display: flex; gap: 4px; flex-wrap: wrap; }
.style-toggle button {
  padding: 5px 12px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--bg);
  color: var(--ink-700); font-size: 11px; cursor: pointer;
  transition: all .15s;
}
.style-toggle button.is-active,
.style-toggle button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---- GEN PREVIEW ---- */
.gen-preview {
  display: flex; gap: var(--space-5); align-items: flex-start;
  padding: var(--space-4) 0;
}
.qr-canvas-wrap {
  background: #fff; padding: 12px; border-radius: 12px;
  border: 1px solid var(--line); flex-shrink: 0;
  min-width: 140px; min-height: 140px;
  display: flex; align-items: center; justify-content: center;
}
.qr-canvas-wrap canvas, .qr-canvas-wrap img { display: block; max-width: 160px; }
.gen-actions { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.dl-row { display: flex; gap: 6px; flex-wrap: wrap; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: 1px solid var(--line-strong);
  border-radius: 8px; font-size: 12px; font-weight: 500;
  color: var(--ink-700); background: var(--surface);
  cursor: pointer; transition: all .15s; text-decoration: none;
}
.dl-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ---- DASHBOARD layout ---- */
.dash-grid {
  display: grid; grid-template-columns: 340px 1fr;
  gap: var(--space-6); padding: var(--space-6) 0 var(--space-12);
  align-items: start;
}
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.panel > h2 {
  padding: var(--space-4) var(--space-5);
  font-size: 15px; font-weight: 600; color: var(--ink-900);
  border-bottom: 1px solid var(--line); margin: 0;
  background: var(--bg-2);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.panel-head h2 { font-size: 15px; font-weight: 600; color: var(--ink-900); margin: 0; }
.dash-form { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.dash-form label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12px; font-weight: 500; color: var(--ink-700);
  font-family: var(--font-mono);
}
.dash-form input, .dash-form select, .dash-form textarea {
  padding: 9px 12px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: var(--bg);
  font-size: 14px; color: var(--ink-900);
  outline: none; width: 100%;
  transition: border-color .15s, box-shadow .15s;
  font-family: var(--font-body);
}
.dash-form input:focus, .dash-form select:focus, .dash-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 12%, transparent);
}
.dash-form textarea { resize: vertical; min-height: 80px; }
.dash-type-fields { display: flex; flex-direction: column; gap: var(--space-3); }
.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.color-row { display: flex; gap: var(--space-4); }
.color-row label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 500; color: var(--ink-700); }
.color-row input[type="color"] {
  width: 44px; height: 36px; padding: 2px;
  border-radius: 8px; border: 1px solid var(--line-strong);
  cursor: pointer; background: var(--surface);
}
.logo-upload-row { display: flex; flex-direction: column; gap: 8px; }
.logo-upload-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 2px dashed var(--line-strong);
  border-radius: var(--radius); font-size: 13px; color: var(--ink-500);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.logo-upload-label:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.logo-thumb-wrap { display: flex; align-items: center; gap: 10px; }
.logo-thumb-wrap img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); }
.logo-remove-btn {
  padding: 4px 8px; border-radius: 6px;
  border: 1px solid var(--line-strong); background: var(--bg-2);
  color: var(--ink-500); font-size: 11px; cursor: pointer;
  transition: background .15s, color .15s;
}
.logo-remove-btn:hover { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 11px 20px; background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius); font-family: var(--font-body);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .18s, transform .12s; width: 100%;
}
.btn-solid:hover { background: var(--accent-700); transform: translateY(-1px); }
.form-message { font-size: 13px; font-weight: 500; min-height: 16px; }
.form-message.ok  { color: #15803d; }
.form-message.err { color: #b91c1c; }
.qr-list { display: flex; flex-direction: column; gap: 0; padding: var(--space-3) var(--space-4); }
.hidden { display: none !important; }
.hidden-file-input { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.btn-ghost.small { padding: 5px 10px; font-size: 12px; }
.dash-account { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 13px; color: var(--ink-500); }
.dash-account strong { color: var(--ink-900); font-size: 14px; font-weight: 600; }

/* ---- DASHBOARD MOCKUP SECTION ---- */
.dash-section { padding: var(--space-12) 0; }
.dash-section-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: var(--space-10); align-items: center;
}
.dash-mock {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg);
}
.dash-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding: 10px 14px;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 5px; align-items: center; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.title { font-size: 13px; font-weight: 500; color: var(--ink-700); }
.dash-tabs { display: flex; gap: 0; }
.dash-tabs span {
  padding: 6px 12px; cursor: pointer;
  font-size: 12px; font-weight: 500; color: var(--ink-500);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.dash-tabs span.is-active { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.dash-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.kpi {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-3) var(--space-4);
}
.kpi .label, .kpi .title {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-400); margin-bottom: 4px;
}
.kpi .value, .kpi strong { font-size: 1.3rem; font-weight: 700; color: var(--ink-900); display: block; }
.kpi .delta { font-size: 11px; font-weight: 600; margin-top: 2px; }
.delta { font-size: 11px; font-weight: 600; }
.delta.up   { color: #16a34a; }
.delta.down { color: #dc2626; }
.dash-chart {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; height: 110px;
}
.dash-chart svg { width: 100%; height: 100%; }
.dash-rows { display: flex; flex-direction: column; gap: 0; }
.dash-row {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 7px 0; border-bottom: 1px solid var(--line);
}
.dash-row:last-child { border-bottom: none; }
.country { display: flex; align-items: center; gap: 8px; flex: 1; font-size: 13px; font-weight: 500; color: var(--ink-700); }
.flag {
  width: 18px; height: 12px; border-radius: 2px;
  display: inline-block; flex-shrink: 0; overflow: hidden;
}
.bar {
  flex: 1; height: 6px; background: var(--bg-2);
  border-radius: 999px; overflow: hidden;
}
.bar i { display: block; height: 100%; background: var(--accent-soft); border-radius: 999px; }
.pct { font-size: 11px; font-weight: 600; color: var(--ink-500); flex-shrink: 0; min-width: 36px; text-align: right; }

/* ---- TRUSTED / LOGO ROW ---- */
.trusted { padding: var(--space-8) 0; text-align: center; }
.trusted-label {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-400); margin-bottom: var(--space-5);
}
.logo-row {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-8); flex-wrap: wrap;
  opacity: .45; filter: grayscale(1);
  font-family: var(--font-mono); font-weight: 600; letter-spacing: .04em;
  font-size: 14px; color: var(--ink-700);
}

/* ---- COMPARE ---- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.compare-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-7);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.compare-card.is-featured {
  border-color: color-mix(in oklch, var(--accent) 35%, transparent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: color-mix(in oklch, var(--accent) 3%, var(--surface));
}
.compare-tag {
  display: inline-block; padding: 3px 10px;
  border-radius: 999px; font-size: 11px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-700); width: fit-content;
}
.compare-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.compare-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink-700); line-height: 1.5;
}
.compare-list li svg { flex-shrink: 0; margin-top: 1px; color: var(--accent); }

/* ---- STEPS ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.step { display: flex; flex-direction: column; gap: var(--space-3); }
.step-num {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-700);
  font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.step-visual {
  background: var(--bg-2); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-5); min-height: 120px; margin-top: var(--space-2);
}
.step h3 { font-size: 16px; font-weight: 600; color: var(--ink-900); margin: 0; }
.step p  { font-size: 14px; color: var(--ink-500); margin: 0; line-height: 1.55; }

/* ---- TESTIMONIALS ---- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.testimonial {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.stars { display: flex; gap: 3px; }
.quote { font-size: 14.5px; color: var(--ink-700); line-height: 1.65; font-style: italic; flex: 1; }
.person { display: flex; align-items: center; gap: var(--space-3); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-700);
  font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.person .name { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.role { font-size: 12px; color: var(--ink-400); }

/* ---- BLOG ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.blog-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.blog-card:hover { border-color: var(--accent-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-cover {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--accent-700) 0%, var(--accent-500) 100%);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.blog-cover.cv-2 { background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); }
.blog-cover.cv-3 { background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%); }
.blog-body { padding: var(--space-4) var(--space-5) var(--space-5); flex: 1; display: flex; flex-direction: column; gap: var(--space-2); }
.blog-body h3 { font-size: 15px; font-weight: 700; color: var(--ink-900); margin: 0; line-height: 1.4; }
.blog-body p  { font-size: 13.5px; color: var(--ink-500); margin: 0; line-height: 1.5; flex: 1; }
.blog-meta { font-size: 11px; color: var(--ink-400); font-family: var(--font-mono); font-weight: 500; }
.blog-link { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; margin-top: var(--space-2); }
.blog-link:hover { color: var(--accent-700); }

/* ---- API LIST (feature checklist UL) ---- */
.api-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.api-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: var(--ink-700); line-height: 1.5;
}
.api-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* ---- CODE BLOCK ---- */
.code-block {
  background: #0e0e0c; border-radius: var(--radius-lg); overflow: hidden;
  font-family: var(--font-mono); font-size: .82rem;
}
.code-head {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; background: #181712;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.endpoint { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.45); flex: 1; }
.code-body {
  padding: var(--space-5); color: #e2e0d8; line-height: 1.7;
  overflow-x: auto; white-space: pre; margin: 0;
  background: transparent; border: none; border-radius: 0;
  font-size: .82rem;
}
.tk-key  { color: #7c9ef8; }
.tk-str  { color: #a3e6a0; }
.tk-com  { color: rgba(255,255,255,.32); font-style: italic; }
.tk-method { color: #f9a870; font-weight: 700; }
.tk-path   { color: #e2e0d8; }

/* ---- API GRID ---- */
.api-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: var(--space-10); align-items: start;
}

/* ---- HERO TEXT ---- */
.hero-text h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; }
.hero-text .lead { font-size: 17px; color: var(--ink-500); margin-top: var(--space-4); line-height: 1.65; }

/* ---- CTA BANNER (ensure btn visible on dark bg) ---- */
.cta-banner .btn { position: relative; z-index: 1; }

/* ---- Responsive patch ---- */
@media (max-width: 1024px) {
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-section-grid { grid-template-columns: 1fr; }
  .api-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .dash-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .field-row-2 { grid-template-columns: 1fr; }
  .dash-section-grid { grid-template-columns: 1fr; }
  .api-grid { grid-template-columns: 1fr; }
  .customizer { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .types { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
}
