/* Cinematic photo hero — replaces orange silk WebGL */

html.theme-cinematic {
  --cinematic-scrim: rgba(4, 6, 12, 0.38);
  --cinematic-vignette: radial-gradient(
    ellipse 120% 90% at 50% 38%,
    transparent 0%,
    rgba(4, 6, 12, 0.35) 55%,
    rgba(2, 3, 8, 0.88) 100%
  );
  --cine-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --cine-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --cine-accent: #1d1d1f;
  --cine-muted: #86868b;
  --cine-blush: #f5f5f7;
  --cine-blush-deep: #ebebed;
}

html.theme-cinematic {
  --tile: rgba(255, 255, 255, 0.98);
  --tile-ink: #0a0c12;
  --tile-muted: rgba(10, 12, 18, 0.52);
  --tile-soft: rgba(10, 12, 18, 0.045);
  --tile-border: rgba(255, 255, 255, 0.92);
  --tile-shadow:
    0 28px 72px rgba(0, 0, 0, 0.22),
    0 2px 10px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

html.theme-cinematic body {
  background: #060810;
}

html.theme-cinematic .funnel {
  background: #060810;
}

html.theme-cinematic .growxy-bg {
  background: #060810 url("/assets/images/cinematic/precon-01.jpg") center / cover no-repeat;
}

html.theme-cinematic #mesh-canvas,
html.theme-cinematic .bg-grain {
  display: none !important;
}

html.theme-cinematic .cinematic-bg {
  display: block !important;
}

.cinematic-bg {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cinematic-slides {
  position: absolute;
  inset: -4%;
}

.cinematic-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  will-change: opacity, transform, filter;
}

.cinematic-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.cinematic-slide.is-entering {
  z-index: 2;
  animation: cineSlideIn 0.82s var(--cine-ease) both;
}

.cinematic-slide.is-leaving {
  z-index: 1;
  animation: cineSlideOut 0.72s var(--cine-ease) both;
}

@keyframes cineSlideIn {
  from {
    opacity: 0;
    transform: scale(1.14);
    filter: blur(16px) brightness(1.15);
  }
  55% {
    filter: blur(4px) brightness(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) brightness(1);
  }
}

@keyframes cineSlideOut {
  from {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: scale(1.1);
    filter: blur(12px) brightness(0.85);
  }
}

.cinematic-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.06);
  animation: cinematicKenBurns 11s ease-in-out infinite alternate;
  filter: saturate(1.1) contrast(1.05);
}

.cinematic-slide.is-active:not(.is-leaving) img {
  animation: cinematicKenBurns 11s ease-in-out infinite alternate;
}

.cinematic-slide.is-leaving img,
.cinematic-slide:not(.is-active) img {
  animation: none;
}

@keyframes cinematicKenBurns {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-1.2%, -0.8%, 0);
  }
}

.cinematic-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--cinematic-vignette);
  pointer-events: none;
}

.cinematic-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    180deg,
    rgba(4, 6, 12, 0.15) 0%,
    rgba(4, 6, 12, 0.08) 28%,
    var(--cinematic-scrim) 72%,
    rgba(2, 3, 8, 0.94) 100%
  );
  pointer-events: none;
  transition: opacity 0.8s var(--cine-ease), backdrop-filter 0.8s var(--cine-ease);
}

.cinematic-grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.14;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  animation: cineGrainShift 8s steps(6) infinite;
}

@keyframes cineGrainShift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-2%, -1%, 0); }
  40% { transform: translate3d(1%, 2%, 0); }
  60% { transform: translate3d(-1%, 1%, 0); }
  80% { transform: translate3d(2%, -2%, 0); }
}

