:root {
  --bg-canvas: #060607;
  --bg-surface: #0d0d10;
  --bg-modal: #111114;
  --gold-400: #ecc15e;
  --gold-500: #e2b34b;
  --gold-600: #c8972e;
  --text-primary: #f4f4f5;
  --text-secondary: #e4e4e7;
  --text-muted: #d4d4d8;
  --text-subtle: #a1a1aa;
  --ink-dark: #09090b;
  --border-subtle: rgba(255, 255, 255, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  min-height: 100vh;
}

::selection {
  background-color: var(--gold-500);
  color: var(--ink-dark);
}

h1,
h2,
h3,
.font-display {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
}

.bg-contours {
  pointer-events: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.14;
  z-index: 0;
}

/* Top Gold Eyebrow Strip */
.top-banner {
  position: relative;
  z-index: 10;
  width: 100%;
  background-color: var(--gold-500);
  color: var(--ink-dark);
  padding: 10px 16px;
}

.top-banner-text {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .top-banner-text {
    font-size: 14px;
  }
}

/* Main VSL Content Stage */
.vsl-main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px;
}

@media (min-width: 640px) {
  .vsl-main {
    padding: 48px 32px;
  }
}

.vsl-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .vsl-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 48px;
  }
}

/* Headline Column */
.headline-col {
  text-align: center;
}

@media (min-width: 1024px) {
  .headline-col {
    grid-column: span 6 / span 6;
    text-align: left;
  }
}

.vsl-headline {
  font-weight: 700;
  color: var(--gold-500);
  font-size: clamp(1.45rem, 2.45vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.vsl-subheadline {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
}

@media (min-width: 640px) {
  .vsl-subheadline {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .vsl-subheadline {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Video Player Column */
.player-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1024px) {
  .player-col {
    grid-column: span 6 / span 6;
  }
}

.player-stack {
  width: 100%;
  max-width: 340px;
}

@media (min-width: 640px) {
  .player-stack {
    max-width: 360px;
  }
}

@media (min-width: 1024px) {
  .player-stack {
    max-width: 375px;
  }
}

/* 9:16 Locked Player Container */
.vsl-player {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.85);
  user-select: none;
  -webkit-user-select: none;
}

.yt-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: #000000;
}

.yt-overscan {
  width: 100%;
  position: relative;
  top: -110px;
  height: calc(100% + 220px);
  pointer-events: none;
}

.yt-overscan iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.yt-bottom-mask {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  pointer-events: none;
}

.yt-spinner-wrap {
  position: absolute;
  inset: 0;
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-spinner {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 2px solid rgba(226, 179, 75, 0.3);
  border-top-color: var(--gold-500);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Fallback / Demo Visual Layer */
.fallback-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: var(--bg-surface);
}

.fallback-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.fallback-poster.is-playing {
  animation: subtleZoom 22s ease-in-out infinite;
}

@keyframes subtleZoom {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.045) translate3d(0, -0.5%, 0);
  }
  100% {
    transform: scale(1) translate3d(0, 0, 0);
  }
}

.fallback-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.demo-caption-wrap {
  position: absolute;
  bottom: 32px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.demo-caption {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
  background-color: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 6px;
  max-width: 94%;
}

/* Pause / Ended Curtain */
.pause-curtain {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(2px);
  z-index: 10;
  transition: opacity 0.2s ease;
}

/* Transparent Interaction Shield */
.player-shield {
  position: absolute;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.player-shield:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: -2px;
}

.overlay-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}

.overlay-center.muted-bg {
  background-color: rgba(0, 0, 0, 0.3);
}

.mute-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--gold-500);
  color: var(--ink-dark);
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  max-width: 260px;
  width: 100%;
  transition: background-color 0.15s ease, transform 0.2s ease;
}

.player-shield:hover .mute-card {
  background-color: var(--gold-400);
}

.player-shield:active .mute-card {
  transform: scale(0.98);
}

.mute-card-label {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.mute-card-icon {
  width: 42px;
  height: 42px;
}

.circle-action-btn {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background-color: var(--gold-500);
  color: var(--ink-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
  transition: transform 0.2s ease;
}

.player-shield:hover .circle-action-btn {
  transform: scale(1.05);
}

.overlay-hint {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.02em;
}

/* Non-Scrubbable VSL Progress Bar */
.vsl-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.15);
  z-index: 30;
  pointer-events: none;
}

.vsl-progress-fill {
  height: 100%;
  width: 0%;
  background-color: var(--gold-500);
  box-shadow: 0 0 10px rgba(226, 179, 75, 0.65);
  transition: width 150ms linear;
}

/* Primary Delayed CTA Slot */
.cta-slot {
  margin-top: 16px;
  min-height: 60px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  text-align: center;
  padding: 16px 20px;
  border: 0;
  border-radius: 8px;
  background-color: var(--gold-500);
  color: var(--ink-dark);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 38px -10px rgba(226, 179, 75, 0.55);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

@media (min-width: 640px) {
  .cta-button {
    font-size: 16px;
  }
}

.cta-button:hover {
  background-color: var(--gold-400);
}

.cta-button:active {
  transform: scale(0.99);
}

.cta-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Delayed Results + Offer Section */
.results-section {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px 64px;
}

@media (min-width: 640px) {
  .results-section {
    padding: 16px 32px 64px;
  }
}

.section-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-subtle);
  margin-bottom: 56px;
}

.results-header {
  max-width: 42rem;
  margin: 0 auto 32px;
  text-align: center;
}

.results-title {
  font-weight: 700;
  color: var(--gold-500);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.results-subtitle {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.625;
}

@media (min-width: 640px) {
  .results-subtitle {
    font-size: 16px;
  }
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto 56px;
}

@media (min-width: 640px) {
  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.result-card {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 48px -16px rgba(0, 0, 0, 0.85);
}

.result-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* Offer Box */
.offer-box {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 12px;
  background-color: var(--bg-surface);
  border: 1px solid rgba(226, 179, 75, 0.3);
  padding: 28px;
  text-align: center;
  box-shadow: 0 24px 64px -20px rgba(0, 0, 0, 0.9);
}

@media (min-width: 640px) {
  .offer-box {
    padding: 40px;
  }
}

.offer-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.35;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .offer-title {
    font-size: 24px;
  }
}

.offer-copy {
  margin: 12px auto 0;
  max-width: 42rem;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (min-width: 640px) {
  .offer-copy {
    font-size: 16px;
  }
}

.offer-highlights {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-500);
}

@media (min-width: 640px) {
  .offer-highlights {
    font-size: 14px;
  }
}

.offer-sep {
  color: #52525b;
}

.offer-cta-wrap {
  margin: 28px auto 0;
  max-width: 28rem;
}

.offer-security {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-subtle);
}

.offer-security-icon {
  width: 16px;
  height: 16px;
  color: var(--gold-500);
  flex-shrink: 0;
}

/* Reveal Animation */
.is-hidden {
  display: none !important;
}

.reveal-enter {
  animation: revealSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealSlideUp {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fallback-poster.is-playing {
    animation: none;
  }
  .reveal-enter {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
