/* Pages du site (accueil, connexion) — même direction « Nuit monochrome » que la carte ------------- */
:root {
  --bg: #0A0A0B;
  --bg-2: #121214;
  --bg-3: #18181B;
  --line: #2A2A2E;
  --line-2: #3A3A40;
  --fg: #F5F5F5;
  --fg-2: #B4B4BA;
  --muted: #8E8E96;
  --dim: #6E6E76;
  --accent: #C6F432;
  --accent-ink: #0A0A0B;
  --bad: #FF6B6B;
  --warn: #F2C94C;
  --radius: 14px;
  --wrap: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 500 16px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.cap { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border: 1px solid var(--line-2); border-radius: 12px; background: transparent; color: var(--fg);
  font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s, transform .15s;
}
.btn:hover { border-color: var(--fg-2); background: rgba(255,255,255,.03); }
.btn.primary { border: 0; background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; text-decoration: none; }
.logo svg { flex: none; width: 30px; height: 30px; }

/* Barre du haut */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10,10,11,.82); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav-links { display: flex; gap: 24px; margin-right: auto; }
.nav-links a { color: var(--fg-2); text-decoration: none; font-weight: 700; font-size: 14px; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; gap: 10px; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 2px; margin: 3px auto; background: var(--fg); border-radius: 2px; }

/* Héros */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 680px; height: 680px; background: radial-gradient(closest-side, rgba(198,244,50,.12), transparent); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--fg-2); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(198,244,50,.18); }
h1 { margin: 20px 0 18px; font-size: clamp(40px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.lead { margin: 0 0 30px; max-width: 34em; font-size: clamp(17px, 2vw, 19px); color: var(--fg-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Maquette de carte */
.mock { position: relative; aspect-ratio: 5 / 4.4; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #111113; box-shadow: 0 40px 90px rgba(0,0,0,.55); }
.mock svg { width: 100%; height: 100%; }
.mock-bar { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 8px; }
.mock-bar .field { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(20,20,22,.92); font-size: 13px; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; }
.mock-bar .field b { margin-left: auto; color: var(--accent); }
.mock-bar .chip { display: grid; place-items: center; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(20,20,22,.92); font-size: 13px; font-weight: 700; }
.mock-card { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(20,20,22,.95); }
.mock-card img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
.mock-card b { display: block; font-size: 15px; line-height: 1.25; }
.mock-card small { color: var(--muted); font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--fg-2); }
.tag.ok { border-color: var(--accent); color: var(--accent); }
.tag.warn { border-color: var(--warn); color: var(--warn); }

/* Chiffres */
.stats { border-block: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(28px, 4vw, 40px); line-height: 1; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 14px; }

/* Sections */
section.block { padding: 110px 0; }
section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { max-width: 720px; margin-bottom: 52px; }
.head h2 { margin: 12px 0 14px; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.05; letter-spacing: -.03em; }
.head p { margin: 0; color: var(--fg-2); font-size: 18px; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.step::before { counter-increment: s; content: "0" counter(s); display: block; margin-bottom: 40px; font-size: 14px; font-weight: 800; color: var(--accent); }
.step h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--fg-2); }

/* Fonctionnalités */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.feat { padding: 30px 28px; background: var(--bg); }
section.alt .feat { background: var(--bg-2); }
.feat .ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--accent); }
.feat .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin: 0 0 8px; font-size: 18px; }
.feat p { margin: 0; color: var(--fg-2); font-size: 15px; }

