/* Dinoline Pixel — Press Start 2P (OFL) s dokreslenou českou diakritikou.
   Původní font kreslí akcentovaná písmena zmenšená, aby se vešla do mřížky 8×8;
   tady zůstávají písmena v plné výšce a akcent přesahuje nad ně.
   Svislé metriky jsou schválně nezměněné, aby se nikde neposunulo rozvržení.
   Licence a povinné přejmenování: viz dinoline-pixel-LICENSE.txt */
@font-face {
  font-family: 'Dinoline Pixel';
  src: url('dinoline-pixel.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f5f0e8;
  --cream-dark: #eae3d5;
  --blue: #0b2b89;      /* brand blue from logo */
  --navy: #143a8c;      /* dino pixel blue */
  --sand: #ebd796;      /* dino pixel sand */
  --brown: #aa6438;     /* dino pixel brown */
  --ink: #1c2340;       /* body text */
  --dark: #081c56;      /* darkest section */
  --white: #ffffff;

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-pixel: 'Dinoline Pixel', 'Press Start 2P', monospace;

  /* scene geometry — JS reads these, so CSS stays the single source of truth */
  --ground-h: 9;        /* vh, height of the dashed ground line */
  --volc-h: 31;         /* vh, volcano height */
  --volc-x: 61;         /* %, volcano centre across the viewport */
  --dino-w: 34;         /* vw */
  --dino-w-max: 480;    /* px */

  --terrain-far2: #e7ddcd;
  --terrain-far: #d8ccb6;
  --terrain-mid: #c8b8a0;
  --terrain-volcano: #c4b39a;
  --terrain-shade: #9a8568;
  --terrain-light: #e0d5c1;
  --ash: #5a4436;
  --lava: #f0c24e;

  --shadow-card: 6px 6px 0 rgba(11, 43, 137, 0.12);
  --shadow-card-hover: 8px 8px 0 rgba(11, 43, 137, 0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--blue); }

/* ── SHARED ── */
.section-label {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--brown);
  text-align: center;
  margin-bottom: 1.2rem;
}

.section-label--light { color: var(--sand); }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3.5rem;
  line-height: 1.2;
}

.section-title--light { color: var(--cream); }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  padding: 1rem 2rem;
  border: 2px solid var(--blue);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn--primary {
  background: var(--blue);
  color: var(--cream);
  box-shadow: 4px 4px 0 var(--brown);
}

.btn--primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--brown);
}

.btn--ghost {
  background: transparent;
  color: var(--blue);
}

.btn--ghost:hover { background: rgba(11, 43, 137, 0.07); }

.btn--outline {
  background: var(--white);
  color: var(--blue);
  box-shadow: 4px 4px 0 rgba(11, 43, 137, 0.15);
}

.btn--outline:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(11, 43, 137, 0.25);
}

.btn--sand {
  background: var(--sand);
  color: var(--blue);
  border-color: var(--sand);
  box-shadow: 4px 4px 0 var(--brown);
}

.btn--sand:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--brown);
}

.btn--small {
  padding: 0.6rem 1.3rem;
  font-size: 0.85rem;
  background: var(--blue);
  color: var(--cream);
  box-shadow: 3px 3px 0 var(--brown);
}

.btn--small:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--brown);
}

.btn--block { width: 100%; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5vw;
  z-index: 200;
  background: rgba(245, 240, 232, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s;
}

.nav.is-scrolled { border-bottom-color: var(--blue); }

.nav__logo {
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav__logo span { color: var(--brown); }

.nav__links {
  display: flex;
  gap: 2.5rem;
}

.nav__links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}

.nav__links a:hover { color: var(--blue); }

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  height: 300vh;
  background: var(--cream);
}

.hero__content {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 17vh 5vw 0;
  text-align: center;
  z-index: 10;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero__label {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 1.8rem;
}

.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.hero__title span {
  background: var(--sand);
  padding: 0 0.4rem;
  box-shadow: 4px 4px 0 var(--brown);
}

.hero__sub {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--ink);
  opacity: 0.75;
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: all;
}

.hero__hint {
  position: fixed;
  bottom: 2.5vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--brown);
  z-index: 6;
  animation: bob 1.6s steps(2) infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

