/* ===== Lioned brand tokeny (dle lioned.cz / css/variables.css) ===== */
:root {
  --accent: #e0292e; --accent-dark: #b81f23; --accent-soft: #fdecec;
  /* --faint bylo #8a8a8a → na bílé jen 3,45:1, pod AA pro drobný text (.hint, .tag, .kpi-label).
     #6f6f6f drží AA (≥4,5:1) i na šedých plochách --wash a --bg, kde .hint taky sedí. */
  --ink: #1a1a1a; --muted: #5c5c5c; --faint: #6f6f6f;
  --bg: #f4f4f5; --surface: #ffffff; --surface-alt: #f6f6f7; --wash: #fafafa;
  --line: #e7e7e9; --line-2: #d8d8db;

  /* Stavy — ověřeno validátorem palety (CVD ΔE ≥ 8, všechny dvojice).
     „Nefunguje" má navíc texturu, aby stav nenesla jen barva. */
  --up: #2e7d32; --up-soft: #e8f3e9;
  --degraded: #f57c00; --degraded-soft: #fdf0e0;
  --down: #e0292e; --down-soft: #fdecec;
  --unknown: #c9c9cc;

  --font-head: 'Montserrat', 'Arial Black', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(20,20,22,.06), 0 6px 20px rgba(20,20,22,.05);
  --shadow-lg: 0 10px 30px rgba(20,20,22,.12), 0 4px 8px rgba(20,20,22,.06);
}

* { box-sizing: border-box; }
body { font-family: var(--font-body); margin: 0; background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; line-height: 1.6;
  overscroll-behavior-y: contain; /* bez toho prozradí gumový odraz nahoře, že jde o web v okně */ }
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -.02em; margin: 0; line-height: 1.2; }
a { color: var(--accent); }
[hidden] { display: none !important; }

/* Odkazy neměly viditelný focus vůbec — klávesnicová navigace byla naslepo.
   Na tmavých plochách je červený prstenec málo vidět, tam bílý. */
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px;
  border-radius: 4px; }
.hero a:focus-visible, .cta-band a:focus-visible, .site-footer a:focus-visible,
.auth__brand a:focus-visible { outline-color: #fff; }

/* Kotvy pod lepivou hlavičkou — bez tohohle skočí nadpis pod ni. */
section[id], [id="obsah"] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ===== formulářové prvky ===== */
input, select, textarea, button { font: inherit; padding: 9px 12px; border: 1px solid var(--line-2);
  border-radius: 9px; background: var(--surface); color: var(--ink); }
input, select, textarea { width: 100%; }
/* Focus: jemný prstenec, ne plná červená linka — ta ve formuláři čte jako chybové pole. */
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 41, 46, .16); }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px;
  box-shadow: none; }
button { cursor: pointer; background: var(--accent); color: #fff; border: none; font-weight: 600;
  transition: transform .08s ease; }
button:hover, button:active { background: var(--accent-dark); }
button:active { transform: scale(.97); }
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button:disabled { background: var(--line-2); color: var(--faint); cursor: not-allowed; transform: none; }
button.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
button.ghost:hover, button.ghost:active { background: var(--surface-alt); }
button.link { background: none; color: var(--accent); padding: 0; font-weight: 500; }
button.link:hover { background: none; text-decoration: underline; }
button.danger { background: var(--surface); color: var(--accent); border: 1px solid var(--line-2); }
button.danger:hover, button.danger:active { background: var(--down-soft); }
label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px;
  font-weight: 500; }
label > input[type="checkbox"] { width: auto; }
.check { flex-direction: row; align-items: center; gap: 9px; font-size: 14px; color: var(--ink); }
.hint { font-size: 12.5px; color: var(--faint); font-weight: 400; }
.err { color: var(--accent); font-size: 13.5px; min-height: 18px; }
/* Prázdná hláška nesmí držet místo — jinak zeje mezera nad tlačítky. */
.err:empty { min-height: 0; margin: 0; }
.ok-msg { color: var(--up); font-size: 13.5px; }