/* Revue (démo) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.review-demo { position: relative; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--bg-3); }
.review-demo { width: 100%; max-width: 500px; justify-self: center; }
.review-demo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.review-demo .rd-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; }
.review-demo .rd-top span { padding: 6px 10px; border-radius: 999px; background: rgba(10,10,11,.8); }
.rd-body { padding: 18px; }
.rd-body b { font-size: 20px; letter-spacing: -.01em; }
.rd-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 16px; }
.rd-btns span { display: grid; place-items: center; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; font-weight: 800; font-size: 14px; }
.rd-btns .yes { border: 0; background: var(--accent); color: var(--accent-ink); }
.rd-btns .no { color: var(--bad); border-color: rgba(255,107,107,.5); }
.checks { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--fg-2); }
.checks li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks b { color: var(--fg); }
kbd { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; font: 800 12px/1 "Manrope", sans-serif; color: var(--fg); }

/* Familles de spots */
.families { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.family { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.family:first-child { border-color: rgba(198,244,50,.45); }
.fam-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.fam-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); }
.fam-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fam-n { font-size: 12px; font-weight: 800; color: var(--muted); }
.family h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.01em; }
.family > p { margin: 0 0 18px; color: var(--fg-2); font-size: 15px; }
.fam-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fam-list li { padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--fg); }
.fam-more { margin: 14px 0 0 !important; font-size: 13px !important; color: var(--muted) !important; }

/* Avant d'y aller */
.verify { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.vcard { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.vnum { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 22px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-weight: 800; }
.vcard h3 { margin: 0 0 8px; font-size: 19px; }
.vcard p { margin: 0; color: var(--fg-2); font-size: 15px; }
.vcard b { color: var(--fg); }
.warn-box b { color: var(--fg); }

/* Sources */
.sources { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.src { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.src b { display: block; margin-bottom: 4px; font-size: 16px; }
.src small { display: block; margin-bottom: 14px; color: var(--muted); font-size: 12px; font-weight: 700; }
.src p { margin: 0; font-size: 14px; color: var(--fg-2); }
.score { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; padding: 22px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--fg-2); }
.score b { color: var(--fg); }
.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.dots i.on { background: var(--accent); }

/* Tarifs */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; }
.plan { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); }
.plan.pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan h3 { display: flex; align-items: center; justify-content: space-between; margin: 0; font-size: 20px; }
.plan .badge { padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; }
.price { margin: 18px 0 4px; font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price small { font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.plan .sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.plan ul { display: grid; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; flex: 1; }
.plan li { padding-left: 26px; position: relative; color: var(--fg-2); font-size: 15px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); }
.plan li.no { color: var(--dim); }
.plan li.no::before { border-color: var(--line-2); }
.beta { margin-top: 20px; color: var(--muted); font-size: 14px; }

/* Responsabilité */
.warn-box { display: grid; border-color: rgba(242,201,76,.35); grid-template-columns: auto 1fr; gap: 28px; padding: 36px; border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: var(--radius); background: var(--bg-2); }
.warn-box h2 { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.02em; line-height: 1.1; }
.warn-box p { margin: 0 0 10px; color: var(--fg-2); }
.warn-box .big { font-size: 46px; line-height: 1; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--fg-2); max-width: 680px; }

/* Appel final + pied */
.final { text-align: center; }
.final h2 { margin: 0 auto 16px; max-width: 760px; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -.035em; }
.final p { margin: 0 auto 30px; max-width: 560px; color: var(--fg-2); font-size: 18px; }
.final .hero-cta { justify-content: center; }
footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--fg-2); text-decoration: none; }
footer a:hover { color: var(--fg); }
.credits { flex-basis: 100%; font-size: 12px; color: var(--dim); }

/* Pages d'erreur */
.err-page { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; gap: 24px; width: min(720px, 100% - 32px); margin: 0 auto; padding: 28px 0; }
.err-body { align-self: center; text-align: center; display: grid; justify-items: center; gap: 12px; padding-bottom: 10vh; }
.err-ring { width: 150px; height: 150px; margin-bottom: 8px; }
.err-body h1 { margin: 0; font-size: clamp(32px, 6vw, 48px); }
.err-body p { margin: 0 0 12px; max-width: 30em; color: var(--fg-2); font-size: 17px; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* --------------------------------------------------------------------------------------------
   Connexion
   -------------------------------------------------------------------------------------------- */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; min-height: 100dvh; }