.hero__ground {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 9vh;
  height: 6px;
  z-index: 4;
  background: repeating-linear-gradient(
    to right,
    var(--blue) 0 14px,
    transparent 14px 22px
  );
  opacity: 0.5;
}

#dino {
  --w: min(calc(var(--dino-w) * 1vw), calc(var(--dino-w-max) * 1px));
  position: fixed;
  /* sit the dinosaur's foot on the ground line: the contact pixel is
     20.39 % of the frame height above the image's bottom edge */
  bottom: calc(var(--ground-h) * 1vh - var(--w) * 0.10034);
  left: 0;
  width: var(--w);
  will-change: transform;
  pointer-events: none;
  transform: translateX(-8vw);
  z-index: 5;
}

/* ── HERO SCENE ── */
#sky-warm,
#fx-sky,
#fx-mid,
#fx-ground,
#volcano,
.scene__ridge {
  position: fixed;
  pointer-events: none;
  left: 0;
}

#sky-warm {
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  opacity: 0;
  background: linear-gradient(
    180deg,
    rgba(170, 100, 56, 0) 0%,
    rgba(170, 100, 56, 0.15) 58%,
    rgba(170, 100, 56, 0.32) 100%
  );
  will-change: opacity;
}

#fx-sky,
#fx-mid {
  top: 0;
  width: 100%;
  height: 86vh;
}

#fx-sky { z-index: 1; }
#fx-mid { z-index: 2; }

#fx-ground {
  bottom: 0;
  width: 100%;
  height: 26vh;
  z-index: 4;
}

.scene__ridge {
  bottom: calc(var(--ground-h) * 1vh);
  width: 180vw;
  margin-left: -40vw;
  will-change: transform, opacity;
}

#bg-far2 { z-index: 2; height: 26vh; }
#bg-far  { z-index: 2; height: 26vh; }
#bg-mid  { z-index: 3; height: 15vh; }

#volcano {
  bottom: calc(var(--ground-h) * 1vh);
  left: calc(var(--volc-x) * 1%);
  height: calc(var(--volc-h) * 1vh);
  z-index: 2;
  transform: translateX(-50%);
  will-change: transform, opacity;
}

.volcano__svg {
  height: 100%;
  width: auto;
  display: block;
}

#volcano-lava,
#volcano-glow { opacity: 0; }
#volcano-vent { opacity: 0.3; }

/* ── PROBLEM ── */
.problem {
  position: relative;
  z-index: 20;
  overflow: hidden;
  background: var(--blue);
  padding: 15vh 5vw 33vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* lebka leží v sedimentu na dně sekce */
.problem__fossil {
  position: absolute;
  left: 50%;
  bottom: 5%;
  width: min(26%, 360px);
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.problem__fossil img {
  display: block;
  width: 100%;
}

.problem__fossil::after {          /* linie sedimentu — lebka je do ní zapadlá */
  content: '';
  position: absolute;
  left: -280%;
  right: -280%;
  bottom: 13.6%;                   /* půldruhé buňky z jedenácti */
  height: 4px;
  background: repeating-linear-gradient(
    to right,
    var(--sand) 0 12px,
    transparent 12px 20px
  );
  opacity: 0.34;
}

.problem__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.problem__inner h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  color: var(--cream);
  margin-bottom: 1.8rem;
  line-height: 1.18;
}

.problem__text {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(245, 240, 232, 0.75);
  line-height: 1.8;
}

/* ── BENTO ── */
.bento {
  position: relative;
  z-index: 20;
  padding: 12vh 5vw;
  background: var(--cream);
}

.bento__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  max-width: 1360px;
  margin: 0 auto;
}

.bento__card {
  background: var(--white);
  border: 2px solid var(--blue);
  padding: 1.8rem 1.4rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.bento__card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-card-hover);
}

.bento__card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.bento__card p {
  font-size: 0.92rem;
  color: var(--ink);
  opacity: 0.75;
  line-height: 1.65;
}

/* ── PROCESS ── */
.process {
  position: relative;
  z-index: 20;
  overflow: hidden;
  background: var(--cream-dark);
  padding: 11vh 5vw 9vh;
  text-align: center;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1020px;
  margin: 0 auto;
}

