/* ============================================================
   Deanna Rossi — IUL Training funnel
   Sibling of styles.css: reuses every token, button, input, and
   the black & gold system. Only the net-new pieces live here.
   ============================================================ */

/* ---- view switching (adds a "success" view to the shared set) ---- */
.success { display: none; }
body[data-view="success"] .gate { display: none; }
body[data-view="success"] .success { display: flex; }
/* the compliance disclosure shows under the gate; hidden once the video reveals */
body[data-view="success"] .disclosure-block { display: none; }

/* ---- gate → two-column hero -------------------------------------- */
/* override the shared .gate vertical-centering so the hero sits top-aligned
   with room for the pitch + form + disclosure */
body[data-view="gate"] .iul-gate {
  display: block;
  min-height: auto;
  padding: 40px 0 28px;
}

.iul-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px 48px;
  align-items: center;
  min-height: calc(100dvh - 150px);
}

.iul-pitch { text-align: left; }
.iul-pitch h1 { margin-bottom: 16px; }
.iul-sub {
  margin: 0 0 22px;
  max-width: 520px;
  color: var(--muted);
}

/* ---- "what you'll learn" checklist ------------------------------- */
.learn-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 520px;
}
.learn-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cream);
}
.learn-list li svg {
  flex: none;
  margin-top: 2px;
  color: var(--gold-bright);
}

/* ---- form card --------------------------------------------------- */
.iul-form-card {
  background: linear-gradient(165deg, #1b1810, var(--surface) 55%);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 30px 28px 26px;
  box-shadow: 0 0 46px rgba(201, 162, 39, 0.14), 0 0 110px rgba(201, 162, 39, 0.06);
}
.form-card-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--cream);
  margin: 0 0 4px;
}
.form-card-note {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 20px;
}
.iul-form { max-width: none; margin: 0; }
.iul-form-card .fine { margin: 16px auto 0; text-align: center; }

/* the button label sits next to the shared spinner */
.btn .btn-label { display: inline; }

/* ---- success / deliverable --------------------------------------- */
.success {
  min-height: calc(100dvh - 65px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 0;
}
.success-inner { max-width: 620px; }
.check-badge {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.2);
}
.success .cta-row { margin-top: 26px; }
.success .btn-gold { min-width: 240px; }

/* domain-locked video player (Vimeo embed) — responsive 16:9 */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 26px auto 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--hairline-2);
  box-shadow: 0 0 40px rgba(201, 162, 39, 0.14);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed[hidden] { display: none; }
#watch-fallback[hidden] { display: none; }
.video-fallback {
  font-size: 12.5px;
  color: var(--muted-2);
  margin: 22px auto 0;
  max-width: 460px;
  line-height: 1.7;
}
.video-fallback a {
  color: var(--muted);
  word-break: break-all;
  text-decoration: underline;
  text-decoration-color: var(--hairline-2);
  text-underline-offset: 3px;
}

/* ---- compliance disclosure block --------------------------------- */
.disclosure-block {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.disclosure-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.disclosure-text {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted-2);
  margin: 0;
}

/* ---- responsive -------------------------------------------------- */
@media (max-width: 860px) {
  .iul-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
  }
  .iul-pitch { text-align: center; }
  .iul-sub, .learn-list { margin-left: auto; margin-right: auto; }
  .learn-list li { text-align: left; }
  body[data-view="gate"] .iul-gate { padding-top: 30px; }
}