.cinematic-dots {
  position: absolute;
  bottom: calc(1.1rem + var(--safe-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(4, 6, 12, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cinematic-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition:
    transform 0.45s var(--cine-spring),
    background 0.35s var(--cine-ease),
    width 0.45s var(--cine-spring);
}

.cinematic-dot.is-active {
  width: 18px;
  background: rgba(255, 255, 255, 0.92);
  transform: scale(1.05);
}

.cinematic-bg.cine-bg-pulse .cinematic-scrim {
  animation: cineBgPulse 0.85s var(--cine-ease);
}

@keyframes cineBgPulse {
  0%, 100% { opacity: 1; }
  40% { opacity: 0.72; }
}

html.cine-quiz .cinematic-slides {
  transform: scale(1.08) !important;
  transition: transform 0.9s var(--cine-ease);
}

html.cine-quiz .cinematic-scrim {
  opacity: 0.72;
}

html.cine-photo-beat .cinematic-scrim,
html.cine-photo-beat.cine-quiz .cinematic-scrim,
html.cine-photo-beat.cine-gate .cinematic-scrim {
  opacity: 0.18 !important;
  background: linear-gradient(
    180deg,
    rgba(4, 6, 12, 0.08) 0%,
    rgba(4, 6, 12, 0.04) 40%,
    rgba(2, 3, 8, 0.28) 100%
  ) !important;
}

html.cine-photo-beat .cinematic-vignette {
  opacity: 0.35;
}

html.cine-photo-beat .cinematic-slides,
html.cine-photo-beat.cine-quiz .cinematic-slides,
html.cine-photo-beat.cine-gate .cinematic-slides {
  transform: scale(1) !important;
  filter: none !important;
}

html.cine-photo-beat .cinematic-slide.is-active img {
  animation-play-state: paused !important;
  transform: scale(1.06) !important;
  filter: none !important;
}

html.cine-photo-beat .content-tile,
html.cine-photo-beat .viewble-lockup,
html.cine-photo-beat .hero-shell,
html.cine-photo-beat .screen.active .content-tile {
  opacity: 0 !important;
  transform: translateY(18px) scale(0.97) !important;
  pointer-events: none !important;
  transition:
    opacity 0.42s var(--cine-ease),
    transform 0.42s var(--cine-ease) !important;
}

html.cine-photo-beat .cinematic-dots {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

html.cine-gate .cinematic-slides {
  transform: scale(1.12) !important;
  filter: blur(2px);
  transition: transform 1s var(--cine-ease), filter 1s var(--cine-ease);
}

html.cine-gate .cinematic-scrim {
  background: linear-gradient(
    180deg,
    rgba(4, 6, 12, 0.35) 0%,
    rgba(4, 6, 12, 0.55) 40%,
    rgba(2, 3, 8, 0.92) 100%
  );
}

html.cine-success .cinematic-dots {
  opacity: 0;
  pointer-events: none;
}

html.theme-cinematic .screen-hero.active {
  min-height: calc(100dvh - 2rem);
  justify-content: flex-end;
  padding-bottom: calc(0.5rem + var(--safe-bottom, 0px));
}

html.theme-cinematic .hero-shell {
  gap: 1rem;
  width: 100%;
}

html.theme-cinematic .viewble-edition {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

html.theme-cinematic .screen.active,
html.theme-cinematic .screen.exit {
  display: block;
}

html.theme-cinematic .screen.active {
  animation: cineScreenIn 0.72s var(--cine-ease) both;
}

html.theme-cinematic .screen.exit {
  animation: cineScreenOut 0.56s var(--cine-ease) both;
  pointer-events: none;
}

html.theme-cinematic .quiz-tile.is-stepping {
  opacity: 0.35;
  transform: translateY(8px) scale(0.985);
  transition:
    opacity 0.32s var(--cine-ease),
    transform 0.32s var(--cine-ease);
}

@keyframes cineScreenIn {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.94);
    filter: blur(14px);
  }
  50% {
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes cineScreenOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(-28px) scale(0.96);
    filter: blur(10px);
  }
}

html.theme-cinematic .viewble-mark {
  background: rgba(6, 8, 14, 0.55);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html.theme-cinematic .screen-hero.active .reveal {
  animation: none;
}

html.theme-cinematic .viewble-lockup.reveal {
  transition: none;
}

html.theme-cinematic .viewble-lockup.cine-lockup-in {
  animation: cineLockupIn 0.72s var(--cine-spring) both;
}

@keyframes cineLockupIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.94);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes cineTileFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

html.theme-cinematic .hero-tile.cine-tile-in {
  animation: cineTileIn 0.72s var(--cine-spring) both;
}

html.theme-cinematic .hero-tile.cine-tile-out {
  animation: cineTileOut 0.65s var(--cine-ease) both;
}

@keyframes cineTileIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.94);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes cineTileOut {
  to {
    opacity: 0.6;
    transform: translateY(-16px) scale(0.97);
    filter: blur(6px);
  }
}

html.theme-cinematic .hero-tile.content-tile:not(.cine-tile-in):not(.cine-tile-out) {
  animation: cineTileFloat 7s ease-in-out infinite;
}

html.theme-cinematic .hero-mega .line-inner.cine-line-in {
  animation: cineLineReveal 0.88s var(--cine-ease) both;
  animation-delay: calc(var(--li, 0) * 0.13s);
}

@keyframes cineLineReveal {
  from {
    opacity: 0;
    transform: translateY(110%) rotateX(28deg);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
}

html.theme-cinematic .hero-badge.cine-pop,
html.theme-cinematic .hero-savings.cine-pop,
html.theme-cinematic .hero-adline.cine-pop,
html.theme-cinematic .hero-footnote.cine-pop {
  animation: cinePopIn 0.72s var(--cine-spring) both;
  animation-delay: calc(var(--cine-i, 0) * 0.08s);
}

@keyframes cinePopIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.88);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

html.theme-cinematic .cta-blast {
  position: relative;
  overflow: hidden;
}

html.theme-cinematic .cta-blast::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: cineCtaSheen 3.2s var(--cine-ease) infinite;
  pointer-events: none;
}

@keyframes cineCtaSheen {
  0%, 55% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

html.theme-cinematic #screen-gate .gate-tile.cine-gate-in {
  animation: cineGateIn 0.95s var(--cine-spring) both;
}

@keyframes cineGateIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.94);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

