:root {
  --bg: #eef2fb;
  --bg-soft: #f6f8fd;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #526079;
  --line: #dbe2f0;
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-soft: #e3ebfe;
  --on-brand: #ffffff;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px -12px rgba(30, 64, 175, .22);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, .06), 0 40px 80px -30px rgba(30, 64, 175, .40);
  --radius: 16px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-soft: #0f1829;
    --surface: #131d31;
    --text: #e6ecf7;
    --muted: #9aa8c2;
    --line: #22304a;
    --brand: #4f86f7;
    --brand-strong: #6b9bff;
    --brand-soft: #182a4d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .55);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 40px 80px -30px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.lang { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.lang:hover { color: var(--text); border-color: var(--muted); }
@media (max-width: 760px) { .nav { display: none; } .lang { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, transform .15s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 900px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); line-height: 1.04; letter-spacing: -.035em; margin: 0 auto; max-width: 15ch; font-weight: 750; }
.hero .lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 640px; margin: 22px auto 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; }

.player { margin: 56px auto 0; max-width: 1040px; }
.window {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.window-bar span { margin: 0 auto; font-size: 12.5px; color: var(--muted); padding-right: 40px; }
.video-box { position: relative; aspect-ratio: 16 / 9; background: #e9eef9; }
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.video-ctrl { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.video-ctrl button {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(15, 23, 42, .62); color: #fff; backdrop-filter: blur(6px);
  opacity: .85; transition: opacity .15s, background-color .15s;
}
.video-ctrl button:hover { opacity: 1; background: rgba(15, 23, 42, .8); }
.video-ctrl svg { width: 18px; height: 18px; }
.video-ctrl .i-play { display: none; }
.video-box.paused .i-play { display: block; }
.video-box.paused .i-pause { display: none; }
.player figcaption { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.025em; margin: 0; font-weight: 720; }
.section-head p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; margin: 0; }

.alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; margin-bottom: 18px;
  background: var(--brand-soft); color: var(--brand); font-weight: 750;
}
.steps p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.feature-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.ico svg { width: 22px; height: 22px; }
.feature ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.feature li { position: relative; padding-left: 28px; font-size: 16px; color: var(--muted); }
.feature li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 15px; height: 15px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.feature li strong { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } .feature { padding: 24px; } }

/* Privacy */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.split .section-head { margin-bottom: 0; }
.facts { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.facts .ico { width: 38px; height: 38px; border-radius: 10px; }
.facts .ico svg { width: 19px; height: 19px; }
.facts h3 { font-size: 16.5px; }
.facts p { margin: 4px 0 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* License */
.license { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.license div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.license h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.license p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
.license .yes h3 svg { color: #16a34a; }
.license .no h3 svg { color: #dc2626; }
.license h3 svg { width: 20px; height: 20px; flex: none; }
.license-note { margin-top: 20px; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .license { grid-template-columns: 1fr; } }

/* Final CTA */
.final { text-align: center; padding: 96px 0; }
.final img { width: 88px; height: 88px; margin: 0 auto 22px; }
.final p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 16px auto 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); 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; } }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 48px; }
  .player { margin-top: 40px; }
  .window { border-radius: 12px; }
  .window-bar { height: 30px; }
  .window-bar span { display: none; }
  section { padding: 64px 0; }
  .cta .btn { width: 100%; }
  .video-ctrl { right: 8px; bottom: 8px; }
  .video-ctrl button { width: 34px; height: 34px; }
}

/* Právní stránky (zásady ochrany soukromí) */
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 4.5vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin: 8px 0 12px; text-wrap: balance; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 0 0 36px; }
.legal h2 { font-size: 23px; line-height: 1.25; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text); font-size: 16.5px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; }
.legal .summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); margin-bottom: 8px; }
.legal .summary p { margin: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 15.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--muted); font-weight: 600; font-size: 14px; }
.legal .table-wrap { overflow-x: auto; }
.top .back { margin-left: auto; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.top .back:hover { color: var(--text); }
.legal .eyebrow { color: var(--brand); }
.top .back + .lang { margin-left: 0; }
@media (max-width: 560px) { .top .back { font-size: 14px; } }

/* Support (Buy Me a Coffee) in header */
.top .support {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  height: 34px; padding: 0 13px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.top .support:hover { background: var(--brand); color: var(--on-brand); }
.top .support svg { width: 16px; height: 16px; flex: none; }
.top .support + .lang { margin-left: 0; }
.top .back + .support { margin-left: 0; }
@media (max-width: 760px) {
  .top .wrap { gap: 14px; }
  .top .support { margin-left: auto; }
  .top .back + .support { margin-left: 0; }
}
@media (max-width: 560px) {
  .top .support { width: 34px; padding: 0; justify-content: center; }
  .top .support span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.brand, .top .back { white-space: nowrap; }
@media (max-width: 420px) {
  .top .back { display: none; }
  .top .support { margin-left: auto; }
}
