/* JetEdCo Webinar Confirmation — page styles + motion.
   Base design system comes from /partners/style.css (themes, seams,
   buttons) and /webinar/style.css (announce bar, routes, countdown,
   rise choreography). Brand tokens from /css/brand.css.
   Everything here is prefixed cf- / cal- / pv- / lk- to stay scoped. */

/* ============================================================
   HERO — the confirmation moment over the world map
   ============================================================ */
.cf-hero {
  padding-block: clamp(44px, 6vw, 84px) clamp(56px, 7vw, 100px);
  overflow: hidden;
  text-align: center;
}
.cf-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-inline: auto;
}

/* ---- Animated checkmark: ring draws, check draws, rings radiate ---- */
.cf-check-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 26px;
}
.cf-check-svg { width: 100%; height: 100%; display: block; }
.cf-check-svg .ck-disc {
  fill: rgba(69, 137, 215, 0.16);
  transform-origin: center;
  animation: ck-disc-pop 0.7s cubic-bezier(0.3, 1.6, 0.4, 1) both;
}
.cf-check-svg .ck-ring {
  fill: none;
  stroke: var(--jetedco-blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
  transform: rotate(-90deg);
  transform-origin: center;
  animation: ck-draw 0.9s cubic-bezier(0.6, 0, 0.3, 1) 0.15s forwards;
}
.cf-check-svg .ck-tick {
  fill: none;
  stroke: #ffffff;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  filter: drop-shadow(0 2px 8px rgba(69, 137, 215, 0.8));
  animation: ck-draw 0.5s cubic-bezier(0.6, 0, 0.3, 1) 0.85s forwards;
}
@keyframes ck-draw { to { stroke-dashoffset: 0; } }
@keyframes ck-disc-pop {
  from { transform: scale(0.3); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
/* radiating success rings */
.cf-check-wrap::before,
.cf-check-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(134, 172, 229, 0.55);
  animation: ck-radiate 2.8s ease-out 1.1s infinite;
  pointer-events: none;
}
.cf-check-wrap::after { animation-delay: 2.1s; }
@keyframes ck-radiate {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.1); opacity: 0; }
}

.cf-hero h1 {
  font-size: clamp(38px, 6.4vw, 66px);
  line-height: 1.04;
  color: var(--s-ink);
  margin-bottom: 16px;
}
.cf-hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--s-muted);
  max-width: 52ch;
  margin-inline: auto;
}

/* ---- The session card: glass, glowing, unmissable ---- */
.cf-session-card {
  position: relative;
  margin: clamp(28px, 4vw, 40px) auto 0;
  max-width: 640px;
  padding: clamp(24px, 4vw, 38px) clamp(20px, 4vw, 40px);
  border-radius: 22px;
  background: rgba(45, 48, 53, 0.62);
  border: 1px solid rgba(204, 217, 245, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}
/* slowly orbiting glow ring around the card */
.cf-session-card::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 25px;
  background: conic-gradient(from var(--reg-a, 0deg),
    rgba(69, 137, 215, 0) 0%,
    rgba(69, 137, 215, 0.7) 12%,
    rgba(134, 172, 229, 0.9) 22%,
    rgba(69, 137, 215, 0) 38%);
  filter: blur(10px);
  z-index: -1;
  animation: reg-orbit 8s linear infinite;
}
.cf-session-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: var(--weight-title);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--jetedco-cream);
  margin-bottom: 12px;
}
.cf-session-label::before,
.cf-session-label::after {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(134, 172, 229, 0.5);
}
/* the date itself — the biggest thing on the page after the h1 */
.cf-date {
  font-weight: var(--weight-title);
  text-transform: uppercase;
  font-size: clamp(28px, 5.6vw, 50px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 0 34px rgba(69, 137, 215, 0.65);
  animation: cf-date-glow 3.4s ease-in-out infinite;
}
@keyframes cf-date-glow {
  0%, 100% { text-shadow: 0 0 22px rgba(69, 137, 215, 0.4); }
  50%      { text-shadow: 0 0 46px rgba(134, 172, 229, 0.95); }
}
.cf-time {
  margin-top: 6px;
  font-weight: var(--weight-title);
  font-size: clamp(17px, 2.6vw, 24px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jetedco-cream);
}
.cf-session-card .countdown {
  justify-content: center;
  margin-top: 20px;
}
/* "we're live" state swaps in for the countdown at showtime */
.cf-live-now {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(111, 224, 139, 0.14);
  border: 1px solid rgba(111, 224, 139, 0.5);
  color: #ffffff;
  font-weight: var(--weight-title);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
}
.cf-live-now .announce-dot { margin-right: 0; }
.cf-live-now[hidden] { display: none; }
a.cf-live-now { text-decoration: none; transition: background 0.25s ease, transform 0.25s ease; }
a.cf-live-now:hover { background: rgba(111, 224, 139, 0.26); transform: translateY(-2px); }

/* the card's one action: shakes for attention, teleports to Step 1 */
.cf-cal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding: 17px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4589D7, #3B7AC6);
  color: #ffffff;
  text-decoration: none;
  font-weight: var(--weight-title);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: clamp(14px, 2vw, 17px);
  box-shadow: 0 14px 40px rgba(69, 137, 215, 0.5);
  animation: cta-shake 3.4s ease-in-out 1.6s infinite;
  transition: box-shadow 0.25s ease, filter 0.25s ease;
}
.cf-cal-cta:hover {
  filter: brightness(1.12);
  box-shadow: 0 20px 54px rgba(69, 137, 215, 0.7);
}
.cf-cal-cta:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }
.cf-cal-cta .cta-arrow {
  display: inline-block;
  font-size: 1.2em;
  line-height: 1;
  animation: cal-bounce 1.8s ease-in-out infinite;
}
/* rests, then rattles — over and over until they tap it */
@keyframes cta-shake {
  0%, 82%, 100% { transform: none; }
  84% { transform: translateX(-5px) rotate(-1.4deg); }
  86% { transform: translateX(5px) rotate(1.4deg); }
  88% { transform: translateX(-5px) rotate(-1.2deg); }
  90% { transform: translateX(4px) rotate(1deg); }
  92% { transform: translateX(-3px) rotate(-0.6deg); }
  94% { transform: translateX(2px); }
  96% { transform: translateX(-1px); }
}

