/* Dočasná landing page WufGo. Len prvky z dizajnmanuálu v0.10: logo v0.9, písma, farby, ikony. Hlavička atrament, päta mätová hmla ako web v2. */
:root {
  color-scheme: light;
  --mandarinka: #FF7A2F;
  --slnko: #FFC93C;
  --smrek: #0E6B63;
  --atrament: #1D2433;
  --mata: #EAF6F5;
  --line: #D5E3E1;
  --muted: #4F5B66;
  --chyba: #B3261E;
  --display: "Bricolage Grotesque", "Arial Rounded MT Bold", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: var(--atrament);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "opsz" 12;
  letter-spacing: -0.02em;
}
a { color: var(--smrek); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--atrament);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.srOnly {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hlavička */
.top {
  background: var(--atrament);
  color: #fff;
}
.top :focus-visible { outline-color: var(--slnko); }
.topRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: inline-flex; }
.brand img { display: block; height: 38px; width: auto; }
.topLink { font-size: 15px; font-weight: 700; color: #fff; text-decoration: none; }
.topLink:hover { color: var(--slnko); }
.topNav { display: flex; align-items: center; gap: 20px; }
/* Desktop: logo v strede hlavičky, prepínač jazyka vpravo. */
@media (min-width: 761px) {
  .topRow { display: grid; grid-template-columns: 1fr auto 1fr; }
  .topRow .brand { grid-column: 2; }
  .topRow .topNav { grid-column: 3; justify-self: end; }
}
.topLink.lang {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .12em;
}
.topLink.lang:hover { border-color: var(--slnko); }
.logo { display: block; height: 44px; width: auto; }

/* Hlavný obsah */
.landing {
  background: linear-gradient(180deg, #fff 0%, var(--mata) 100%);
  padding-bottom: 72px;
}
.hero {
  padding: 56px 24px 36px;
  text-align: center;
}
h1 {
  max-width: 14em;
  margin: 0 auto;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.0;
}
.hl {
  position: relative;
  color: var(--smrek);
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  bottom: .04em;
  height: .2em;
  background: var(--slnko);
  border-radius: 4px;
  opacity: .85;
  z-index: -1;
}
.wuf {
  display: inline-block;
  padding: 0 .22em .06em;
  background: var(--slnko);
  border-radius: 16px;
  transform: rotate(-2deg);
}
.lead {
  max-width: 34em;
  margin: 28px auto 0;
  font-size: 21px;
  line-height: 1.45;
  color: var(--muted);
}

/* Odpočítavanie */
.countdown { margin-top: 32px; text-align: center; }
.cdLabel {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--smrek);
}
.cdGrid {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cdGrid li {
  min-width: 88px;
  padding: 12px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.cdGrid b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  font-variation-settings: "opsz" 12;
  font-variant-numeric: tabular-nums;
}
.cdGrid span { font-size: 13px; color: var(--muted); }

/* Mapa */
.mapWrap { position: relative; max-width: 1000px; margin-top: 96px; }
.mapWrap .trail { z-index: 1; }

/* Dva čierne psíky za mapou: hlava je schovaná, vidno len uši, zadok a vrtiaci chvost.
   Tvar uší podľa Patrikových psíkov (vztýčené s odstávajúcimi špičkami, klopené). Na stránke bez mien. */
.psy { position: absolute; inset: 0; pointer-events: none; }
.pes {
  position: absolute;
  top: -65.5px;
  width: 231px;
  height: 74px;
  fill: var(--atrament);
}
.pesA { left: 8%; }
.pesB { right: 10%; transform: scaleX(-1); }
.pes { overflow: visible; }
.pes .chvost, .pes .ucho { transform-box: fill-box; }
.pes .chvost { animation: vrtenie .45s ease-in-out infinite alternate; }
.chvostM { transform-origin: 84.6% 73.5%; }
.pesA .chvostM { animation-name: vrtenieM; }
.chvostT { transform-origin: 22.6% 65.1%; }
.pesB .chvost { animation-duration: .38s; animation-delay: -.2s; }
.pesA .uchoP { transform-origin: 40% 100%; animation: strih 4s ease-in-out infinite; }
.pesB .uchoL { transform-origin: 80% 100%; animation: strih 5s ease-in-out infinite 1.5s; }
@keyframes vrtenieM { from { transform: rotate(-8deg); } to { transform: rotate(9deg); } }
@keyframes vrtenie { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
@keyframes strih { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-10deg); } 94% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .pes .chvost, .pes .ucho { animation: none; } }
.trail {
  position: relative;
  width: 100%;
  aspect-ratio: 1120 / 420;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(29, 36, 51, .35);
  --pin: 44px;
}
.trail > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.trail img {
  position: absolute;
  width: var(--pin);
  height: auto;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 2px 3px rgba(29, 36, 51, .25));
}

