/* Program pages (sign-up, workshop and enroll pages).
   Loaded after site.css on these pages only. Each page sets body.fx plus one program class,
   which gives it the program's own color, tighter spacing and photo-led sections. */

body.fx { --acc: #5B3E9E; --acc-hi: #C2B2EE; }
body.fx-credit { --acc: #1E4FA3; --acc-hi: #A9C4F5; }
body.fx-mind { --acc: #B0532B; --acc-hi: #F0AE8C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.fx { --acc: var(--acc-hi); } }
:root[data-theme="dark"] body.fx { --acc: var(--acc-hi); }
body.fx { --acc-soft: color-mix(in srgb, var(--acc) 9%, var(--surface)); }

/* ---------- Spacing: tighter rhythm between and inside sections ---------- */
.fx .section { padding-block: clamp(40px, 5vw, 68px); }
.fx .section.tight { padding-block: clamp(28px, 3.5vw, 44px); }
.fx .section-head { margin-bottom: clamp(20px, 2.6vw, 34px); padding-top: 14px; row-gap: 10px; }
.fx .section-head > :not(.eyebrow) { max-width: 30ch; }
.fx .section-head > .lead, .fx .section-head > p:not(.eyebrow) { max-width: 62ch; }
.fx h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); }
.fx .lead { font-size: clamp(1.06rem, 1.5vw, 1.2rem); }
.fx .stack { gap: 14px; }
.fx .page-hero .wrap, .fx .optin-hero .wrap { padding-block: clamp(36px, 5vw, 68px); }
.fx .optin-hero .copy { gap: 16px; }
.fx .tick-grid { gap: 0 32px; }
.fx .tick-grid li { padding: 10px 0 10px 28px; font-size: 1rem; }
.fx .grid-2, .fx .grid-3, .fx .modules { row-gap: 28px; }
.fx .card { padding-top: 16px; gap: 8px; }
.fx .card h3 { font-size: 1.25rem; }
.fx .faq summary { padding-block: 11px; font-size: 1.06rem; }
.fx .faq details p { padding-bottom: 12px; }
.fx .quotes { row-gap: 24px; }
.fx .coach { gap: clamp(24px, 4vw, 48px); align-items: center; }
.fx .coach .portrait-wrap { max-width: 300px; }
.fx .coach .stack p { font-size: 1rem; }
.fx .center-cta { gap: 12px; }
.fx .btn-row { margin-top: 4px; }
@media (max-width: 760px) {
  .fx .section { padding-block: 36px; }
  .fx .section-head { margin-bottom: 18px; }
}

/* ---------- Program color ---------- */
.fx .eyebrow { color: var(--acc); }
.fx .band .eyebrow, .fx .page-hero .eyebrow, .fx .fx-banner .eyebrow { color: var(--acc-hi); }
.fx .tick-grid li::before { border-color: var(--acc); }
.fx .band .tick-grid li::before { border-color: var(--acc-hi); }
.fx .card .tag, .fx .modules > li::before, .fx .steps li::before { color: var(--acc); }
.fx .band .card .tag { color: var(--acc-hi); }
.fx .steps li { border-top: 2px solid var(--acc); }
.fx .quote { border-top: 2px solid var(--acc); }
.fx .faq summary::after { color: var(--acc); }
.fx .optin-card { border-top-color: var(--acc); }
.fx .optin-hero h1 em, .fx .page-hero h1 em { color: var(--acc-hi); }
.fx .stat strong { color: var(--acc-hi); }
.fx .portrait::before { border-color: var(--acc); }
.fx .page-hero .eyebrow::before { background: var(--acc-hi); }

/* ---------- Hero with a subject photo behind the copy ---------- */
.fx-hero { position: relative; isolation: isolate; overflow: hidden; }
.fx-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg) var(--bg-pos, center) / cover no-repeat; }
.fx-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11, 24, 48, .96) 0%, rgba(11, 24, 48, .86) 40%, rgba(11, 24, 48, .42) 100%); }
.fx-hero.fx-watch::after { background: linear-gradient(90deg, rgba(11, 24, 48, .95) 0%, rgba(11, 24, 48, .82) 45%, rgba(11, 24, 48, .6) 100%); }
@media (max-width: 900px) { .fx-hero::after { background: rgba(11, 24, 48, .9); } }
.fx-hero { border-bottom: 4px solid var(--acc); }