html.theme-cinematic .success-shell.cine-success-in {
  animation: cineSuccessIn 1s var(--cine-ease) both;
}

@keyframes cineSuccessIn {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

html.theme-cinematic .hero-tile,
html.theme-cinematic .hero-tile.content-tile {
  background: var(--tile);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--tile-shadow);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

html.theme-cinematic .hero-tile::before {
  display: none;
}

html.theme-cinematic .hero-tile.content-tile .hero-mega .line-inner,
html.theme-cinematic .hero-tile.content-tile .hero-mega .line-inner.dim {
  color: var(--tile-ink);
  text-shadow: none;
}

html.theme-cinematic .hero-tile.content-tile .hero-savings {
  color: var(--tile-ink);
}

html.theme-cinematic .hero-tile.content-tile .hero-adline {
  color: #3a3a3c;
}

html.theme-cinematic .hero-tile.content-tile .hero-footnote,
html.theme-cinematic .hero-meta-stack .hero-footnote {
  color: rgba(10, 12, 18, 0.55);
}

html.theme-cinematic .cine-urgency-strip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f75505;
  box-shadow: 0 0 0 3px rgba(247, 85, 5, 0.2);
  flex-shrink: 0;
}

html.theme-cinematic .quiz-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  text-align: center;
}

html.theme-cinematic .quiz-head,
html.theme-cinematic .quiz-body {
  width: 100%;
}

html.theme-cinematic .quiz-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.55rem 0.65rem;
  margin-bottom: 1.25rem;
}

html.theme-cinematic .quiz-head .progress-stack {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  align-items: center;
}

html.theme-cinematic .quiz-head .progress-wrap {
  width: 100%;
}

html.theme-cinematic .quiz-head #btn-back {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
}

html.theme-cinematic .quiz-head #quiz-pct {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
}

html.theme-cinematic .progress-stack .progress-copy,
html.theme-cinematic .progress-stack #progress-copy {
  text-align: center;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.15rem;
}

html.theme-cinematic .quiz-tile .headline,
html.theme-cinematic .quiz-tile #quiz-q {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

html.theme-cinematic .quiz-tile .tag {
  display: block;
  text-align: center;
}

html.theme-cinematic .quiz-tile .options {
  width: 100%;
}

html.theme-cinematic .progress-stack {
  width: 100%;
}

html.theme-cinematic .progress-bar {
  height: 4px;
}

html.theme-cinematic .progress-bar.is-live .progress-glow,
html.theme-cinematic .progress-bar.is-advancing .progress-glow {
  opacity: 1;
  animation: cineProgressGlow 2.2s ease-in-out infinite;
}

