/* ByroKAT (modern) - Progresívne Slovensko campaign page
   Design read: civic-awareness campaign page for a mainstream Slovak audience,
   bold editorial/kinetic-type language, built on the PS design system's own
   documented gradient/shadow/motion tokens pushed further than the base page.
   Dials: variance 8, motion 7, density 3.
   Tokens below are the subset of the design system actually used here. */

@font-face {
  font-family: "Geomanist";
  src: url("../fonts/Geomanist-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geomanist";
  src: url("../fonts/Geomanist-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geomanist";
  src: url("../fonts/Geomanist-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kapra";
  src: url("../fonts/KapraCE-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #000080;
  --navy-hover: #00005A;
  --cyan: #00BCFF;
  --cyan-tint: #EBFAFF;
  --white: #FFFFFF;
  --gray-900: #101828;
  --gray-600: #475467;
  --gray-300: #D0D5DD;
  --gray-200: #EAECF0;
  --gray-50: #F9FAFB;
  --error: #D92D20;

  --gradient-hero: radial-gradient(circle at 50% 35%, #C8F0FF 0%, #00BCFF 100%);

  --font-display: "Kapra", "Geomanist", system-ui, sans-serif;
  --font-sans: "Geomanist", system-ui, sans-serif;

  --radius-button: 4px;
  --radius-card: 16px;
  --radius-panel: 24px;

  --shadow-sm: 0px 2px 20px 0px rgba(0,0,0,0.1);
  --shadow-card: 0px 4px 6px 0px rgba(16,24,40,0.03), 0px 12px 16px 0px rgba(16,24,40,0.08);
  --ring-brand: 0 0 0 4px rgba(0,0,128,0.25);
  --ring-error: 0 0 0 4px rgba(186,0,0,0.4);

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Type */
.ps-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}
.ps-p {
  font-size: 18px;
  line-height: 30px;
  color: var(--gray-600);
  margin: 0 0 16px;
}
.ps-p--strong { font-weight: 700; color: var(--navy); }
.ps-label {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 18px;
  color: var(--gray-600);
  font-weight: 500;
}
@media (min-width: 720px) {
  .ps-h2 { font-size: 38px; }
}

/* Scroll progress */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 30;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,128,0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 26px;
  padding-bottom: 26px;
  transition: padding var(--dur-base) var(--ease-standard);
}
.site-header.is-scrolled .wrap {
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header__logo {
  height: 36px;
  transition: height var(--dur-base) var(--ease-standard);
}
.site-header.is-scrolled .site-header__logo { height: 26px; }
.site-header__tag {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  padding-left: 16px;
  border-left: 1px solid var(--gray-200);
}

/* CTA banner: link to the feedback form, styled as a pill button. Same
   gray-50 as .context below it so the two blocks read as one continuous
   section instead of a white seam against the pale section. Centered
   in-flow on desktop; a fixed floating button on phones. */
.cta-banner-wrap {
  padding: 40px 24px;
  text-align: center;
  background: var(--gray-50);
}
.cta-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 2px;
  column-gap: 6px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  text-align: center;
  padding: 16px 28px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-standard), background var(--dur-base) var(--ease-standard);
}
.cta-banner:hover,
.cta-banner:focus-visible { background: var(--cyan-tint); transform: translateY(-2px); }
.cta-banner__sentence { white-space: nowrap; }

@media (max-width: 719px) {
  .cta-banner-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 16px;
    padding: 0 16px;
    background: none;
    z-index: 25;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
  }
  /* Hidden by JS (main.js) once the feedback form itself is in view --
     no point floating a button to a section the visitor is already on. */
  .cta-banner-wrap.is-hidden {
    opacity: 0;
    transform: translateY(12px);
  }
  .cta-banner {
    display: flex;
    pointer-events: auto;
    max-width: 340px;
    margin: 0 auto;
    font-size: 14px;
    padding: 14px 20px;
    box-shadow: var(--shadow-card);
  }
  .cta-banner-wrap.is-hidden .cta-banner { pointer-events: none; }
}

/* Hero */
.hero {
  background: var(--cyan);
  padding: 56px 0 72px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero__headline {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--white);
  font-size: clamp(44px, 9vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 128, 0.25);
}
.hero__line {
  display: block;
}
.hero__line--alt {
  display: inline-block;
  margin-top: 10px;
  background: var(--navy);
  color: var(--white);
  padding: 2px 10px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* Stat calendar: the hero's "34 days" stat as a torn-off desk calendar --
   a stack of pages (rotated duplicates behind), ring-bound band, and the
   day count standing in for the date. A literal, legible metaphor for
   "days", and visually distinct from the .ticket cards used later. */
.stat-calendar {
  position: relative;
  width: min(280px, 68vw);
  margin: 0 auto;
}
.stat-calendar::before,
.stat-calendar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  z-index: 0;
}
.stat-calendar::before { transform: rotate(-6deg); }
.stat-calendar::after { transform: rotate(5deg); }

.stat-calendar__page {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: center;
}
.stat-calendar__band {
  position: relative;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 16px 16px 8px;
}
.stat-calendar__rings {
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 32px;
}
.stat-calendar__rings span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan-tint);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}
.stat-calendar__body { padding: 12px 20px 26px; }
.stat-calendar__number {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: clamp(64px, 13vw, 88px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-calendar__unit {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.hero__stat-copy {
  margin: 24px 0 0;
  max-width: 340px;
  font-size: 17px;
  line-height: 26px;
  font-weight: 500;
  color: var(--navy);
  text-wrap: pretty;
}

/* Kinetic entrance (JS-gated: see .kinetic-pending, never hidden by default) */
.kinetic-pending[data-kinetic] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.kinetic-pending[data-kinetic].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Context / pull-quote */
.context {
  padding: 72px 0;
  background: var(--gray-50);
}
.context__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 860px) {
  .context__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.context__quote {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.35;
  color: var(--navy);
}
.context__body { display: flex; flex-direction: column; justify-content: center; }

/* Queue banner: a lightweight text link to the game (replaces the earlier
   full-width looping video, which was too heavy). */
.queue-banner {
  display: block;
  background: var(--navy);
  /* Easter egg: links to the game, but must not look clickable. */
  cursor: default;
}
.queue-banner__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  /* padding-top/bottom only (not the shorthand) -- .wrap already sets 24px
     left/right, and the shorthand here would silently wipe that out since
     both classes land on this element with equal specificity. */
  padding-top: 24px;
  padding-bottom: 24px;
}
.queue-banner__figures { display: flex; gap: 10px; flex: none; }
.queue-person {
  flex: none;
  width: 24px;
  height: 34px;
  color: var(--cyan);
  fill: currentColor;
}
.queue-person:nth-child(3n) { opacity: 0.6; transform: scale(0.85); }
.queue-banner__text {
  flex: 1 1 260px;
  margin: 0;
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  line-height: 26px;
}

/* On narrow phones the figures/text/cta each wrapped onto their own line
   (3 lines total). Turn the figures into a faint centered background layer
   instead, and stack text + cta centered on top of it -- 2 lines, tidy. */
@media (max-width: 719px) {
  .queue-banner__inner {
    position: relative;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
  }
  .queue-banner__figures {
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    opacity: 0.15;
    pointer-events: none;
  }
  .queue-banner__text {
    position: relative;
    z-index: 1;
  }
  /* Base rule's flex: 1 1 260px was a row-layout width hint; in this
     column layout the same basis forces the text block to 260px tall. */
  .queue-banner__text {
    flex: none;
  }
}

/* Tickets (horizontal scroll-snap) */
.tickets { padding: 80px 0 64px; }
/* Anchor target for the game's "back to ByroKAT" link -- without this the
   sticky header (position: sticky, its own z-index) lands on top of the
   heading right after the jump. */
#tickets-heading { scroll-margin-top: 96px; }
.tickets__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.tickets__head .ps-h2 { max-width: 640px; }
.tickets__nav { display: flex; gap: 8px; flex: none; }
.tickets__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard);
}
.tickets__arrow:hover { background: var(--navy); color: var(--white); }