/* Workshop page hero: video beside the headline on wide screens */
.fx-watch .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.fx-watch .copy { display: grid; gap: 14px; }
.fx-watch h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
@media (max-width: 900px) { .fx-watch .wrap { grid-template-columns: 1fr; } }

/* ---------- Photo beside text ---------- */
.fx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.fx-split.wide-text { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.fx-split.rev > .fx-media { order: 2; }
.fx-split > .stack h2 { max-width: 22ch; }
.fx-media { margin: 0; position: relative; isolation: isolate; }
.fx-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.fx-media.tall img { aspect-ratio: 4 / 5; }
.fx-media::after { content: ""; position: absolute; left: -12px; bottom: -12px; width: 46%; height: 46%; z-index: -1;
  border-left: 3px solid var(--acc); border-bottom: 3px solid var(--acc); }
.fx-split.rev .fx-media::after { left: auto; right: -12px; border-left: 0; border-right: 3px solid var(--acc); }
.fx-media figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 30px 16px 12px; font-family: var(--ui); font-size: .86rem; line-height: 1.35;
  color: #fff; background: linear-gradient(0deg, rgba(8, 14, 28, .88) 0%, rgba(8, 14, 28, 0) 100%); }
.fx-media figcaption b { display: block; font-size: .95rem; }
@media (max-width: 860px) {
  .fx-split, .fx-split.wide-text { grid-template-columns: 1fr; gap: 22px; }
  .fx-split.rev > .fx-media { order: 0; }
  .fx-media::after { left: -8px; bottom: -8px; }
  .fx-split.rev .fx-media::after { right: -8px; }
}

/* Short problem points with a color rule */
.fx-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.fx-points.one { grid-template-columns: 1fr; gap: 12px; }
.fx-points li { border-left: 3px solid var(--acc); padding: 2px 0 2px 14px; display: grid; gap: 3px; }
.fx-points b { font-family: var(--display); font-weight: 500; font-size: 1.1rem; line-height: 1.25; }
.fx-points span { font-size: .95rem; line-height: 1.5; color: var(--muted); }
.band .fx-points li { border-left-color: var(--acc-hi); }
.band .fx-points span { color: var(--on-navy-muted); }
@media (max-width: 600px) { .fx-points { grid-template-columns: 1fr; } }

/* ---------- Photo cards ---------- */
.fx-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fx-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-card { background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; min-width: 0; position: relative; }
.fx-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.fx-card .body { padding: 14px 16px 18px; display: grid; gap: 6px; align-content: start; }
.fx-card .tag { font-family: var(--ui); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin: 0; }
.fx-card h3 { font-size: 1.2rem; line-height: 1.2; }
.fx-card p { font-size: .95rem; line-height: 1.5; color: var(--muted); margin: 0; }
.fx-card.is-best { border: 2px solid var(--acc); }
.fx-card.is-best::before { content: "The approach you learn"; position: absolute; top: 10px; left: 10px; z-index: 1; font-family: var(--ui); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--acc); padding: 5px 9px; }
:root[data-theme="dark"] .fx-card.is-best::before { color: var(--navy); }
.fx-card.dim img { filter: saturate(.55); }
@media (max-width: 1000px) { .fx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .fx-cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fx-cards, .fx-cards.three { grid-template-columns: 1fr; } }

/* ---------- Full-width photo statement ---------- */
.fx-banner { position: relative; isolation: isolate; color: var(--on-navy); background: var(--navy); overflow: hidden; }
.fx-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.fx-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 24, 48, .95) 0%, rgba(11, 24, 48, .8) 50%, rgba(11, 24, 48, .3) 100%); }
.fx-banner .wrap { min-height: clamp(300px, 34vw, 430px); display: grid; align-content: center; gap: 14px; padding-block: 44px; }
.fx-banner h2 { max-width: 20ch; color: var(--on-navy); }
.fx-banner p { max-width: 50ch; color: rgba(244, 246, 250, .86); font-size: clamp(1.04rem, 1.4vw, 1.18rem); margin: 0; }
.fx-banner .btn { justify-self: start; }
@media (max-width: 760px) { .fx-banner::after { background: rgba(11, 24, 48, .86); } }