/* ===== brand ===== */
.brand { font-family: var(--font-head); font-weight: 900; letter-spacing: .03em; font-size: 16px;
  display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  display: inline-block; margin: 0 4px; transform: translateY(-1px); }

/* ===== hlavička aplikace ===== */
/* Odsazení i mezery shodné s .lp-nav na landingu — po prokliku z aplikace na úvodní
   stránku nesmí pruh „poskočit". Obě varianty vycházejí na 78 px. */
.topbar { display: flex; align-items: center; gap: 20px; padding: 16px 28px; background: var(--surface);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
  flex-wrap: wrap; row-gap: 10px; }
.topbar nav { display: flex; gap: 4px; margin-left: 12px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 7px 12px; border-radius: 8px; }
.topbar nav a:hover, .topbar nav a:active { background: var(--surface-alt); color: var(--ink); }
.topbar nav a.active { color: var(--ink); background: var(--surface-alt); }
.topbar .spacer { margin-left: auto; }
/* Tlačítko v pruhu má rámeček navíc, tak o pixel nižší odsazení — jinak je pruh
   v aplikaci o 1 px vyšší než na landingu. */
.topbar button { padding: 10px 20px; font-size: 14.5px; border-radius: 10px; }
/* Odkaz Changelog v hlavičce (vpravo, vlevo od loginu) — stejný vzhled jako ostatní
   odkazy v navigaci, ne tlačítko. Na landingu i v aplikaci třída `nav-l`. */
.topbar a.nav-l { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.topbar a.nav-l:hover, .topbar a.nav-l:active { background: var(--surface-alt); color: var(--ink); }
.lp-nav a.nav-l[role="button"] { cursor: pointer; }
.who { font-size: 13px; color: var(--muted); }

/* ===== nainstalovaná PWA (mobil): kompaktní app-bar + spodní záložky =================
   V prohlížeči se nic z tohohle nezobrazí — .app-bar/.tabbar/.fab/.sheet jsou schválně
   `display:none` a místo nich zůstává `.topbar` výš. Teprve v nainstalované appce
   (`@media (display-mode: standalone)`) na stránce, která má na <html> třídu `app-shell`
   (nastavuje `vykresliHlavicku()` v common.js), se to prohodí: `.topbar` zmizí a nastoupí
   kompaktní lišta nahoře + záložky dole. Třídu `app-shell` schválně nedostává veřejná
   stránka o stavu (`/stav/<slug>`) — ta je pro cizí návštěvníky, ne pro majitele appky,
   takže musí vždycky vypadat jako normální web. */
.app-bar, .tabbar, .fab, .sheet, .sheet-overlay { display: none; }

.app-bar__brand {
  display: inline-flex; align-items: center; font-family: var(--font-head); font-weight: 900;
  letter-spacing: .03em; font-size: 15px; color: var(--ink); text-decoration: none;
}
.app-bar__back { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.app-bar__title b {
  font-family: var(--font-head); font-weight: 800; font-size: 14.5px; display: inline-block;
  max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-bar__avatar {
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-2);
  background: var(--surface-alt); color: var(--muted); display: flex; align-items: center;
  justify-content: center; padding: 0; flex: 0 0 auto;
}
.app-bar__avatar svg { width: 15px; height: 15px; }

.tabbar a, .tabbar button {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; min-height: 46px; padding: 7px 2px 0; color: var(--faint);
  text-decoration: none; position: relative; font-family: var(--font-body);
  transition: transform .08s ease;
}
.tabbar a:active, .tabbar button:active { transform: scale(.93); }
.tabbar svg { width: 20px; height: 20px; }
.tabbar span { font-size: 10px; font-weight: 700; letter-spacing: .01em; }
.tabbar a.aktivni, .tabbar button.aktivni { color: var(--accent); }
.tabbar a.aktivni::before, .tabbar button.aktivni::before {
  content: ""; position: absolute; top: -1px; left: 28%; right: 28%; height: 2.5px;
  background: var(--accent); border-radius: 2px;
}

.fab {
  border: none; width: 52px; height: 52px; border-radius: 50%; background: var(--accent);
  color: #fff; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(224, 41, 46, .4); padding: 0;
}
.fab svg { width: 22px; height: 22px; }
.fab:hover, .fab:active { background: var(--accent-dark); }
.fab:active { transform: scale(.94); }

.sheet-overlay { position: fixed; inset: 0; background: rgba(20, 20, 20, .42); z-index: 45; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; background: var(--surface);
  border-radius: 18px 18px 0 0; padding: 8px 20px calc(env(safe-area-inset-bottom, 0px) + 22px);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .15); transform: translateY(100%);
  transition: transform .22s ease;
}
.sheet.otevreno, .sheet-overlay.otevreno { display: block; }
.sheet.otevreno { transform: translateY(0); }
.sheet__handle { width: 34px; height: 4px; background: var(--line-2); border-radius: 4px; margin: 8px auto 14px; }
.sheet__who {
  display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.sheet__who .av {
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface-alt); color: var(--muted);
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); flex: 0 0 auto;
}
.sheet__who .av svg { width: 17px; height: 17px; }
.sheet__who b { font-size: 14px; font-weight: 700; display: block; }
.sheet a, .sheet button.item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; background: none;
  border: none; text-align: left; text-decoration: none; color: var(--ink); font-weight: 600;
  font-size: 14px; padding: 10px 0; border-bottom: 1px dotted var(--line-2); font-family: var(--font-body);
  cursor: pointer;
}
.sheet a:active, .sheet button.item:active { background: var(--surface-alt); }
.sheet a svg, .sheet button.item svg { width: 18px; height: 18px; color: var(--faint); flex: 0 0 auto; }
.sheet button.item.danger { color: var(--accent); border-bottom: none; margin-top: 4px; }
.sheet button.item.danger svg { color: var(--accent); }