/* ---- Confetti (JS drops the pieces in) ---- */
.cf-confetti {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  overflow: hidden;
}
.cf-confetti i {
  position: absolute;
  top: -3vh;
  width: 9px;
  height: 15px;
  border-radius: 2px;
  opacity: 0.95;
  animation: cf-fall var(--dur, 3.6s) cubic-bezier(0.25, 0.4, 0.6, 1) var(--delay, 0s) forwards;
}
@keyframes cf-fall {
  0%   { transform: translate3d(0, 0, 0) rotateZ(0) rotateX(0); opacity: 1; }
  100% { transform: translate3d(var(--drift, 0px), 105vh, 0) rotateZ(var(--spin, 540deg)) rotateX(720deg); opacity: 0.4; }
}

/* ============================================================
   STEP 1 — LOCK IT IN (light): giant calendar buttons
   ============================================================ */
.section-lockin { text-align: center; }
.section-lockin h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  margin-bottom: 0.4em;
}
/* "Then Come Back." glows so the instruction can't be missed */
.glow-back {
  color: var(--jetedco-blue);
  text-shadow: 0 0 14px rgba(69, 137, 215, 0.45);
  animation: glow-back 2.6s ease-in-out infinite;
}
@keyframes glow-back {
  0%, 100% { text-shadow: 0 0 10px rgba(69, 137, 215, 0.3); }
  50%      { text-shadow: 0 0 26px rgba(69, 137, 215, 0.95), 0 0 58px rgba(134, 172, 229, 0.55); }
}

.lockin-lede {
  max-width: 56ch;
  margin-inline: auto;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  color: var(--s-muted);
}
.lockin-lede strong { color: var(--jetedco-dark); font-weight: var(--weight-title); }

.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--jetedco-blue);
  color: #ffffff;
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: var(--weight-title);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(69, 137, 215, 0.35);
  animation: chip-live 2.8s ease-in-out infinite;
}
.step-chip-dark {
  background: rgba(69, 137, 215, 0.18);
  border: 1px solid rgba(134, 172, 229, 0.45);
  color: var(--jetedco-cream);
  box-shadow: none;
}

/* the three big calendar buttons */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.4vw, 22px);
  max-width: 860px;
  margin: clamp(28px, 4vw, 40px) auto 0;
}
@media (max-width: 760px) { .cal-grid { grid-template-columns: 1fr; max-width: 420px; } }
.cal-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(24px, 3.4vw, 34px) 18px clamp(20px, 3vw, 28px);
  border-radius: 22px;
  background: #ffffff;
  border: 2px solid rgba(69, 137, 215, 0.25);
  box-shadow: 0 14px 40px rgba(45, 48, 53, 0.1);
  text-decoration: none;
  color: var(--jetedco-dark);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cal-btn:hover,
