:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f6;
  --surface: #ffffff;
  --text: #0a0b0a;
  --muted: #687076;
  --faint: #9aa0a4;
  --border: #e8eae9;
  --border-strong: #d6d9d7;
  --accent: #10b981;
  --accent-ink: #059669;
  --accent-soft: #e7f8f1;
  --primary: #0a0b0a;
  --primary-ink: #ffffff;
  --danger: #e5484d;
  --ok: #16a34a;
  --r: 16px;
  --r-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(10, 20, 15, .05);
  --shadow: 0 10px 34px rgba(10, 20, 15, .09);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b0a; --bg-soft: #121413; --surface: #161817; --text: #f3f5f4;
    --muted: #9aa3a0; --faint: #6b7572; --border: #262a28; --border-strong: #353a37;
    --accent: #2ee6a6; --accent-ink: #2ee6a6; --accent-soft: #10241c;
    --primary: #f3f5f4; --primary-ink: #0a0b0a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 12px 36px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.12; margin: 0; }
a { color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }

.nav { display: flex; justify-content: center; padding: 20px 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--accent); color: #042b1f; border-radius: 9px; font-weight: 800; font-size: 13px; letter-spacing: -.02em; }
.brand-name { font-weight: 800; font-size: 18px; }

main { max-width: 620px; margin: 0 auto; padding: 0 18px 64px; }

.hero { text-align: center; padding: 30px 0 6px; }
.hero-title { font-size: clamp(30px, 6.4vw, 48px); font-weight: 800; letter-spacing: -.035em; }
.hero-sub { font-size: clamp(15px, 2.6vw, 18px); color: var(--muted); max-width: 520px; margin: 16px auto 30px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 16px; text-align: left; }
.drop-card { padding: 14px; box-shadow: var(--shadow); }

.drop { display: block; border: 2px dashed var(--border-strong); border-radius: 13px; padding: 38px 20px; text-align: center; cursor: pointer; transition: .15s; }
.drop:hover, .drop.drag { border-color: var(--accent); background: var(--accent-soft); }
.drop input { display: none; }
.drop-emoji { font-size: 32px; }
.drop-main { font-weight: 600; margin-top: 8px; }
.drop .muted { margin-top: 6px; }

.preview { max-width: 100%; max-height: 200px; border-radius: 11px; margin-top: 14px; display: block; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; padding: 12px; border: 1px solid var(--border-strong); border-radius: 10px; font-size: 15px; font-family: inherit; background: var(--surface); color: var(--text); }
.field input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 700; padding: 14px 20px; border-radius: 11px; transition: .15s; }
.btn-primary { background: var(--accent); color: #042b1f; }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--shadow); }

.qr-card { text-align: center; }
#qrcode { display: flex; justify-content: center; padding: 14px; }
#qrcode img, #qrcode canvas { border-radius: 8px; }
.qr-card .muted { margin: 10px 0 0; }
.spayd { font-family: var(--mono); font-size: 11.5px; word-break: break-all; background: var(--bg-soft); padding: 10px 12px; border-radius: 9px; margin-top: 12px; color: var(--muted); text-align: left; }

.status { padding: 12px 14px; border-radius: 10px; margin-top: 14px; font-size: 14px; }
.status.info { background: var(--accent-soft); color: var(--accent-ink); }
.status.ok { background: #e8f7ee; color: #15803d; }
.status.error { background: #fdecee; color: var(--danger); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; margin-right: 8px; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.block { margin-top: 56px; }
.block-head { font-size: 13px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; margin: 0 0 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; }
.steps h3 { font-size: 16px; }
.steps p { margin: 3px 0 0; color: var(--muted); }

.faq details { border-bottom: 1px solid var(--border); padding: 4px 2px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 22px; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.foot { max-width: 620px; margin: 70px auto 0; padding: 26px 18px 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.foot p { margin: 5px 0; }

@media (max-width: 560px) { .hero { padding: 18px 0 4px; } .block { margin-top: 44px; } }

/* ---------- výsledek: stažení, souhrn, porovnání ---------- */
.btn-ghost { background: var(--bg-soft); color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.qr-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.qr-actions .btn { width: auto; padding: 11px 20px; }
#qrcode img, #qrcode canvas { max-width: 100%; height: auto; border-radius: 8px; }
.qr-hint { margin: 12px 0 0; }
.summary { margin: 20px 0 0; padding: 0; }
.summary .srow { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.summary dt { color: var(--muted); font-size: 13.5px; margin: 0; }
.summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.spayd-details { margin-top: 14px; }
.spayd-details > summary { cursor: pointer; color: var(--muted); font-size: 13px; list-style: none; }
.spayd-details > summary::-webkit-details-marker { display: none; }
.link-btn { background: none; border: 0; color: var(--accent-ink); font-weight: 600; font-size: 14px; cursor: pointer; padding: 0 0 14px; font-family: inherit; }
.link-btn:hover { text-decoration: underline; }
.compare.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.compare-img img { width: 100%; border-radius: 11px; border: 1px solid var(--border); display: block; }
@media (max-width: 600px) { .compare.split { grid-template-columns: 1fr; } }
.disclaimer { font-size: 12.5px; color: var(--muted); background: var(--bg-soft); border-radius: 9px; padding: 11px 13px; margin: 16px 0 0; line-height: 1.5; }
.compare-img .pdf-frame { width: 100%; height: 460px; border-radius: 11px; border: 1px solid var(--border); background: #fff; display: block; }
.drop-privacy { font-size: 12.5px; color: var(--muted); text-align: center; margin: 12px 0 0; line-height: 1.55; }
.link-inline { background: none; border: 0; color: var(--accent-ink); font-weight: 600; font-family: inherit; font-size: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.page-title { font-size: clamp(26px, 5vw, 36px); font-weight: 800; letter-spacing: -.03em; margin: 28px 0 8px; }
.prose h2 { font-size: 18px; margin: 24px 0 6px; }
.prose p { color: var(--muted); margin: 0 0 12px; line-height: 1.65; }
.prose strong { color: var(--text); }
.foot a { text-decoration: underline; text-underline-offset: 2px; }