/* žádné rámečky — kroky stojí volně, cestu ukazuje stopa pod nimi */
.process__step { padding: 0 0.8rem; }

.process__num {
  font-family: var(--font-pixel);
  font-size: 2.3rem;
  color: var(--brown);
  opacity: 0.9;
  margin-bottom: 1.6rem;
}

.process__step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.process__step p {
  font-size: 0.95rem;
  opacity: 0.75;
  line-height: 1.65;
}

.process__trail {
  position: relative;
  max-width: 1240px;
  margin: 11vh auto 0;
  height: 126px;
}

/* Stopa je jeden vygenerovaný pás, ne opakovaná dlaždice: rozestupy odpovídají
   délce kroku dinosaura, otisk jeho chodidlu, a směrem doleva blednou,
   takže je vidět, odkud přišel. Zprava zarovnaná k jeho zadní noze. */
.process__tracks {
  position: absolute;
  right: calc(1% + 116px);
  bottom: 0;
  height: 28px;
  width: auto;
  max-width: none;
}

/* dinosaurus stojí na konci cesty — cíl těch tří kroků */
.process__walker {
  position: absolute;
  right: 1%;
  bottom: 0;
  height: 126px;
  image-rendering: pixelated;
}

/* ── PRICING ── */
.pricing {
  position: relative;
  z-index: 20;
  padding: 12vh 5vw;
  background: var(--cream);
  text-align: center;
}

.pricing__sub {
  color: var(--ink);
  opacity: 0.7;
  margin: -2rem auto 4rem;
  max-width: 520px;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing__card {
  background: var(--white);
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-card);
  padding: 2.6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing__card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-card-hover);
}

.pricing__card--featured {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 8px 8px 0 var(--brown);
}

.pricing__card--featured:hover { box-shadow: 11px 11px 0 var(--brown); }

.pricing__badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sand);
  color: var(--blue);
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
  border: 2px solid var(--blue);
}

.pricing__card h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.pricing__price {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 700;
  color: var(--brown);
}

.pricing__card > p {
  font-size: 0.92rem;
  opacity: 0.75;
  line-height: 1.6;
}

.pricing__card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  margin: 0.5rem 0 1rem;
}

.pricing__card li {
  font-size: 0.9rem;
  color: var(--ink);
  padding-left: 1.4rem;
  position: relative;
}

.pricing__card li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--brown);
}

/* Přebití pro zvýrazněnou kartu musí stát AŽ ZA obecnými pravidly —
   má stejnou specificitu, takže dřív ho to obecné přebíjelo a text
   na modré vycházel tmavý. */
.pricing__card--featured h3,
.pricing__card--featured p,
.pricing__card--featured li { color: var(--cream); }

.pricing__card--featured .pricing__price { color: var(--sand); }
.pricing__card--featured li::before { color: var(--sand); }

