:root {
  --bg: #FFF9F0;
  --bg-deep: #FDEFD9;
  --card: #FFFFFF;
  --text: #2B2118;
  --muted: #7A6E62;
  --primary: #E8590C;
  --primary-dark: #C24A08;
  --border: #E6DCCF;
  --paper: #FFFEFA;
  --ink: #1D1A17;
  --radius: 18px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h1 em { font-style: normal; color: var(--primary); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }

section { padding: 88px 0; }

/* Hlavička */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

nav { display: flex; align-items: center; gap: 26px; }
nav a { color: var(--text); text-decoration: none; font-size: 1rem; font-weight: 600; }
nav a:hover { color: var(--primary); }
nav .nav-cta { color: var(--primary); }

/* Tlačítka */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.button:hover { background: var(--primary-dark); transform: translateY(-1px); }
.button-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--border); }
.button-ghost:hover { background: var(--card); }
.button-light { background: #fff; color: var(--primary-dark); }
.button-light:hover { background: var(--bg); }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* Úvod */

.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.eyebrow { color: var(--primary); font-weight: 700; margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--muted); margin-top: 22px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Tiskárna a lístek */

.printer { position: relative; width: min(330px, 100%); margin-inline: auto; }

.printer-body {
  position: relative;
  z-index: 2;
  height: 74px;
  border-radius: 22px 22px 12px 12px;
  background: linear-gradient(#3A332D, #231F1B);
  box-shadow: 0 14px 30px rgba(43, 33, 24, 0.22);
}
.printer-light {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #69DB7C;
  box-shadow: 0 0 10px #69DB7C;
}
.printer-slot {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 12px;
  height: 8px;
  border-radius: 4px;
  background: #0E0C0A;
}

.paper-feed { position: relative; z-index: 1; margin: -18px 30px 0; overflow: hidden; padding-bottom: 14px; }

.ticket {
  --tooth: 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  padding: 30px 20px 34px;
  filter: drop-shadow(0 8px 14px rgba(43, 33, 24, 0.16));
  /* Zubatý okraj jako po odtržení z tiskárny */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
}
.ticket-label { font-size: 0.8rem; }
.ticket-name { font-size: 1.55rem; font-weight: 700; line-height: 1.2; }
.ticket hr { border: 0; border-top: 2px dashed var(--ink); margin: 12px 0 14px; }
.ticket-body { font-size: 0.95rem; line-height: 1.5; }

.doodle { display: block; width: 100%; margin-top: 12px; }
.doodle path, .doodle circle {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ticket-main { animation: print 2.6s cubic-bezier(0.3, 0, 0.2, 1) 0.4s both; }

@keyframes print {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Proč */

.why { background: var(--bg-deep); }
.why-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.why p { margin-top: 18px; color: var(--muted); max-width: 36em; }

.compare { list-style: none; margin: 0; padding: 28px; background: var(--card); border-radius: var(--radius); display: grid; gap: 22px; }
.compare li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.compare-label { font-weight: 700; }
.compare-time { font-weight: 700; color: var(--muted); }
.compare-bar { grid-column: 1 / -1; grid-row: 2; height: 14px; border-radius: 7px; }
.compare-slow { background: var(--border); width: 100%; }
.compare-fast { background: var(--primary); width: 7%; min-width: 22px; }
.compare li:last-child .compare-time { color: var(--primary); }

/* Kroky */

.steps h2, .features h2, .audience h2 { text-align: center; margin-bottom: 48px; }

.steps-list { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps-list li { counter-increment: step; position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.steps-list li::before {
  content: counter(step);
  position: absolute;
  top: 20px;
  right: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--primary);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.steps-list p { color: var(--muted); margin-top: 8px; font-size: 1rem; }

.step-art { width: 96px; height: 96px; margin-bottom: 18px; }
.step-art svg { width: 100%; height: 100%; }
.step-art svg * { fill: none; stroke: var(--text); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.step-art svg .fill { fill: var(--primary); stroke: var(--primary); }

/* Funkce */

.features { padding-top: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.feature-grid article { border-top: 3px solid var(--primary); padding-top: 16px; }
.feature-grid p { color: var(--muted); margin-top: 8px; font-size: 1rem; }

/* Ukázky lístků */

.tickets-band { background: var(--bg-deep); overflow: hidden; }
.tickets-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.tilt-left { transform: rotate(-3deg); }
.tilt-right { transform: rotate(2.5deg) translateY(-14px); }
.tilt-left-small { transform: rotate(-1.5deg) translateY(10px); }

/* Pro koho */

.audience-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.audience-list li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; display: grid; gap: 4px; }
.audience-list strong { font-size: 1.15rem; }
.audience-list span { color: var(--muted); font-size: 1rem; }

/* Bezpečí */

.safety { background: var(--text); color: var(--bg); }
.safety-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.safety p { margin-top: 16px; color: #CFC4B8; }
.safety-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.safety-list li { padding-left: 34px; position: relative; color: #CFC4B8; }
.safety-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #FFA94D; font-weight: 800; }
.safety-list strong { color: var(--bg); }

/* Otázky */

.faq-inner { max-width: 760px; }
.faq h2 { margin-bottom: 28px; }
details { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; padding: 20px 36px 20px 0; font-weight: 700; font-size: 1.1rem; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.6rem; font-weight: 400; color: var(--primary); }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 22px; color: var(--muted); }

/* Kontakt a patička */

.contact { background: var(--primary); color: #fff; text-align: center; }
.contact-inner { max-width: 700px; }
.contact p { margin: 18px 0 30px; color: #FFE8D6; }

.site-footer { padding: 28px 0; color: var(--muted); font-size: 0.95rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .logo { font-size: 1.1rem; }

/* Menší obrazovky */

@media (max-width: 860px) {
  body { font-size: 17px; }
  section { padding: 64px 0; }
  .hero { padding: 44px 0 64px; }
  .hero-grid, .why-grid, .safety-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps-list, .feature-grid, .tickets-row, .audience-list { grid-template-columns: 1fr; }
  .tickets-row { max-width: 300px; margin-inline: auto; gap: 26px; }
  .tilt-right, .tilt-left-small { transform: rotate(2deg); }
  nav a:not(.nav-cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticket-main { animation: none; }
  .button { transition: none; }
}