.cal-btn:focus-visible {
  transform: translateY(-7px) scale(1.02);
  border-color: var(--jetedco-blue);
  box-shadow: 0 26px 60px rgba(69, 137, 215, 0.32);
}
.cal-btn:focus-visible { outline: 3px solid var(--jetedco-blue); outline-offset: 3px; }
/* light sweep across each button, staggered */
.cal-btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  left: -55%;
  background: linear-gradient(105deg, transparent, rgba(69, 137, 215, 0.14), transparent);
  animation: bar-sweep 4.6s ease-in-out infinite;
  pointer-events: none;
}
.cal-btn:nth-child(2)::after { animation-delay: 0.7s; }
.cal-btn:nth-child(3)::after { animation-delay: 1.4s; }
.cal-btn-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #F2F6FD;
  border: 1px solid rgba(69, 137, 215, 0.16);
  transition: transform 0.25s ease;
}
.cal-btn:hover .cal-btn-icon { transform: scale(1.12) rotate(-4deg); }
.cal-btn-icon svg { width: 32px; height: 32px; display: block; }
.cal-btn-name {
  font-weight: var(--weight-title);
  font-size: clamp(17px, 2.2vw, 20px);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.cal-btn-sub {
  font-size: 12px;
  font-weight: var(--weight-subtitle);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jetedco-blue);
}
/* gentle idle float so the row feels alive */
@media (min-width: 761px) {
  .cal-btn { animation: floaty 6.5s ease-in-out infinite; }
  .cal-btn:nth-child(2) { animation-delay: 1.1s; }
  .cal-btn:nth-child(3) { animation-delay: 2.2s; }
}

/* the "done here? go watch" button under the calendar buttons —
   shares the shaking .cf-cal-cta look from the hero */
.cal-next-cta {
  display: inline-flex;
  width: auto;
  margin-top: clamp(28px, 4.5vw, 40px);
  padding-inline: clamp(30px, 5vw, 46px);
}
.cal-fallback {
  margin-top: 26px;
  font-size: 14px;
  color: var(--s-muted);
}
@keyframes cal-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(9px); }
}

/* ============================================================
   STEP 2 — THE PREVIEW (dark): 1080×1350 player
   ============================================================ */
.section-preview { text-align: center; overflow: hidden; }
.section-preview h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  color: var(--s-ink);
  margin-bottom: 0.4em;
}
.preview-lede {
  max-width: 54ch;
  margin-inline: auto;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  color: var(--s-muted);
}
.pv-shell {
  position: relative;
  width: min(460px, 88vw);
  margin: clamp(30px, 4.5vw, 46px) auto 0;
}
/* orbiting glow behind the frame */
.pv-shell::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 28px;
  background: conic-gradient(from var(--reg-a, 0deg),
    rgba(69, 137, 215, 0) 0%,
    rgba(69, 137, 215, 0.85) 14%,
    rgba(134, 172, 229, 1) 24%,
    rgba(69, 137, 215, 0) 40%);
  filter: blur(11px);
  animation: reg-orbit 9s linear infinite;
}
.pv-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #14161a;
  border: 1px solid rgba(204, 217, 245, 0.3);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
}
.pv-badge {
  pointer-events: none;  /* never intercept the player's clicks */
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(45, 48, 53, 0.72);
  border: 1px solid rgba(204, 217, 245, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: var(--weight-title);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pv-badge .announce-dot { margin-right: 0; }
.pv-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--s-muted);
  letter-spacing: 0.04em;
}

/* booking CTA under the preview: locked pill counts down to the
   unlock, then the shaking book-your-call button takes its place */