/* ── FAQ ── */
.faq {
  position: relative;
  z-index: 20;
  padding: 10vh 5vw 14vh;
  background: var(--cream);
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq__item {
  background: var(--white);
  border: 2px solid var(--blue);
  box-shadow: 4px 4px 0 rgba(11, 43, 137, 0.12);
}

.faq__item summary {
  padding: 1.2rem 1.5rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: '+';
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  color: var(--brown);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p {
  padding: 0 1.5rem 1.3rem;
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.7;
}

/* souboj dvou maskotů na konci FAQ — čistá dekorace */
.faq__duel {
  position: relative;
  max-width: 820px;
  margin: 9vh auto 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5rem;
  padding-bottom: 10px;
}

.faq__duel::before {                 /* zem, stejná jako v heru */
  content: '';
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 4px;
  height: 6px;
  opacity: 0.4;
  background: repeating-linear-gradient(
    to right,
    var(--blue) 0 14px,
    transparent 14px 22px
  );
}

.faq__duel img {
  display: block;
  height: 132px;
  image-rendering: pixelated;
  position: relative;
}

.faq__duel img:last-child { transform: scaleX(-1); }   /* otočit čelem k soupeři */

.faq__dust {
  width: 72px;
  height: 8px;
  margin-bottom: 6px;
  opacity: 0.35;
  background: repeating-linear-gradient(
    to right,
    var(--brown) 0 7px,
    transparent 7px 18px
  );
}

/* ── FINAL CTA ── */
.finalcta {
  position: relative;
  z-index: 20;
  background: var(--blue);
  padding: 13vh 5vw;
  display: flex;
  justify-content: center;
}

.finalcta__inner {
  max-width: 620px;
  width: 100%;
  text-align: center;
}

.finalcta__inner h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  color: var(--cream);
  margin-bottom: 1.2rem;
}

.finalcta__sub {
  color: rgba(245, 240, 232, 0.75);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.finalcta__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.finalcta__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.finalcta__input,
.finalcta__textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid rgba(235, 215, 150, 0.4);
  background: rgba(245, 240, 232, 0.06);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.finalcta__input::placeholder,
.finalcta__textarea::placeholder { color: rgba(245, 240, 232, 0.4); }

.finalcta__input:focus,
.finalcta__textarea:focus {
  border-color: var(--sand);
  background: rgba(245, 240, 232, 0.1);
}

.finalcta__textarea {
  height: 130px;
  resize: none;
}

.finalcta__form .btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.finalcta__success {
  text-align: center;
  color: var(--sand);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
}

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 20;
  background: var(--dark);
  border-top: 2px solid rgba(235, 215, 150, 0.25);
  padding: 2.2rem 5vw;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__logo {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--cream);
}

.footer__logo span { color: var(--sand); }

.footer__copy {
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.45);
}

/* ── REVEAL (hidden only when JS + GSAP are confirmed running) ── */
html.js [data-reveal] { opacity: 0; }


/* ── VRSTVY HORNINY ──
   Barva sekce nad předělem zatéká schodovitě dolů do sekce pod ním,
   takže stránka čte jako řez zemí.
   Záměrně obyčejný background-image, ne CSS maska: masku si část prohlížečů
   vyhodnocuje podle jasu místo průhlednosti a předěl se pak vůbec nevykreslí. */
.problem::before,
.bento::before,
.process::before,
.pricing::before,
.finalcta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46px;
  pointer-events: none;
  background-repeat: repeat-x;
  background-position: top left;
  background-size: auto 46px;
}

.problem::before  { background-image: url('strata.svg'); }
.bento::before    { background-image: url('strata-blue.svg'); }
.process::before  { background-image: url('strata.svg'); }
.pricing::before  { background-image: url('strata-tan.svg'); }
.finalcta::before { background-image: url('strata.svg'); }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .bento__grid { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
}

@media (max-width: 900px) {
  .problem { padding: 12vh 5vw 26vh; }
  .problem__fossil { width: 68%; bottom: 6%; transform: translateX(-50%); }
  :root { --volc-h: 25; --volc-x: 66; --dino-w: 55; }
  #bg-mid { display: none; }
  #fx-sky, #fx-mid { height: 78vh; }
  .nav__links { display: none; }
  .bento__grid { grid-template-columns: 1fr 1fr; }
  .faq__duel { gap: 1rem; margin-top: 7vh; }
  .faq__duel img { height: 78px; }
  .faq__dust { width: 40px; }
  .process__steps { grid-template-columns: 1fr; max-width: 480px; gap: 3rem; }
  .process__trail { height: 52px; margin-top: 9vh; }
  .process__trail::before { background-size: auto 56px; }
  .process__walker { height: 76px; right: 2%; }
  .problem::before, .bento::before, .process::before,
  .pricing::before, .finalcta::before { height: 32px; background-size: auto 32px; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 600px) {
  :root { --volc-h: 21; --volc-x: 70; --dino-w: 70; }
  #bg-far2 { display: none; }
  #bg-far { height: 20vh; }
  .bento__grid { grid-template-columns: 1fr; }
  .finalcta__row { grid-template-columns: 1fr; }
  .hero__content { padding-top: 14vh; }
  .hero__title span { box-shadow: 3px 3px 0 var(--brown); }
}

@media (prefers-reduced-motion: reduce) {
  #sky-warm { opacity: 0.18; }
  #volcano-vent { opacity: 0.5; }
}
