/* Layout: one narrow column for mobile. Quiz, result and the personal analysis share the same look. */
:root {
  --bg: #EAF0EE;
  --surface: #F8FBFA;
  --fg: #12242B;
  --muted: #4F6369;
  --line: #C9D6D3;
  --accent: #0E6F66;
  --accent-fg: #FFFFFF;
  --accent-soft: #CFE8E3;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1A1E;
    --surface: #14262B;
    --fg: #E4EEEC;
    --muted: #9DB3B0;
    --line: #28403F;
    --accent: #5ED3C2;
    --accent-fg: #08201C;
    --accent-soft: #17383A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1A1E;
  --surface: #14262B;
  --fg: #E4EEEC;
  --muted: #9DB3B0;
  --line: #28403F;
  --accent: #5ED3C2;
  --accent-fg: #08201C;
  --accent-soft: #17383A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  padding-block: 20px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 8vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 5vw, 1.9rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }
h4 { font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 650; font-size: 1.05rem; }
.brand svg { width: 26px; height: 26px; }

.btn {
  font: inherit; font-weight: 600; cursor: pointer;
  min-height: 50px; padding: 12px 24px; border-radius: 10px;
  border: 2px solid var(--accent); background: var(--accent); color: var(--accent-fg);
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { min-height: 42px; padding: 8px 16px; font-size: 0.95rem; }

/* úvod */
.intro { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two > div { padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.two b { font-family: var(--font-display); font-size: 1.05rem; }
.two span { font-size: 0.9rem; color: var(--muted); }
.note { font-size: 0.88rem; color: var(--muted); }

/* kvíz */
.quiz { display: flex; flex-direction: column; gap: 22px; }
.progress-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.25s ease; }
.qbody { display: flex; flex-direction: column; gap: 20px; }
.qtype { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.ctx { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); }
.ctx p { font-weight: 500; }
.question { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 5.2vw, 1.75rem); line-height: 1.22; letter-spacing: -0.015em; text-wrap: balance; min-height: 3.6em; }
.answers { display: flex; flex-direction: column; gap: 10px; }
.ans {
  font: inherit; text-align: left; cursor: pointer; color: var(--fg);
  display: flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 10px 16px; border-radius: 12px;
  background: var(--surface); border: 2px solid var(--line);
}
.ans:hover { border-color: var(--accent); }
.ans .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 0.9rem; border: 2px solid var(--line); font-variant-numeric: tabular-nums; }
.ans[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.ans[aria-pressed="true"] .n { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.ans > span:last-child { min-width: 0; }

/* A/B */
.ab { display: flex; flex-direction: column; gap: 10px; }
.stmt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); }
.stmt .n { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; background: var(--accent-soft); color: var(--accent); }
.ab-choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ab-choices .ans { justify-content: center; text-align: center; padding: 8px 4px; font-size: 0.92rem; min-height: 50px; }

/* posuvník */
.slider-box { display: flex; flex-direction: column; gap: 14px; }
.slider-val { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.slider-box input[type="range"] { width: 100%; height: 34px; accent-color: var(--accent); cursor: pointer; }
.slider-ends { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--muted); }

.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.link { font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; padding: 8px 0; }
.link[disabled] { visibility: hidden; }

/* medzivýsledok */
.inter { display: flex; flex-direction: column; gap: 16px; padding: 22px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.dots { display: flex; gap: 8px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); }
.dots i.on { background: var(--accent); border-color: var(--accent); }

/* výsledok */
.result { display: flex; flex-direction: column; gap: 30px; }
.hero { display: flex; flex-direction: column; gap: 10px; }
.score { display: flex; align-items: baseline; gap: 8px; }
.score b { font-family: var(--font-display); font-weight: 700; font-size: clamp(4.5rem, 22vw, 7rem); line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--accent); }
.score span { font-size: 1.2rem; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.type-card { display: flex; flex-direction: column; gap: 8px; }
.type-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 6.5vw, 2.3rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--accent); }
.lead { font-size: 1.05rem; font-weight: 500; }