@media (display-mode: standalone) {
  html.app-shell body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }
  html.app-shell .topbar { display: none; }
  html.app-shell .app-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px; background: var(--surface);
    border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
  }
  html.app-shell .tabbar:not([hidden]) {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 4px 4px calc(env(safe-area-inset-bottom, 0px) + 4px);
  }
  html.app-shell .fab:not([hidden]) {
    display: flex; position: fixed; right: 18px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)); z-index: 25;
  }
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 26px 20px 60px; }
.wrap.narrow { max-width: 760px; }
.page-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 26px; font-weight: 800; }
.page-head .spacer { margin-left: auto; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 18px; }
.card h2 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.card-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 180px; }

/* ===== stavové odznaky (barva + text, nikdy jen barva) ===== */
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.up { color: var(--up); background: var(--up-soft); border-color: #cfe3d0; }
.badge.down { color: var(--accent-dark); background: var(--down-soft); border-color: #f5cfd0; }
.badge.unknown { color: var(--muted); background: var(--surface-alt); border-color: var(--line); }
.badge.warn { color: #a35a00; background: var(--degraded-soft); border-color: #f2ddbc; }

.tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--faint); background: var(--surface-alt);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }

/* ===== slovní souhrn dostupnosti ===== */
.souhrn { background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 18px; }
.souhrn h2 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
/* Titulek ukázkového souhrnu na landingu — vypadá stejně, ale není druhé h2 v sekci. */
.souhrn .souhrn-h { font-family: var(--font-head); font-size: 16px; font-weight: 800;
  letter-spacing: -.02em; line-height: 1.2; color: var(--ink); margin: 0 0 8px; }
.souhrn p { margin: 0 0 8px; font-size: 14.5px; color: var(--muted); max-width: 76ch; }
.souhrn p:last-child { margin-bottom: 0; }
.souhrn b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ===== KPI dlaždice ===== */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; }
.kpi-label { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); }
.kpi-value { font-family: var(--font-head); font-size: 27px; font-weight: 800; letter-spacing: -.02em;
  margin-top: 3px; font-variant-numeric: tabular-nums; }
