/* EKRAN BLOKADY DO PREMIERY (lock.html, js/lock.js). Te same tokeny co strona: czerń, złamana biel, bordowe logo, Futura Cond, linie 1 px. */
@font-face { font-family: "Futura Cond"; src: local("Futura-CondensedMedium"), local("Futura Condensed Medium"), url("../fonts/FuturaCondensedMedium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
:root {
  --c-black: #000; --c-white: #f2efe9; --c-logo: #762f2f;
  --f: "Futura Cond", "Futura", "Helvetica Neue", Arial, sans-serif;
  --ls: .3em; --t-micro: .75rem; --g: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--c-black); color: var(--c-white); }
body { font-family: var(--f); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.lk {
  position: relative; min-height: 100svh; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr);
  padding: calc(env(safe-area-inset-top) + 22px) var(--g) calc(env(safe-area-inset-bottom) + 16px);
}
/* tło: skan z hero, mocno rozmyty i przyciemniony (stały blur), bardzo wolno oddycha (tylko transform) */
.lk__bg {
  position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; z-index: 0;
  filter: blur(26px) saturate(.75); opacity: .55;
  animation: lk-breathe 26s ease-in-out infinite alternate;
}
@keyframes lk-breathe { from { transform: scale(1); } to { transform: scale(1.08); } }
.lk__veil { position: absolute; inset: 0; z-index: 0; background: rgba(0, 0, 0, .55); }
.lk > :not(.lk__bg):not(.lk__veil) { position: relative; z-index: 1; }

/* wejście: wszystko wyłania się z czerni, po kolei */
.lk__top, .lk__kicker, .lk__count, .lk__date, .lk__bot { opacity: 0; animation: lk-in 1.6s cubic-bezier(.16, 1, .3, 1) forwards; }
.lk__kicker { animation-delay: .25s; }
.lk__count { animation-delay: .4s; }
.lk__date { animation-delay: .6s; }
.lk__bot { animation-delay: .85s; }
@keyframes lk-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }

.lk__top { display: flex; justify-content: center; }
.lk__logo { margin: 0; width: min(64vw, 380px); color: var(--c-logo); line-height: 0; }
.lk__logo svg { width: 100%; height: auto; display: block; }

.lk__mid { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.lk__kicker, .lk__date, .lk__lab, .lk__note, .lk__foot, .lk__btn, .lk__switch, .lk__in { font-size: var(--t-micro); letter-spacing: var(--ls); text-transform: uppercase; }
.lk__kicker, .lk__date { margin: 0; opacity: .55; }
.lk__kicker { animation-name: lk-in-dim; }
.lk__date { animation-name: lk-in-dim; }
@keyframes lk-in-dim { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: .55; transform: none; } }

/* odliczanie: 4 kolumny przedzielone liniami 1 px */
.lk__count { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; }
.lk__unit { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 clamp(9px, 3vw, 44px); }
.lk__unit + .lk__unit { border-left: 1px solid rgba(242, 239, 233, .18); }
.lk__num { display: flex; font-size: clamp(44px, 15vw, 184px); font-weight: 500; line-height: .82; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.lk__lab { opacity: .45; font-size: .625rem; }
/* cyfra: przy zmianie stara odjeżdża w górę, nowa wjeżdża od dołu (transform + przezroczystość) */
.lk__d { position: relative; display: inline-block; overflow: hidden; height: .82em; width: .5em; text-align: center; }
.lk__d > i { position: absolute; left: 0; right: 0; top: 0; font-style: normal; }
.lk__d > i.is-in { animation: lk-d-in .7s cubic-bezier(.16, 1, .3, 1) both; }
.lk__d > i.is-out { animation: lk-d-out .7s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes lk-d-in { from { transform: translate3d(0, 70%, 0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lk-d-out { from { transform: none; opacity: 1; } to { transform: translate3d(0, -70%, 0); opacity: 0; } }

.lk__bot { display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 520px; justify-self: center; }
.lk__form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.lk__row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; border-bottom: 1px solid rgba(242, 239, 233, .35); transition: border-color .3s; }
.lk__row:focus-within { border-bottom-color: var(--c-white); }
.lk__in { width: 100%; padding: 12px 0; border: 0; border-radius: 0; background: transparent; outline: none; font-size: 16px; -webkit-appearance: none; appearance: none; }
.lk__in::placeholder { color: inherit; opacity: .45; }
.lk__in:-webkit-autofill { -webkit-text-fill-color: var(--c-white); transition: background-color 9999s; }
.lk__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lk__btn { padding: 12px 0; border: 0; background: none; cursor: pointer; white-space: nowrap; }
.lk__btn:disabled { opacity: .4; }
.lk__note { margin: 0; font-size: .625rem; opacity: .45; }
.lk__note.is-ok { opacity: .9; }
.lk__note.is-err { color: #b65a5a; opacity: 1; }
.lk__form.is-shake .lk__row { animation: lk-shake .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes lk-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.lk__foot { display: flex; justify-content: space-between; align-items: center; opacity: .45; font-size: .625rem; }
.lk__switch { border: 0; background: none; padding: 6px 0; cursor: pointer; font-size: .625rem; }
.lk__switch:hover, .lk__btn:hover { opacity: .7; }

@media (min-width: 900px) {
  .lk { padding: 28px 40px 24px; }
  .lk__lab { font-size: var(--t-micro); }
}
@media (prefers-reduced-motion: reduce) {
  .lk__bg, .lk__top, .lk__kicker, .lk__count, .lk__date, .lk__bot, .lk__d > i { animation: none !important; opacity: 1; }
  .lk__kicker, .lk__date { opacity: .55; }
}