/* mapa typov */
.mapwrap { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; gap: 8px; margin-top: 14px; }
.ylab { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: 0.72rem; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.xlab { grid-column: 2; text-align: center; font-size: 0.72rem; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(64px, 1fr)); gap: 6px; }
.cell { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 3px; padding: 6px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 0.76rem; line-height: 1.2; color: var(--muted); background: var(--bg); min-width: 0; overflow-wrap: anywhere; }
.cell.on { background: var(--accent-soft); border: 2px solid var(--accent); color: var(--fg); font-weight: 650; }
.cell .here { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

/* náhľad a paywall */
.paywall { display: flex; flex-direction: column; gap: 18px; border: 2px solid var(--accent); }
.free-panel { display: flex; flex-direction: column; gap: 20px; }
.lock { vertical-align: -3px; margin-right: 4px; }
.toc { display: flex; flex-direction: column; gap: 16px; }
.toc-row { display: flex; flex-direction: column; gap: 6px; }
.toc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.toc-head b { font-family: var(--font-display); font-size: 1.05rem; }
.toc-head span { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.toc-row p { font-size: 0.92rem; color: var(--muted); }
.toc-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.toc-bar i { display: block; height: 100%; background: var(--accent); }
.sec .sign { font-size: 0.93rem; color: var(--muted); padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }

.hook { display: flex; flex-direction: column; gap: 10px; border-top: 1px dashed var(--line); padding-top: 18px; }
.hook .cut { position: relative; color: var(--fg); }
.hook .cut::after { content: " …"; color: var(--accent); font-weight: 700; }
.invest { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stayline { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; display: flex; flex-direction: column; gap: 4px; }
.price-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 2rem; font-variant-numeric: tabular-nums; }
.pay { display: flex; flex-direction: column; gap: 12px; background: var(--accent-soft); border-radius: 12px; padding: 16px; }
.pay .tag { align-self: flex-start; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border: 1.5px solid var(--accent); color: var(--accent); padding: 2px 8px; border-radius: 6px; }

/* súvislý rozbor */
.detail { display: flex; flex-direction: column; gap: 18px; }
.report { display: flex; flex-direction: column; gap: 22px; }
.sec { display: flex; flex-direction: column; gap: 8px; }
.axes { display: flex; flex-direction: column; gap: 10px; }
.axis { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.axis .track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.axis .track i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.axis b { font-variant-numeric: tabular-nums; }
.life { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.life li { padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.life b { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.quote { padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line); font-size: 0.95rem; display: flex; flex-direction: column; gap: 4px; }
.quote + .quote { margin-top: 8px; }
.story { padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 6px; }
.steps { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.steps li::marker { color: var(--accent); font-weight: 600; }
.week { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.week:first-of-type { border-top: 0; padding-top: 0; }
.disclaimer { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* web */
.brand a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.cards { display: flex; flex-direction: column; gap: 14px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; color: inherit; }
.card:hover { border-color: var(--accent); }
.card h2 { font-size: 1.4rem; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.9rem; color: var(--muted); }
.card.soon { opacity: 0.7; border-style: dashed; }
.card.soon:hover { border-color: var(--line); }
.foot { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.foot a { color: var(--muted); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.consent input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); }
.consent a { color: var(--accent); }
.err { color: #B3261E; font-size: 0.92rem; font-weight: 500; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #FFB4AB; } }
.legal { display: flex; flex-direction: column; gap: 14px; }
.legal h2 { font-size: 1.2rem; margin-top: 10px; }
.legal ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.legal .warn { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 0.92rem; }
.center { text-align: center; align-items: center; }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }

.paywall .lead { font-weight: 500; }
.includes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.includes li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.includes .tick { flex: none; margin-top: 2px; color: var(--accent); }
.includes b { font-family: var(--font-display); font-size: 1.02rem; }
.includes p { font-size: 0.92rem; color: var(--muted); }
.price-box { display: flex; flex-direction: column; }
.btn.big { min-height: 56px; font-size: 1.05rem; padding: 14px 28px; flex: 1 1 240px; }
.price-row { flex-wrap: wrap; }
.cta { display: flex; flex-direction: column; gap: 10px; background: var(--accent-soft); border-color: var(--accent); }
.cta .btn { width: 100%; }

.teaser { color: var(--fg); font-size: 0.98rem; border-top: 1px dashed var(--line); padding-top: 14px; }
.teaser::after { content: " …"; color: var(--accent); font-weight: 700; }
.cta { background: none; border: 0; padding: 0; }
.cta .btn { width: 100%; }

/* charts */
.ruler { position: relative; display: flex; flex-direction: column; gap: 6px; padding-top: 14px; margin-top: 4px; }
.rz { display: flex; gap: 3px; height: 14px; }
.rz span { border-radius: 4px; background: var(--accent); }
.rz .z0 { opacity: 0.22; } .rz .z1 { opacity: 0.45; } .rz .z2 { opacity: 0.72; } .rz .z3 { opacity: 1; }
.pin { position: absolute; top: 4px; width: 4px; height: 30px; margin-left: -2px; border-radius: 2px; background: var(--fg); }
.rl { display: flex; gap: 3px; font-size: 0.74rem; color: var(--muted); }
.rl span { text-align: center; white-space: nowrap; overflow: hidden; }
.areas { display: flex; flex-direction: column; gap: 10px; }
.area { display: grid; grid-template-columns: minmax(0, 8.5em) 1fr; gap: 2px 12px; align-items: center; font-size: 0.92rem; }
.area .track { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.area .track i { display: block; height: 100%; border-radius: 5px; background: var(--accent); opacity: 0.55; }
.area.hi .track i { opacity: 1; }
.area.lo .track i { background: var(--fg); opacity: 0.7; }
.area em:empty { display: none; }
.area em { grid-column: 2; font-style: normal; font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* accordions */
.acc { border-top: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 14px 28px 14px 0; font-weight: 600; position: relative; min-height: 44px; display: flex; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.15s; }
.acc[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.acc summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acc > div { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; }
.weeks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wk { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; background: var(--accent-soft); font-size: 0.9rem; }
.wk span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.wk b { font-family: var(--font-display); font-size: 1rem; }
.wk p { color: var(--fg); }
.step-card { display: flex; flex-direction: column; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .acc summary::after { transition: none; } }