.kpi-note { font-size: 12.5px; color: var(--muted); }
.kpi-value.up { color: var(--up); }
.kpi-value.down { color: var(--accent); }
.kpi-value.warn { color: #a35a00; }

/* ===== uptime bar (144 sloupců = 24 h po 10 min) ===== */
.uptime { display: flex; gap: 2px; align-items: stretch; height: 54px; }
.uptime.mini { height: 22px; gap: 1px; }
.ub { flex: 1 1 0; min-width: 0; border-radius: 3px; background: var(--unknown); }
.ub.up { background: var(--up); }
.ub.warn { background: var(--degraded); }
/* „Nefunguje" nese kromě barvy i texturu — kvůli barvosleposti a tisku. */
.ub.down { background: repeating-linear-gradient(45deg, var(--down) 0 3px, var(--accent-dark) 3px 6px); }
.ub:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
/* Na telefonu spolykaly 2px mezery celou šířku (144 sloupců × 2px = 286 px) a sloupce
   se srazily na nulu — proužek byl prakticky neviditelný. */
@media (max-width: 700px) {
  .uptime { gap: 1px; }
  .ub { border-radius: 1px; }
}

.uptime-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint);
  margin-top: 7px; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px;
  color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend i.up { background: var(--up); }
.legend i.warn { background: var(--degraded); }
.legend i.down { background: repeating-linear-gradient(45deg, var(--down) 0 3px, var(--accent-dark) 3px 6px); }
.legend i.unknown { background: var(--unknown); }

/* tooltip nad sloupcem */
#tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: #fff;
  font-size: 12.5px; line-height: 1.5; padding: 8px 11px; border-radius: 8px; box-shadow: var(--shadow-lg);
  max-width: 240px; }
#tip b { font-family: var(--font-head); }
#tip .t-val { font-family: var(--font-mono); }

/* ===== tabulky ===== */
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 10px;
  overflow: hidden; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px;
  vertical-align: top; }
th { background: var(--surface-alt); font-family: var(--font-head); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--wash); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* ===== dlaždice služeb ===== */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px; text-decoration: none; color: inherit; display: block; }
.svc:hover, .svc:active { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.svc:active { background: var(--surface-alt); }
.svc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.svc-head h3 { font-size: 16px; font-weight: 800; flex: 1; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.svc-url { font-size: 12.5px; color: var(--faint); font-family: var(--font-mono);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 12px; }
.svc-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted);
  margin-top: 10px; }
.svc-meta b { font-family: var(--font-mono); color: var(--ink); font-weight: 600; }
/* Čas poslední kontroly vždy na vlastním řádku. Bez tohohle se u užší značky (SOAP)
   vešel na řádek k ostatnímu a u širší (HTTPS) přeskočil — dlaždice pak nebyly stejné. */
.svc-meta .svc-cas { flex: 1 0 100%; }
/* Kategorie u veřejné kontroly — vlastní řádek, ať je čitelná i u delších názvů.
   Název kategorie je text, ne číslo — proporcionální písmo, ne mono jako u ostatních hodnot. */
.svc-meta .svc-kat { flex: 1 0 100%; }
.svc-meta .svc-kat b { font-family: var(--font-body); font-weight: 600; }

/* ===== Vstupní obrazovka (přihlášení / registrace) =====
   Port z cestaky/app/frontend/styles.css. Formulář vlevo, brand vpravo — pořadí řeší
   `order`, markup zůstává v pořadí brand → formulář. */
.auth { display: grid; grid-template-columns: 1fr 1.05fr; min-height: 100vh;
  /* cestaky nemá na body line-height 1.6 — bez tohohle by byla obrazovka rozvolněnější.
     Scopnuto na .auth, ať se nezmění zbytek aplikace. */
  line-height: normal; }
.auth[hidden] { display: none; }
.auth__pane { order: 1; }
.auth__brand { order: 2; }

/* pravý panel — brand s červenými přesvity */
.auth__brand { position: relative; overflow: hidden; background: var(--ink); color: #fff;
  display: flex; align-items: center; padding: 56px; }