/* Formulár */
.signupWrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.signup {
  width: 100%;
  max-width: 560px;
  padding: 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 40px -28px rgba(29, 36, 51, .35);
}
.signup h2 { font-size: 24px; line-height: 1.2; }
.signup p { margin: 6px 0 0; }
form { margin-top: 18px; }
.typ {
  display: flex;
  gap: 4px;
  margin: 0 0 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--mata);
}
.typ label { flex: 1; position: relative; cursor: pointer; }
.typ input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.typ span {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--muted);
  transition: background-color .15s, color .15s;
}
.typ label:hover span { color: var(--atrament); }
.typ input:checked + span { background: var(--atrament); color: #fff; }
.typ input:focus-visible + span { outline: 3px solid var(--atrament); outline-offset: 2px; }
.prevadzkaPole { margin-bottom: 12px; }
.prevadzkaPole label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.row { display: flex; gap: 8px; }
input[type="email"], input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--mata);
  color: inherit;
  font: inherit;
}
input[type="email"][aria-invalid="true"], input[type="text"][aria-invalid="true"] { border-color: var(--chyba); }
.prevadzkaPole input { width: 100%; }
.btn {
  flex: none;
  height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--mandarinka);
  color: var(--atrament);
  font: 700 16px/1 var(--body);
  cursor: pointer;
  transition: background-color .15s;
}
.btn:hover { background: var(--slnko); }
.btn:disabled { opacity: .6; cursor: default; }
.consent {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 20px; height: 20px;
  margin: 0;
  accent-color: var(--smrek);
  cursor: pointer;
}
.signup .err {
  margin: 8px 0 0;
  color: var(--chyba);
  font-size: 14px;
  font-weight: 700;
}
.done { text-align: center; }
.done:focus { outline: none; }

/* Pätička */
.siteFoot { border-top: 1px solid #C9DEDC; background: var(--mata); }
.footRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
}
.footRow a { color: var(--atrament); }
.footRow .footBrand { margin-right: auto; display: inline-flex; }
.footBrand img { display: block; height: 41px; width: auto; }

/* Ochrana osobných údajov */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}
.legal h1 { margin-top: 40px; font-size: 40px; line-height: 1.1; max-width: none; text-align: left; }
.legal h2 { margin-top: 32px; font-size: 22px; line-height: 1.2; }
.legal p { margin: 8px 0 0; }
.legal mark { padding: 0 4px; background: var(--slnko); border-radius: 6px; color: inherit; }
.legal .updated { margin-top: 32px; font-size: 14px; color: var(--muted); }

@media (max-width: 760px) {
  .topRow { height: 64px; }
  .brand img { height: 32px; }
  .topNav { gap: 12px; }
  .topLink { font-size: 14px; }
  .hero { padding: 32px 20px 32px; }
  .lead { font-size: 18px; }
  .cdGrid li { min-width: 72px; }
  .cdGrid b { font-size: 28px; }
  .signupWrap { margin-top: 4px; }
  .mapWrap { margin-top: 64px; }
  .pes { top: -37px; width: 130px; height: 42px; }
  .pesA { left: 3%; }
  .pesB { right: 3%; }
  .signup { padding: 20px; }
  .trail { --pin: 28px; border-radius: 14px; }
  .footRow { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footRow .footBrand { margin: 0 0 6px; }
}
@media (max-width: 520px) {
  .row { flex-direction: column; }
  input[type="email"], input[type="text"] { flex: none; width: 100%; }
  .btn { width: 100%; }
}

/* Jazyková brána v koreni (záloha k middleware.js). */
.jazykVyber { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.jazykVyber .btn { text-decoration: none; }
/* Dva prepínače jazyka vedľa seba. */
.topNav:has(.lang + .lang) { gap: 8px; }