/* ---------- Flow diagram (cause and effect chains, numbered phases) ---------- */
.fx-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 12px; counter-reset: flow; }
.fx-flow li { counter-increment: flow; position: relative; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--acc); padding: 14px 14px 16px; display: grid; gap: 4px; align-content: start; }
.fx-flow li::before { content: counter(flow); font-family: var(--ui); font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--acc); }
.fx-flow li:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 26px; width: 8px; height: 8px; border-top: 2px solid var(--acc); border-right: 2px solid var(--acc); transform: rotate(45deg); z-index: 1; }
.fx-flow b { font-family: var(--display); font-weight: 500; font-size: 1.15rem; line-height: 1.2; }
.fx-flow span { font-size: .9rem; line-height: 1.45; color: var(--muted); }
.fx-flow.plain li::before { content: none; }
.band .fx-flow li { background: var(--navy-2); border-color: var(--navy-line); border-top-color: var(--acc-hi); }
.band .fx-flow li::before, .band .fx-flow li:not(:last-child)::after { color: var(--acc-hi); border-color: var(--acc-hi); }
.band .fx-flow span { color: var(--on-navy-muted); }
@media (max-width: 900px) {
  .fx-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-flow li::after { display: none; }
}
@media (max-width: 520px) { .fx-flow { grid-template-columns: 1fr; } }

/* Two outcomes side by side (same event, two thoughts) */
.fx-versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.fx-versus > div { border: 1px solid var(--line); background: var(--surface); padding: 16px 18px; display: grid; gap: 8px; }
.fx-versus .lbl { font-family: var(--ui); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fx-versus .good { border-color: var(--acc); }
.fx-versus .good .lbl { color: var(--acc); }
.fx-versus ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: .95rem; }
@media (max-width: 700px) { .fx-versus { grid-template-columns: 1fr; } }

/* Big letters for the three things lenders check */
.fx-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fx-trio > div { border-top: 3px solid var(--acc); background: var(--surface); padding: 16px 18px 18px; display: grid; gap: 6px; }
.fx-trio .big { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--acc); }
.fx-trio h3 { font-size: 1.2rem; }
.fx-trio p { font-size: .95rem; color: var(--muted); margin: 0; }
@media (max-width: 760px) { .fx-trio { grid-template-columns: 1fr; } }

/* Video on the workshop pages */
.fx .video-facade { box-shadow: 0 18px 44px rgba(0, 0, 0, .4); }
.fx .video-facade .play span { background: var(--acc); }

/* Testimonials with a photo of the outcome */
.fx-story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); }
.fx-story img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }
.fx-story .body { padding: clamp(20px, 3vw, 34px); display: grid; gap: 10px; align-content: center; }
.fx-story h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.2; }
.fx-story .tag { font-family: var(--ui); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin: 0; }
@media (max-width: 760px) { .fx-story { grid-template-columns: 1fr; } .fx-story img { min-height: 0; aspect-ratio: 16 / 9; } }

/* Price block beside its picture */
.fx .pricing.one { max-width: none; }
.fx-enroll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.fx-enroll .fx-media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.fx-enroll .price-card { border-color: var(--acc); }
.fx-enroll .guarantee { border-left: 3px solid var(--acc); padding: 4px 0 4px 14px; font-size: .95rem; }
.fx-enroll .guarantee b { display: block; font-family: var(--ui); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
@media (max-width: 860px) { .fx-enroll { grid-template-columns: 1fr; } .fx-enroll .fx-media img { min-height: 0; aspect-ratio: 16 / 9; } }

/* Small trust row under the opt-in form */
.fx-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--ui); font-size: .84rem; color: var(--on-navy-muted); margin: 0; padding: 0; list-style: none; }
.fx-trust li::before { content: "\2713"; color: var(--acc-hi); margin-right: 6px; font-weight: 700; }
.fx-banner .fx-points li { border-left-color: var(--acc-hi); }
.fx-banner .fx-points b { color: var(--on-navy); font-size: 1.15rem; }
.fx-enroll .price-card { gap: 12px; }
.fx .stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .fx .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx .stats.four .stat { padding: 16px 12px 18px 0; grid-column: auto; border-left: 0; }
  .fx-card img { aspect-ratio: 16 / 9; }
}

/* Problem and solution photos at the top of the sign-up pages */
.fx .prog-pair + .fx-points { margin-top: 26px; }
.fx-points.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .fx-points.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fx-points.three { grid-template-columns: 1fr; } }
