/* ============ SECTIONS — Noc → Poranek ============
   Tekst: cream na nocnym niebie (noc/shot/how/sen),
   biel z cieniem na świcie, ink na porannym (poranek/kup/footer).
   Copy środka podróży siedzi na scrim-kartach (czytelność na zmiennym niebie).
   =================================================== */

/* ---------- wspólne ---------- */
.scrim {
  background: rgba(13, 8, 38, .55);
  border: 1px solid rgba(255, 247, 230, .14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: clamp(22px, 2.4vw, 36px);
}

.eyebrow__time {
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}

/* ---------- HUD zegara ---------- */
.hud {
  position: fixed;
  left: var(--gutter);
  bottom: 26px;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  text-shadow: 0 1px 12px rgba(5, 3, 15, .45);
  transition: opacity .4s ease, color .35s ease;
  pointer-events: none;
}
.hud.is-hidden { opacity: 0; }
.hud__time {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}
.hud__phase {
  font-size: 10px;
  opacity: .65;
  letter-spacing: .22em;
}
.hud__ticks { display: flex; gap: 3px; }
.hud__ticks i {
  width: 3px;
  height: 10px;
  background: currentColor;
  opacity: .22;
  border-radius: 1px;
  transition: opacity .3s ease;
}
.hud__ticks i.is-on { opacity: .85; }

@media (max-height: 600px), (max-width: 640px) {
  .hud__ticks { display: none; }
}

/* ---------- przełącznik fazy (niebo jasne → UI ink) ---------- */
html[data-phase="day"] .hud { color: var(--ink); text-shadow: none; }
html[data-phase="day"] .nav__brand,
html[data-phase="day"] .nav__links { color: var(--ink); }
html[data-phase="day"] .nav__cta { background: var(--navy-night); color: var(--cream); }
html[data-phase="day"] .nav__links a::after { background: var(--pink); }
.nav__brand, .nav__links { transition: color .35s ease; }
.nav__cta { transition: transform var(--dur-base) var(--ease-bounce), background-color .35s ease, color .35s ease; }

/* ---------- 01 · 23:47 NOC (hero) ---------- */
.s-noc {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--gutter) + 64px) var(--gutter) var(--gutter);
}

.s-noc__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.s-noc__h1 {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.025em;
  margin: 8px 0 28px;
}
.s-noc__line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.s-noc__line > span { display: inline-block; }
.s-noc__line--accent > span {
  background: var(--grad-ribbon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}

.s-noc__sub {
  font-size: var(--fs-lead);
  color: var(--cream-soft);
  max-width: 46ch;
}

.s-noc__stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 36px;
  color: var(--cream-mute);
}
.s-noc__stats b {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.s-noc__statdiv { width: 1px; height: 26px; background: rgba(255, 247, 230, .2); }

.s-noc__ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.s-noc__trust { margin-top: 30px; opacity: .55; }

.s-noc__stage {
  position: relative;
  min-height: clamp(360px, 60vh, 720px);
}
.s-noc__stage .bottle-anchor {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(100%, 460px);
  aspect-ratio: 4 / 5;
}

.s-noc__cue {
  position: absolute;
  bottom: 28px;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: .55;
}
.s-noc__cueline {
  width: 64px; height: 1px;
  background: var(--cream);
  transform-origin: left;
  animation: cuePulse 2.2s var(--ease-out-expo) infinite;
}
@keyframes cuePulse {
  0% { transform: scaleX(0); opacity: 0; }
  35% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1) translateX(24px); opacity: 0; }
}

/* ---------- 02 · 00:30 SHOT ---------- */
.s-shot {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 72px);
  letter-spacing: -.01em;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255, 247, 230, .3);
  user-select: none;
}
.marquee__track { display: inline-block; will-change: transform; }
.marquee__track span { display: inline-block; padding-right: .35em; }

.s-shot__core {
  max-width: 1100px;
  margin: clamp(64px, 9vw, 140px) auto;
  padding: 0 var(--gutter);
  text-align: center;
  position: relative;
  z-index: 2;
}
.s-shot__line {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 54px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.015em;
}
.s-shot__line .w { opacity: .16; display: inline-block; }
.s-shot__note { margin-top: 32px; opacity: .55; }
/* ghost-anchory settle'ują zawsze w pionowym centrum ekranu —
   kompozycję robimy horyzontalnie (tekst centrum, butelka z boku) */
/* uwaga: offsetLeft w resolvePose NIE widzi transform translate(-50%) —
   center anchora = left + połowa szerokości anchora */
.s-shot .bottle-anchor--ghost { left: 60%; }
.s-shot__core { max-width: 880px; }

/* ---------- 03 · 01:00 JAK DZIAŁA ---------- */
.s-how { position: relative; }

.s-how__pin {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--gutter) + 48px) var(--gutter);
  max-width: 1500px;
  margin: 0 auto;
}