html.theme-cinematic .progress-bar.is-live span#quiz-progress,
html.theme-cinematic .progress-bar.is-advancing span#quiz-progress {
  animation: cineProgressBarPulse 2.2s ease-in-out infinite;
}

html.theme-cinematic .content-tile #progress-copy,
html.theme-cinematic .content-tile #progress-copy.fill-text .word,
html.theme-cinematic .content-tile #progress-copy.is-filled,
html.theme-cinematic .content-tile #progress-copy.is-filled .word {
  color: #48484a;
  text-shadow: none;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.014em;
  text-align: center;
}

html.theme-cinematic .progress-stack .progress-copy.is-filled,
html.theme-cinematic .progress-stack .progress-copy.is-filled .word {
  color: #48484a;
  text-shadow: none;
}

@keyframes cineProgressGlow {
  0%, 100% {
    opacity: 0.82;
    filter: blur(9px);
  }
  50% {
    opacity: 1;
    filter: blur(12px);
  }
}

@keyframes cineProgressBarPulse {
  0%, 100% {
    box-shadow:
      0 0 14px rgba(247, 85, 5, 0.55),
      0 0 26px rgba(247, 85, 5, 0.28);
  }
  50% {
    box-shadow:
      0 0 18px rgba(247, 85, 5, 0.75),
      0 0 36px rgba(247, 85, 5, 0.42);
  }
}

html.theme-cinematic .quiz-tile .headline,
html.theme-cinematic .content-tile .headline {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.045em;
  text-transform: none;
  text-align: center;
}

html.theme-cinematic .quiz-tile .tag {
  letter-spacing: var(--font-track-ui);
  text-transform: none;
  font-weight: 500;
}

html.theme-cinematic .content-tile .option {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: var(--font-track-tight);
  text-transform: none;
}

