/* Promo web Toulavého skřítka: papír, pastelka a výstřižky jako ve hře (hra/style.css, video/). Bez cizích serverů. */
:root {
  --paper: #f4eddd;
  --paper-2: #fbf6ea;
  --paper-3: #ebe1cb;
  --ink: #3b2f25;
  --ink-soft: #6b5a48;
  --red: #b8482e;
  --green: #5f8f3e;
  --blue: #4f86b8;
  --yellow: #ffd66b;
  --mint: #cfe6b4;
  --shadow: 3px 5px 0 rgba(59, 47, 37, .22);
  --hand: 'Patrick Hand', 'Baloo 2', system-ui, sans-serif;
  --round: 'Baloo 2', system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--round); font-size: 18px; line-height: 1.55;
  background: var(--paper) url(hra/assets/textures/paper.webp) repeat; background-size: 512px;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--hand); font-weight: 400; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(40px, 6vw, 60px); }
h3 { font-size: 30px; }
p { margin: 0 0 14px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper-2); padding: 8px 14px; border: 2px solid var(--ink); border-radius: 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* --- tlačítka --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 24px 6px;
  border: 3px solid var(--ink); border-radius: 999px; background: var(--paper-2); color: var(--ink);
  font-family: var(--hand); font-size: 25px; line-height: 1; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s; cursor: pointer;
}
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 4px 7px 0 rgba(59, 47, 37, .22); }
.btn:active { transform: translateY(2px); box-shadow: 1px 1px 0 rgba(59, 47, 37, .25); }
.btn.primary { background: var(--yellow); }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn.soon { background: var(--paper-3); cursor: default; }
.btn.soon:hover { transform: none; box-shadow: var(--shadow); }
.btn small { display: block; font-family: var(--round); font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-top: 2px; }
.store-note { font-size: 15px; color: var(--ink-soft); margin-top: 10px; }

/* --- hlavička --- */
.top { position: sticky; top: 0; z-index: 5; background: rgba(244, 237, 221, .92); backdrop-filter: blur(6px); border-bottom: 2px solid rgba(59, 47, 37, .12); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--hand); font-size: 28px; line-height: 1; }
.logo img { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--ink); }
.top nav { margin-left: auto; display: flex; gap: 22px; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; }
.top nav a:hover { color: var(--red); }
@media (max-width: 760px) { .top nav { display: none; } }

/* --- podtržení pastelkou --- */
.underline { display: block; width: min(100%, 520px); height: 16px; margin: 4px 0 18px; color: var(--red); }
.underline path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.1s .3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.center { text-align: center; }
.center .underline { margin-inline: auto; }

/* --- úvod --- */
.hero { position: relative; padding: 40px 0 70px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.kicker {
  display: inline-block; background: var(--yellow); border: 2px solid var(--ink); border-radius: 10px; padding: 3px 12px 1px;
  font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 2px 3px 0 rgba(59, 47, 37, .2); transform: rotate(-1.5deg);
}
.hero h1 { font-size: clamp(64px, 10vw, 124px); margin-top: 18px; }
.lead { font-size: clamp(20px, 2.4vw, 24px); font-weight: 600; color: var(--ink-soft); max-width: 34em; }
.lead strong { color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--paper-2); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 14px 1px; font-weight: 700; font-size: 15px; box-shadow: 2px 3px 0 rgba(59, 47, 37, .15); }
.facts li::before { content: '✓ '; color: var(--green); font-weight: 800; }

.stage { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 420 / 620; }
.phone {
  position: relative; width: 290px; aspect-ratio: 780 / 1688; margin: 0 auto; border-radius: 44px; padding: 11px;
  background: #2c241d; box-shadow: 0 0 0 2px #120e0b inset, 10px 16px 0 rgba(59, 47, 37, .2), 0 30px 50px rgba(59, 47, 37, .25);
  transform: rotate(2deg);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: var(--paper); }