.s-how__head { margin-bottom: clamp(32px, 4vw, 64px); }

.s-how__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(24px, 4vw, 80px);
  align-items: center;
}

.s-how__steps { position: relative; min-height: clamp(300px, 42vh, 460px); }

.s-how__step { max-width: 56ch; }
html[data-tier="full"] .s-how__step {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}
html[data-tier="full"] .s-how__step:first-child { opacity: 1; visibility: visible; }

.s-how__num {
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--yellow);
  margin-bottom: 16px;
}
.s-how__step h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  margin-bottom: 12px;
}
.s-how__step p:not(.s-how__num) {
  color: var(--cream-soft);
  font-size: var(--fs-lead);
  line-height: 1.55;
}
.s-how__step strong { color: var(--yellow); font-weight: 600; }

.s-how__stage { position: relative; min-height: clamp(320px, 55vh, 640px); }
.s-how__stage .bottle-anchor {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
}

.s-how__rail {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: min(50%, 280px);
  background: rgba(255, 247, 230, .15);
  border-radius: 2px;
  overflow: hidden;
}
.s-how__railfill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--grad-ribbon);
  transform: scaleY(0);
  transform-origin: top;
}

/* ---------- 04 · 02:00→05:30 SEN ---------- */
.s-sen { position: relative; }

.s-sen__pin {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--gutter) + 48px) var(--gutter);
  max-width: 1500px;
  margin: 0 auto;
}

.s-sen__head { margin-bottom: clamp(32px, 4vw, 64px); }

.s-sen__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 80px);
  align-items: center;
}

.s-sen__stage { position: relative; min-height: clamp(300px, 50vh, 600px); }
.s-sen__stage .bottle-anchor--wide {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 5 / 4; /* szerszy — butelka leży */
}

.s-sen__beats { position: relative; min-height: clamp(280px, 38vh, 420px); }
.s-sen__beat { max-width: 52ch; }
html[data-tier="full"] .s-sen__beat {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}
html[data-tier="full"] .s-sen__beat:first-child { opacity: 1; visibility: visible; }

.s-sen__beattime {
  font-size: clamp(28px, 3vw, 44px);
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.s-sen__beat h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  margin-bottom: 12px;
}
.s-sen__beat h3 span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-mute);
  margin-top: 8px;
}
.s-sen__beat p:not(.s-sen__beattime) {
  color: var(--cream-soft);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

/* ---------- 05 · 05:58 ŚWIT ---------- */
.s-swit {
  position: relative;
  min-height: 160vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-pad) var(--gutter);
}
.s-swit__time {
  color: var(--white);
  text-shadow: 0 2px 24px rgba(27, 19, 70, .35);
  margin-bottom: 22px;
}
.s-swit__line {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--white);
  text-shadow: 0 4px 40px rgba(27, 19, 70, .3);
}
.s-swit__line em { color: var(--navy-night); text-shadow: none; }
.s-swit__line [data-split-swit] { display: inline-block; }
.s-swit .bottle-anchor--ghost { left: 58%; }

/* ---------- 06 · 07:12 PORANEK ---------- */
.s-poranek {
  position: relative;
  padding: var(--section-pad) var(--gutter);
  max-width: 1500px;
  margin: 0 auto;
  color: var(--ink);
}
.s-poranek .eyebrow__time { color: var(--orange-deep); }
.s-poranek__head { margin-bottom: clamp(36px, 4.5vw, 72px); }
.s-poranek .h2 em { color: var(--pink-deep); }
.s-poranek__lead { color: var(--ink-soft); margin-top: 14px; font-size: var(--fs-lead); }

.s-poranek__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 32px);
}

.day-card {
  padding: clamp(24px, 2.6vw, 40px);
  border-radius: 26px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(27, 19, 70, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .5s var(--ease-out-expo), border-color .5s ease;
}
.day-card:hover { transform: translateY(-8px); border-color: rgba(233, 30, 99, .4); }
.day-card__num {
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--orange-deep);
  margin-bottom: 16px;
}
.day-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}
.day-card p:not(.day-card__num) { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

.s-poranek__reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.2vw, 32px);
  margin-top: clamp(24px, 3vw, 40px);
}
.day-quote {
  padding: clamp(24px, 2.6vw, 40px);
  border-radius: 26px;
  background: rgba(255, 255, 255, .35);
  border: 1px dashed rgba(27, 19, 70, .2);
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
}
.day-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 500;
  line-height: 1.4;
}
.day-quote figcaption { color: var(--ink-mute); }

/* ---------- 07 · KUP ---------- */
.s-cta {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-pad) var(--gutter);
  overflow: hidden;
  color: var(--ink);
}

/* butelka jako "poranny kompan" — poza flow, prawy górny róg sekcji
   (sekcja wyższa niż viewport; in-flow anchor lądowałby na headline) */
