/* Fonty: jen znaky pro češtinu, Archivo omezené na řezy 800–900 a šířku 112–125 % */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 800 900; font-stretch: 112% 125%;
  src: url(/fonts/archivo-cs-latin.woff2) format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2026;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 800 900; font-stretch: 112% 125%;
  src: url(/fonts/archivo-cs-ext.woff2) format("woff2");
  unicode-range: U+010C-010F, U+011A-011B, U+0147-0148, U+0158-0161, U+0164-0165, U+016E-016F, U+017D-017E;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-display: swap;
  font-weight: 400 600;
  src: url(/fonts/hanken-cs-latin.woff2) format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2026;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-display: swap;
  font-weight: 400 600;
  src: url(/fonts/hanken-cs-ext.woff2) format("woff2");
  unicode-range: U+010C-010F, U+011A-011B, U+0147-0148, U+0158-0161, U+0164-0165, U+016E-016F, U+017D-017E;
}

:root {
  --bg: #151515;
  --lime: #aeff00;
  --ink: #ecece6;
  --muted: #9b9b94;
  --line: #2c2c2c;
  --tape: #efece2;
  --display: "Archivo", "Arial Black", Impact, sans-serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.3, 1.45, 0.5, 1);
  --gutter: clamp(1rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60rem 40rem at 85% -10%, rgba(174, 255, 0, 0.08), transparent 60%);
}

.wrap {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding-top: clamp(1.25rem, 3vw, 2.5rem);
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.topbar b { color: var(--ink); font-weight: 600; }

/* Logotyp SKL PRAHA na jednom řádku */
.hero { position: relative; width: fit-content; max-width: 100%; margin: clamp(2.75rem, 9vw, 6rem) 0 clamp(2.25rem, 5vw, 3.5rem); }
.logo {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(2.1rem, 11.3vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  white-space: nowrap;
  transform: skewX(-9deg);
  transform-origin: left bottom;
  user-select: none;
}
.logo .w1 { color: var(--lime); }
.logo .w2 { color: var(--ink); }
.logo .ch { display: inline-block; }

.tape {
  position: absolute;
  right: -0.75rem;
  bottom: -1.9rem;
  transform: rotate(-5deg);
  background: var(--tape);
  color: #1b1b1b;
  font-weight: 600;
  font-size: clamp(0.72rem, 1.5vw, 0.95rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.5em 1.3em 0.45em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  clip-path: polygon(0 6%, 3% 0, 7% 8%, 12% 1%, 18% 7%, 24% 0, 31% 6%, 38% 1%, 45% 7%, 52% 0, 59% 6%, 66% 1%, 73% 7%, 80% 0, 87% 6%, 93% 1%, 97% 7%, 100% 2%, 100% 94%, 97% 100%, 92% 93%, 86% 100%, 80% 94%, 73% 100%, 66% 93%, 59% 99%, 52% 93%, 45% 100%, 38% 94%, 31% 100%, 24% 93%, 17% 99%, 11% 93%, 5% 100%, 0 95%);
}
.tape s { text-decoration-thickness: 2px; opacity: 0.7; }

.content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; max-width: 46rem; }

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.45rem, 3.4vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--lime); }

