/* =========================================================================
   The Physician Media Masterclass · funnel pages (register / thank-you / replay)
   Shared page layer on top of /assets/brand.css (tokens + fonts).
   Background: one continuous page canvas (gradients.md #3, diagonal mesh +
   soft light arc, in warm light tokens). Sections stay transparent, so there
   are no seams between them.
   ========================================================================= */

:root {
  --section-y: clamp(84px, 10vw, 128px);
  --head-gap: clamp(48px, 6vw, 68px);
  --line: rgba(23, 40, 66, 0.1);
  --sky-soft: rgba(169, 192, 230, 0.34);
  --cream: #fbf9f5;
}

/* ---------------------------- Page canvas ------------------------------- */
html { background: var(--bg); }
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 760px at 8% 0%, var(--sky-soft), transparent 62%),
    radial-gradient(900px 700px at 96% 6%, rgba(185, 66, 60, 0.07), transparent 60%),
    radial-gradient(1200px 900px at 100% 46%, rgba(169, 192, 230, 0.2), transparent 60%),
    radial-gradient(1100px 900px at 0% 70%, rgba(241, 237, 230, 0.95), transparent 62%),
    radial-gradient(1000px 700px at 80% 92%, rgba(185, 66, 60, 0.05), transparent 60%),
    linear-gradient(160deg, #f8f6f2 0%, #f4f1eb 46%, #f7f5f1 100%);
  background-color: var(--bg);
}
/* fine grain so the big soft gradients never band */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.16 0 0 0 0 0.26 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .brandfoot, .fade-to-foot { position: relative; z-index: 1; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-top: 0; }
.sec-head { text-align: center; max-width: 780px; margin: 0 auto var(--head-gap); }
.sec-head h2 { text-wrap: balance; }
.center { text-align: center; }

/* small ECG pulse used as the one repeated detail */
.pulse { display: inline-block; width: 46px; height: 18px; vertical-align: middle; }
.pulse path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ================================ HERO ================================== */
.hero { text-align: center; padding: clamp(72px, 10vw, 120px) 0 clamp(72px, 8vw, 104px); }
.hero__pulse { display: block; width: 120px; height: 34px; margin: 0 auto 18px; }
.hero__pulse path { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 0; }
.js .hero__pulse path { animation: draw 1.6s var(--ease) 0.15s both; }
@keyframes draw { from { stroke-dashoffset: 160; } to { stroke-dashoffset: 0; } }
.hero .eyebrow { color: var(--muted); letter-spacing: 0.16em; }
.hero h1 {
  max-width: 1060px; margin: 0 auto;
  font-size: clamp(30px, 4.1vw, 50px); line-height: 1.12; letter-spacing: -0.03em;
}
.hero .lead { max-width: 740px; margin: 24px auto 0; font-size: clamp(20px, 2vw, 23px); }

/* ============================== COUNTDOWN ================================
   Variant B · ring tiles (refined / premium), re-skinned to the brand. */
