/* Medify – spoločné štýly (úvodná stránka aj aplikácia). Farby: biela, čierna, sýto červená. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --surface: #ffffff;
  --surface-2: #f2f2f4;
  --text: #0a0a0a;
  --muted: #62646b;
  --border: #e6e6ea;
  --red: #e3001b;
  --red-hover: #c20017;
  --red-soft: #fdebed;
  --on-red: #ffffff;
  --ink: #0a0a0a;
  --on-ink: #ffffff;
  --ok: #0f9d4c;
  --ok-soft: #e5f6ec;
  --warn: #c77700;
  --warn-soft: #fff3df;
  --bad: #e3001b;
  --bad-soft: #fdebed;
  --shadow: 0 1px 2px rgba(10, 10, 10, .04), 0 4px 16px rgba(10, 10, 10, .06);
  --shadow-lg: 0 10px 40px rgba(10, 10, 10, .12);
  --radius: 16px;
  --radius-sm: 10px;
  --img-filter: none;
  --wordmark: url("brand/medify-wordmark.svg");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0b; --bg-soft: #111113; --surface: #141416; --surface-2: #1d1d20; --text: #f4f4f5; --muted: #a1a1aa;
    --border: #2a2a2f; --red: #ff2340; --red-hover: #ff4a62; --red-soft: #3b0d15; --ink: #f4f4f5; --on-ink: #0a0a0b;
    --ok: #3ccf7a; --ok-soft: #10301e; --warn: #f2a33a; --warn-soft: #36270f; --bad: #ff4058; --bad-soft: #3b0d15;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .3); --shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
    --img-filter: invert(.92); --wordmark: url("brand/medify-wordmark-white.svg"); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0b; --bg-soft: #111113; --surface: #141416; --surface-2: #1d1d20; --text: #f4f4f5; --muted: #a1a1aa;
  --border: #2a2a2f; --red: #ff2340; --red-hover: #ff4a62; --red-soft: #3b0d15; --ink: #f4f4f5; --on-ink: #0a0a0b;
  --ok: #3ccf7a; --ok-soft: #10301e; --warn: #f2a33a; --warn-soft: #36270f; --bad: #ff4058; --bad-soft: #3b0d15;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .3); --shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
  --img-filter: invert(.92); --wordmark: url("brand/medify-wordmark-white.svg"); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 800; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.08rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.red { color: var(--red); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }
.hidden { display: none !important; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.page { padding-top: 28px; padding-bottom: 56px; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo .mark { width: 32px; height: 32px; border-radius: 9px; display: block; }
.logo .word { width: 96px; height: 31px; background: var(--wordmark) no-repeat left center / contain; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .container { display: flex; align-items: center; gap: 18px; height: 64px; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 9px; font-size: .93rem; font-weight: 600; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.active { color: var(--text); background: var(--surface-2); }
.nav a.btn { color: var(--on-red); margin-left: 8px; }
.nav a.btn:hover { background: var(--red-hover); color: var(--on-red); }
.topbar .menu-btn { display: none; }
@media (max-width: 820px) {
  .topbar .menu-btn { display: inline-flex; margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a.btn { margin: 8px 0 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; white-space: nowrap;
  background: var(--red); color: var(--on-red); transition: background .15s, border-color .15s, transform .06s, box-shadow .15s;
}
.btn:hover { background: var(--red-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .opt:focus-visible, .letter:focus-visible, .qnav button:focus-visible, .pick:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--red) 40%, transparent); outline-offset: 2px;
}
.btn.dark { background: var(--ink); color: var(--on-ink); }
.btn.dark:hover { background: color-mix(in srgb, var(--ink) 82%, var(--red)); }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.secondary:hover { border-color: var(--text); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.sm { padding: 7px 13px; font-size: .86rem; border-radius: 9px; }
.btn.lg { padding: 15px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card.shadow { box-shadow: var(--shadow); }
.card.soft { background: var(--bg-soft); }
.card.black { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.card.black .muted { color: #a1a1aa; }
.card.red { background: var(--red); color: #fff; border-color: var(--red); }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .grid.c2, .grid.c3 { grid-template-columns: minmax(0, 1fr); } }

.tile .label { color: var(--muted); font-size: .82rem; font-weight: 600; }
.tile .value { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tile .sub { color: var(--muted); font-size: .8rem; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px;
  background: var(--surface-2); color: var(--muted); font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.ink { background: var(--ink); color: var(--on-ink); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }

.bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.bar.red > span { background: var(--red); }
.bar.ok > span { background: var(--ok); }
.bar.warn > span { background: var(--warn); }
.bar.bad > span { background: var(--bad); }

/* Forms */
label.field { display: block; }
label.field > span { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input:not([type]), input[type=search], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 11px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--text); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: .9rem;
  padding: 8px 15px; border-radius: 9px; cursor: pointer;
}
.seg button.on { background: var(--ink); color: var(--on-ink); }
.picks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pick {
  text-align: left; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); border-radius: 14px;
  padding: 14px 16px; font: inherit; cursor: pointer; transition: border-color .12s, box-shadow .12s;
}
.pick:hover { border-color: color-mix(in srgb, var(--text) 50%, var(--border)); }
.pick strong { display: block; font-size: 1rem; }
.pick span { color: var(--muted); font-size: .84rem; }
.pick.on { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.pick.on strong { color: var(--red); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 4px; cursor: pointer; font-size: .93rem; }
.check input { margin-top: 3px; accent-color: var(--red); width: 17px; height: 17px; flex: none; }
.check .lock { margin-left: auto; }
.setup-step { display: grid; gap: 10px; }
.setup-step > .label { font-weight: 800; font-size: .95rem; }

/* Question */
.q-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.q-stem { font-size: 1.14rem; font-weight: 700; margin-bottom: 18px; line-height: 1.4; }
.opts { display: grid; gap: 9px; }
.opt {
  display: flex; gap: 13px; align-items: center; text-align: left; width: 100%; min-height: 52px;
  padding: 10px 14px; border-radius: 13px; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; cursor: pointer; transition: border-color .12s, background .12s;
}
.opt:hover { border-color: color-mix(in srgb, var(--text) 45%, var(--border)); }
.opt .box {
  flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--border);
  display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--muted); background: var(--surface-2);
  text-transform: uppercase;
}
.opt .txt { flex: 1; min-width: 0; }
.opt .txt svg { display: block; max-width: 100%; height: auto; filter: var(--img-filter); }
.opt.on { border-color: var(--ink); background: var(--surface-2); }
.opt.on .box { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.opt[disabled] { cursor: default; }
.opt.r-hit { border-color: var(--ok); background: var(--ok-soft); }
.opt.r-hit .box { background: var(--ok); border-color: var(--ok); color: #fff; }
.opt.r-miss { border-color: var(--warn); border-style: dashed; }
.opt.r-miss .box { border-color: var(--warn); color: var(--warn); }
.opt.r-wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt.r-wrong .box { background: var(--bad); border-color: var(--bad); color: #fff; }
.opt.r-right { border-color: color-mix(in srgb, var(--ok) 35%, var(--border)); }
.opt .tag { flex: none; font-size: .74rem; font-weight: 800; }
.opt.r-hit .tag, .opt.r-right .tag { color: var(--ok); }
.opt.r-miss .tag { color: var(--warn); }
.opt.r-wrong .tag { color: var(--bad); }
.stem-img { margin-bottom: 16px; }
.stem-img svg, .qimg { display: block; max-width: 100%; height: auto; filter: var(--img-filter); border-radius: 6px; }
.letters { display: grid; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); gap: 8px; }
.letter {
  height: 52px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer;
}
.letter:hover { border-color: color-mix(in srgb, var(--text) 45%, var(--border)); }
.letter.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.letter.r-hit { background: var(--ok); border-color: var(--ok); color: #fff; }
.letter.r-miss { border-color: var(--warn); border-style: dashed; color: var(--warn); background: var(--warn-soft); }
.letter.r-wrong { background: var(--bad); border-color: var(--bad); color: #fff; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.feedback { margin-top: 16px; padding: 15px 17px; border-radius: 13px; background: var(--surface-2); }
.feedback.ok { background: var(--ok-soft); }
.feedback.bad { background: var(--bad-soft); }
.feedback strong { display: block; margin-bottom: 2px; }
.points { font-variant-numeric: tabular-nums; font-weight: 800; }
.points.pos { color: var(--ok); }
.points.neg { color: var(--bad); }

.runner-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; padding: 7px 13px; border-radius: 10px; background: var(--surface-2); }
.timer.low { background: var(--red); color: #fff; }
.progress-line { height: 4px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.progress-line span { display: block; height: 100%; background: var(--red); transition: width .2s; }
.runner-foot { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.runner-foot .spacer { flex: 1; }
.qnav { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.qnav button {
  height: 36px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums;
}
.qnav button.answered { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.qnav button.cur { outline: 2px solid var(--red); outline-offset: 1px; color: var(--text); }
.qnav button.answered.cur { color: var(--on-ink); }
.qnav button.g-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.qnav button.g-bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.flag-btn { margin-left: auto; }
.flag-btn.on { color: var(--red); }

/* Lists, rows */
.list > .item { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); color: inherit; }
.list > .item:first-child { border-top: 0; }
.list > a.item:hover { text-decoration: none; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 700; }
.score-pill { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.topic-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 60px auto; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--border); }
.topic-row:first-child { border-top: 0; }
@media (max-width: 640px) { .topic-row { grid-template-columns: minmax(0, 1fr) 54px auto; } .topic-row .bar { display: none; } }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 110px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.chart .col span { display: block; background: var(--ink); border-radius: 4px 4px 0 0; min-height: 2px; }
.chart .col:last-child span { background: var(--red); }
.chart .col span.zero { background: var(--surface-2); }
.chart-x { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; margin-top: 6px; }
.empty { text-align: center; padding: 30px 16px; color: var(--muted); }
.banner { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 15px 18px; border-radius: var(--radius); background: var(--surface-2); }
.banner.red { background: var(--red-soft); }
.banner .grow { flex: 1; min-width: 200px; }
.big-score { font-size: clamp(2.6rem, 8vw, 3.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring { width: 96px; height: 96px; flex: none; }
.ring circle { fill: none; stroke-width: 10; }
.ring .bg { stroke: var(--surface-2); }
.ring .fg { stroke: var(--red); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .4s; }
.ring text { font-weight: 800; font-size: 22px; fill: var(--text); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--on-ink); padding: 11px 18px; border-radius: 11px; font-weight: 700; font-size: .92rem;
  box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .2s; pointer-events: none; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; }
details.q-review { border-top: 1px solid var(--border); }
details.q-review summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: center; padding: 12px 0; }
details.q-review summary::-webkit-details-marker { display: none; }
details.q-review .body { padding: 4px 0 18px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); }
.dot.part { background: var(--warn); }
.dot.bad { background: var(--bad); }
.kbd { font: 700 .74rem ui-monospace, SFMono-Regular, Menlo, monospace; padding: 1px 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; color: var(--muted); }
@media (pointer: coarse) { .kbd-hint { display: none; } }

/* Study notes */
.prose { font-size: 1.02rem; line-height: 1.7; }
.prose h2 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.05rem; margin: 1.3em 0 .4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.prose li::marker { color: var(--red); }
.prose strong { font-weight: 800; }
.prose .tip { border-left: 4px solid var(--red); background: var(--red-soft); padding: 12px 16px; border-radius: 0 12px 12px 0; margin: 1.2em 0; }
.topic-card { display: block; color: inherit; }
.topic-card:hover { text-decoration: none; border-color: var(--text); }

/* Landing */
.hero { padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.4rem); letter-spacing: -.035em; line-height: 1.04; max-width: 12em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); max-width: 34em; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 40px; } }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.trust b { color: var(--text); font-size: 1.15rem; display: block; letter-spacing: -.02em; }
.section { padding: 76px 0; }
.section.soft { background: var(--bg-soft); }
.section.black { background: #0a0a0a; color: #fff; }
.section.black .muted { color: #a1a1aa; }
.section-head { max-width: 680px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.feature.new { position: relative; }
.feature.new::after { content: "Novinka"; position: absolute; top: 20px; right: 20px; font-size: .68rem; font-weight: 800; color: var(--red); letter-spacing: .06em; text-transform: uppercase; }
.steps { counter-reset: s; }
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: s; content: counter(s); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 11px;
  background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800;
}
.exam-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #2a2a2f; border-radius: 18px; overflow: hidden; }
.exam-facts > div { background: #111113; padding: 26px 22px; }
.exam-facts b { display: block; font-size: 2.2rem; letter-spacing: -.04em; color: #fff; line-height: 1.1; }
.exam-facts span { color: #a1a1aa; font-size: .9rem; }
@media (max-width: 760px) { .exam-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-size: .78rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.compare td:nth-child(2), .compare th:nth-child(2) { background: var(--red-soft); }
.compare th:nth-child(2) { color: var(--red); }
.compare td:nth-child(2) { font-weight: 700; }
.compare .no { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
.plan { display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan.featured { border: 2px solid var(--red); box-shadow: var(--shadow-lg); }
.plan .price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.plan ul { padding: 0; margin: 12px 0 20px; list-style: none; color: var(--muted); font-size: .93rem; }
.plan li { padding: 4px 0 4px 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 11px; height: 6px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.plan .badge { position: absolute; top: -13px; left: 22px; background: var(--red); color: #fff; }
.faq details { border-top: 1px solid var(--border); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.cta-band { background: var(--red); color: #fff; border-radius: 26px; padding: 52px 44px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band .btn { background: #fff; color: #0a0a0a; }
.cta-band .btn:hover { background: #0a0a0a; color: #fff; }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; padding: 36px 24px; } }
.footer { padding: 40px 0 56px; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--border); }
.demo-card { box-shadow: var(--shadow-lg); border-radius: 22px; }
.demo-card .opt { min-height: 46px; font-size: .95rem; }
.founder { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.founder .avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.8rem; }
@media (max-width: 560px) { .founder { grid-template-columns: 1fr; } }

/* ---- v3: dialógy, plán, ceny, súhlasy ---- */
.dlg { border: 0; border-radius: 18px; padding: 24px; width: min(480px, calc(100% - 32px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.dlg::backdrop { background: rgba(0, 0, 0, .5); }
textarea { width: 100%; padding: 11px 13px; border-radius: 11px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; resize: vertical; }
.expl { margin-top: 12px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.expl p { margin: 0 0 8px; }
.tl { display: flex; gap: 3px; height: 26px; border-radius: 8px; overflow: hidden; }
.tl-seg { display: flex; align-items: center; padding: 0 8px; font-size: .72rem; font-weight: 700; color: #fff; min-width: 0; }
.tl-seg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-seg.p1 { background: #0a0a0a; }
.tl-seg.p2 { background: #6b6b73; }
.tl-seg.p3 { background: var(--red); }
:root[data-theme="dark"] .tl-seg.p1 { background: #3a3a40; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tl-seg.p1 { background: #3a3a40; } }
.old { text-decoration: line-through; color: var(--muted); font-weight: 600; font-size: .55em; letter-spacing: 0; }
.price .old { margin-left: 6px; }
.consent-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 720px; margin: 0 auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
}
.consent-bar p { margin: 0; font-size: .88rem; color: var(--muted); }
.consent-bar .row { flex-wrap: wrap; }
@media (max-width: 600px) { .consent-bar { grid-template-columns: 1fr; } }
.waitlist { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
@media (max-width: 700px) { .waitlist { grid-template-columns: 1fr; } }
.legal { max-width: 780px; }
.legal h1 { font-size: 2rem; }
.legal .draft { border: 2px dashed var(--red); border-radius: 14px; padding: 14px 18px; background: var(--red-soft); margin-bottom: 24px; font-size: .92rem; }
.fact-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fact-table th, .fact-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.fact-table th { width: 38%; color: var(--muted); font-weight: 700; }
.tiny .old, .small .old { font-size: 1em; }
