/* OSVAL – prezentační web
   Jedno písmo (systémové), jedna akcentní barva, žádné zdroje třetích stran. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f2;
  --bg-sunk: #ecebe6;
  --ink: #0e0e0f;
  --ink-2: #36363a;
  --muted: #67676d;
  --line: #e4e3de;
  --line-strong: #cfcec8;
  --accent: #f5cf2e;
  --accent-hover: #f0c419;
  --on-accent: #14120a;
  --mark: rgba(245, 207, 46, .55);
  --ok: #1f7a4d;
  --header-bg: rgba(255, 255, 255, .72);
  --shadow-sm: 0 1px 2px rgba(15, 15, 20, .06), 0 1px 1px rgba(15, 15, 20, .04);
  --shadow-md: 0 2px 4px rgba(15, 15, 20, .04), 0 12px 32px -8px rgba(15, 15, 20, .14);
  --shadow-lg: 0 4px 8px rgba(15, 15, 20, .04), 0 32px 64px -16px rgba(15, 15, 20, .22);

  /* obrazovky aplikace – ta je ve výchozím stavu tmavá */
  --app-bg: #0f1115;
  --app-card: #1a1d24;
  --app-line: rgba(255, 255, 255, .08);
  --app-ink: #f1f2f4;
  --app-muted: #9aa0ab;

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1140px;
  --gutter: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);          /* blízko kriticky tlumené pružině */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c;
    --bg-soft: #131315;
    --bg-sunk: #1b1b1e;
    --ink: #f3f3f1;
    --ink-2: #d2d2cf;
    --muted: #9b9b9f;
    --line: #26262a;
    --line-strong: #37373c;
    --mark: rgba(245, 207, 46, .35);
    --ok: #4cc28a;
    --header-bg: rgba(11, 11, 12, .72);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 32px 64px -16px rgba(0, 0, 0, .8);
    --app-bg: #16181d;
    --app-card: #20232b;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0c; --bg-soft: #131315; --bg-sunk: #1b1b1e; --ink: #f3f3f1; --ink-2: #d2d2cf; --muted: #9b9b9f;
  --line: #26262a; --line-strong: #37373c; --mark: rgba(245, 207, 46, .35); --ok: #4cc28a; --header-bg: rgba(11, 11, 12, .72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5); --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, .6); --shadow-lg: 0 32px 64px -16px rgba(0, 0, 0, .8);
  --app-bg: #16181d; --app-card: #20232b;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 1.0625rem/1.6 var(--font); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mark); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- typografie ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 700; }