.phone.small { width: 210px; border-radius: 34px; padding: 8px; transform: none; box-shadow: 0 0 0 2px #120e0b inset, 6px 10px 0 rgba(59, 47, 37, .18); }
.phone.small img { border-radius: 27px; }
.stage .phone { position: absolute; left: 50%; top: 0; margin-left: -145px; }
.stage .skritek { position: absolute; width: 150px; left: -18px; bottom: -6px; z-index: 2; transform: rotate(-4deg); }
.cutout { position: absolute; filter: drop-shadow(0 0 0 #fff) drop-shadow(3px 5px 0 rgba(59, 47, 37, .18)); animation: bob 5s ease-in-out infinite; }
.stage .c1 { width: 140px; right: -24px; top: 30px; animation-delay: -1s; }
.stage .c2 { width: 120px; right: -10px; bottom: 60px; animation-delay: -2.5s; }
.stage .c3 { width: 110px; left: -10px; top: 70px; animation-delay: -3.7s; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(1.5deg); } }

/* --- sekce --- */
section { padding: 70px 0; scroll-margin-top: 64px; }
.alt { background: rgba(235, 225, 203, .55); border-block: 2px dashed rgba(59, 47, 37, .18); }
.intro { max-width: 40em; font-size: 20px; color: var(--ink-soft); font-weight: 600; }
.center .intro { margin-inline: auto; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: krok; }
.steps li { counter-increment: krok; text-align: center; }
.steps .phone { margin-bottom: 18px; }
.steps li:nth-child(odd) .phone { transform: rotate(-1.5deg); }
.steps li:nth-child(even) .phone { transform: rotate(1.5deg); }
.steps h3::before {
  content: counter(krok); display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: 8px; vertical-align: 3px;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; font-family: var(--round); font-weight: 800; font-size: 20px;
}
.steps p { font-size: 17px; color: var(--ink-soft); margin-top: 8px; }

.video-box {
  position: relative; margin: 36px auto 0; max-width: 960px; border: 4px solid var(--ink); border-radius: 22px; overflow: hidden;
  background: var(--paper-3); box-shadow: 6px 9px 0 rgba(59, 47, 37, .22); aspect-ratio: 16 / 9;
}
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.video-note { text-align: center; font-size: 15px; color: var(--ink-soft); margin-top: 14px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.panel {
  position: relative; background: var(--paper-2); border: 3px solid var(--ink); border-radius: 24px; padding: 30px 30px 20px;
  box-shadow: 5px 8px 0 rgba(59, 47, 37, .2); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start;
}
.panel:nth-child(1) { transform: rotate(-.6deg); }
.panel:nth-child(2) { transform: rotate(.6deg); }
.panel .kicker { margin-bottom: 12px; }
.panel.kids .kicker { background: var(--mint); }
.panel h3 { font-size: 40px; margin-bottom: 12px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 9px; font-size: 17px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 16px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.panel .phone.small { width: 170px; padding: 7px; border-radius: 28px; }
.panel .phone.small img { border-radius: 22px; }

.cz { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0 0; }
.numbers div { background: var(--paper-2); border: 2px solid var(--ink); border-radius: 18px; padding: 14px 18px 10px; box-shadow: var(--shadow); }
.numbers b { display: block; font-family: var(--hand); font-weight: 400; font-size: 46px; line-height: 1; color: var(--red); }
.numbers span { font-weight: 700; font-size: 16px; color: var(--ink-soft); }
.collage { position: relative; aspect-ratio: 1; max-width: 480px; justify-self: center; width: 100%; }
.collage .cutout:nth-child(1) { width: 42%; left: 4%; top: 6%; }
.collage .cutout:nth-child(2) { width: 38%; right: 2%; top: 0; animation-delay: -1.2s; }
.collage .cutout:nth-child(3) { width: 36%; left: 32%; top: 34%; animation-delay: -2.4s; }
.collage .cutout:nth-child(4) { width: 34%; left: 0; bottom: 6%; animation-delay: -3.1s; }
.collage .cutout:nth-child(5) { width: 36%; right: 0; bottom: 10%; animation-delay: -4s; }
.collage .sketch { position: absolute; width: 30%; right: 30%; bottom: -2%; opacity: .9; }

.safe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; padding: 0; list-style: none; }
.safe li { background: var(--paper-2); border: 2px solid var(--ink); border-radius: 20px; padding: 20px 22px 12px; box-shadow: var(--shadow); }
.safe h3 { font-size: 28px; margin-bottom: 6px; }
.safe p { font-size: 16px; color: var(--ink-soft); }
.safe .ico { width: 44px; height: 44px; color: var(--green); margin-bottom: 8px; }

.faq { max-width: 820px; margin: 36px auto 0; }
.faq details { background: var(--paper-2); border: 2px solid var(--ink); border-radius: 18px; margin-bottom: 12px; box-shadow: 2px 4px 0 rgba(59, 47, 37, .15); }
.faq summary { cursor: pointer; padding: 14px 20px 12px; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--hand); font-size: 30px; line-height: .8; color: var(--red); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 20px 6px; font-size: 17px; color: var(--ink-soft); }

.final { text-align: center; padding: 80px 0 90px; }
.final .wrap { display: flex; flex-direction: column; align-items: center; }
.final .skritek { width: 220px; animation: jump 1.6s ease-in-out infinite; }
.bubble {
  position: relative; display: inline-block; background: var(--paper-2); border: 3px solid var(--ink); border-radius: 22px; padding: 6px 22px 2px;
  font-family: var(--hand); font-size: 36px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -14px; width: 20px; height: 20px; background: var(--paper-2); border: 3px solid var(--ink); border-top: 0; border-left: 0; transform: translateX(-50%) rotate(45deg); }
.final h2 { margin-top: 14px; }
.final .cta { justify-content: center; }
@keyframes jump { 50% { transform: translateY(-14px); } }

footer { background: var(--ink); color: var(--paper); padding: 40px 0 46px; font-size: 15px; }
footer a { color: var(--yellow); }
footer a:hover { color: var(--paper); }
footer .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
footer .logo { color: var(--paper); margin-bottom: 10px; }
footer .logo img { border-color: var(--paper); }
footer .credits { color: #cbbda6; font-size: 13px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 6px; }

/* --- stránka se zásadami --- */
.doc { padding: 50px 0 70px; }
.doc .sheet { max-width: 820px; margin: 0 auto; background: var(--paper-2); border: 3px solid var(--ink); border-radius: 24px; padding: clamp(24px, 5vw, 50px); box-shadow: 6px 9px 0 rgba(59, 47, 37, .2); }
.doc h1 { font-size: clamp(48px, 8vw, 72px); }
.doc h2 { font-size: 36px; margin: 34px 0 10px; }
.doc p, .doc li { font-size: 17px; }
.doc ul { padding-left: 22px; }
.doc .updated { color: var(--ink-soft); font-size: 15px; }
.doplnit { background: #ffe3a3; border-bottom: 2px dashed var(--red); padding: 0 4px; }

/* --- telefon a tablet na výšku --- */
@media (max-width: 960px) {
  .hero .wrap, .cz { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
  .stage { width: min(100%, 360px); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; }
  .safe { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  section { padding: 54px 0; }
  .stage { width: 100%; max-width: 330px; }
  .phone { width: 250px; }
  .stage .phone { margin-left: -125px; }
  .stage .skritek { width: 116px; left: -6px; }
  .stage .c1 { width: 104px; right: -8px; }
  .stage .c2 { width: 92px; right: -4px; }
  .stage .c3 { width: 84px; left: -4px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps .phone.small { width: 230px; }
  .panel { grid-template-columns: 1fr; padding: 24px 22px 16px; }
  .panel .phone.small { justify-self: center; }
  .safe { grid-template-columns: 1fr; }
  .numbers b { font-size: 40px; }
  .btn { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cutout, .final .skritek { animation: none; }
  .underline path { animation: none; stroke-dashoffset: 0; }
  .btn, .btn:hover { transition: none; transform: none; }
}
