/* ─────────────────────────────────────────────────────────────────
   ZdravaFakta — homepage styles.
   Hero + reels strip + articles morph + Víte že stats + newsletter.
   Shared chrome (tokens, body, scroll bar, logo, footer, .badge,
   .sec-num) lives in public-base.css.
   ───────────────────────────────────────────────────────────────── */

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  padding: 140px var(--side-pad) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}
@media (max-width: 720px) {
  .hero { justify-content: flex-start; padding-top: 100px; }
}

/* parallax 🫐 behind everything */
.hero-berry {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: min(80vmin, 700px);
  line-height: 1;
  filter: blur(2px) saturate(110%);
  opacity: 0.22;
  pointer-events: none;
  will-change: transform;
  animation: berryFloat 8s ease-in-out infinite;
  z-index: 0;
  user-select: none;
}
@keyframes berryFloat {
  0%, 100% { transform: translate(-50%, -50%) rotate(-3deg); }
  50%      { transform: translate(-48%, -52%) rotate(3deg); }
}

/* warm aurora — gold + navy, low saturation */
.hero-aurora {
  position: absolute;
  width: 90vmin;
  height: 90vmin;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 30% 40%, rgba(245, 200, 66, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(27, 58, 107, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(212, 168, 43, 0.22) 0%, transparent 60%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: auroraPulse 10s ease-in-out infinite alternate;
}
@keyframes auroraPulse {
  from { transform: translate(-50%, -50%) scale(0.95); opacity: 0.8; }
  to   { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 40px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
}
.hero-tag .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.35);
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(54px, 12vw, 200px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
  max-width: 14ch;
  color: var(--zf-text-dark);
}
.hero-title .grad { color: var(--zf-gold-dark); display: inline-block; }

/* typewriter — chars hidden until JS reveals them */
.tw-char { opacity: 0; }
.tw-char.tw-show { opacity: 1; }
.hero-title, .hero-sub { visibility: hidden; }
.hero-title.tw-ready, .hero-sub.tw-ready { visibility: visible; }
.tw-caret {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--brand-gold);
  margin-left: 4px;
  vertical-align: -0.05em;
  animation: tw-blink 0.85s steps(2, end) infinite;
}
@keyframes tw-blink { to { opacity: 0; } }

.hero-sub {
  max-width: 560px;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--fg-soft);
  margin-bottom: 48px;
  font-weight: 400;
}

.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
  border-radius: 100px;
  background: var(--brand-gold);
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  box-shadow: 0 6px 20px rgba(245, 200, 66, 0.45);
  border: none;
}
.cta-primary:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 168, 43, 0.5);
}
.cta-primary .arrow { transition: transform 0.3s var(--ease-out); }
.cta-primary:hover .arrow { transform: translateX(4px); }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-blue);
  text-decoration: none;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.5);
  transition: all 0.3s var(--ease-out);
}
.cta-ghost:hover { border-color: var(--brand-blue); background: var(--brand-blue-soft); }

.hero-meta {
  position: absolute;
  bottom: 32px;
  left: var(--side-pad);
  right: var(--side-pad);
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.hero-meta .scroll-cue { display: flex; align-items: center; gap: 10px; }
.hero-meta .scroll-cue::after {
  content: "↓";
  animation: scrollHint 2s ease-in-out infinite;
  display: inline-block;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(4px); opacity: 1; }
}

/* ========== REELS — horizontal scroll strip ========== */
.reels-pin { position: relative; padding: 100px 0 80px; }
.reels-sticky { display: flex; flex-direction: column; }
.reels-head {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  width: 100%;
  padding: 0 var(--side-pad);
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.reels-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  max-width: 600px;
  color: var(--fg);
}
.reels-head h2 em { font-style: normal; color: var(--brand-blue); }
.reels-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
}
.reels-counter .now {
  color: var(--brand-blue);
  font-size: 28px;
  font-weight: 700;
  display: inline-block;
  min-width: 38px;
}
.reels-track-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.reels-track-wrap::-webkit-scrollbar { display: none; }

.reels-track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  padding: 0 var(--side-pad);
  width: max-content;
}

.reel-card {
  flex-shrink: 0;
  width: min(70vw, 360px);
  background: var(--bg-elev);
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 40px rgba(44, 44, 44, 0.08);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.reel-poster {
  display: block;
  aspect-ratio: 9 / 16;
  position: relative;
  overflow: hidden;
  background: var(--brand-blue-deep);
  text-decoration: none;
}
.reel-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reel-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 35%);
  pointer-events: none;
}
.reel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(225, 48, 108, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 10px 30px rgba(225, 48, 108, 0.45), 0 0 0 6px rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 2;
}
.reel-article {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  text-decoration: none;
  color: #fff;
  background: rgba(15, 24, 37, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  transition: background 0.3s var(--ease-out);
}
.reel-article:hover { background: rgba(15, 24, 37, 0.72); }
.reel-article-arrow {
  font-size: 22px;
  color: #fff;
  transition: transform 0.3s var(--ease-out);
}
.reel-article:hover .reel-article-arrow { transform: translateX(4px); }

.reel-intro {
  flex-shrink: 0;
  width: min(70vw, 360px);
  border-radius: 24px;
  padding: 40px 32px 90px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(245, 200, 66, 0.20), rgba(27, 58, 107, 0.08)),
    var(--bg-elev);
  border: 1px solid var(--line-strong);
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}
.reel-intro::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 100%;
  top: 0;
  left: -50%;
  background: radial-gradient(circle at 30% 70%, rgba(245, 200, 66, 0.30) 0%, transparent 55%);
  pointer-events: none;
}
.reel-intro-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.reel-intro h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
  color: var(--brand-blue);
}