html.theme-cinematic .hero-tile.content-tile .cta-blast,
html.theme-cinematic .cta-blast--hero {
  flex-direction: column;
  gap: 0.2rem;
  min-height: 58px;
  padding: 0.95rem 1.5rem 0.82rem;
  background: linear-gradient(135deg, #f75505 0%, #ff7a1a 52%, #ff8c2a 100%);
  box-shadow:
    0 16px 42px rgba(247, 85, 5, 0.48),
    0 4px 14px rgba(247, 85, 5, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: cineCtaPulse 2.8s ease-in-out infinite;
}

html.theme-cinematic .cta-blast--hero .cta-blast__body {
  min-height: auto;
}

html.theme-cinematic .cta-blast--hero .cta-blast__text {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 3.8vw, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html.theme-cinematic .cta-blast--hero .cta-blast__sub {
  display: block;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.2;
}

html.theme-cinematic .cta-blast--hero .cta-blast__arrow {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.92);
}

@keyframes cineCtaPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 16px 42px rgba(247, 85, 5, 0.48),
      0 4px 14px rgba(247, 85, 5, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
  50% {
    transform: translateY(-1px) scale(1.015);
    box-shadow:
      0 20px 50px rgba(247, 85, 5, 0.58),
      0 6px 18px rgba(247, 85, 5, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.34);
  }
}

html.theme-cinematic .hero-tile.content-tile .cta-blast {
  background: linear-gradient(135deg, #f75505 0%, #ff8c2a 100%);
  box-shadow:
    0 12px 36px rgba(247, 85, 5, 0.42),
    0 2px 8px rgba(0, 0, 0, 0.25);
}

html.theme-cinematic .screen:not(.screen-hero).active .content-tile,
html.theme-cinematic .gate-tile--light {
  background: #fff;
  --tile-ink: #0a0c12;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

html.theme-cinematic .footer-short {
  color: rgba(255, 255, 255, 0.45);
}

html.theme-cinematic.in-app-browser .growxy-bg {
  background: #060810 url("/assets/images/cinematic/precon-01.jpg") center / cover no-repeat;
}

html.theme-cinematic.in-app-browser .cinematic-slide img {
  animation: none;
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .cinematic-slide img {
    animation: none !important;
    transform: scale(1.08);
  }

  .cinematic-slide {
    transition-duration: 0.01ms;
  }
}

/* ── Conversion psych layer ── */

html.theme-cinematic .cine-urgency-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: var(--font-track-ui);
  line-height: 1.2;
  text-align: center;
  color: #7a3b00;
  background: rgba(247, 85, 5, 0.1);
  border: 1px solid rgba(247, 85, 5, 0.18);
  animation: cineUrgencyPulse 2.8s ease-in-out infinite;
}

html.theme-cinematic .hero-meta-stack {
  align-items: center;
  width: 100%;
}

html.theme-cinematic .hero-meta-stack .hero-footnote {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: var(--font-track-ui);
  color: rgba(10, 12, 18, 0.55);
  text-align: center;
}

html.theme-cinematic .cine-urgency-strip strong {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.028em;
}

@keyframes cineUrgencyPulse {
  0%, 100% { opacity: 0.88; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

html.theme-cinematic .gate-unlock-preview {
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s var(--cine-ease), transform 0.65s var(--cine-spring);
}

html.theme-cinematic .gate-unlock-preview.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.theme-cinematic .gate-unlock-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

html.theme-cinematic .gate-unlock-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: gateCardIn 0.72s var(--cine-spring) both;
  animation-delay: calc(var(--gc-i, 0) * 0.1s + 0.15s);
}

@keyframes gateCardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

html.theme-cinematic .gate-unlock-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px) saturate(0.85);
  transform: scale(1.08);
}

html.theme-cinematic .gate-unlock-card__blur {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(4, 6, 12, 0.55) 100%);
}

html.theme-cinematic .gate-unlock-card__lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

html.theme-cinematic .gate-recap--hero {
  width: 100%;
}

html.theme-cinematic .gate-recap__pill {
  letter-spacing: -0.028em;
  text-transform: none;
}

html.theme-cinematic .gate-capture {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

html.theme-cinematic .gate-unlock-preview {
  width: 100%;
}

html.theme-cinematic .gate-form-card {
  width: 100%;
  margin-top: 1rem;
  background: #fff;
  border: 1px solid rgba(10, 12, 18, 0.06);
  box-shadow:
    0 1px 2px rgba(10, 12, 18, 0.03),
    0 12px 32px rgba(10, 12, 18, 0.06);
}

html.theme-cinematic .gate-editorial {
  margin: 0.85rem 0 0;
  padding: clamp(1.1rem, 4vw, 1.35rem) clamp(1rem, 4vw, 1.25rem);
  width: 100%;
  border-radius: 16px;
  background: var(--cine-blush);
  border: none;
  box-shadow: none;
  text-align: center;
}

html.theme-cinematic .gate-editorial__line {
  margin: 0 auto;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 3.8vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  text-transform: none;
  line-height: 1.25;
  color: var(--cine-accent);
}

html.theme-cinematic .gate-editorial__line + .gate-editorial__line {
  margin-top: 0.35rem;
}

html.theme-cinematic .gate-editorial__line--soft {
  font-weight: 400;
  font-size: 0.9375rem;
  letter-spacing: -0.022em;
  color: var(--cine-muted);
}

html.theme-cinematic .gate-unlock-preview__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

html.theme-cinematic .gate-unlock-preview__count {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 2.65rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--cine-accent);
  font-variant-numeric: tabular-nums;
}

html.theme-cinematic .gate-unlock-preview__headline {
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 3.2vw, 1.08rem);
  font-weight: 400;
  letter-spacing: var(--font-editorial-track-wide);
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--cine-accent);
  max-width: 22ch;
}

html.theme-cinematic .gate-unlock-preview__meta {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #86868b;
}

html.theme-cinematic .gate-unlock-preview__meta em {
  font-style: normal;
  font-weight: 600;
  color: var(--cine-accent);
  letter-spacing: 0.06em;
}

html.theme-cinematic .gate-scarcity {
  margin: 0 0 1rem;
  text-align: center;
}

html.theme-cinematic .gate-scarcity__copy {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.4;
  color: #48484a;
}

html.theme-cinematic .gate-capture__prompt {
  margin: 0 0 0.85rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #48484a;
}

html.theme-cinematic .gate-trust {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
  color: #86868b;
  text-align: center;
}

