/* Detoxer – web (krok W1). Design systém appky: motiv Půlnoc (ui/theme/Palettes.kt), Manrope, znak, sklo jen na
   tlačítkách, pozadí = přechod + linie písku (pozadi-2 směr A). Barvy jen jako tokeny níže. */
@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope.a7751718c6.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Půlnoc */
  --gradient-top: #21406F;
  --gradient-bottom: #132745;
  --background: #19325A;
  --surface-low: #1E3A66;
  --surface-mid: #223F6D;
  --surface-high: #2A4C7E;
  --on-surface: #FFFFFF;
  --on-surface-variant: #C9D8EA;
  --primary: #55A0E1;
  --primary-light: #9CCBF2;
  --on-primary: #12284B;
  --outline-variant: #3C5F8F;
  --success: #7FC98A;
  --gold: #F7B955;
  --shadow: #0B1830;
  --cat-evening: #F2C46D;
  /* Mezery a tvary (Dimens, Design.kt) */
  --gutter: 20px;
  --gap: 16px;
  --gap-small: 12px;
  --card-padding: 24px;
  --r-small: 12px;
  --r-card: 20px;
  --r-big: 26px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { background: var(--gradient-bottom); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--on-surface);
  background: linear-gradient(180deg, var(--gradient-top) 0, var(--gradient-bottom) 100vh) no-repeat, var(--gradient-bottom);
  font: 400 17px/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum" 1;
  overflow-x: hidden;
}
#sand { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.page { position: relative; z-index: 1; overflow-x: clip; }
html { overflow-x: hidden; }

a { color: var(--primary-light); text-underline-offset: 3px; }
a:hover { color: var(--on-surface); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--surface-high); color: var(--on-surface);
  padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 9vw, 72px); line-height: 1.02; }
h2 { font-size: clamp(28px, 5vw, 44px); line-height: 1.12; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-surface-variant); }
.lead { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5; color: var(--on-surface-variant); max-width: 36em; }
.muted { color: var(--on-surface-variant); }
.small { font-size: 14px; line-height: 1.5; }

/* Hlavička */
.top { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter); display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-surface); text-decoration: none; font-weight: 800; letter-spacing: 0.12em; font-size: 15px; }
.brand svg { width: 36px; height: 36px; }
.top nav { margin-left: auto; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--on-surface); text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:hover { background: rgba(255, 255, 255, 0.08); }
.top nav .nav-optional { display: none; }
@media (min-width: 860px) { .top nav .nav-optional { display: inline-flex; } }

main { display: block; }
section { max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter); }
section > header { max-width: 760px; margin-bottom: 32px; display: grid; gap: 14px; }