.s-cta__stagewrap {
  position: absolute;
  top: 10vh;
  right: clamp(16px, 7vw, 140px);
  width: min(22vw, 250px);
  aspect-ratio: 4 / 5;
  pointer-events: none;
}
.s-cta__stagewrap .bottle-anchor { position: absolute; inset: 0; }

.s-cta__h2 {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.02em;
  position: relative;
  z-index: 2;
}
.s-cta__h2 em { color: var(--pink-deep); }
.s-cta__h2 [data-split-cta] { display: inline-block; }

.s-cta__sub {
  margin: 22px 0 38px;
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  position: relative;
  z-index: 2;
}

/* Pakiety — jasna wersja na porannym niebie */
.packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  align-items: stretch;
  width: min(100%, 980px);
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: clamp(22px, 2.4vw, 36px) clamp(18px, 2vw, 28px);
  border-radius: 26px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(27, 19, 70, .14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .45s var(--ease-out-expo), border-color .45s ease;
}
.pack:hover { transform: translateY(-8px); border-color: rgba(233, 30, 99, .5); }

.pack--hot {
  background: linear-gradient(165deg, rgba(255, 255, 255, .75), rgba(255, 31, 143, .18));
  border-color: rgba(255, 31, 143, .45);
  transform: scale(1.05);
  box-shadow: 0 28px 64px rgba(27, 19, 70, .18);
}
.pack--hot:hover { transform: scale(1.05) translateY(-8px); }

.pack__flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-night);
  color: var(--yellow);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.pack__tag { color: var(--ink-mute); }

.pack__qty {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 4.4vw, 68px);
  line-height: 1;
  margin-top: 8px;
}
.pack__qty span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-mute);
  letter-spacing: .04em;
  margin-top: 6px;
}

.pack__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 26px);
  margin-top: 12px;
}
.pack__unit { color: var(--ink-mute); font-size: 11px; }

.pack__btn { margin-top: 18px; width: 100%; }
.s-cta .btn--solid { background: var(--navy-night); color: var(--cream); }
.s-cta .btn--ghost { border-color: rgba(27, 19, 70, .35); color: var(--ink); }
.s-cta .btn--ghost:hover { border-color: var(--ink); }

.s-cta__badges {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-top: 60px;
  opacity: .7;
}
.s-cta__badges li { display: flex; align-items: center; gap: 8px; }
.s-cta__badges li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange-deep);
}
.s-cta__micro { margin-top: 22px; opacity: .5; }

/* ---------- FOOTER — poranek, cream/ink ---------- */
.footer {
  background: var(--cream);
  color: var(--ink);
  padding: clamp(48px, 6vw, 96px) var(--gutter) 32px;
  border-top: 1px solid rgba(27, 19, 70, .1);
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: clamp(28px, 4vw, 64px);
  max-width: 1500px;
  margin: 0 auto clamp(40px, 5vw, 72px);
}
.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
}
.footer__logo span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  background: var(--grad-ribbon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 6px;
}
.footer__tag { margin-top: 16px; color: var(--ink-mute); font-size: var(--fs-small); }

.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col > .mono { opacity: .45; margin-bottom: 6px; }
.footer__col a {
  color: var(--ink-soft);
  font-size: var(--fs-small);
  width: fit-content;
  transition: color var(--dur-base) ease;
}
.footer__col a:hover { color: var(--pink-deep); }
.footer__addr { color: var(--ink-mute); font-size: 13px; line-height: 1.6; }

.footer__disclaimer {
  max-width: 1500px;
  margin: 0 auto 18px;
  font-size: 12px;
  color: rgba(27, 19, 70, .5);
  border-top: 1px solid rgba(27, 19, 70, .1);
  padding-top: 24px;
}
.footer__copy { max-width: 1500px; margin: 0 auto; opacity: .4; }

/* ============ RESPONSIVE ============ */
@media (max-width: 899px) {
  .nav__links { display: none; }

  .s-noc__inner { grid-template-columns: 1fr; }
  .s-noc__stage { order: -1; min-height: 300px; }
  .s-noc__cue { right: auto; left: var(--gutter); }

  .s-how__grid { grid-template-columns: 1fr; }
  .s-how__stage { min-height: 240px; order: -1; }
  .s-how__rail { display: none; }

  .s-sen__grid { grid-template-columns: 1fr; }
  .s-sen__stage { min-height: 220px; }

  .s-swit { min-height: 120vh; }

  .s-poranek__grid { grid-template-columns: 1fr; }
  .s-poranek__reviews { grid-template-columns: 1fr; }

  .s-cta__stagewrap { position: relative; top: auto; right: auto; width: min(60vw, 280px); margin-bottom: -16px; }
  .s-cta__badges { flex-direction: column; gap: 12px; align-items: center; }
  .packs { grid-template-columns: 1fr; gap: 22px; }
  .pack--hot { transform: none; order: -1; }
  .pack--hot:hover { transform: translateY(-8px); }

  .footer__top { grid-template-columns: 1fr 1fr; }
}