.cd { margin: clamp(44px, 6vw, 60px) auto 0; }
.cd__when {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  font-size: 15px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.cd__when .sep { white-space: pre; }
.cd__when .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.cd-rings { display: flex; gap: clamp(12px, 2.4vw, 26px); justify-content: center; }
.cd-rings .u {
  position: relative; width: clamp(76px, 13vw, 138px); aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 2px rgba(23, 40, 66, 0.05), 0 22px 40px -26px rgba(23, 40, 66, 0.35);
}
.cd-rings svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.cd-rings .trk { fill: none; stroke: #ece6dc; stroke-width: 5; }
.cd-rings .prg { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 0.9s linear; }
.cd-rings .in { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.cd-rings .n { font-family: var(--display); font-size: clamp(26px, 4.2vw, 42px); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.cd-rings .lbl { margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero__cta { margin-top: clamp(40px, 5vw, 52px); }

/* ============================== PILLARS ==================================
   Variant B · open editorial columns, ghost index + icon badge. */
.ps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; margin: 0 auto; }
.ps-col { padding: 8px clamp(18px, 2.4vw, 32px) 6px; text-align: center; position: relative; }
.ps-col + .ps-col::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.ps-ghost { font-family: var(--display); font-weight: 700; font-size: 88px; line-height: 1; letter-spacing: -0.05em; color: rgba(185, 66, 60, 0.13); margin-bottom: -26px; }
.ps-badge {
  position: relative; width: 62px; height: 62px; margin: 0 auto; border-radius: 18px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--accent-line); color: var(--accent);
  box-shadow: 0 14px 30px -18px rgba(185, 66, 60, 0.55);
  transition: transform 0.35s var(--ease);
}
.ps-col:hover .ps-badge { transform: translateY(-3px); }
.ps-badge svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ps-t .nw { white-space: nowrap; }
.ps-t { margin: 26px 0 12px; font-family: var(--display); font-size: clamp(22px, 2vw, 25px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink); }
.ps-d { margin: 0 auto; max-width: 32ch; font-size: 18px; line-height: 1.6; color: var(--muted); text-align: center; }

/* ================================ HOST ===================================
   Variant B · centred spotlight. */
.hs { text-align: center; max-width: 820px; margin: 0 auto; }
.hs__photo {
  width: min(340px, 82%); aspect-ratio: 4 / 5; margin: 0 auto 32px; border-radius: 26px; overflow: hidden;
  background: #d9dde3; box-shadow: var(--shadow-lg); position: relative;
}
.hs__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.hs__name { font-family: var(--display); font-size: clamp(28px, 3vw, 36px); font-weight: 700; letter-spacing: -0.02em; }
.hs__title { margin: 8px 0 20px; font-size: 16px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.hs__bio { margin: 0 auto; max-width: 660px; font-size: 19px; line-height: 1.68; color: var(--muted); }
.hs__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin: 40px auto 0; }
.hs__stat { padding: 24px 14px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.82); border: 1px solid var(--hair-soft); box-shadow: var(--shadow); }
.hs__stat b { display: block; font-family: var(--display); font-size: clamp(27px, 3vw, 34px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.hs__stat span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.4; color: var(--muted); }

/* ================================ GIFT ===================================
   Variant B · centred spotlight, cover designed in HTML/CSS. */
.gs { text-align: center; max-width: 760px; margin: 0 auto; }
.gs .eyebrow { margin-bottom: 14px; }
.gs__val { margin: 18px auto 0; max-width: 560px; font-size: clamp(19px, 1.8vw, 21px); line-height: 1.55; color: var(--muted); }
.gs__stage { display: grid; place-items: center; margin: 48px auto 0; perspective: 1400px; }
.cover {
  position: relative; width: min(300px, 74vw); aspect-ratio: 3 / 4; border-radius: 6px 14px 14px 6px; text-align: left;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 5px),
    radial-gradient(120% 80% at 80% 0%, #2a3e5e, transparent 60%),
    linear-gradient(160deg, #1f3251, #16233a);
  color: #fff; transform: rotate(-4deg); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  box-shadow:
    5px 0 0 -1px #efe9de, 7px 1px 0 -1px #e2dacb, 9px 2px 0 -1px #d8cfbe,
    0 40px 70px -30px rgba(23, 40, 66, 0.6), 0 12px 24px -12px rgba(23, 40, 66, 0.35);
}
.cover:hover, .cover:focus-visible { transform: rotate(0deg) translateY(-4px); }
.cover::before { /* spine */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22px; border-radius: 6px 0 0 6px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.08) 70%, rgba(255, 255, 255, 0.06));
}
.cover::after { /* elastic band */
  content: ""; position: absolute; right: 30px; top: -2px; bottom: -2px; width: 9px;
  background: linear-gradient(90deg, #a93a35, #c8504a 50%, #9f3631); box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}
.cover__in { position: absolute; inset: 32px 52px 28px 42px; display: flex; flex-direction: column; }
.cover__kick { font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sky); }
.cover__rule { width: 34px; height: 2px; margin: 18px 0 16px; background: var(--accent-2); border-radius: 2px; }
.cover__title { font-family: var(--display); font-size: 31px; line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.cover__sub { margin-top: 14px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.78); }
.cover__foot { margin-top: auto; display: flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.cover__foot svg { width: 22px; height: 22px; }
.deliver {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 48px;
  padding: 13px 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--hair-soft);
  font-size: 16px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow);
}
.skool-word { font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.skool-word i { font-style: normal; }
.skool-word .s1 { color: #2c3192; } .skool-word .s2 { color: #f2361c; } .skool-word .s3 { color: #f4ae0b; }
.skool-word .s4 { color: #4cb5f0; } .skool-word .s5 { color: #e5341c; }

/* ============================ SOCIAL PROOF ===============================
   8 equal tiles, 4 × 2: four real Medical Skool reviews, four reach cards. */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 20px; }
.tile {
  display: flex; flex-direction: column; border-radius: var(--radius); background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--hair-soft); box-shadow: var(--shadow); overflow: hidden; min-height: 330px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.rv { padding: 26px 24px 22px; }
.rv__stars { display: flex; gap: 3px; color: #e9a227; }
.rv__stars svg { width: 18px; height: 18px; fill: currentColor; }
.rv__q { margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.rv__who { margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 12px; }
.rv__av { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; color: #fff; }
.rv__name { font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.rv__meta { font-size: 14px; color: var(--muted); line-height: 1.35; }
.yt__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--navy); }
.yt__thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt__badge { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.78); color: #fff; font-size: 13px; font-weight: 700; }
.yt__body { flex: 1; display: flex; gap: 12px; padding: 16px 18px 20px; }
.yt__av { flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.yt__av img { width: 100%; height: 100%; object-fit: cover; }
.yt__title { font-size: 16px; font-weight: 700; line-height: 1.35; color: #0f0f0f; }
.yt__meta { margin-top: 6px; font-size: 14px; line-height: 1.4; color: #606060; }
.yt__meta b { color: var(--accent); font-weight: 800; }
.yt__logo { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 700; color: #0f0f0f; }
.yt__logo svg { width: 20px; height: 14px; }

/* =============================== VIDEOS ================================== */
.vgrid { row-gap: 56px; column-gap: 40px; }
.vframe { border: 0; padding: 0; width: 100%; display: block; }
.vframe img { position: absolute; inset: 0; }
.vframe::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 32, 0) 50%, rgba(10, 18, 32, 0.22)); pointer-events: none; }
.vframe.is-playing::after { display: none; }
.vframe__play { z-index: 2; }
.vname { font-size: 22px; }
.vdesc { font-size: 18px; }

/* ============================ BOTTOM CTA ================================= */
.endcta { text-align: center; padding: 0 0 clamp(80px, 9vw, 120px); }

/* =============================== MODAL =================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(23, 40, 66, 0.42); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%);
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease), visibility 0s; }
.modal {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100dvh - 40px); overflow: auto;
  background: var(--surface); border-radius: 26px; padding: 46px 38px 34px; text-align: center;
  box-shadow: 0 50px 120px -40px rgba(23, 40, 66, 0.6), 0 0 0 1px var(--hair-soft);
  transform: translateY(14px) scale(0.97); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.modal-overlay.open .modal { transform: none; opacity: 1; }
.modal-x {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--hair); background: var(--surface-2); color: var(--ink); cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.modal-x:hover { background: var(--bg-2); transform: rotate(90deg); }
.modal-x svg { width: 18px; height: 18px; }
.modal .pulse { margin-bottom: 14px; }
.modal h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.modal-sub { margin: 10px 0 28px; font-size: 17px; color: var(--muted); }
.field { text-align: left; margin-bottom: 16px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.field input {
  width: 100%; min-height: 54px; padding: 14px 16px; font: 500 18px var(--sans); color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--hair); border-radius: 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder { color: #8a929e; }
.field input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.field input.err { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(185, 66, 60, 0.14); }
.modal-err { min-height: 22px; margin: 2px 0 8px; font-size: 15px; font-weight: 600; color: var(--accent); }
.modal .btn { width: 100%; }
.modal-fine { margin: 16px 0 0; font-size: 14px; color: var(--muted-2); }

/* ============================ FAUX PLAYER =================================
   Prep video (thank-you) and replay slot. */
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--navy);
  box-shadow: var(--shadow-lg); cursor: pointer;
}
.player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(75% 75% at 50% 48%, rgba(10, 18, 32, 0.04), rgba(10, 18, 32, 0.42)); }
.player__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 88px; height: 88px; transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.95); color: var(--accent);
  box-shadow: 0 18px 46px -12px rgba(10, 18, 32, 0.55); transition: transform 0.35s var(--ease);
}
.player__play svg { width: 32px; height: 32px; margin-left: 5px; fill: currentColor; }
.player:hover .player__play { transform: translate(-50%, -50%) scale(1.06); }
.player__bar { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2; display: flex; align-items: center; gap: 12px; color: #fff; font-size: 14px; font-weight: 700; }
.player__bar i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.player__bar i::before { content: ""; display: block; width: 3%; height: 100%; background: var(--accent-2); }

/* ============================ Reveal stagger ============================= */
.js .reveal { transition-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__pulse path { animation: none; }
  .cover, .tile, .ps-badge, .modal, .modal-overlay, .modal-x, .player__play, .cd-rings .prg { transition: none; }
}

/* ============================== Responsive =============================== */
@media (max-width: 1040px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ps-row { grid-template-columns: 1fr; row-gap: 52px; max-width: 520px; }
  .ps-col + .ps-col::before { display: none; }
}
@media (max-width: 700px) {
  :root { --section-y: 72px; --head-gap: 40px; }
  body { font-size: 18px; }
  .hero { padding-top: 56px; }
  .hero__pulse { width: 96px; height: 28px; margin-bottom: 12px; }
  .hero h1 { font-size: 28px; line-height: 1.14; }
  .hero .lead { font-size: 19px; }
  .cd__when [data-webinar-when] { display: flex; flex-direction: column; gap: 4px; }
  .cd__when { font-size: 14px; letter-spacing: 0.1em; }
  .cd__when .dot, .cd__when .sep { display: none; }
  .deliver { border-radius: 22px; padding: 14px 20px; font-size: 15px; max-width: 330px; }
  .cd-rings .lbl { font-size: 13px; letter-spacing: 0.08em; margin-top: 5px; }
  .hs__stats { grid-template-columns: 1fr; max-width: 340px; }
  .modal { padding: 44px 22px 26px; border-radius: 22px; }
  .player { border-radius: 18px; }
  .player__play { width: 70px; height: 70px; }
  .player__play svg { width: 26px; height: 26px; }
}
@media (max-width: 560px) {
  .proof { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 16px; }
  .tile { min-height: 0; }
  .rv__q { margin-bottom: 4px; }
}

/* ---- mobile hardening (references/mobile.md) ---- */
*, *::before, *::after { box-sizing: border-box; }
img, svg, video, canvas, iframe { max-width: 100%; }
p, li, td, th, blockquote, figcaption, h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }
table, pre { display: block; max-width: 100%; overflow-x: auto; }
@media (max-width: 700px) {
  .tag, [class*="pill"] { margin-left: 0; }
  .ps-col .ps-badge { margin-left: auto; margin-right: auto; }
}
@media (max-width: 420px) {
  .tok-merge, .tok-link, code { white-space: normal; }
}

/* content is visible without JS: brand.css hides .reveal until .is-in, so only do that once JS is running */
html:not(.js) .reveal { opacity: 1; transform: none; }
.modal-sub [data-webinar-when] > span { white-space: nowrap; }

/* QA: tap targets */
.modal-x { width: 44px !important; height: 44px !important; }

/* review byline: tight block so the name and meta sit beside the avatar */
.rv__who > span:last-child { display: block; line-height: 1.3; font-size: 14px; }
.rv__who .rv__name { display: inline-block; margin-bottom: 2px; }