/* Tlačítka – sklo (jen tady) */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 16px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 24px;
  border-radius: 999px; color: var(--on-surface); position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)), rgba(37, 82, 140, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 10px 24px -12px var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(185%); backdrop-filter: blur(18px) saturate(185%);
  transition: transform 0.25s cubic-bezier(.3, 1.6, .5, 1);
}
.btn:active { transform: scale(0.965); }
.btn.ghost { background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)), rgba(19, 39, 69, 0.55); }
.btn[aria-disabled="true"] { cursor: default; }
.btn small { font-weight: 600; color: var(--on-surface-variant); font-size: 13px; }
.link-btn { appearance: none; background: none; border: 0; padding: 10px 4px; min-height: 44px; font: inherit; color: var(--primary-light); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Karty – styl „Ostrůvky“ */
.card {
  border-radius: var(--r-card); padding: var(--card-padding);
  background: linear-gradient(180deg, rgba(42, 76, 126, 0.85), rgba(30, 58, 102, 0.85));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 18px -10px var(--shadow);
}
.grid { display: grid; gap: var(--gap); }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card h3 { margin-bottom: 8px; }
.card p + p { margin-top: 10px; }
.medal { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(85, 160, 225, 0.14); color: var(--on-surface); margin-bottom: 16px; flex: none; }
.medal svg { width: 28px; height: 28px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 9px; background: var(--success); }
.ticks.off li::before { background: transparent; box-shadow: inset 0 0 0 2px var(--on-surface-variant); }

/* Hero */
.hero { display: grid; gap: 40px; align-items: center; padding-top: 32px; }
@media (min-width: 940px) { .hero { grid-template-columns: 1.05fr 1fr; padding-top: 56px; } }
.hero-text { display: grid; gap: 22px; position: relative; z-index: 2; }
.hero-text .lead { color: var(--on-surface); opacity: 0.92; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.soon { font-weight: 700; color: var(--on-surface-variant); }
.stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.stage .orbit-bg { position: absolute; width: min(600px, 140vw); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; opacity: 0.95; }

/* Telefon s ukázkou obrazovky Dnes */
.phone {
  position: relative; width: min(100%, 340px); aspect-ratio: 411 / 891; border-radius: 44px; padding: 10px;
  background: linear-gradient(160deg, #3a5a88, #0d1d36); box-shadow: 0 40px 80px -30px #050d1c, inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.screen {
  position: relative; height: 100%; border-radius: 35px; overflow: hidden; container-type: inline-size;
  background: linear-gradient(180deg, var(--gradient-top), var(--gradient-bottom));
  display: flex; flex-direction: column;
}
.screen .view { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 30px 14px 12px; gap: 10px; }
.screen [hidden] { display: none !important; }
.app-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; text-align: center; }
.app-head b { display: block; font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.app-head span { font-size: 12px; color: var(--on-surface-variant); }
.round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); position: relative; overflow: visible; }
.round svg { width: 24px; height: 24px; }
.round .mini { width: 38px; height: 38px; border-radius: 50%; }
.round .plus { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 13px; line-height: 16px; font-weight: 800; }
.lock { display: grid; justify-items: center; gap: 4px; margin-top: 2px; }
.hold {
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer; color: var(--on-surface);
  width: 50cqw; max-width: 190px; aspect-ratio: 1; border-radius: 50%; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.hold svg { width: 100%; height: 100%; overflow: visible; }
.hold-label { font-weight: 700; font-size: 16px; }
.stays { font-size: 12px; line-height: 1.4; color: var(--on-surface-variant); text-align: center; padding: 0 8px; }
.tcard { border-radius: 18px; padding: 12px 14px 12px; text-align: center; }
.tcard .eyebrow { font-size: 10px; letter-spacing: 0.14em; }
.trow { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-top: 4px; }
.step { appearance: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45); color: var(--on-surface); cursor: pointer; display: grid; place-items: center; }
.step svg { width: 20px; height: 20px; }
.clock { font-size: clamp(34px, 13cqw, 44px); line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.units { font-size: 12px; color: var(--on-surface-variant); margin-top: 2px; }
.range { width: 100%; margin: 6px 0 0; accent-color: var(--primary); height: 28px; cursor: pointer; }
.scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--on-surface-variant); }
.back { margin-top: 6px; font-size: 15px; color: var(--on-surface-variant); }
.back b { color: var(--on-surface); }
.plan { border-radius: 18px; padding: 12px 14px; display: grid; grid-template-columns: 40px 1fr 20px; gap: 12px; align-items: center; text-align: left; }
.plan .cat { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #3e4a5c; color: var(--cat-evening); }
.plan .cat svg { width: 24px; height: 24px; }
.plan .eyebrow { font-size: 10px; }
.plan b { display: block; font-size: 16px; }
.plan span { font-size: 13px; color: var(--on-surface-variant); }
.plan .arrow { width: 20px; height: 20px; }
.tabbar { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 999px; padding: 6px; font-size: 11px; text-align: center;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.tabbar span { display: grid; justify-items: center; gap: 2px; padding: 4px 0; border-radius: 999px; color: var(--on-surface); }
.tabbar span:first-child { background: rgba(85, 160, 225, 0.22); color: var(--primary-light); }
.tabbar svg { width: 20px; height: 20px; }
.demo-note { position: absolute; left: 50%; transform: translateX(-50%); top: 6px; z-index: 3; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(11, 24, 48, 0.75); color: var(--on-surface-variant); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

/* Panel „Ještě chvíle na rozmyšlenou“ */
.sheet-wrap { position: absolute; inset: 0; background: rgba(5, 13, 28, 0.55); display: flex; align-items: flex-end; z-index: 4; }
.sheet { width: 100%; border-radius: 28px 28px 0 0; padding: 14px 18px 22px; background: var(--surface-high); text-align: center; display: grid; gap: 10px; animation: rise 0.35s cubic-bezier(.2, .9, .3, 1); }
.sheet .grip { width: 36px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); margin: 0 auto; }
.sheet .x { justify-self: end; margin-top: -8px; }
.sheet h3 { font-size: 20px; }
.sheet .big { font-size: 64px; line-height: 1; font-weight: 800; }
.sheet p { font-size: 13px; color: var(--on-surface-variant); }
.sheet p b { color: var(--on-surface); }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Odpočet */
.run-head { text-align: center; }
.run-head b { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.run-status { text-align: center; font-size: 10px; }
.ring { position: relative; width: 82cqw; max-width: 270px; aspect-ratio: 1; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; }
.ring .inside { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 4px; }
.ring .left-time { font-size: 15cqw; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
@container (min-width: 330px) { .ring .left-time { font-size: 48px; } }
.reason { text-align: center; display: grid; gap: 2px; }
.reason b { font-size: 17px; }
.run-text { text-align: center; font-size: 12px; color: var(--on-surface-variant); }
.screen .btn { min-height: 46px; padding: 10px 18px; font-size: 15px; width: 100%; }
.run-links { display: flex; justify-content: center; gap: 12px; font-size: 13px; }

/* Co se zamkne */
.platform h3 { display: flex; align-items: center; gap: 10px; }
.platform .tag { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(11, 24, 48, 0.35); color: var(--primary-light); }
.cols { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 520px) { .cols { grid-template-columns: 1fr 1fr; } }
.cols .eyebrow { margin-bottom: 4px; display: block; }
.cols ul { margin-top: 6px; }

/* Kroky */
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 64px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 20px; left: var(--card-padding); width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: var(--on-primary); background: var(--primary); }

/* Svět */
.world { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .world { grid-template-columns: 1fr 1fr; } }
.world-stage { width: min(100%, 460px); margin: 0 auto; aspect-ratio: 1; }
.world-ctl { display: grid; gap: 12px; }
.world-ctl output { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }

/* Ceník */
.price { display: grid; gap: 8px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border-radius: 18px; padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--primary-light); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--on-surface-variant); }

/* Stažení */
.download { text-align: center; display: grid; justify-items: center; gap: 20px; }
.download .mark { width: 96px; height: 96px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero .stores { justify-content: flex-start; }

/* Patička */
footer.site { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 56px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: grid; gap: 20px; font-size: 14px; color: var(--on-surface-variant); }
@media (min-width: 760px) { footer.site { grid-template-columns: 1.4fr 1fr; } }
footer.site address { font-style: normal; line-height: 1.7; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-content: start; }
footer.site nav a { min-height: 44px; display: inline-flex; align-items: center; }

/* Dokumenty (Podmínky, Zásady, Kontakt, Kód, 404) */
.doc { max-width: 820px; margin: 0 auto; padding: 24px var(--gutter) 64px; }
.doc .card { margin-bottom: 24px; }
.doc h1 { font-size: clamp(30px, 6vw, 44px); margin-bottom: 10px; }
.doc h2 { font-size: 22px; line-height: 1.3; margin: 28px 0 8px; letter-spacing: -0.02em; }
.doc p, .doc li { line-height: 1.65; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc .version { color: var(--on-surface-variant); }
.doc .table { overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--outline-variant); }
.doc th { color: var(--on-surface-variant); }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.langs a { padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--on-surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); min-height: 44px; display: inline-flex; align-items: center; }
.langs a[aria-current] { box-shadow: inset 0 0 0 2px var(--primary); font-weight: 800; }
.code-big { font-size: clamp(36px, 10vw, 56px); font-weight: 800; letter-spacing: 0.06em; color: var(--gold); word-break: break-all; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 420px) {
  section { padding: 56px var(--gutter); }
  .stage { min-height: 600px; }
}

/* Galaxie Zen – obrázky úrovní (WebP, průhledné) */
.world-stage img, .orbit-bg { display: block; width: 100%; height: auto; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { min-width: 48px; min-height: 48px; border-radius: 999px; border: 0; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer;
  color: var(--on-surface); background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.pick[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.pick:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.level-name { font-size: 28px; line-height: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 0; }

/* Šest motivů – vzorek: pozadí gradientTop → gradientBottom, tečka primary (Palettes.kt) */
.themes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.themes li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.swatch { flex: none; width: 40px; height: 40px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.swatch::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; right: 6px; top: 6px; background: var(--sw); }
.sw-midnight { background: linear-gradient(160deg, #21406F, #132745); --sw: #55A0E1; }
.sw-purple { background: linear-gradient(160deg, #241650, #0E0722); --sw: #B79BFF; }
.sw-mono { background: linear-gradient(160deg, #1C1C20, #0A0A0C); --sw: #E8E8EA; }
.sw-spring { background: linear-gradient(160deg, #1C382B, #0A140F); --sw: #9ED0B1; }
.sw-grafit { background: linear-gradient(160deg, #181A20, #08090C); --sw: #7CC4FF; }
.sw-amber { background: linear-gradient(160deg, #181A20, #08090C); --sw: #F7B955; }

/* Odpočet – prsten a ryska */
.ring .track { stroke: rgba(255, 255, 255, 0.12); }
.ring .arc { stroke: var(--primary); }
.tick { stroke: rgba(255, 255, 255, 0.10); stroke-width: 1; }
.tick.done { stroke: rgba(85, 160, 225, 0.35); }
.hold .wave { transition: none; }
.hold .stone-glow { transition: opacity .3s; }

.h1like { font-size: clamp(30px, 6vw, 44px); line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 10px; }
.demo-help { position: relative; z-index: 1; text-align: center; margin-top: 18px; max-width: 340px; }
.fair { margin-top: 20px; max-width: 760px; }
.price-note { margin-top: 20px; max-width: 760px; }
.doc .btn { margin-top: 8px; }
.stores .btn { min-width: 168px; }
.download .mark { color: var(--on-surface); }
.wordmark { height: 16px; width: auto; }
.brand .mark { width: 36px; height: 36px; }
[hidden] { display: none !important; }
