/* Preview-only additions (branch lp-preview): hero video placeholder, anonymised website and automation
   mock-ups in the masterclass cards, and the "How It All Connects" AI Core diagram (from /funnel).
   Nothing here is on the live site until approved. */
.dgm, .orb, .mock-site, .mock-flow { --navy-2: #22395C; --navy-deep: #0D1828; --lime-deep: #B9D93F; --r-lg: 20px; }

/* ---------- Hero video placeholder: 16:9 desktop, 1:1 phone ---------- */
.hero-video { margin: 24px auto 0; width: 100%; max-width: 860px; }
.hero-video__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0D1828 url(/assets/img/lp-video-poster-d.webp) center / cover no-repeat; border: 1px solid rgba(20, 36, 58, .25); box-shadow: 0 24px 56px -24px rgba(20, 36, 58, .5); }
.hero-video__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; display: block; }
.hero-video__frame.is-playing .hero-video__media { background: #000; }
.hero-video__frame.is-preview .hero-video__media { cursor: pointer; }
/* "Watch video" over the muted preview */
.hero-video__watch { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 12px 28px -10px rgba(13, 24, 40, .7), 0 0 0 6px rgba(216, 243, 106, .22); animation: watchPulse 2.4s ease-in-out infinite; white-space: nowrap; }
.hero-video__watch:hover { background: #1c3150; }
.hero-video__watch:focus-visible, .hero-video__play:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.hero-video__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--navy); display: grid; place-items: center; flex: none; }
.hero-video__label { display: flex; flex-direction: column; line-height: 1.15; }
.hero-video__label strong { font-size: 1rem; font-weight: 800; }
.hero-video__label span { font-size: .8rem; opacity: .8; }
@keyframes watchPulse { 0%, 100% { box-shadow: 0 12px 28px -10px rgba(13, 24, 40, .7), 0 0 0 6px rgba(216, 243, 106, .22); } 50% { box-shadow: 0 12px 28px -10px rgba(13, 24, 40, .7), 0 0 0 11px rgba(216, 243, 106, .1); } }
/* Fallback when autoplay is blocked: big play button over the poster */
.hero-video__play { position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; padding: 0; border: 0; border-radius: 50%; background: var(--lime); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 10px rgba(216, 243, 106, .18); }
.hero-video__play::after { content: ""; margin-left: 6px; border-style: solid; border-width: 14px 0 14px 23px; border-color: transparent transparent transparent var(--navy); }
.hero-video__playlabel { position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; font-size: .95rem; white-space: nowrap; }
.hero-video__watch[hidden], .hero-video__play[hidden] { display: none; }
/* Square video on phones and touch tablets (class set by lp-preview.js) */
.hero-video__frame.is-square { aspect-ratio: 1 / 1; background-image: url(/assets/img/lp-video-poster-m.webp); }
.hero-video:has(.is-square) { max-width: 620px; }
@media (max-width: 640px) {
  .hero-video__frame { border-radius: 16px; }
  .hero-video__play { width: 66px; height: 66px; }
  .hero-video__watch { bottom: 14px; padding: 8px 16px 8px 8px; gap: 10px; }
  .hero-video__icon { width: 34px; height: 34px; }
  .hero-video__label strong { font-size: .92rem; }
  .hero-video__label span { font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) { .hero-video__watch { animation: none; } }

/* ---------- Mock: generic business website on a phone + laptop (no real client details) ---------- */
.mock-site { position: relative; width: 100%; height: 100%; background: linear-gradient(160deg, #EEF1F6, #F7F8FC); display: grid; place-items: center; overflow: hidden; }
.ms-laptop { position: absolute; left: 7%; top: 12%; width: 70%; aspect-ratio: 16 / 10; background: #fff; border: 6px solid #1B2638; border-radius: 10px; box-shadow: 0 18px 30px -18px rgba(20, 36, 58, .5); overflow: hidden; }
.ms-bar { height: 12%; background: #F1F3F8; display: flex; align-items: center; gap: 4%; padding: 0 5%; }
.ms-logo { width: 16%; height: 40%; border-radius: 3px; background: var(--navy); }
.ms-nav { flex: 1; display: flex; justify-content: flex-end; gap: 6%; }
.ms-nav i { width: 10%; height: 4px; border-radius: 2px; background: #C9D2E3; }
.ms-hero { padding: 6% 6% 0; }
.ms-chip { display: inline-block; font: 800 7px/1 var(--font-body); color: var(--navy); background: var(--lime); border-radius: 999px; padding: 3px 6px; }
.ms-h { margin-top: 5%; height: 9px; width: 78%; border-radius: 3px; background: var(--navy); }
.ms-h + .ms-h { width: 56%; margin-top: 4px; }
.ms-p { margin-top: 6px; height: 4px; width: 70%; border-radius: 2px; background: #C9D2E3; }
.ms-btn { margin-top: 8%; display: inline-block; font: 800 7px/1 var(--font-head); color: var(--lime); background: var(--navy); border-radius: 5px; padding: 6px 9px; }
.ms-tiles { position: absolute; left: 6%; right: 6%; bottom: 7%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; }
.ms-tiles i { height: 18px; border-radius: 4px; background: #EEF1F6; border: 1px solid #E1E6F0; }
.ms-phone { position: absolute; right: 7%; bottom: 8%; width: 27%; aspect-ratio: 9 / 18; background: #fff; border: 5px solid #1B2638; border-radius: 16px; box-shadow: 0 18px 30px -14px rgba(20, 36, 58, .55); overflow: hidden; padding: 12% 9% 0; }
.ms-phone .ms-h { height: 6px; width: 90%; }
.ms-phone .ms-h + .ms-h { width: 64%; }
.ms-field { margin-top: 10%; height: 9px; border-radius: 3px; border: 1px solid #C9D2E3; }
.ms-field + .ms-field { margin-top: 6%; }
.ms-phone .ms-btn { display: block; text-align: center; margin-top: 10%; padding: 5px 4px; font-size: 6px; }
.ms-badge { position: absolute; left: 5%; bottom: 6%; font: 800 10.5px/1 var(--font-body); color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; box-shadow: 0 6px 14px -8px rgba(20, 36, 58, .4); }
.ms-badge b { color: #2E7D32; }

/* ---------- Mock: follow-up automation, in the style of the workflow builder (generic steps only) ---------- */
.mock-flow { width: 100%; height: 100%; background-color: #EEF1F6; background-image: radial-gradient(#D5DBE6 1px, transparent 1px); background-size: 14px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 0; }
.mf-trig { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #E1E6F0; border-radius: 10px; padding: 6px 10px; font: 600 11px/1 var(--font-body); color: var(--text); box-shadow: 0 4px 10px -8px rgba(20, 36, 58, .4); }
.mf-trig small { font: 800 8.5px/1 var(--font-body); letter-spacing: .12em; color: var(--muted); }
.mf-node { position: relative; width: 70%; max-width: 250px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 7px 10px 7px 14px; box-shadow: 0 6px 14px -10px rgba(20, 36, 58, .45); overflow: hidden; }
.mf-node::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, #E0A63C); }
.mf-node svg { width: 15px; height: 15px; flex: none; color: var(--c, #E0A63C); }
.mf-node b { display: block; font: 700 11.5px/1.2 var(--font-head); color: var(--navy); }
.mf-node small { display: block; font-size: 9.5px; color: var(--muted); line-height: 1.2; }
.mf-arrow { width: 2px; height: 11px; background: var(--c, #E0A63C); opacity: .6; position: relative; }
.mf-arrow::after { content: ""; position: absolute; left: -3px; bottom: -3px; border: 4px solid transparent; border-top-color: var(--c, #E0A63C); }
.mf-email { --c: #4F7DF0; } .mf-wait { --c: #8A94A6; } .mf-wa { --c: #1FA855; } .mf-stage { --c: #E0A63C; }

/* ---------- "How It All Connects" section ---------- */
.connects .dgm { margin-top: 30px; text-align: left; }
/* ============ AI-CORE DIAGRAM ============
   Fixed geometry so connector ends land on the icons: header 54px + 6 rows x 64px = 438px band.
   Icon centres at y = 86 + 64*i; orb centre y = 219. The SVG viewBox (1000 x 438) covers that band. */
.dgm { position: relative; margin: 52px auto 0; max-width: 1120px; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(680px 360px at 50% -8%, rgba(216, 243, 106, .22), transparent 60%), linear-gradient(168deg, #F1F3F8, #FAFBFD 55%, #EEF1F6); border: 1px solid var(--line); box-shadow: 0 22px 60px rgba(20, 36, 58, .14); }
.dgm__in { position: relative; display: grid; grid-template-columns: 1fr minmax(128px, 176px) 1fr; padding: 30px; }
.dgm__links { position: absolute; inset: 30px; pointer-events: none; z-index: 1; width: calc(100% - 60px); height: 438px; }
.dgm__links path { fill: none; stroke-linecap: round; }
.dgm__links .l { stroke: var(--navy); }
.dgm__links .r { stroke: #8FA61F; }
.dgm__links .base { stroke-width: 1.6; opacity: .28; }
.dgm__links .flow { stroke-width: 2.8; opacity: 0; stroke-dasharray: 16 260; animation: dgmFlow 1.9s ease-in-out infinite; }
.dgm__links .l.flow { stroke: var(--navy-2); }
.dgm__links .r.flow { stroke: var(--lime-deep); filter: drop-shadow(0 0 3px rgba(185, 217, 63, .9)); animation-delay: .35s; }
.dgm__links .flow:nth-of-type(4n) { animation-delay: .7s; }
.dgm__links .flow:nth-of-type(6n) { animation-delay: 1.05s; }
@keyframes dgmFlow { 0% { stroke-dashoffset: 250; opacity: 0; } 12%, 88% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

.dgm__panel { position: relative; z-index: 2; border-radius: 16px; overflow: hidden; }
.dgm__panel--build { background: linear-gradient(180deg, #fff, #F6F8FB); border: 1px solid rgba(20, 36, 58, .35); box-shadow: 0 8px 24px rgba(20, 36, 58, .07); }
.dgm__panel--run { background: linear-gradient(180deg, #192C46, var(--navy-deep)); border: 1px solid rgba(216, 243, 106, .45); box-shadow: 0 10px 26px rgba(13, 24, 40, .35); }
.dgm__ph { height: 54px; display: flex; flex-direction: column; justify-content: center; padding: 0 16px; border-bottom: 1px solid; }
.dgm__panel--build .dgm__ph { align-items: flex-end; text-align: right; border-color: var(--line); }
.dgm__panel--run .dgm__ph { align-items: flex-start; border-color: rgba(255, 255, 255, .1); }
.dgm__tag { font: 800 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.dgm__panel--build .dgm__tag { color: var(--navy); }
.dgm__panel--run .dgm__tag { color: var(--lime); }
.dgm__psub { font: 700 14px/1.1 var(--font-head); margin-top: 5px; }
.dgm__panel--build .dgm__psub { color: var(--text); }
.dgm__panel--run .dgm__psub { color: #E3E9F2; }
.dgm__row { height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.dgm__panel--build .dgm__row { flex-direction: row-reverse; }
.dgm__panel--build .dgm__row + .dgm__row { border-top: 1px solid #EDF0F5; }
.dgm__panel--run .dgm__row + .dgm__row { border-top: 1px solid rgba(255, 255, 255, .07); }
.dgm__ic { width: 36px; height: 36px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; }
.dgm__ic svg { width: 18px; height: 18px; }
.dgm__panel--build .dgm__ic { background: var(--lime-tint); border: 1px solid rgba(20, 36, 58, .25); color: var(--navy); }
.dgm__panel--run .dgm__ic { background: rgba(216, 243, 106, .1); border: 1px solid rgba(216, 243, 106, .5); color: var(--lime); box-shadow: 0 0 14px rgba(216, 243, 106, .15); }
.dgm__tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.dgm__panel--build .dgm__tx { text-align: right; align-items: flex-end; }
.dgm__nm { font: 700 14px/1.25 var(--font-head); }
.dgm__panel--build .dgm__nm { color: var(--navy); }
.dgm__panel--run .dgm__nm { color: #fff; }
.dgm__ds { font-size: 12.5px; margin-top: 1px; }
.dgm__panel--build .dgm__ds { color: var(--muted); }
.dgm__panel--run .dgm__ds { color: #A9B6CB; }

.dgm__core { position: relative; z-index: 3; display: grid; place-items: center; }
.orb { position: relative; width: 118px; height: 118px; }
.orb__halo { position: absolute; inset: -16px; border-radius: 50%; background: radial-gradient(circle, rgba(216, 243, 106, .45), transparent 68%); animation: orbHalo 3s ease-in-out infinite; }
.orb__ring { position: absolute; inset: 0; }
.orb__flow { stroke-dasharray: 24 309; animation: orbRing 2s linear infinite; filter: drop-shadow(0 0 5px rgba(216, 243, 106, .9)); }
.orb__flow--b { animation-delay: -1s; opacity: .85; }
.orb__disc { position: absolute; inset: 12px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #2A4268, var(--navy-deep) 72%); box-shadow: inset 0 0 22px rgba(0, 0, 0, .55), 0 0 36px rgba(20, 36, 58, .45); display: flex; align-items: center; justify-content: center; }
.orb__disc svg { width: 38px; height: 38px; animation: orbPulse 1.7s ease-in-out infinite; }
.orb__cap { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 14px; white-space: nowrap; font: 800 11px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--navy); }
@keyframes orbRing { to { stroke-dashoffset: -333; } }
@keyframes orbHalo { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: .9; transform: scale(1.08); } }
@keyframes orbPulse { 0%, 100% { opacity: .9; transform: scale(.94); filter: drop-shadow(0 0 4px rgba(216, 243, 106, .6)); } 50% { opacity: 1; transform: scale(1.08); filter: drop-shadow(0 0 13px rgba(216, 243, 106, 1)); } }
.dgm__foot { text-align: center; margin: 26px auto 0; font-size: 16px; color: var(--muted); font-weight: 500; }
.dgm__foot b { color: var(--navy); }
@media (max-width: 900px) {
  .dgm { max-width: 560px; }
  .dgm__in { grid-template-columns: 1fr; padding: 20px 14px; }
  .dgm__links { display: none; }
  .dgm__ph { height: auto; padding: 12px 14px 10px; }
  .dgm__panel--build .dgm__ph { align-items: flex-start; text-align: left; }
  .dgm__row { height: auto; min-height: 56px; padding: 10px 14px; }
  .dgm__panel--build .dgm__row { flex-direction: row; }
  .dgm__panel--build .dgm__tx { text-align: left; align-items: flex-start; }
  .dgm__core { padding: 18px 0 30px; }
  .orb { width: 92px; height: 92px; }
  .orb__disc svg { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .dgm__links .flow, .orb__flow { opacity: 0; animation: none; } .orb__halo, .orb__disc svg { animation: none; } }

/* Hero video shows at once (no wait for the headline animation): paid visitors must see the player immediately. */
.hero-video { opacity: 1; transform: none; animation: none; }
@media (prefers-reduced-motion: reduce) { .hero-video { opacity: 1; transform: none; animation: none; } }

/* Masterclass page core: MSA mark glowing inside the orb (replaces the lightning bolt). */
.orb__msa { font: 800 19px/1 var(--font-head); letter-spacing: .04em; color: var(--lime); text-shadow: 0 0 10px rgba(216, 243, 106, .85), 0 0 24px rgba(216, 243, 106, .55); animation: msaGlow 1.7s ease-in-out infinite; }
@keyframes msaGlow { 0%, 100% { opacity: .9; transform: scale(.96); text-shadow: 0 0 6px rgba(216, 243, 106, .6), 0 0 16px rgba(216, 243, 106, .35); } 50% { opacity: 1; transform: scale(1.05); text-shadow: 0 0 12px rgba(216, 243, 106, 1), 0 0 30px rgba(216, 243, 106, .7); } }
@media (max-width: 900px) { .orb__msa { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .orb__msa { animation: none; } }
/* Two-line core label that sits above the signal lines, so they pass behind it. */
.orb__cap--two { white-space: normal; text-align: center; line-height: 1.25; z-index: 4; background: #F4F6FA; padding: 5px 9px; border-radius: 8px; box-shadow: 0 0 0 4px #F4F6FA; }
@media (max-width: 900px) { .orb__cap--two { margin-top: 10px; } .connects .dgm__core { padding-bottom: 58px; } }

/* ---------- Steps: number + "You build it" / "Live demo" + kit chips on each card ---------- */
.step-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.step-no { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--navy); color: var(--lime); font: 800 14px/1 var(--font-head); }
.step-chip { font: 700 12px/1 var(--font-body); border-radius: 999px; padding: 6px 9px; border: 1px solid; }
.step-chip--build { background: #E7F7EC; border-color: #BFE6CB; color: #1E6B3A; }
.step-chip--demo { background: #E8EFFC; border-color: #C5D5F6; color: #23468F; }
.step-chip--kit { background: var(--lime-tint); border-color: var(--lime-line); color: var(--navy); }


@media (max-width: 760px) {
}

/* Full-bleed mentor photo (plain photo, not the designed circle card) */
.mentor-card__profile--photo { inset: 0; height: 100%; object-fit: cover; object-position: 50% 0; background: radial-gradient(60% 46% at 50% 34%, rgba(216, 243, 106, .55), rgba(216, 243, 106, 0) 70%), linear-gradient(180deg, #F4F7FB 0%, #E3E9F1 100%); }

/* Phones: square video box and poster from the first paint (before the script runs), so nothing jumps. */
@media (max-width: 640px) { .hero-video__frame { aspect-ratio: 1 / 1; background-image: url(/assets/img/lp-video-poster-m.webp); } .hero-video { max-width: 620px; } }