.tickets__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Left edge lines up with .wrap's content edge instead of a flat 24px,
     so the first card aligns under the heading above it on wide viewports
     (.wrap caps at 1200px and centers; this mirrors that same inset). */
  padding: 4px 24px 12px max(24px, calc((100vw - 1200px) / 2 + 24px));
  scrollbar-width: none;
}
.tickets__track::-webkit-scrollbar { display: none; }
.tickets__nav[hidden] { display: none; }
.tickets__cta { margin-top: 40px; text-align: center; }
.tickets__cta .btn {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}
.tickets__cta .btn:hover { background: var(--navy); color: var(--white); }
.tickets__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.tickets__arrow:disabled:hover { background: var(--white); color: var(--navy); }

.ticket {
  flex: 0 0 min(400px, 84vw);
  scroll-snap-align: start;
  position: relative;
  background: var(--cyan-tint);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.ticket__stub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
  background: var(--navy);
  color: var(--white);
  border-bottom: 2px dashed rgba(255,255,255,0.35);
}
.ticket__number {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.ticket__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75);
}
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 56px;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
  transform: translateY(-50%);
}
.ticket::before { left: -11px; }
.ticket::after { right: -11px; }

.ticket__body { padding: 24px 24px 28px; }
.ticket__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  line-height: 27px;
  color: var(--navy);
  margin: 0 0 12px;
}
.ticket__text {
  font-size: 16px;
  line-height: 24px;
  color: var(--gray-600);
  margin: 0;
}

