/* ─────────────────────────────────────────────────────────────
   INSIDE THE PRACTICE V3 — CEO PART II
   Opt-in form · Premium cinematic player
   ───────────────────────────────────────────────────────────── */

.ceo-overlay {
  background: #03060f;
  overflow: hidden;
}

.ceo-overlay.is-watching .ceo-sound-btn {
  display: inline-flex;
}

.ceo-sound-btn {
  display: none;
}

/* Form state — scroll on #ceo-state-form (reliable iOS flex child) */
#ceo-state-form {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.ceo-panel {
  flex: 0 0 auto;
  overflow: visible;
  padding: 24px 24px max(40px, calc(24px + env(safe-area-inset-bottom, 0)));
}

.ceo-panel-inner {
  max-width: 520px;
  margin: 0 auto;
}

.ceo-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}

.ceo-state.ceo-state-hidden {
  display: none;
}

.ceo-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.ceo-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 16px;
}

.ceo-lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.ceo-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ceo-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ceo-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ceo-label span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ceo-label span em {
  font-style: normal;
  color: var(--text-faint);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 11px;
}

.ceo-label input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid rgba(227, 172, 23, 0.18);
  background: rgba(2, 43, 86, 0.28);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ceo-label input::placeholder { color: var(--text-faint); }

.ceo-label input:focus {
  outline: none;
  border-color: var(--gold-border-h);
  background: rgba(2, 43, 86, 0.42);
}

.ceo-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.ceo-form-error {
  font-size: 13px;
  color: #f87171;
  line-height: 1.5;
}

.ceo-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--text-navy);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(227, 172, 23, 0.2);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.ceo-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(227, 172, 23, 0.28);
}

.ceo-submit svg { width: 15px; height: 15px; }
.ceo-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ─── PREMIUM CEO STAGE (Part II player) ─────────────────── */
.ceo-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(2, 43, 86, 0.55) 0%, transparent 70%),
    linear-gradient(165deg, #050810 0%, #0a1228 45%, #03060f 100%);
  background-image:
    linear-gradient(to bottom, rgba(5, 8, 16, 0.12) 0%, rgba(5, 8, 16, 0.55) 100%),
    var(--ceo-poster, none);
  background-size: cover;
  background-position: center;
}

.ceo-stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  background: #03060f;
}

.ceo-stage-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(227, 172, 23, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 80% 75%, rgba(2, 43, 86, 0.35) 0%, transparent 65%);
}

.ceo-stage-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 72% 68% at 50% 48%, transparent 42%, rgba(3, 6, 15, 0.78) 100%);
}

.ceo-stage-frame {
  position: absolute;
  inset: 28px 32px 36px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(227, 172, 23, 0.14);
  border-radius: 4px;
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(227, 172, 23, 0.04);
}

.ceo-poster-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(to bottom,
      rgba(3, 6, 15, 0.22) 0%,
      rgba(3, 6, 15, 0.48) 50%,
      rgba(3, 6, 15, 0.88) 100%);
  border: none;
  cursor: pointer;
  transition: opacity 0.4s var(--ease-smooth), visibility 0.4s var(--ease-smooth);
}

.ceo-stage.is-playing:not(.is-paused) .ceo-poster-hit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ceo-stage.is-playing.is-paused .ceo-poster-hit {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  background: rgba(3, 6, 15, 0.65);
  cursor: pointer;
}

.ceo-stage-video {
  cursor: pointer;
}

/* Premium play ring — larger + pulse */
.ceo-play-ring {
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
  flex: 0 0 96px;
  background: rgba(3, 6, 15, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(227, 172, 23, 0.2), 0 8px 40px rgba(0, 0, 0, 0.45);
  animation: ceo-ring-pulse 3.5s ease-in-out infinite;
}

.ceo-poster-hit:hover .ceo-play-ring {
  transform: scale(1.08);
  box-shadow: 0 0 48px rgba(227, 172, 23, 0.28), 0 8px 40px rgba(0, 0, 0, 0.45);
}

.ceo-play-ring::before {
  inset: -14px;
  border-color: rgba(227, 172, 23, 0.16);
}

.ceo-play-ring svg {
  width: 30px;
  height: 30px;
}

@keyframes ceo-ring-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(227, 172, 23, 0.2), 0 8px 40px rgba(0, 0, 0, 0.45); }
  50%       { box-shadow: 0 0 0 1px rgba(227, 172, 23, 0.38), 0 0 32px rgba(227, 172, 23, 0.12), 0 8px 40px rgba(0, 0, 0, 0.45); }
}

.ceo-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 32px 24px;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

.ceo-stage.is-playing .ceo-meta {
  opacity: 0;
  transform: translateY(14px);
}

.ceo-meta-series {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.ceo-meta .player-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

.ceo-meta .player-runtime {
  margin-bottom: 14px;
  color: rgba(248, 250, 252, 0.55);
}

.ceo-meta .player-context {
  max-width: 460px;
  font-size: 14px;
  line-height: 1.8;
}

/* Diagnostic CTA — outline pill */
.ceo-watch-actions {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ceo-fullstack-cta,
.ceo-diagnostic-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 100px;
  border: 1px solid var(--gold-border-h);
  background: rgba(3, 6, 15, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth), background 0.25s ease;
}

.ceo-fullstack-cta {
  border-color: rgba(227, 172, 23, 0.28);
  color: var(--text-muted);
}

.ceo-fullstack-cta svg,
.ceo-diagnostic-cta svg {
  width: 12px;
  height: 12px;
}

.ceo-fullstack-cta:hover,
.ceo-diagnostic-cta:hover {
  background: rgba(227, 172, 23, 0.12);
  transform: translateY(-2px);
}

.ceo-fullstack-cta:hover {
  color: var(--gold);
}

.ceo-stage.is-playing .ceo-watch-actions {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
}

.ceo-progress-bar {
  z-index: 9;
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.ceo-progress-bar .player-progress-fill {
  background: linear-gradient(90deg, var(--gold-muted), var(--gold));
}

/* No CEO video wired yet */
.ceo-stage--no-video .ceo-poster-hit,
.ceo-stage--no-video .ceo-progress-bar {
  display: none;
}

.ceo-coming-soon {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 28px 100px;
  pointer-events: none;
}

.ceo-coming-soon-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.ceo-coming-soon-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.ceo-coming-soon-copy {
  max-width: 420px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}
