/* Basic reset */
* { box-sizing: border-box }
html, body { height: 100% }

:root {
  /* Bottom bar height (updated dynamically by JS, these are safe defaults) */
  --bar-h: 64px;
}

@media (max-width: 600px) {
  :root { --bar-h: 56px; }
}

body {
  margin: 0;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); /* ensure bottom content isn't hidden behind the bar */
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  background: #0b0b12;
  color: #e8eaf6;
}

/* Bottom bar (always fixed, never over the video content due to paddings below) */
.topbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(11, 11, 18, .9);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .2px;
}
.brand .dot { color: #7cf; }
.logo { width: 24px; height: 24px }

.topnav a {
  margin-left: 14px;
  color: #e8eaf6;
  text-decoration: none;
  opacity: .9;
}
.topnav a:hover { opacity: 1; text-decoration: underline; }

/* Video wrapper — padding at the bottom so nothing overlaps the fixed menu */
.video-wrapper {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}

#player,
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Unmute button (hidden by default; JS shows if autoplay with sound is blocked) */
.unmute {
  position: absolute;
  z-index: 5;
  bottom: calc(18px + var(--bar-h) + env(safe-area-inset-bottom, 0px));
  left: 18px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  display: none; /* default hidden; JS will show only if needed */
  gap: 8px;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.unmute:hover { background: rgba(0, 0, 0, .7); }

/* CTA panel overlay on video — sits just above the bottom bar */
.cta-panel {
  position: absolute;
  z-index: 4;
  bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(11, 11, 18, .85) 22%,
    rgba(11, 11, 18, .95) 100%
  );
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .3s ease, transform .3s ease;
}
.cta-panel h2 {
  font-family: Rubik, Inter, sans-serif;
  margin: 0 0 12px 0;
}
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cta {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  padding: 16px;
}
.cta h3 { margin: 0 0 8px 0 }
.cta .list { margin: 0; padding-left: 18px }
.cta .btn { display: inline-block; margin-top: 10px }

/* Sections */
.section { padding: 48px 16px }
.container { max-width: 1000px; margin: 0 auto }
.steps { line-height: 1.8 }

/* Buttons */
.btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: #7cf;
  color: #001018;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.05) }
.btn.outline { background: transparent; color: #e8eaf6 }

/* Footer */
.footer {
  padding: 24px 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: #0b0b12;
}
.footer .disclosure {
  opacity: .8;
  font-size: 12px;
  margin-top: 8px;
}

/* Ads */
.ad { display: block; max-width: 100%; margin: 12px auto; text-align: center }
.ad-leaderboard { min-height: 90px }
.ad-rectangle { min-height: 250px }

/* Sticky ad sits ABOVE the bottom menu */
.ad-sticky {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: rgba(255, 255, 255, .95);
  color: #111;
  border-top: 1px solid rgba(0, 0, 0, .1);
}
.ad-sticky .close {
  position: absolute;
  right: 6px;
  top: 6px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* Cookie notice — keep it above the bottom bar too */
.cookie {
  position: fixed;
  z-index: 45;
  right: 14px;
  bottom: calc(var(--bar-h) + 10px + env(safe-area-inset-bottom, 0px));
  background: #111b29;
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 14px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Overlay for fake secure-preview */
.hidden { display: none; }
#pretend {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .86);
}
#pretend.hidden { display: none; } /* ensure hidden always wins */
#pretend .card {
  width: min(560px, 92vw);
  padding: 28px;
  border-radius: 16px;
  background: #0e1624;
  border: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, .2);
  border-top-color: #7cf;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 1.2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }

.share-block { display: flex; gap: 10px; align-items: center; margin-top: 18px }
code {
  background: rgba(255, 255, 255, .08);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Mobile tweaks */
@media (max-width: 900px) {
  .cta-grid { grid-template-columns: 1fr }
}