.auth__brand::before { content: ""; position: absolute; inset: -30% -30% 40% 40%;
  background: radial-gradient(closest-side, rgba(224, 41, 46, .38), transparent 70%); }
.auth__brand::after { content: ""; position: absolute; left: -18%; bottom: -22%;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(224, 41, 46, .22), transparent 72%); }
.auth__brand-in { position: relative; max-width: 460px; }
.auth__logo { display: inline-flex; align-items: center; text-decoration: none; color: #fff;
  font-family: var(--font-head); font-weight: 900; letter-spacing: .05em; font-size: 17px;
  margin-bottom: 40px; }
.auth__claim { font-family: var(--font-head); font-weight: 900; font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08; letter-spacing: -.02em; color: #fff; margin: 0 0 18px; }
.auth__claim-accent { color: var(--accent); }
.auth__sub { color: rgba(255, 255, 255, .72); font-size: 16px; margin: 0 0 30px; max-width: 42ch; }
.auth__list { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-direction: column;
  gap: 14px; }
.auth__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px;
  color: rgba(255, 255, 255, .78); line-height: 1.5; }
.auth__list b { color: #fff; font-weight: 600; }
.auth__list svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--accent); margin-top: 1px; }
.auth__note { font-size: 12.5px; color: rgba(255, 255, 255, .45); margin: 0; letter-spacing: .02em; }

/* levý panel — formulář */
.auth__pane { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 48px 24px; background: var(--bg); }
.auth__card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); padding: 30px 30px 26px; }
.auth__h { font-size: 22px; font-weight: 800; margin: 22px 0 4px; line-height: normal; }
.auth__lead { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.auth__f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted);
  margin-bottom: 14px; font-weight: 400; }   /* monitorwebu má na label 500, cestaky ne */
.auth__f[hidden] { display: none; }        /* jinak by [hidden] přebil display:flex */
.auth__f input { width: 100%; margin: 0; padding: 11px 13px; border-radius: 8px; }
.auth__btn { width: 100%; padding: 13px 16px; font-size: 15px; margin-top: 4px; border-radius: 8px; }
.auth__switch { text-align: center; font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.auth__switch .link { font-weight: 600; }
.auth__foot { font-size: 12.5px; color: var(--faint); margin: 0; text-align: center; }
.auth__hugo { white-space: nowrap; }

/* záložky uvnitř karty */
.lg-tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.lg-tab { flex: 1; background: none; color: var(--muted); border: none; border-radius: 0;
  border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; font-size: 14px;
  padding: 10px 8px; }
.lg-tab:hover { background: none; color: var(--ink); }
.lg-tab.active { background: none; color: var(--ink); border-bottom-color: var(--accent); }

/* ===== landing ===== */
.lp-nav { display: flex; align-items: center; gap: 20px; padding: 16px 28px; background: var(--surface);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
  flex-wrap: wrap; row-gap: 10px; }
.lp-nav .nav-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.lp-nav a.nav-l { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.lp-nav a.nav-l:hover { color: var(--ink); }
.lp-nav .spacer { margin-left: auto; }
.lp-nav #lpCta { display: inline-flex; align-items: center; gap: 14px; }
/* Na telefonu se šest odkazů + logo + CTA do řádku nevejde a tlačily stránku do
   vodorovného posuvníku. Navigaci nese hero a patička. */
@media (max-width: 900px) {
  .lp-nav { padding: 12px 16px; gap: 12px; }
  .lp-nav .nav-links { display: none; }
}

/* Přeskočení na obsah — první tabovatelný prvek stránky. */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 10px 18px;
  border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; padding: 11px 20px; border-radius: 10px; font-size: 14.5px; border: none; }
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost:hover { background: var(--surface-alt); }
.btn.lg { padding: 14px 26px; font-size: 16px; }

.hero { background: var(--ink); color: #fff; padding: clamp(56px, 9vw, 96px) 24px; text-align: center; }
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); font-weight: 900; max-width: 16ch; margin: 0 auto; }
.hero h1 span { color: var(--accent); }
.hero p { color: rgba(255,255,255,.74); font-size: clamp(16px, 2vw, 19px); max-width: 56ch;
  margin: 20px auto 30px; }
