:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #17202b;
  --muted: #5d6878;
  --line: #e2e6ec;
  --accent: #1f6fe5;
  --accent-text: #1a5fd0; /* the blue as text: 4.5:1 also on the grey page, the soft blue and the warning box */
  --accent-ink: #ffffff;
  --accent-soft: #e8f0fd;
  --ok: #16a34a;
  --bad: #dc2626;
  --radius: 14px;
  color-scheme: light;
}
/* Dark: by the system, unless the visitor picked light; or picked dark (assets/theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e131a;
    --card: #161d27;
    --ink: #e7ebf1;
    --muted: #98a3b4;
    --line: #283242;
    --accent: #5b97f7;
  --accent-text: #5b97f7;
    --accent-ink: #0e131a;
    --accent-soft: #1b2a42;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e131a;
  --card: #161d27;
  --ink: #e7ebf1;
  --muted: #98a3b4;
  --line: #283242;
  --accent: #5b97f7;
  --accent-text: #5b97f7;
  --accent-ink: #0e131a;
  --accent-soft: #1b2a42;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
[id] { scroll-margin-top: 72px; } /* a link to #anchor lands below the sticky header */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.3px; }
.logo span { color: var(--accent-text); }
/* logo C: the leaf (two corners round, two sharp) with a T */
.logo .mark { margin-right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px 2px 9px 2px; background: var(--accent); color: #fff; font-style: normal; font-size: 17px; letter-spacing: 0; }
nav.menu { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 15px; }
nav.menu a { color: var(--muted); text-decoration: none; }
nav.menu a.btn { color: var(--accent-ink); white-space: nowrap; text-align: center; }
@media (max-width: 420px) { header.top .wrap { gap: 8px; padding: 0 12px; } nav.menu { gap: 6px; } nav.menu a.btn { min-height: 38px; padding: 0 10px; font-size: 13.5px; } }
@media (max-width: 640px) { nav.menu a.hide-sm { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 10px; border: 0;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650;
  text-decoration: none; cursor: pointer;
}
.btn.secondary { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn[disabled] { opacity: 0.55; cursor: default; }

.hero { padding: 32px 0 20px; }
.hero h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -1px; }
.hero p.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 640px; margin: 0 0 26px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }

section { padding: 20px 0; }
@media (max-width: 640px) { section { padding: 12px 0; } section p.sub { margin-bottom: 9px; } .hero { padding: 18px 0 12px; } #cenik + section, #pricing + section { padding-top: 0; } }
section h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 8px; letter-spacing: -0.5px; }
section p.sub { color: var(--muted); margin: 0 0 14px; max-width: 680px; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .ico { font-size: 26px; margin-bottom: 8px; }

.steps { counter-reset: s; display: grid; gap: 12px; }
.steps .card { position: relative; padding-left: 64px; }
.steps .card::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-text); font-weight: 800; display: grid; place-items: center;
}

.pricing { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.price { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin: 6px 0 2px; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.was { color: var(--muted); text-decoration: line-through; margin-left: 6px; font-size: 18px; font-weight: 500; }
.badge { display: inline-block; background: var(--accent-soft); color: var(--accent-text); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
ul.check { list-style: none; padding: 0; margin: 14px 0 18px; }
ul.check li { padding-left: 26px; position: relative; margin: 6px 0; font-size: 15px; }
ul.check li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
/* what a data leak costs: a warning mark instead of the tick */
ul.check.risk li::before { content: '!'; color: var(--bad, #dc2626); left: 6px; }
.featured { border: 2px solid var(--accent); }

form.box { display: grid; gap: 12px; }
form.box label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
form.box input, form.box select {
  font: inherit; font-size: 16px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); width: 100%; min-width: 0;
}
form.box input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.row2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.msg { font-size: 15px; min-height: 1.4em; margin: 0; }
.msg:empty { min-height: 0; margin-top: -12px; } /* no gap under the button until there is a message */
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--bad); }
.total { font-size: 15px; color: var(--muted); }

details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 650; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 8px 22px; }
footer a { color: var(--muted); }
/* Comgate, Visa and Mastercard in the footer (Comgate's terms): light or dark artwork by the theme */
.pay-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; }
.pay-logos a { display: flex; }
.pay-logos img { display: block; height: 16px; width: auto; }
.pay-logos img.mc { height: 24px; }
.pay-logos img[alt="Visa"] { height: 27px; } /* the artwork has wide margins */
footer .pay-logos { flex-basis: 100%; margin-top: 6px; gap: 10px 18px; }
/* trial + renewal beside the purchase: the cards end on one line (the renewal card takes the rest) */
#zkusit .pricing > .stack, #try .pricing > .stack { grid-template-rows: auto 1fr; }
/* renewal and purchase: consent and payment button sit at the bottom of each card, on one line */
#zkusit .card:has(> form.box), #try .card:has(> form.box) { display: flex; flex-direction: column; }
#zkusit .card > form.box, #try .card > form.box { flex: 1; display: flex; flex-direction: column; }
#zkusit .card > form.box > .consent, #try .card > form.box > .consent { margin-top: auto; }
.on-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-light { display: none !important; }
  :root:not([data-theme="light"]) .on-dark { display: block !important; }
}
:root[data-theme="dark"] .on-light { display: none !important; }
:root[data-theme="dark"] .on-dark { display: block !important; }