.pv-book { margin-top: clamp(24px, 3.5vw, 34px); }
.pv-book-locked {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: rgba(45, 48, 53, 0.6);
  border: 1px dashed rgba(134, 172, 229, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--jetedco-cream);
  font-weight: var(--weight-subtitle);
  font-size: clamp(13px, 1.8vw, 15px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pv-book-locked[hidden] { display: none; }
.pv-book-lock { display: inline-block; animation: lk-wiggle 3.4s ease-in-out infinite; }
.pv-book-time {
  font-weight: var(--weight-title);
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.pv-book .cf-cal-cta {
  display: inline-flex;
  width: auto;
  margin-top: 0;
  padding-inline: clamp(30px, 5vw, 46px);
}
.pv-book .cf-cal-cta[hidden] { display: none; }

/* ============================================================
   BONUS — Calendly, unlocked after 5 minutes on the page
   ============================================================ */
.section-unlock { text-align: center; }
.section-unlock h2 {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 0.4em;
}
.unlock-lede {
  max-width: 56ch;
  margin-inline: auto;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.7;
  color: var(--s-muted);
}

/* locked card: progress ring + ticking clock */
.lk-card {
  position: relative;
  max-width: 520px;
  margin: clamp(28px, 4vw, 40px) auto 0;
  padding: clamp(30px, 4.5vw, 44px) clamp(20px, 4vw, 40px);
  border-radius: 22px;
  background: #ffffff;
  border: 2px dashed rgba(69, 137, 215, 0.4);
  box-shadow: 0 18px 50px rgba(45, 48, 53, 0.1);
}
.lk-ring-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 18px;
}
.lk-ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lk-ring-track { fill: none; stroke: rgba(69, 137, 215, 0.15); stroke-width: 8; }
.lk-ring-bar {
  fill: none;
  stroke: var(--jetedco-blue);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.3;
  stroke-dashoffset: 339.3;
  transition: stroke-dashoffset 1s linear;
}
.lk-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  animation: lk-wiggle 3.4s ease-in-out infinite;
}
@keyframes lk-wiggle {
  0%, 86%, 100% { transform: rotate(0); }
  90% { transform: rotate(-9deg); }
  94% { transform: rotate(8deg); }
  98% { transform: rotate(-4deg); }
}
.lk-time {
  font-weight: var(--weight-title);
  font-size: clamp(30px, 5vw, 40px);
  color: var(--jetedco-dark);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.lk-copy {
  margin-top: 10px;
  font-size: clamp(14px, 1.9vw, 16px);
  line-height: 1.65;
  color: var(--s-muted);
  max-width: 40ch;
  margin-inline: auto;
}
.lk-copy strong { color: var(--jetedco-blue); font-weight: var(--weight-title); }

/* unlocked: badge + Calendly slides in */
.lk-unlocked { display: none; }
.section-unlock[data-state="unlocked"] .lk-card { display: none; }
.section-unlock[data-state="unlocked"] .lk-unlocked {
  display: block;
  animation: rise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.lk-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: clamp(24px, 3.5vw, 34px) auto 18px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(111, 224, 139, 0.16);
  border: 1px solid rgba(63, 167, 95, 0.5);
  color: #1E7A3C;
  font-weight: var(--weight-title);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lk-embed {
  max-width: 720px;
  margin-inline: auto;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(69, 137, 215, 0.25);
  box-shadow: 0 24px 70px rgba(45, 48, 53, 0.16);
}
.lk-embed iframe {
  display: block;
  width: 100%;
  height: clamp(620px, 82vh, 760px);
  border: 0;
}

/* ============================================================
   Footer (compact) + shared bits
   ============================================================ */
.cf-footer { padding-block: clamp(36px, 5vw, 56px); text-align: center; }
.cf-footer .footer-symbol { width: 54px; height: auto; opacity: 0.85; margin-bottom: 10px; }
.cf-footer p { font-size: 13px; color: var(--s-muted); }
.cf-footer .cf-footer-legal { margin-top: 6px; font-size: 12px; color: rgba(204, 217, 245, 0.45); }

/* slim centered header */
.cf-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 18px 20px 0;
}
.cf-header img { width: clamp(120px, 15vw, 160px); height: auto; }

/* ---- Reduced motion: hold everything still ---- */
@media (prefers-reduced-motion: reduce) {
  .cf-check-svg .ck-disc,
  .cf-check-svg .ck-ring,
  .cf-check-svg .ck-tick {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
    transform: none;
  }
  .cf-check-svg .ck-ring { transform: rotate(-90deg); }
  .cf-check-wrap::before, .cf-check-wrap::after,
  .cal-btn, .cal-btn::after, .cal-arrow,
  .cf-cal-cta, .cf-cal-cta .cta-arrow, .glow-back,
  .cf-date, .step-chip, .lk-lock,
  .pv-play::before, .pv-play::after,
  .cf-session-card::before, .pv-shell::before { animation: none; }
  .cf-confetti { display: none; }
  .pv-shell:hover .pv-poster { transform: none; }
}