.hero .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* .45 dávalo na tmavém podkladu 4,47:1 — těsně pod AA. */
.hero .note { color: rgba(255,255,255,.6); font-size: 13px; margin-top: 22px; }
.hero .hero-kicker { font-family: var(--font-head); font-size: 12.5px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 16px; max-width: none; }
.hero-demo { max-width: 760px; margin: 44px auto 0; background: var(--surface); color: var(--ink);
  border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-lg); text-align: left; }
/* Nadpis v ukázkové kartě není nadpis dokumentu — vypadá jako h3, ale osnovu nešpiní. */
.demo-title { font-family: var(--font-head); font-size: 16px; font-weight: 800;
  letter-spacing: -.02em; line-height: 1.25; flex: 1; min-width: 0; }
.svc-head .demo-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.section { padding: clamp(48px, 7vw, 78px) 24px; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-in { max-width: 1080px; margin: 0 auto; }
.section h2 { font-size: clamp(24px, 3.4vw, 33px); font-weight: 900; text-align: center; }
.section > .section-in > p.lead { text-align: center; color: var(--muted); max-width: 62ch;
  margin: 12px auto 40px; font-size: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); }
.section.alt .feat { background: var(--wash); }
.feat svg { width: 26px; height: 26px; color: var(--accent); }
.feat h3 { font-size: 17px; font-weight: 800; margin: 12px 0 6px; }
.feat > h3:first-child { margin-top: 0; }        /* karta bez ikony */
.feat p { color: var(--muted); font-size: 14.5px; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); font-size: 15px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--up);
  font-weight: 800; }
.ticks b { color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px;
  counter-reset: krok; }
.step { counter-increment: krok; }
.step::before { content: counter(krok); font-family: var(--font-head); font-weight: 900; font-size: 15px;
  color: #fff; background: var(--accent); width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step h3 { font-size: 16px; font-weight: 800; margin-bottom: 5px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
  max-width: 760px; margin: 0 auto; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); }
.price.soon { background: var(--wash); border-style: dashed; }
.price h3 { font-size: 18px; font-weight: 800; }
.price .amount { font-family: var(--font-head); font-size: 36px; font-weight: 900; margin: 10px 0 4px; }
.price ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px;
  font-size: 14.5px; color: var(--muted); }
.price li::before { content: "✓"; color: var(--up); font-weight: 800; margin-right: 9px; }
.price.soon li::before { content: "•"; color: var(--faint); }

/* ===== landing: důvěra ===== */
.pod-h3 { font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.pod-p { color: var(--muted); font-size: 15px; margin: 0 0 22px; max-width: 54ch; }
.pod-p:last-child { margin-bottom: 0; }

/* ===== landing: časté dotazy ===== */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); }
.section.alt .faq-item { background: var(--wash); }
.faq-item summary { display: flex; align-items: center; gap: 16px; cursor: pointer;
  padding: 15px 20px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 16px; font-weight: 800; flex: 1; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; font-family: var(--font-head);
  font-size: 22px; font-weight: 800; line-height: 1; color: var(--accent); }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover h3 { color: var(--accent); }
.faq-item > div { padding: 0 20px 18px; }
.faq-item > div p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 74ch; }

/* ===== landing: závěrečné CTA ===== */
.cta-band { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 76px) 24px;
  text-align: center; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 33px); font-weight: 900; max-width: 22ch;
  margin: 0 auto; }
.cta-band p { color: rgba(255,255,255,.7); font-size: 16px; max-width: 56ch;
  margin: 14px auto 28px; }
.cta-band .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band .note { color: rgba(255,255,255,.55); font-size: 13px; margin: 22px auto 0; }
.cta-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .btn.ghost:hover { background: rgba(255,255,255,.08); }

