/* Tvoj Asistent: dočasná tajomná stránka "čoskoro" s odberom e-mailu. Paleta z dizajn manuálu, mobil ako základ. */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/playfair-var.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/jost-var.woff2") format("woff2");
}

:root {
  --noc: #0a2038;
  --noc-tm: #061626;
  --zlata: #d4af7a;
  --zlata-sv: #e7c99a;
  --zlata-tm: #b88a4a;
  --krem: #fcf8f0;
  --krem-jemny: rgba(252, 248, 240, 0.72);
  --modra: #0e2a47;
  --pismo-nadpis: "Playfair Display", Georgia, "Times New Roman", serif;
  --pismo-text: "Jost", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--noc-tm);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  color: var(--krem);
  font-family: var(--pismo-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(120% 90% at 50% 38%, var(--modra) 0%, var(--noc) 45%, var(--noc-tm) 100%);
}
img {
  max-width: 100%;
  display: block;
}
h1,
p {
  margin: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--zlata);
  outline-offset: 3px;
  border-radius: 6px;
}
.skryte {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.pasca {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* pomaly dýchajúca zlatá žiara za logom */
.zara {
  position: fixed;
  left: 50%;
  top: 38%;
  width: min(120vw, 980px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(212, 175, 122, 0.2), rgba(212, 175, 122, 0.06) 55%, transparent 100%);
  pointer-events: none;
  animation: dych 9s ease-in-out infinite alternate;
}

.scena {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 24px;
}
.vstup {
  width: 100%;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.vstup > * {
  animation: objav 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.vstup > :nth-child(2) {
  animation-delay: 0.2s;
}
.vstup > :nth-child(3) {
  animation-delay: 0.4s;
}
.vstup > :nth-child(4) {
  animation-delay: 0.6s;
}
.vstup > :nth-child(n + 5) {
  animation-delay: 0.85s;
}

.logo {
  width: 190px;
  height: auto;
  margin-bottom: 30px;
}
.ciara {
  display: block;
  width: 56px;
  height: 1px;
  margin-bottom: 30px;
  background: linear-gradient(90deg, transparent, var(--zlata), transparent);
}
h1 {
  font-family: var(--pismo-nadpis);
  font-weight: 400;
  font-size: clamp(2.9rem, 14vw, 5.6rem);
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-indent: 0.14em;
  color: var(--krem);
}
.vyzva {
  margin-top: 18px;
  font-size: clamp(0.8rem, 3.2vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  color: var(--zlata);
}

.odber {
  width: 100%;
  margin-top: 44px;
}
.odber__riadok {
  display: grid;
  gap: 12px;
}
.odber input[type="email"] {
  width: 100%;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 122, 0.45);
  background: rgba(255, 255, 255, 0.05);
  color: var(--krem);
  font: 400 1rem/1.2 var(--pismo-text);
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.odber input[type="email"]::placeholder {
  color: rgba(252, 248, 240, 0.5);
}
.odber input[type="email"]:hover {
  border-color: rgba(212, 175, 122, 0.75);
}
.odber input[type="email"]:focus {
  outline: none;
  border-color: var(--zlata);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(212, 175, 122, 0.22);
}
.odber input[aria-invalid="true"] {
  border-color: #f0b09c;
}
.tlacidlo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 32px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, #e3c293, #c9a066);
  color: var(--modra);
  font: 500 0.8125rem/1 var(--pismo-text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(212, 175, 122, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.tlacidlo:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -12px rgba(212, 175, 122, 0.85);
}
.tlacidlo:disabled {
  cursor: progress;
  filter: saturate(0.6) brightness(0.9);
  transform: none;
}
.odber__stav {
  margin-top: 14px;
  font-size: 0.95rem;
  color: #f4b8a8;
}
.odber__poznamka {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--krem-jemny);
}
.odber__hotovo {
  margin-top: 44px;
  max-width: 24em;
  font-family: var(--pismo-nadpis);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--krem);
}
.odber__hotovo:focus {
  outline: none;
}
.odber__hotovo a {
  color: var(--zlata-sv);
}
.odber__hotovo[hidden],
.odber[hidden],
.odber__stav[hidden] {
  display: none;
}

.paticka {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--krem-jemny);
  animation: objav 1.2s ease 1.2s both;
}
.paticka a {
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 122, 0.4);
}
.paticka a:hover {
  color: var(--zlata-sv);
  border-bottom-color: var(--zlata-sv);
}

@keyframes objav {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dych {
  from {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@media (min-width: 560px) {
  .logo {
    width: 230px;
    margin-bottom: 34px;
  }
  .odber__riadok {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .odber input[type="email"] {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .zara,
  .vstup > *,
  .paticka {
    animation: none;
  }
  * {
    transition: none !important;
  }
}