.doc { max-width: 760px; padding: 40px 16px 60px; margin: 0 auto; }
.doc h1 { font-size: 30px; }
.doc .draft { background: #fff4d6; color: #6b4e00; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .doc .draft { background: #3a2f10; color: #f3d88a; } }

.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; color: var(--muted); }
.consent input { width: 20px !important; height: 20px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--accent); }

/* Language switch: flags only; the current flag opens the list */
.lang-switch { position: relative; display: flex; align-items: center; align-self: center; background: none; border: 0; padding: 0; margin: 0; border-radius: 0; } /* not the FAQ box */
.lang-switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; padding: 4px; border-radius: 6px; font-weight: 400; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { background: transparent; opacity: .8; }
.lang-switch img { display: block; width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.lang-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: grid; grid-template-columns: repeat(4, 36px); gap: 2px; padding: 4px; background: var(--bg); }
[dir="rtl"] .lang-list { right: auto; left: 0; }
.lang-list a { display: flex; justify-content: center; padding: 6px 0; border-radius: 6px; }
.lang-list a:hover { opacity: .75; }
.lang-list a[aria-current] { display: none; }

/* tillpocket.store: local-rules notice, right-to-left pages */
.warn-box { border-color: #e8b14a; background: #fff8e8; }
.warn-box p { margin: 8px 0 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .warn-box { background: #3a2f10; border-color: #8a6a1c; } }
[dir="rtl"] .check li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .check li::before { left: auto; right: 0; }

/* Trial card: the trial starts in the till – a short card with its button, not stretched to the buy form */
/* try + renew stacked in one column beside the (taller) buy form */
.pricing > .stack { display: grid; gap: 14px; align-content: start; }
/* one column (phone): trial, buy, then renew */
@media (max-width: 640px) { .pricing > .stack { display: contents; } .pricing > .stack > .card + .card { order: 1; } }
.pricing > .card:has(.try-app) { align-self: start; }
.try-app { text-align: center; }
.try-app p { margin: 0; }
.try-app .btn { display: inline-flex; margin-top: 16px; }

:root[data-theme="dark"] .doc .draft { background: #3a2f10; color: #f3d88a; }
:root[data-theme="dark"] .warn-box { background: #3a2f10; border-color: #8a6a1c; }

/* The name in running text: till (ink) + pocket (blue), lower case. */
.wm { color: var(--ink); font-weight: 700; white-space: nowrap; }
.wm span { color: var(--accent-text); }
.btn .wm, .btn .wm span { color: inherit; }

/* Corner of the header: site version and the light / dark switch. */
header.top .corner { display: flex; align-items: center; gap: 6px; margin-left: 4px; color: var(--muted); font-size: 12px; }
/* pages without a menu (manuals, terms): the version and sun / moon on the right */
header.top .logo + .corner { margin-left: auto; }
header.top .theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
header.top .theme-btn:hover { background: var(--line); color: var(--ink); }
@media (max-width: 520px) { header.top .site-ver { display: none; } }


/* tillpocket.store: "without VAT – local VAT added at checkout" under each price */
.card .vat { margin: -4px 0 10px; font-size: 13px; color: var(--muted); }

/* tillpocket.store: EUR / USD switch beside the pricing subheading */
.price-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.price-head .sub { margin: 0; flex: 1 1 320px; }
.cur-switch { display: inline-flex; padding: 3px; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.cur-switch button { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; padding: 7px 16px; border-radius: 999px; cursor: pointer; min-height: 0; width: auto; margin: 0; }
.cur-switch button:hover { color: var(--ink); }
.cur-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.cur-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* buy form: this business already has a licence – the order is more devices for it */
.owned { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: 14px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }

/* a field's own error (e.g. a mistyped IČO) */
.field-bad { display: block; color: #c0392b; font-size: 12px; margin-top: 4px; }
.field-bad[hidden] { display: none; } /* a valid ID: no message (display: block above would show it anyway) */
input[aria-invalid="true"] { border-color: #c0392b; }

/* the one Cloudflare Turnstile check of the page, centred under the pricing cards */
.human-check { display: flex; justify-content: center; }
.human-check > * { margin-top: 14px; }

/* tillpocket.store footer: the "Secure payment by Stripe" seal next to the card logos */
.pay-logos a.secure-pay { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--muted); text-decoration: none; line-height: 1.2; }
.pay-logos a.secure-pay b { color: #5a52f0; font-weight: 700; letter-spacing: -0.01em; }
.pay-logos a.secure-pay svg { color: #2e9e5b; flex: none; }
.pay-logos a.secure-pay:hover { border-color: #635bff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pay-logos a.secure-pay b { color: #9d97ff; } }
:root[data-theme="dark"] .pay-logos a.secure-pay b { color: #9d97ff; }

/* skip to content (keyboard and screen readers) */
.skip{position:absolute;left:-9999px;top:8px;z-index:100;padding:8px 12px;border-radius:8px;background:var(--accent,#1f6fe5);color:#fff}
.skip:focus{left:8px}
