/* Čmáranice – čistý web ve stylu aplikace. Rámečky a ikony kreslí sketch.js „fixou“. */
:root {
  --ink: #121212;
  --paper: #fdfbf6;
  --card: #ffffff;
  --muted: #6b675f;
  --hand: "Chalkboard SE", "Patrick Hand", "Comic Sans MS", system-ui, sans-serif;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 19px/1.5 var(--hand); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }

/* Ruční kresba */
.sk { position: relative; isolation: isolate; }
.sk > *:not(svg) { position: relative; }
.sk-line { display: block; height: 6px; line-height: 0; }
.sk-line svg { display: block; }
.doodle { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.12em; }

/* Navigace – tenká, nahoře přilepená jako na apple.com */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  padding-bottom: 6px;
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 54px; }
.nav .brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 19px; margin-right: auto; }
.nav .brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav a.link { text-decoration: none; font-size: 15px; color: var(--muted); }
.nav a.link:hover, .nav a.link[aria-current] { color: var(--ink); }
.nav .sk-line { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; }

/* Tlačítka – ručně obtažená, plná nebo prázdná */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px;
  font: 700 19px var(--hand); text-decoration: none; color: var(--paper); cursor: pointer;
  transition: transform .15s;
}
.btn.ghost { color: var(--ink); }
.btn:hover { transform: rotate(-1deg) scale(1.03); }
.textlink { font-size: 19px; text-decoration: none; }
.textlink:hover { text-decoration: underline; }
.textlink::after { content: " ›"; }

/* Sekce – jedna myšlenka, hodně vzduchu */
section { padding: 96px 0; }
.eyebrow { font-size: 17px; color: var(--muted); margin: 0 0 6px; }
h1 { font-size: clamp(44px, 8vw, 88px); line-height: 1.02; letter-spacing: -0.5px; margin: 0 0 18px; }
h2 { font-size: clamp(34px, 6vw, 60px); line-height: 1.06; letter-spacing: -0.3px; margin: 0 0 16px; }
.sub { font-size: clamp(20px, 2.4vw, 26px); color: var(--muted); max-width: 30em; margin: 0 auto 30px; }
.actions { display: flex; gap: 26px; justify-content: center; align-items: center; flex-wrap: wrap; }

.hero { padding: 72px 0 0; }
.hero .shot { margin: 56px auto 0; max-width: 360px; }

/* Screenshot v ručně kresleném rámečku (obrys jde přes obrázek) */
.shot { border-radius: 30px; }
.shot img { border-radius: 30px; }
.shots { display: flex; gap: 34px; justify-content: center; align-items: flex-start; margin-top: 54px; }
.shots .shot { flex: 0 1 300px; }
.shots .shot:nth-child(1) { transform: rotate(-2deg); margin-top: 40px; }
.shots .shot:nth-child(3) { transform: rotate(2deg); margin-top: 40px; }
.tablet { max-width: 760px; margin: 54px auto 0; border-radius: 28px; }
.tablet img { border-radius: 28px; }

/* Zadání dne */
.prompt-wrap { max-width: 720px; margin: 40px auto 0; position: relative; }
.prompt { padding: 54px 30px 44px; font-size: clamp(28px, 4.4vw, 46px); font-weight: 700; text-align: center; transform: rotate(-1deg); min-height: 1.2em; }
.label { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-2deg); z-index: 3; padding: 6px 16px; color: var(--paper); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }

/* Tři kroky */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px; margin-top: 60px; text-align: center; }
.steps .doodle { font-size: 64px; margin-bottom: 12px; }
.steps h3 { font-size: 26px; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--muted); }

/* Výhody */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 54px; text-align: left; }
.tile { padding: 28px 26px; }
.tile .doodle { font-size: 40px; margin-bottom: 14px; }
.tile h3 { margin: 0 0 6px; font-size: 22px; }
.tile p { margin: 0; color: var(--muted); font-size: 17px; }

.stamp { display: inline-block; padding: 6px 18px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; transform: rotate(-6deg); margin-bottom: 26px; }

/* Textové stránky */
.doc { max-width: 720px; margin: 0 auto; padding: 64px 0 40px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); margin-bottom: 6px; }
.doc h2 { font-size: 25px; margin: 38px 0 6px; letter-spacing: 0; }
.doc p, .doc li { font-size: 18px; }
.doc .meta { color: var(--muted); font-size: 16px; margin: 0 0 30px; }
.faq { display: grid; gap: 22px; margin-top: 30px; }
.faq .sk { padding: 22px 24px; }
.faq h2 { margin: 0 0 6px; font-size: 22px; }
.faq p { margin: 0; color: var(--muted); }

/* Patička */
footer { padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
footer .row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 760px) {
  body { font-size: 17px; }
  section { padding: 64px 0; }
  .nav a.link { display: none; }
  .nav a.link.keep { display: inline; }
  .steps, .grid { grid-template-columns: 1fr; gap: 34px; }
  .shots { gap: 14px; }
  .shots .shot:nth-child(1), .shots .shot:nth-child(3) { display: none; }
  .shots .shot { flex-basis: 270px; }
  .hero .shot { max-width: 280px; }
}