.lead { margin: 0; color: var(--ink); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 40rem; }
.lead strong { font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; min-height: 3.65rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  background: var(--lime);
  color: #111;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  touch-action: manipulation;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.btn svg { width: 1.1em; height: 1.1em; transition: transform 0.2s var(--ease-out); }
.btn:active { transform: scale(0.98); }

.countdown { margin: 0; font-size: 0.95rem; color: var(--muted); }
.countdown [data-sec] { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; max-width: 30rem; }
.bar span { display: block; height: 100%; width: 100%; background: var(--lime); transform-origin: left; transition: transform 1s linear; }
.is-waiting #go { display: none; }

.thanks { margin: 0; color: var(--muted); }
.social { display: flex; align-items: center; gap: 0.75rem; margin-top: -0.75rem; }
.social-label { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 0.25rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  touch-action: manipulation;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, transform 0.2s var(--ease-spring);
}
.social-link svg { width: 20px; height: 20px; }
.social-link:active { transform: scale(0.92); }

main { flex: 1 0 auto; }
.about { margin-top: clamp(3.5rem, 8vw, 6rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.about h2 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.about-lead { margin: 0; max-width: 46rem; color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.25rem 1.35rem; transition: border-color 0.2s ease; }
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}
.card p { margin: 0; font-size: 0.975rem; color: var(--muted); }
.card a { color: var(--ink); text-underline-offset: 3px; }

footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}
footer p { margin: 0; }
footer a { display: inline-block; padding: 0.3rem 0; color: var(--ink); text-underline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Efekty po najetí myší jen tam, kde myš opravdu je (ne na dotykových displejích) */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(174, 255, 0, 0.25); }
  .btn:hover svg { transform: translateX(4px); }
  .social-link:hover { color: #111; background: var(--lime); border-color: var(--lime); transform: translateY(-2px); }
  .card:hover { border-color: #3d3d3d; }
  .card a:hover, footer a:hover { color: var(--lime); }
}

@media (max-width: 560px) {
  .topbar span:last-child { display: none; }
  .tape { right: 0; bottom: -2.1rem; }
  .hero { margin-bottom: 3.25rem; }
  .btn { width: 100%; justify-content: center; }
  .content { gap: 1.6rem; }
  .social { margin-top: -0.4rem; }
  .cards { margin-top: 1.5rem; }
}

/* ---------- Mikroanimace (jen transform a opacity, bez knihoven) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Úvod: písmena logotypu vyjíždějí zleva jako ze startovní branky */
  .logo .ch { animation: ch-in 0.7s var(--ease-out) backwards; animation-delay: calc(var(--i) * 45ms); }
  @keyframes ch-in { from { opacity: 0; transform: translateX(-0.5em) skewX(-20deg); } }

  /* Páska se „přilepí“ */
  .tape { animation: tape-in 0.6s var(--ease-spring) 0.6s backwards; }
  @keyframes tape-in { from { opacity: 0; translate: 0 -18px; scale: 1.25; rotate: -9deg; } }

  /* Nadpis se odkryje zespodu, text se jemně vynoří */
  h1 { animation: h1-in 0.75s var(--ease-out) 0.2s backwards; }
  @keyframes h1-in {
    from { clip-path: inset(0 0 100% 0); translate: 0 0.4em; }
    to { clip-path: inset(-10% -5% -20% -5%); translate: 0 0; }
  }
  .topbar, .lead, .countdown, .bar { animation: fade-up 0.6s var(--ease-out) backwards; }
  .topbar { animation-delay: 0s; }
  .lead { animation-delay: 0.38s; }
  .countdown, .bar { animation-delay: 0.5s; }
  @keyframes fade-up { from { opacity: 0; translate: 0 12px; } }

  /* Tlačítko po odpočtu vyskočí a jednou zeleně pulzne */
  .btn.is-revealed { animation: pop 0.55s var(--ease-spring) backwards, glow 1.4s ease-out 0.45s 1; }
  @keyframes pop { from { opacity: 0; scale: 0.85; translate: 0 10px; } }
  @keyframes glow {
    from { box-shadow: 0 0 0 0 rgba(174, 255, 0, 0.55); }
    to { box-shadow: 0 0 0 18px rgba(174, 255, 0, 0); }
  }

  /* Efekty řízené scrollem: nativní CSS, prohlížeče bez podpory je přeskočí */
  @supports (animation-timeline: view()) {
    .logo { animation: logo-drift linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    @keyframes logo-drift { to { transform: translateX(6vw) skewX(-18deg); opacity: 0.3; } }

    .tape {
      animation: tape-in 0.6s var(--ease-spring) 0.6s backwards, tape-drift linear both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0 70vh;
    }
    @keyframes tape-drift { to { transform: rotate(-9deg) translateX(-8vw); } }

    .about h2 { animation: reveal-x linear both; animation-timeline: view(); animation-range: entry 15% cover 35%; }
    @keyframes reveal-x {
      from { clip-path: inset(0 100% 0 0); translate: -0.5em 0; }
      to { clip-path: inset(-10% -5% -20% 0); translate: 0 0; }
    }
    .about-lead { animation: rise linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
    .card { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
    .card:nth-child(2) { animation-range: entry 8% cover 30%; }
    .card:nth-child(3) { animation-range: entry 16% cover 35%; }
    .card:nth-child(4) { animation-range: entry 24% cover 40%; }
    @keyframes rise { from { translate: 0 36px; } to { translate: 0 0; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .bar span, .btn, .btn svg, .social-link, .card { transition: none; }
}

/* ---------- Patička: odkazy na zásady a nastavení cookies ---------- */
.linklike {
  display: inline-block;
  padding: 0.3rem 0;
  background: none;
  border: 0;
  font: inherit;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer-links a, .footer-links .linklike { margin-right: 1rem; }
@media (hover: hover) and (pointer: fine) { .linklike:hover { color: var(--lime); } }

/* ---------- Lišta souhlasu s cookies ---------- */
.consent {
  position: fixed;
  z-index: 50;
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: 27rem;
  padding: 1.1rem 1.2rem 1.2rem;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  color: var(--ink);
  font-size: 0.925rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}
.consent.is-open { opacity: 1; transform: none; }
.consent-title { margin: 0 0 0.35rem; font-weight: 600; }
.consent-text { margin: 0 0 1rem; color: var(--muted); }
.consent-text a { color: var(--ink); text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 0.6rem; }
.consent-btn {
  flex: 1 1 0;
  min-height: 2.9rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}
.consent-accept { background: var(--lime); color: #111; border: 1px solid var(--lime); }
.consent-reject { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.consent-btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .consent-reject:hover { background: var(--ink); color: #111; }
  .consent-accept:hover { box-shadow: 0 8px 24px rgba(174, 255, 0, 0.25); }
  .consent-text a:hover { color: var(--lime); }
}
@media (max-width: 560px) { .consent { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }

/* ---------- Podstránky (404, zásady cookies) ---------- */
.page-logo {
  display: inline-block;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-decoration: none;
  transform: skewX(-9deg);
  margin: clamp(2rem, 6vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}
.page-logo .w1 { color: var(--lime); }
.page-logo .w2 { color: var(--ink); }
.page-logo:focus-visible { outline-offset: 6px; }

.err-code {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(5.5rem, 30vw, 15rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--lime);
  transform: skewX(-9deg);
  transform-origin: left bottom;
  margin: 0 0 1.5rem;
  user-select: none;
}
.err-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.err-links a:not(.btn) { color: var(--ink); text-underline-offset: 3px; padding: 0.4rem 0; }
@media (hover: hover) and (pointer: fine) { .err-links a:not(.btn):hover { color: var(--lime); } }
@media (prefers-reduced-motion: no-preference) {
  .err-code { animation: ch-in 0.8s var(--ease-out) backwards; }
}

.prose { max-width: 46rem; }
.prose h1 { margin-bottom: 1.25rem; }
.prose h2 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.2;
  margin: 2.25rem 0 0.75rem;
}
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--ink); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .prose a:hover { color: var(--lime); } }
.prose .muted { color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 1rem; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.65rem 0.75rem 0.65rem 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.prose code { font-size: 0.9em; background: #222; padding: 0.1em 0.35em; border-radius: 4px; }
.prose .btn { margin-top: 0.5rem; }
button.btn { border: 0; font-family: inherit; cursor: pointer; }
.topbar a { color: inherit; text-decoration: none; }