/* ===== patička — převzato z lioned.cz (index.html + css/contact.css) ===== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.65);
  padding: 64px 24px 32px; border-top: 1px solid rgba(255,255,255,.06); }
.site-footer .container { max-width: var(--container-max, 1080px); margin: 0 auto; }

.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; margin-bottom: 48px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__logo { display: inline-flex; align-items: center; font-family: var(--font-head);
  font-weight: 900; font-size: 1.2rem; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; line-height: 1; transition: opacity var(--transition-fast, 150ms ease); }
.footer__logo:hover { opacity: .8; }
.footer__logo-word { color: #fff; }
.footer__logo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  display: inline-block; margin: 0 5px; }
.footer__logo-tld { color: var(--line-2); }
.footer__tagline { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.6; margin: 0;
  max-width: 30ch; }

.footer__nav-heading { font-family: var(--font-head); font-size: 11px; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: .12em; margin: 0 0 16px; }
.footer__nav-list, .footer__contact-list { display: flex; flex-direction: column; gap: 12px;
  list-style: none; padding: 0; margin: 0; }
.footer__nav-link, .footer__contact-link, .footer__contact-text { font-size: 14px;
  color: rgba(255,255,255,.55); text-decoration: none; display: inline-flex; align-items: center;
  gap: 8px; }
.footer__nav-link:hover, .footer__contact-link:hover { color: #fff; }
.footer__contact-link svg, .footer__contact-text svg { flex: 0 0 auto; }

.footer__bottom { display: flex; flex-direction: column; gap: 8px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08); align-items: flex-start; }
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
/* Právní údaje v patičce byly na .3/.35 pod 3:1 — na tmavém podkladu prakticky nečitelné. */
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px;
  color: rgba(255,255,255,.5); }
.footer__legal-sep { color: rgba(255,255,255,.35); }
.footer__copyright { font-size: 12.5px; color: rgba(255,255,255,.5); margin: 0; display: flex;
  align-items: center; gap: 8px; flex-wrap: wrap; }
.footer__hugo-note { color: var(--accent); font-weight: 600; letter-spacing: .02em; }

/* ===== veřejný rozcestník ===== */
.cat-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.cat-filter button { background: var(--surface); color: var(--muted); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 7px 15px; font-size: 13.5px; font-weight: 600; }
.cat-filter button:hover { color: var(--ink); background: var(--surface-alt); }
.cat-filter button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-group { margin-bottom: 34px; }
.cat-group h2 { font-size: 19px; font-weight: 800; margin-bottom: 14px; display: flex;
  align-items: center; gap: 10px; }

/* Zvýraznění řádků v tabulce měření. Barva je doplněk k textu ve sloupci „Stav",
   ne jediný nositel informace — kvůli barvosleposti a tisku. */
