/* Landing page kdoprvni.cz — stejný kreslený styl jako aplikace (tlusté obrysy, „vystouplé“ stíny, krémové pozadí). */
:root {
  --bg: #fff8ec; --bg2: #fff1d9; --ink: #2b2140; --muted: #6d6480; --card: #fff; --line: #2b2140;
  --primary: #ff6b4a; --primary-ink: #fff; --ok: #2fb36d; --chip: #ffe7a8; --sky: #bfe3ff;
  --shadow: 0 5px 0 var(--line); --r: 22px;
  font-family: "Nunito", "Segoe UI Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1d1830; --bg2: #241d3b; --ink: #f6f0ff; --muted: #b9afcf; --card: #2a2342; --line: #0e0b18; --chip: #4b3d1a; --sky: #2b3f63; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 900; text-align: center; }
h3 { font-size: 1.15rem; font-weight: 900; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border: 3px solid var(--line); border-radius: 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 20px; border: 3px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); font-weight: 900; font-size: 1.05rem; text-decoration: none; background: var(--card); color: var(--ink);
  transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--line); }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.small { min-height: 40px; padding: 6px 14px; font-size: .95rem; box-shadow: 0 3px 0 var(--line); }
.btn.play { background: #1d1830; color: #fff; padding: 8px 20px 8px 16px; }
.btn.play svg { width: 26px; height: 26px; color: #7ce3a1; }
.btn.play span { display: grid; text-align: left; line-height: 1.1; font-size: 1.15rem; }
.btn.play small { font-weight: 700; font-size: .72rem; opacity: .85; letter-spacing: .02em; }
.btn.wide { width: 100%; }
.btn.light { background: #fff; color: #2b2140; }
.link { font-weight: 800; color: var(--primary); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* navigace */
.nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 3px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.3rem; text-decoration: none; letter-spacing: -.02em; }
.brand img { border-radius: 10px; border: 2px solid var(--line); }
.brand.small { font-size: 1.1rem; margin-bottom: 10px; }
.nav nav { display: flex; gap: 20px; margin-left: auto; }
.nav nav a { text-decoration: none; font-weight: 800; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; max-width: 1140px; margin: 0 auto; padding: 40px 16px 56px; }
.kicker { display: inline-block; background: var(--chip); border: 2px solid var(--line); border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: .92rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.8rem, 9vw, 5.2rem); font-weight: 900; letter-spacing: -.04em; }
.hl { color: var(--primary); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 2%; right: 4%; bottom: .06em; height: .14em; background: var(--chip); border-radius: 99px; z-index: -1; }
.lead { font-size: clamp(1.08rem, 2.6vw, 1.3rem); color: var(--muted); margin: 18px 0 26px; max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.ctas.center { justify-content: center; }
.proof { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: .97rem; }
.proof b { color: var(--ink); font-size: 1.15rem; }
.hero-phone { position: relative; justify-self: center; }
.phone { position: relative; width: min(330px, 78vw); aspect-ratio: 360 / 740; border: 4px solid var(--line); border-radius: 40px; background: var(--card);
  box-shadow: 0 10px 0 var(--line), 0 30px 60px rgba(43, 33, 64, .18); overflow: hidden; transform: rotate(2deg); }
.phone img, .phone iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.phone.live { transform: none; }
.phone-play { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); border: 3px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  background: var(--primary); color: #fff; font: inherit; font-weight: 900; font-size: 1.05rem; padding: 12px 20px; cursor: pointer; white-space: nowrap; }
.sticker { position: absolute; background: var(--card); border: 3px solid var(--line); border-radius: 14px; box-shadow: 0 4px 0 var(--line); padding: 6px 12px; font-weight: 900; white-space: nowrap; animation: bob 3.2s ease-in-out infinite; }
.s1 { top: 14%; left: -46px; transform: rotate(-6deg); }
.s2 { bottom: 22%; right: -40px; background: #dff7e8; color: #17603a; animation-delay: -1.4s; }
@keyframes bob { 50% { translate: 0 -8px; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; text-align: center; gap: 36px; }
  .lead { margin-left: auto; margin-right: auto; }
  .ctas, .proof { justify-content: center; }
  .s1 { left: -14px; } .s2 { right: -10px; }
}
@media (max-width: 420px) { .ctas .btn { width: 100%; } }

/* pás kategorií */
.chips { overflow: hidden; border-block: 3px solid var(--line); background: var(--chip); padding: 12px 0; }
.chips-track { display: flex; gap: 12px; width: max-content; animation: slide 70s linear infinite; }
.chips span { background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 4px 14px; font-weight: 800; white-space: nowrap; font-size: .95rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* sekce */
.sec { max-width: 1140px; margin: 0 auto; padding: 72px 16px; }
.sec.alt { max-width: none; background: var(--bg2); border-block: 3px solid var(--line); }
.sec.alt > * { max-width: 1108px; margin-left: auto; margin-right: auto; }
.sub { text-align: center; color: var(--muted); font-size: 1.12rem; max-width: 40em; margin: 12px auto 40px; }
.sub.left { text-align: left; margin: 14px 0 22px; }
.center { text-align: center; margin-top: 28px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { position: relative; text-align: center; }
.steps figure { margin: 0 auto 18px; width: min(240px, 70vw); border: 4px solid var(--line); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.steps .num { position: absolute; top: -14px; left: calc(50% - min(120px, 35vw) - 12px); width: 44px; height: 44px; display: grid; place-items: center; background: var(--primary); color: #fff;
  border: 3px solid var(--line); border-radius: 50%; font-weight: 900; font-size: 1.2rem; box-shadow: 0 3px 0 var(--line); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); max-width: 22em; margin: 0 auto; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 48px; } }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.features article { background: var(--card); border: 3px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.features .ico { font-size: 2rem; display: block; margin-bottom: 10px; }
.features h3 { margin-bottom: 6px; }
.features p { color: var(--muted); font-size: .97rem; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery a { text-decoration: none; background: var(--card); border: 3px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: transform .12s; }
.gallery a:hover { transform: translateY(-3px) rotate(-.6deg); }
.gallery img { aspect-ratio: 1; width: 100%; object-fit: cover; border-bottom: 3px solid var(--line); }
.gallery span { display: block; padding: 12px 14px; font-size: .95rem; color: var(--muted); }
.gallery b { display: block; color: var(--ink); font-size: 1.02rem; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; } .gallery span { font-size: .85rem; padding: 10px; } }

.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.split h2 { text-align: left; }
.split > div, .split > figure { margin: 0 !important; }
.phone.small { width: min(280px, 70vw); justify-self: center; transform: rotate(-2deg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split h2, .sub.left { text-align: center; } .split .ticks { max-width: 26em; margin: 0 auto; } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 34px; position: relative; font-weight: 700; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; display: grid; place-items: center; background: var(--ok); color: #fff; border: 2px solid var(--line); border-radius: 50%; font-size: .8rem; font-weight: 900; }

.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 24px; }
.prices.one { grid-template-columns: minmax(0, 440px); }
.price { position: relative; display: flex; flex-direction: column; gap: 18px; background: var(--card); border: 3px solid var(--line); border-radius: 26px; box-shadow: 0 6px 0 var(--line); padding: 28px 24px; }
.price.best { border-color: var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 14%, var(--card)), var(--card) 45%); }
.price .amount { font-size: 2.6rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.price .amount small { font-size: 1rem; color: var(--muted); font-weight: 800; letter-spacing: 0; }
.price .ticks { flex: 1; }
.badge { position: absolute; top: -16px; right: 20px; background: var(--chip); border: 2px solid var(--line); border-radius: 999px; padding: 3px 12px; font-weight: 900; font-size: .85rem; }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } }

.faq { max-width: 760px; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 3px solid var(--line); border-radius: 18px; box-shadow: 0 4px 0 var(--line); }
.faq summary { cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 900; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; font-size: 1.6rem; line-height: 1; color: var(--primary); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

.final { text-align: center; background: #2b2140; color: #fff; padding: 72px 16px; }
.final h2 { color: #fff; }
.final p { color: #d9d0ea; font-size: 1.15rem; margin: 12px 0 28px; }
.final .btn.play { background: var(--primary); }
.final .btn.play svg { color: #fff; }

.foot { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; max-width: 1140px; margin: 0 auto; padding: 40px 16px calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .95rem; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot nav a { text-decoration: none; font-weight: 800; color: var(--ink); }
.foot nav a:hover { color: var(--primary); }
.foot .tiny { grid-column: 1 / -1; font-size: .8rem; border-top: 2px dashed color-mix(in srgb, var(--muted) 50%, transparent); padding-top: 18px; }
@media (max-width: 600px) { .foot { grid-template-columns: 1fr; } }