html.theme-cinematic .gate-trust__scarcity {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: #aeaeb2;
}

html.theme-cinematic .gate-live-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  margin: 0 0 1rem;
  text-align: center;
}

html.theme-cinematic .gate-live-pulse__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #b42318;
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.14);
}

html.theme-cinematic .gate-live-pulse__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2);
  animation: livePulse 1.6s ease-in-out infinite;
}

html.theme-cinematic .gate-live-pulse__copy {
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.35;
  color: #48484a;
}

html.theme-cinematic .gate-live-pulse__copy strong {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.022em;
  text-transform: none;
  font-size: 1em;
  color: var(--cine-accent);
}

html.theme-cinematic .gate-unlock-card__lock {
  background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 18px no-repeat;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  font-size: 0;
}

html.theme-cinematic .gate-headline {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 4.8vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  text-transform: none;
  line-height: 1.15;
  color: var(--cine-accent);
}

html.theme-cinematic .gate-submit .btn-cta__main {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.022em;
  text-transform: none;
  font-size: 1rem;
}

html.theme-cinematic .gate-submit .btn-cta__sub {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: -0.01em;
}

html.theme-cinematic .gate-footer__social {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  text-transform: none;
}

html.theme-cinematic .hero-tile.content-tile .hero-hook {
  width: 100%;
  align-items: center;
  text-align: center;
}

html.theme-cinematic .hero-tile.content-tile .hero-mega,
html.theme-cinematic .hero-tile.content-tile .hero-mega .line-inner {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.045em;
  text-transform: none;
  line-height: 1.02;
  font-size: clamp(2rem, 9vw, 3.25rem);
  text-align: center;
  width: 100%;
}

html.theme-cinematic .hero-tile.content-tile .hero-mega .line-inner.dim {
  opacity: 0.72;
  font-weight: 500;
  letter-spacing: -0.038em;
}

html.theme-cinematic .viewble-mark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: none;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
}

html.theme-cinematic .viewble-edition {
  letter-spacing: -0.01em;
  text-transform: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

html.theme-cinematic .success-headline,
html.theme-cinematic .success-shell .success-headline {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-transform: none;
}

@keyframes livePulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

html.theme-cinematic .gate-social__sold {
  color: var(--cine-accent);
  font-weight: 600;
}

/* ── IG / in-app WebView: GPU-friendly motion (no blur jank) ── */

html.theme-cinematic.in-app-browser .screen.active {
  animation: cineScreenInIg 0.52s var(--cine-ease) both;
}

html.theme-cinematic.in-app-browser .screen.exit {
  animation: cineScreenOutIg 0.44s var(--cine-ease) both;
}

@keyframes cineScreenInIg {
  from {
    opacity: 0;
    transform: translate3d(0, 32px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes cineScreenOutIg {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -20px, 0) scale(0.98);
  }
}

html.theme-cinematic.in-app-browser .hero-tile.cine-tile-in,
html.theme-cinematic.in-app-browser .gate-tile--light {
  animation: cineTileInIg 0.52s var(--cine-spring) both;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@keyframes cineTileInIg {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

html.theme-cinematic.in-app-browser .cinematic-slide,
html.theme-cinematic.in-app-browser .cinematic-slide.is-entering,
html.theme-cinematic.in-app-browser .cinematic-slide.is-leaving {
  filter: none !important;
  will-change: opacity;
}

html.theme-cinematic.in-app-browser.cine-gate .cinematic-slides,
html.theme-cinematic.in-app-browser.cine-quiz .cinematic-slides {
  filter: none !important;
  transform: translate3d(0, 0, 0) scale(1.04);
}

html.theme-cinematic.in-app-browser .cinematic-slides {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

html.theme-cinematic.in-app-browser .content-tile,
html.theme-cinematic.in-app-browser .quiz-tile,
html.theme-cinematic.in-app-browser .gate-tile--light {
  transform: translateZ(0);
  backface-visibility: hidden;
}

html.theme-cinematic.in-app-browser .ottawa-track {
  animation: none !important;
}

html.theme-cinematic.in-app-browser .success-shell.cine-success-in {
  animation: cineSuccessInIg 0.72s var(--cine-ease) both;
}

@keyframes cineSuccessInIg {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