tbody tr.rada-pomala { background: var(--degraded-soft); }
tbody tr.rada-pomala:hover { background: #fbe6c8; }
tbody tr.rada-pomala td:last-child { color: #a35a00; font-weight: 600; }
tbody tr.rada-chyba { background: var(--down-soft); }
tbody tr.rada-chyba:hover { background: #fbdada; }
tbody tr.rada-chyba td:last-child { color: var(--accent-dark); font-weight: 600; }

/* ===== poplach (změna držitele domény) ===== */
.poplach { background: var(--down-soft); border: 1px solid #f5cfd0; border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; font-size: 14px;
  color: var(--ink); line-height: 1.6; }
.poplach b { color: var(--accent-dark); }
.poplach code { background: rgba(255,255,255,.7); border: 1px solid #f0c4c5; border-radius: 5px;
  padding: 1px 6px; font-family: var(--font-mono); font-size: 12.5px; }

/* ===== klikací karta (SSL → analýza HTTPS) ===== */
.card-klik { cursor: pointer; }
.card-klik:hover, .card-klik:active { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.card-klik:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.klik-head { display: flex; align-items: center; gap: 12px; }
.klik-head .spacer { margin-left: auto; }
.klik-cta { color: var(--accent); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.card-klik:hover .klik-cta { text-decoration: underline; }

/* ===== analýza HTTPS ===== */
.znamka { font-family: var(--font-head); font-weight: 900; font-size: 22px; line-height: 1;
  padding: 10px 14px; border-radius: 10px; display: inline-flex; align-items: center;
  min-width: 56px; justify-content: center; }
.znamka.up { color: var(--up); background: var(--up-soft); border: 1px solid #cfe3d0; }
.znamka.warn { color: #a35a00; background: var(--degraded-soft); border: 1px solid #f2ddbc; }
.znamka.down { color: var(--accent-dark); background: var(--down-soft); border: 1px solid #f5cfd0; }
.znamka.unknown { color: var(--muted); background: var(--surface-alt); border: 1px solid var(--line); }

.tls-h { font-family: var(--font-head); font-size: 12px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--faint); margin: 22px 0 9px; }
.tls-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 7px; }
.tls-list li { font-size: 14px; padding-left: 26px; position: relative; color: var(--muted); }
.tls-list li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.tls-list.dobre li::before { content: "✓"; color: var(--up); }
.tls-list.spatne li { color: var(--ink); }
.tls-list.spatne li::before { content: "!"; color: var(--accent); }

/* ===== modal ===== */
.modal { position: fixed; inset: 0; background: rgba(20,20,22,.45); z-index: 50; display: flex;
  align-items: flex-start; justify-content: center; padding: 5vh 18px; overflow-y: auto; }
.modal .card { width: 100%; max-width: 620px; padding: 24px 26px; }
.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.modal-head h2 { flex: 1; font-size: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px;
  padding-top: 18px; border-top: 1px solid var(--line); }
.modal-x { background: none; color: var(--faint); padding: 4px 8px; font-size: 20px; line-height: 1;
  border-radius: 8px; }
.modal-x:hover { background: var(--surface-alt); color: var(--ink); }

/* ===== changelog „Co je nového" ===== */
.chg-list { display: flex; flex-direction: column; }
.chg-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.chg-item:first-child { padding-top: 0; }
.chg-item:last-child { border-bottom: none; padding-bottom: 0; }
.chg-date { flex: 0 0 88px; color: var(--faint); font-size: 12.5px;
  font-variant-numeric: tabular-nums; padding-top: 2px; }
.chg-body { min-width: 0; }
.chg-subject { font-weight: 700; color: var(--ink); }
.chg-desc { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.chg-desc p { margin: 0; }
.chg-desc p + p { margin-top: 8px; }

/* ===== formulářová mřížka =====
   `align-items: start` je podstatný: pole s nápovědou a bez ní musí začínat ve stejné výšce
   (u .row se zarovnávají spodky, takže select vedle inputu s nápovědou visel níž). */
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 14px;
  align-items: start; }
.form-grid > label { gap: 5px; }
.f-full { grid-column: span 12; }
.f-half { grid-column: span 6; }
.f-third { grid-column: span 4; }
.f-8 { grid-column: span 8; }
.form-sep { grid-column: span 12; border-top: 1px solid var(--line); margin: 4px 0 0; padding-top: 14px;
  font-family: var(--font-head); font-size: 11px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--faint); }
.form-grid select:disabled, .form-grid input:disabled { background: var(--surface-alt);
  color: var(--muted); cursor: not-allowed; }
@media (max-width: 620px) { .f-half, .f-third, .f-8 { grid-column: span 12; } }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { order: 1; padding: 40px 24px 32px; }   /* na mobilu brand nahoře, formulář pod ním */
  .auth__pane { order: 2; padding: 28px 20px 40px; }
  .auth__list, .auth__note { display: none; }           /* na mobilu jen claim, ať je formulář hned vidět */
  .auth__claim { font-size: 28px; margin-bottom: 10px; }
  .auth__sub { margin-bottom: 0; font-size: 14.5px; }
  .auth__logo { margin-bottom: 22px; }
  .topbar { flex-wrap: wrap; }
}