/* Plan / countdown */
.plan {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding: 88px 0;
}
.plan__pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.5;
}
.plan__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 960px) {
  .plan__grid { grid-template-columns: 1.1fr 0.9fr; }
}
.plan .ps-h2 { color: var(--white); }
.plan__body {
  font-size: 18px;
  line-height: 28px;
  color: var(--white);
  max-width: 640px;
  margin: 20px 0 0;
}
.plan__body--strong { font-weight: 700; }

.plan__countdown-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 32px 0;
}
.plan__ring {
  position: absolute;
  width: 460px;
  max-width: 120%;
  aspect-ratio: 1;
  border: 2px dashed rgba(0,188,255,0.4);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .plan__ring { animation: none; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.countdown {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 420px;
  width: 100%;
}
.countdown__tile {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  padding: 16px 8px;
  text-align: center;
}
.countdown__value {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}

/* Experience / form */
.experience {
  padding: 88px 0;
  background: var(--gray-50);
}
.experience__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 960px) {
  .experience__grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
  .experience__intro { position: sticky; top: 96px; align-self: start; }
}
.experience__body {
  margin-top: 16px;
  font-size: 18px;
  line-height: 28px;
  color: var(--gray-600);
  max-width: 420px;
}

/* Honeypot: invisible to sighted users and screen readers, but present in
   the DOM for bots that blindly fill every field. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.exp-form {
  background: var(--white);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.exp-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 620px) {
  .exp-form__row { grid-template-columns: 1fr 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field__optional { text-transform: none; font-weight: 400; }
.field__hint {
  font-size: 12px;
  color: var(--gray-600);
}
.checkbox a { color: var(--navy); }

.inp {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--gray-900);
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-button);
  background: var(--white);
  width: 100%;
  transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.inp::placeholder { color: #98A2B3; }
.inp:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: var(--ring-brand);
}
textarea.inp { resize: vertical; min-height: 140px; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 24px;
  color: var(--gray-600);
  cursor: pointer;
}
.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--navy);
  flex: none;
}

.btn {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 30px;
  border-radius: var(--radius-button);
  padding: 6px 24px;
  cursor: pointer;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--dur-base) var(--ease-standard), opacity var(--dur-base) var(--ease-standard);
  align-self: flex-start;
}
.btn.submit {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn.submit:hover { background: var(--navy-hover); }
.btn.submit:active { background: var(--navy-hover); opacity: 0.85; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.exp-form__status {
  font-size: 14px;
  min-height: 20px;
  margin: 0;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-standard);
}
.exp-form__status:not(:empty) { opacity: 1; }
.exp-form__status[data-state="ok"] { color: #067647; }
.exp-form__status[data-state="error"] { color: var(--error); }

/* Voice: personal quote with photo, mirrors .context's editorial tone */
.voice { padding: 80px 0; }
.voice__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) {
  .voice__grid { grid-template-columns: 252px 1fr; gap: 40px; align-items: center; }
}
.voice__photo-wrap { display: flex; justify-content: center; }
.voice__photo {
  width: 252px;
  height: 252px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.voice__photo--placeholder {
  background: var(--cyan-tint);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
}
.voice__photo img { width: 100%; height: 100%; object-fit: cover; }
.voice__name {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 16px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  padding: 32px 0;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.site-footer__logo { height: 22px; }
.site-footer__legal {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
@media (min-width: 620px) {
  .site-footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Scroll reveal (JS-gated: see .reveal-pending, never hidden by default) */
.reveal-pending {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out);
}
.reveal-pending.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-pending [data-reveal-item] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out);
}
.reveal-pending.is-visible [data-reveal-item]:nth-child(1) { transition-delay: 0ms; }
.reveal-pending.is-visible [data-reveal-item]:nth-child(2) { transition-delay: 80ms; }
.reveal-pending.is-visible [data-reveal-item]:nth-child(3) { transition-delay: 160ms; }
.reveal-pending.is-visible [data-reveal-item] {
  opacity: 1;
  transform: translateY(0);
}