.auth-side { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 48px; overflow: hidden; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10,10,11,.25), rgba(10,10,11,.92) 78%), url("img/friche.jpg") center / cover; }
.auth-side h2 { margin: 0 0 12px; max-width: 13em; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -.03em; }
.auth-side p { margin: 0; max-width: 30em; color: var(--fg-2); }
.auth-side .tags { margin-top: 18px; }
.auth-side .tag { background: rgba(10,10,11,.7); }
.auth-main { display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { margin: 0 0 8px; font-size: 34px; letter-spacing: -.025em; }
.auth-card .intro { margin: 0 0 26px; color: var(--fg-2); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 24px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.tabs button { height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--bg-3); color: var(--fg); box-shadow: 0 0 0 1px var(--line-2) inset; }
.form { display: grid; gap: 16px; }
.form label.f { display: grid; gap: 7px; font-size: 13px; font-weight: 800; color: var(--fg-2); }
.form input[type=email], .form input[type=password], .form input[type=text] {
  width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); outline: 0; font-size: 16px; font-weight: 600; transition: border-color .15s, box-shadow .15s;
}
.form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(198,244,50,.15); }
.pw { position: relative; }
.pw input { padding-right: 84px !important; }
.pw button { position: absolute; right: 6px; top: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 800; cursor: pointer; }
.pw button:hover { color: var(--fg); }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.meter i { height: 4px; border-radius: 2px; background: var(--line); transition: background .2s; }
.meter[data-l="1"] i:nth-child(-n+1) { background: var(--bad); }
.meter[data-l="2"] i:nth-child(-n+2) { background: var(--warn); }
.meter[data-l="3"] i:nth-child(-n+3), .meter[data-l="4"] i { background: var(--accent); }
.hint { font-size: 12px; font-weight: 600; color: var(--muted); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--fg-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent a { color: var(--fg); }
.form .btn { width: 100%; height: 52px; font-size: 16px; }
.form-err { margin: 0; padding: 12px 14px; border: 1px solid rgba(255,107,107,.45); border-radius: 10px; background: rgba(255,107,107,.08); color: var(--bad); font-size: 14px; font-weight: 700; }
.forgot { justify-self: end; margin-top: -6px; font-size: 13px; font-weight: 700; color: var(--fg-2); }
.form-ok { padding: 12px 14px; border: 1px solid rgba(198,244,50,.45); border-radius: 10px; background: rgba(198,244,50,.07); color: var(--fg); font-size: 14px; }
.auth-foot { margin-top: 26px; color: var(--muted); font-size: 14px; text-align: center; }
.auth-foot a { color: var(--fg-2); }
.signed { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.signed b { word-break: break-all; }

/* --------------------------------------------------------------------------------------------
   Petits écrans
   -------------------------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .families { grid-template-columns: repeat(2, 1fr); }
  .sources { grid-template-columns: repeat(2, 1fr); }
  .sources .src:last-child { grid-column: 1 / -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn:not(.primary) { display: none; }
  .menu-btn { display: block; }
  .nav .wrap { gap: 12px; justify-content: space-between; }
  .nav-cta { margin-left: auto; }
  .nav.open .nav-links { display: grid; position: absolute; top: 68px; left: 0; right: 0; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .hero { padding: 40px 0 72px; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:first-child { padding-left: 16px; }
  section.block { padding: 76px 0; }
  .steps, .plans, .verify { grid-template-columns: 1fr; }
  .warn-box { grid-template-columns: 1fr; gap: 12px; padding: 26px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { min-height: 260px; padding: 24px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-side .tags, .auth-side p { display: none; }
}
@media (max-width: 560px) {
  .features, .sources, .families { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
  .mock-bar .chip { display: none; }
  .mock-card { grid-template-columns: 60px 1fr; }
  .mock-card img { width: 60px; height: 60px; }
}

/* --------------------------------------------------------------------------------------------
   Administration
   -------------------------------------------------------------------------------------------- */
body.adm { font-size: 15px; }
.adm-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px 24px; background: rgba(10,10,11,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.adm-tag { padding: 2px 8px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.adm-nav { display: flex; gap: 4px; margin-right: auto; overflow-x: auto; scrollbar-width: none; }
.adm-nav a { padding: 8px 12px; border-radius: 9px; color: var(--fg-2); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.adm-nav a:hover { color: var(--fg); background: var(--bg-2); }
.adm-nav a.on { color: var(--fg); background: var(--bg-3); box-shadow: 0 0 0 1px var(--line-2) inset; }
.adm-main { width: min(1200px, 100% - 32px); margin: 0 auto; padding: 32px 0 80px; display: grid; gap: 20px; align-content: start; }
.adm-main h1 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.adm-main h1 small, .adm-main h2 small { color: var(--muted); font-size: .6em; font-weight: 700; margin-left: 6px; }
.adm-main h2 { margin: 0 0 10px; font-size: 18px; }
.lead-s { margin: -8px 0 0; color: var(--fg-2); max-width: 760px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { display: grid; gap: 2px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.kpi b { font-size: 30px; letter-spacing: -.02em; line-height: 1.1; }
.kpi span { font-weight: 700; color: var(--fg-2); }
.kpi small { color: var(--muted); font-size: 12px; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.box { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); display: grid; gap: 12px; align-content: start; }
.box > * { margin: 0; }
ul.plain { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--fg-2); }
ul.plain b { color: var(--fg); }
.ok { color: var(--accent); font-weight: 700; }
.warn { color: var(--warn); font-weight: 700; }
.bad { color: var(--bad); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.toolbar input, .row input, .row select, .form-grid input, .box textarea {
  height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); outline: 0; font-weight: 600; }
.toolbar input { flex: 1; min-width: 220px; max-width: 360px; }
.toolbar input:focus, .row input:focus, .form-grid input:focus, .box textarea:focus { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; }
.chip.on { border-color: var(--fg); color: var(--fg); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 12px 14px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr[data-uid] { cursor: pointer; }
.tbl tr[data-uid]:hover td, .tbl tr[data-uid]:focus td { background: var(--bg-2); outline: 0; }
.tbl .num { text-align: right; }
.tbl .mail { font-weight: 700; word-break: break-all; }
.tag.bad { border-color: var(--bad); color: var(--bad); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.form-grid .full, .form-grid .switch-row { grid-column: 1 / -1; }
.f { display: grid; gap: 6px; font-weight: 700; font-size: 13px; color: var(--fg-2); }
.f small { font-weight: 600; color: var(--muted); }
.f .inp { position: relative; display: block; }
.f .inp input { width: 100%; }
.f .inp em { position: absolute; right: 12px; top: 11px; font-style: normal; color: var(--muted); }
.switch-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.switch-row input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; }
.switch-row small { display: block; color: var(--muted); font-weight: 600; }
.box textarea { width: 100%; height: 420px; padding: 12px; font: 500 13px/1.55 ui-monospace, Consolas, monospace; resize: vertical; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row input { flex: 1; min-width: 0; }
.btn.danger { border-color: rgba(255,107,107,.6); color: var(--bad); }
code { padding: 1px 6px; border-radius: 5px; background: var(--bg-3); font-size: 12px; }
.adm-drawer { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: flex-end; background: rgba(0,0,0,.55); }
.dr-card { width: min(560px, 100%); height: 100%; overflow-y: auto; padding: 24px; background: var(--bg); border-left: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.dr-card h3 { margin: 14px 0 0; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.dr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dr-head h2 { margin: 0; font-size: 20px; word-break: break-all; }
.facts { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0; }
.facts dt { color: var(--muted); font-weight: 700; font-size: 13px; }
.facts dd { margin: 0; }
.log { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; }
.log span { color: var(--muted); margin-right: 6px; }
.adm-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); padding: 12px 18px; border-radius: 12px; background: var(--fg); color: var(--bg); font-weight: 800; }
.adm-toast.bad { background: var(--bad); }
@media (max-width: 900px) {
  .adm-top { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .adm-nav { order: 3; width: 100%; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .panel-grid, .form-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
}