.display { font-size: clamp(2.35rem, 1.4rem + 3.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em; }
.h2 { font-size: clamp(1.8rem, 1.25rem + 2vw, 2.75rem); line-height: 1.1; letter-spacing: -.028em; }
.h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.016em; font-weight: 650; }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.5; color: var(--ink-2); letter-spacing: -.008em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; line-height: 1.5; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .01em; color: var(--muted); margin-bottom: 14px; }
mark, .mark { background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); color: inherit; padding: 0 .04em; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- tlačítka ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .98rem/1 var(--font); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 120ms var(--ease), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(.97); transition-duration: 60ms; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { --h: 36px; padding: 0 14px; font-size: .9rem; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 1.04rem; }
.btn svg { width: 16px; height: 16px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform 160ms var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.16rem/1 var(--font-display); letter-spacing: .02em; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; font-size: .95rem; color: var(--ink-2); text-decoration: none; transition: background-color 140ms ease, color 140ms ease; }
.nav-links a:hover { color: var(--ink); background: var(--bg-sunk); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn:active { background: var(--bg-sunk); }
.menu-btn svg { margin: auto; }

.mobile-menu {
  position: fixed; inset: 64px 12px auto 12px; z-index: 49;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 10px; transform-origin: top right;
  opacity: 0; transform: translateY(-8px) scale(.97); pointer-events: none; visibility: hidden;
  transition: opacity 180ms ease, transform 320ms var(--ease), visibility 0s linear 320ms;
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 180ms ease, transform 320ms var(--ease), visibility 0s; }
.mobile-menu a { display: block; padding: 13px 14px; border-radius: 10px; text-decoration: none; font-size: 1.05rem; font-weight: 500; }
.mobile-menu a:active { background: var(--bg-sunk); }
.mobile-menu .btns { display: grid; gap: 8px; padding: 10px 4px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.mobile-menu .btns .btn { display: flex; width: 100%; padding: 0 20px; }

@media (max-width: 940px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: grid; }
}

/* ---------- sekce ---------- */
.section { padding: clamp(64px, 6vw + 32px, 120px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 700px; margin-bottom: 52px; }
.section-head .lead { margin-top: 16px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- úvod ---------- */
.hero { padding: clamp(40px, 5vw + 16px, 88px) 0 clamp(56px, 6vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero .lead { margin: 22px 0 32px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-note { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 15px; height: 15px; color: var(--ok); }
.hero-visual { position: relative; min-height: 520px; }
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 0; }
}

/* ---------- faktura (papír) ---------- */
.paper {
  position: relative; background: #fff; color: #17171a; border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 30px 30px 24px; font-size: 11.5px; line-height: 1.45;
  width: min(100%, 470px); margin-left: auto;
  font-family: var(--font); letter-spacing: 0;
}
.paper::after { content: ""; position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); pointer-events: none; }
.inv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid #17171a; }
.inv-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.inv-logo i { width: 22px; height: 22px; border-radius: 6px; background: #2d4cc8; display: block; }
.inv-title { text-align: right; }
.inv-title b { display: block; font-size: 17px; letter-spacing: -.01em; }
.inv-title span { color: #6b6b72; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 16px 0; }
.inv-parties h6 { margin: 0 0 4px; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: #8a8a90; font-weight: 600; }
.inv-parties p { margin: 0; }
.inv-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px 12px; background: #f4f4f1; border-radius: 6px; margin-bottom: 14px; }
.inv-meta small { display: block; color: #7a7a80; font-size: 9.5px; }
.inv-meta b { font-weight: 600; }
.inv-items { width: 100%; border-collapse: collapse; }
.inv-items th { text-align: left; font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: #8a8a90; font-weight: 600; padding: 0 0 6px; border-bottom: 1px solid #e5e5e2; }
.inv-items td { padding: 8px 0; border-bottom: 1px solid #efefec; vertical-align: top; }
.inv-items .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 16px; }
.inv-qr { display: flex; gap: 10px; align-items: center; }
.inv-qr svg { width: 82px; height: 82px; }
.inv-qr small { color: #7a7a80; font-size: 9.5px; line-height: 1.35; }
.inv-total { text-align: right; }
.inv-total small { display: block; color: #7a7a80; }
.inv-total b { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.inv-sign { margin-top: 16px; padding-top: 10px; border-top: 1px solid #efefec; color: #8a8a90; font-size: 9.5px; }

/* ---------- telefon a obrazovky aplikace ---------- */
.device {
  width: 236px; border-radius: 40px; padding: 9px; background: #0b0b0c;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #2b2b2f;
}
.device-screen { border-radius: 32px; overflow: hidden; background: var(--app-bg); color: var(--app-ink); aspect-ratio: 9 / 19.2; position: relative; font-size: 11px; line-height: 1.4; }
.device-screen::before { content: ""; position: absolute; top: 9px; left: 50%; width: 74px; height: 22px; margin-left: -37px; background: #000; border-radius: 12px; z-index: 2; }
.hero-visual .paper { width: min(100%, 440px); }
.hero-visual .device { position: absolute; left: -64px; bottom: -36px; width: 204px; transform: rotate(-3deg); }
.hero-visual .device .app { gap: 8px; padding: 38px 12px 12px; }
@media (max-width: 1180px) { .hero-visual .device { display: none; } .hero-visual .paper { margin: 0 auto; width: min(100%, 470px); } .hero-visual { min-height: 0; } }

.app { padding: 42px 14px 14px; display: grid; gap: 10px; }
.app-top { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 12.5px; }
.app-top small { color: var(--app-muted); font-weight: 400; font-size: 10.5px; display: block; }
.app-card { background: var(--app-card); border: 1px solid var(--app-line); border-radius: 14px; padding: 12px; }
.app-card .k { color: var(--app-muted); font-size: 10px; }
.app-card .v { font-size: 19px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.app-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-bars { display: flex; align-items: flex-end; gap: 5px; height: 64px; margin-top: 10px; }
.app-bars i { flex: 1; background: #3a3f4b; border-radius: 3px 3px 1px 1px; display: block; }
.app-bars i.on { background: var(--accent); }
.app-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--app-line); }
.app-row:first-child { border-top: 0; padding-top: 0; }
.app-row span { color: var(--app-muted); }
.pill { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 9.5px; font-weight: 600; background: rgba(255, 255, 255, .08); color: var(--app-muted); }
.pill.ok { background: rgba(76, 194, 138, .16); color: #6fd3a3; }
.pill.warn { background: rgba(245, 207, 46, .16); color: #f5cf2e; }
.app-btn { background: var(--accent); color: #14120a; border-radius: 12px; text-align: center; padding: 10px; font-weight: 650; font-size: 12px; }

/* ---------- funkce na střídačku ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 9vw, 140px); }
.feature.flip > :first-child { order: 2; }
.feature .h2 { margin-bottom: 18px; }
.feature .lead { margin-bottom: 24px; }
.stage { background: var(--bg-soft); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); display: grid; place-items: center; min-height: 440px; position: relative; overflow: hidden; }
.section-soft .stage { background: var(--bg); border: 1px solid var(--line); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip > :first-child { order: 0; }
  .stage { min-height: 0; }
}

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .checks li::before { background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.5' fill='none' stroke='%2314120a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
.checks b { color: var(--ink); font-weight: 600; }

/* ---------- karty a mřížky ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section-soft .card { border-color: transparent; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-2); }
.card .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-sunk); color: var(--ink); margin-bottom: 18px; }
.card .ico svg { width: 21px; height: 21px; }

/* ---------- pruh s fakty ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 28px 24px 28px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b { display: block; font: 700 1.5rem/1.15 var(--font-display); letter-spacing: -.02em; margin-bottom: 6px; }
.facts span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding: 22px 0; border-left: 0; }
  .facts > div + div { border-top: 1px solid var(--line); }
}

/* ---------- Záchranný kruh ---------- */
.callout { background: #111113; color: #f3f3f1; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.callout h2, .callout h3 { color: #fff; }
.callout .lead { color: #c9c9cc; }
.callout .eyebrow { color: var(--accent); }
.callout .checks li { color: #d4d4d6; }
.callout .checks li::before { background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.5' fill='none' stroke='%2314120a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.code-card { background: #1c1d21; border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 26px; text-align: center; }
.code-card small { color: #9b9b9f; display: block; }
.code-digits { display: flex; justify-content: center; gap: 8px; margin: 16px 0; }
.code-digits span { width: 42px; height: 54px; border-radius: 10px; background: #2a2b30; display: grid; place-items: center; font: 650 1.6rem/1 var(--mono); color: #fff; }
.code-timer { color: var(--accent); font-size: .9rem; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .callout { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .code-digits span { width: 34px; height: 46px; font-size: 1.3rem; } }

/* ---------- ceník ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; display: flex; flex-direction: column; }
.plan.is-featured { border: 2px solid var(--ink); padding: 29px 27px; position: relative; }
.plan-badge { position: absolute; top: -13px; left: 26px; background: var(--accent); color: var(--on-accent); font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.plan h3 { font-size: 1.25rem; }
.plan .for { color: var(--muted); font-size: .95rem; margin: 4px 0 22px; min-height: 2.9em; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price b { font: 700 2.9rem/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.plan .per { color: var(--muted); font-size: .88rem; margin-bottom: 24px; }
.plan .btn { width: 100%; margin-bottom: 26px; }
.plan .checks { font-size: .96rem; gap: 10px; }
.plan .inherit { font-weight: 600; color: var(--ink); margin-bottom: 12px; font-size: .95rem; }
@media (max-width: 940px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .96rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-weight: 650; background: var(--bg-soft); position: sticky; top: 0; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 15%; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .grp td { background: var(--bg-soft); font-weight: 650; font-size: .86rem; color: var(--muted); padding-top: 10px; padding-bottom: 10px; }
.yes { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); vertical-align: middle; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9'/%3E%3C/svg%3E"); position: relative; }
.yes::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.7 2.6L13 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.no { color: var(--line-strong); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.faq-nav { position: sticky; top: 96px; display: grid; gap: 2px; }
.faq-nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.faq-nav a:hover { background: var(--bg-sunk); color: var(--ink); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 1.35rem; letter-spacing: -.015em; margin-bottom: 8px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; gap: 24px; } .faq-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; } .faq-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .88rem; } }

.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em; -webkit-tap-highlight-color: transparent;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-sunk)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 9.5l4 4 4-4' fill='none' stroke='%2367676d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
  transition: transform 300ms var(--ease);
}
.qa[open] summary::after { transform: rotate(180deg); }
.qa summary:active { opacity: .7; }
.qa .a { padding: 0 44px 22px 0; color: var(--ink-2); }
.qa .a p { margin: 0 0 12px; }
.qa .a p:last-child { margin: 0; }
.qa .a ul { margin: 0 0 12px; padding-left: 20px; }
@supports (interpolate-size: allow-keywords) {
  .qa { interpolate-size: allow-keywords; }
  .qa::details-content { height: 0; overflow: clip; transition: height 360ms var(--ease), content-visibility 360ms allow-discrete; }
  .qa[open]::details-content { height: auto; }
}

/* ---------- právní texty ---------- */
.doc-head { padding: clamp(40px, 5vw, 72px) 0 32px; border-bottom: 1px solid var(--line); }
.doc-head .h2 { margin-bottom: 12px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: .92rem; }
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; padding: 48px 0 96px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: .9rem; }
.toc b { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: t; }
.toc a { display: block; padding: 6px 10px; border-radius: 7px; text-decoration: none; color: var(--ink-2); line-height: 1.35; }
.toc a:hover { background: var(--bg-sunk); color: var(--ink); }
.toc a.is-active { color: var(--ink); background: var(--bg-sunk); font-weight: 600; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; } .toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; } }

.prose { max-width: 720px; font-size: 1.02rem; line-height: 1.7; color: var(--ink-2); }
.prose h2 { font-size: 1.32rem; letter-spacing: -.015em; line-height: 1.3; margin: 48px 0 14px; scroll-margin-top: 92px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.06rem; margin: 26px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ol, .prose ul { margin: 0 0 16px; padding-left: 1.4em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--bg-soft); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-sunk); padding: 2px 6px; border-radius: 5px; color: var(--ink); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 560px; }
.note { border-left: 3px solid var(--accent); background: var(--bg-soft); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 0 0 22px; color: var(--ink-2); }
.note p:last-child { margin: 0; }

/* ---------- podstránky ---------- */
.page-head { padding: clamp(48px, 6vw, 96px) 0 clamp(36px, 4vw, 56px); }
.page-head .lead { margin-top: 18px; max-width: 40em; }

.feat-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.feat-list h3 { font-size: 1.08rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.feat-list p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.feat-list .tag { font-size: .72rem; font-weight: 650; padding: 3px 8px; border-radius: 999px; background: var(--bg-sunk); color: var(--muted); letter-spacing: .01em; }
.feat-list .tag.pro { background: var(--accent); color: var(--on-accent); }
@media (max-width: 860px) { .feat-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feat-list { grid-template-columns: 1fr; gap: 28px; } }
.feat-group + .feat-group { margin-top: 80px; }
.feat-group > h2 { margin-bottom: 36px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-item .ico { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-sunk); }
.contact-item .ico svg { width: 20px; height: 20px; }
.contact-item b { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; }
.contact-item a, .contact-item span.v { font-size: 1.12rem; font-weight: 600; text-decoration: none; }
.contact-item p { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.company { font-size: .98rem; line-height: 1.7; color: var(--ink-2); }
.company dt { color: var(--muted); font-size: .85rem; }
.company dd { margin: 0 0 12px; color: var(--ink); }

.form { display: grid; gap: 16px; padding: 30px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } .form { padding: 22px; } }
.field {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 11px; padding: 12px 14px; transition: border-color 140ms ease, box-shadow 140ms ease;
  -webkit-appearance: none; appearance: none;
}
.field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--mark); }
textarea.field { min-height: 140px; resize: vertical; }
select.field { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%2367676d' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px; }
.form .hint { font-size: .85rem; color: var(--muted); font-weight: 400; margin: 0; }
.check { display: flex !important; grid-template-columns: none; gap: 10px !important; align-items: flex-start; font-weight: 400 !important; font-size: .9rem !important; color: var(--ink-2); }
.check input { margin-top: 3px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }

/* ---------- výzva na konci ---------- */
.cta-band { text-align: center; padding: clamp(64px, 8vw, 120px) 0; }
.cta-band .lead { margin: 16px auto 32px; max-width: 34em; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- patička ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: .93rem; color: var(--ink-2); background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-grid h4 { font: 600 .85rem/1.2 var(--font); color: var(--ink); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-about p { margin: 14px 0 0; max-width: 30em; color: var(--muted); }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: .86rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .big { font: 700 clamp(4rem, 12vw, 8rem)/1 var(--font-display); letter-spacing: -.05em; color: var(--line-strong); }

/* ---------- objevení při scrollu (jemně, jen když to systém dovolí) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 800ms var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .hero-visual .device { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: #9a9a9a; --muted: #3f3f44; }
}
@media print {
  .site-header, .site-footer, .toc, .menu-btn, .mobile-menu { display: none !important; }
  .doc-layout { display: block; }
}

/* menší telefon v úvodu */
.hero-visual .device .app-grid2 .v { font-size: 13px !important; white-space: nowrap; }
.hero-visual .device .app-card { padding: 10px; }
.hero-visual .device .app-card .v { font-size: 17px; }
.hero-visual .device .app-bars { height: 46px; }
.hero-visual .device .app-row { padding: 6px 0; }