/* ========== ARTICLES — 2×2 cards ========== */
.articles-pin {
  position: relative;
  padding: 100px 0 120px;
  background: linear-gradient(180deg, var(--bg) 0%, #F4F0E5 100%);
}
.articles-sticky { display: flex; flex-direction: column; }
.articles-head {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  width: 100%;
  padding: 0 var(--side-pad);
}
.articles-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 12ch;
  color: var(--fg);
}
.articles-head h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand-blue), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.articles-head p {
  color: var(--fg-soft);
  max-width: 500px;
  margin-top: 16px;
  font-size: 15px;
}

.articles-stage {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 720px) {
  .articles-stage { grid-template-columns: 1fr; gap: 16px; }
}

.article-card {
  aspect-ratio: 5 / 4;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow:
    0 16px 40px rgba(44, 44, 44, 0.08),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.6);
  overflow: hidden;
  color: var(--fg);
  text-decoration: none;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px rgba(44, 44, 44, 0.12);
}
.article-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), var(--g-color, rgba(27, 58, 107, 0.08)) 0%, transparent 60%);
  pointer-events: none;
}
.article-card .a-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.article-card .a-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.article-card .a-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  position: relative;
  z-index: 1;
}
.article-card .a-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.article-card .a-meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); }
.article-card .a-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s var(--ease-out);
}
.article-card .a-cta::after { content: "→"; font-size: 14px; }
.article-card:hover .a-cta { gap: 14px; }

/* ========== BENEFITS / VÍTE ŽE ========== */
.benefits {
  position: relative;
  padding: 140px var(--side-pad);
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}
.blob-1 {
  width: 50vmax; height: 50vmax;
  background: radial-gradient(circle, rgba(245, 200, 66, 0.30) 0%, transparent 60%);
  top: -20vmax; left: -20vmax;
}
.blob-2 {
  width: 40vmax; height: 40vmax;
  background: radial-gradient(circle, rgba(27, 58, 107, 0.16) 0%, transparent 60%);
  bottom: -15vmax; right: -15vmax;
}
.blob-3 {
  width: 30vmax; height: 30vmax;
  background: radial-gradient(circle, rgba(212, 168, 43, 0.16) 0%, transparent 60%);
  top: 30%; right: 10%;
}
.benefits-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.benefits h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 80px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 16px;
  color: var(--fg);
}
.benefits h2 em { font-style: normal; color: var(--villain); }
.benefits-sub {
  color: var(--fg-soft);
  font-size: 16px;
  max-width: 540px;
  margin-bottom: 80px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 720px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card {
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--c-accent, var(--brand-blue));
  opacity: 0.8;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(44, 44, 44, 0.08);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 8vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--c-accent, var(--brand-blue));
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-num .unit {
  font-size: 0.4em;
  color: var(--fg-soft);
  font-weight: 600;
  margin-left: 6px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.stat-desc {
  font-size: 15px;
  color: var(--fg-soft);
  line-height: 1.5;
}
.stat-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}
.stat-source:hover { color: var(--brand-blue); }
.stat-source .ext {
  font-size: 13px;
  transition: transform 0.3s var(--ease-out);
}
.stat-source:hover .ext { transform: translate(2px, -2px); }

/* ========== NEWSLETTER ========== */
.newsletter {
  min-height: 100vh;
  padding: 80px var(--side-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  background: radial-gradient(ellipse at center, #F8F1DE 0%, var(--bg) 70%);
}
.newsletter::before {
  content: "🫐";
  position: absolute;
  font-size: 50vmin;
  line-height: 1;
  opacity: 0.10;
  filter: blur(3px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.newsletter-inner {
  max-width: 720px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.newsletter h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: var(--fg);
}
.newsletter h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand-blue), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.newsletter p {
  color: var(--fg-soft);
  font-size: clamp(15px, 1.6vw, 18px);
  margin-bottom: 48px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 540px;
  margin: 0 auto;
  padding: 6px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  backdrop-filter: blur(20px);
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 24px rgba(44, 44, 44, 0.06);
}
.newsletter-form:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(27, 58, 107, 0.12);
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg);
  min-width: 0;
}
.newsletter-form input::placeholder { color: var(--fg-muted); }
.newsletter-form button {
  padding: 14px 28px;
  border: none;
  border-radius: 100px;
  background: var(--brand-blue);
  color: white;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  box-shadow: 0 6px 16px rgba(27, 58, 107, 0.25);
}
.newsletter-form button:hover {
  background: var(--brand-blue-deep);
  transform: translateY(-1px);
}
/* Disabled state — newsletter has no email back-end yet (v1) */
.newsletter-form.is-disabled { opacity: 0.7; }
.newsletter-form input:disabled { cursor: not-allowed; }
.newsletter-form button:disabled {
  background: var(--fg-muted);
  box-shadow: none;
  cursor: not-allowed;
}
.newsletter-form button:disabled:hover {
  background: var(--fg-muted);
  transform: none;
}
.newsletter-note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
