:root {
  --bg-top: #f2f5fe;
  --bg-bottom: #f2f5fe;
  --ink: #18213a;
  --muted: #4f586c;
  --muted-soft: #7c8498;
  --accent: #2364f2;
  --accent-soft: #e9effd;
  --card-bg: rgba(24, 33, 58, 0.02);
  --card-border: rgba(24, 33, 58, 0.12);
}
* { box-sizing: border-box; }
html { font-size: 112.5%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(165deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.pagenav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(252, 253, 254, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--card-border);
}
.pagenav__brand {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.pagenav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.pagenav__links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.pagenav__links a:hover { color: var(--accent); }
.pagenav__links a.pagenav__cta {
  color: #fff;
  background: var(--accent);
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  transition: filter 0.15s ease;
}
.pagenav__links a.pagenav__cta:hover { color: #fff; filter: brightness(1.08); }
.hero {
  padding: 5rem 1.5rem 3.5rem;
}
.hero__inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}
@media (max-width: 720px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__person { justify-self: center; }
}
.kicker {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
  margin: 0 0 1.5rem;
}
h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}
.pain {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 1.75rem;
  max-width: 58ch;
}
.subhead {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 1.75rem;
  max-width: 42ch;
}

/* Big instructor portrait — the one human anchor for the hero, right-hand side */
.hero__person {
  flex: none;
  text-align: center;
}
.hero__person img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--card-border);
  margin: 0 0 1rem;
}
.hero__person__name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.hero__person__role {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  max-width: 220px;
  margin-inline: auto;
}
.measure {
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 2.5rem;
  max-width: 60ch;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}
.measure em { color: var(--muted); }
.measure .measure__after { color: var(--accent); font-weight: 600; }

/* At-a-glance facts (date / time / format) */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}
.facts li {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
}

.stages {
  padding: 5.5rem 1.5rem 3rem;
  border-top: 1px solid var(--card-border);
}
.stages__inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.stages__eyebrow {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
  margin: 0 0 1rem;
}
.phase-box {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--card-bg);
  padding: 1.7rem 1.9rem;
  margin: 0 0 1.5rem;
}
.phase-box:last-child { margin-bottom: 0; }
.phase-box__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 58ch;
}
.phase-box__list li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 0.85rem;
}
.phase-box__list li:last-child { margin-bottom: 0; }
.phase-box__list li strong {
  color: var(--ink);
  font-weight: 600;
}
.phase-heading {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
.lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 2.5rem;
  max-width: 60ch;
}
.lead strong { color: var(--ink); font-weight: 600; }
.accountabilities {
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--card-border);
}
.accountabilities__inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.accountabilities__eyebrow {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
  margin: 0 0 1rem;
}
.accountabilities__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.accountabilities__list li {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--muted);
  padding: 1.15rem 0;
  border-top: 1px solid var(--card-border);
  max-width: 62ch;
}
.accountabilities__list li:first-child { border-top: none; padding-top: 0; }
.accountabilities__list strong { color: var(--ink); font-weight: 600; }

/* Enrol / CTA */
.enrol {
  padding: 3.5rem 1.5rem 7rem;
  border-top: 1px solid var(--card-border);
}
.enrol__inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.enrol__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin: 0 0 1rem;
}
.enrol__price {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.enrol__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-soft);
}
.enrol__note {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 56ch;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); }

/* Catalog (academy home) */
.catalog {
  padding: 3.5rem 1.5rem 7rem;
  border-top: 1px solid var(--card-border);
}
.catalog__inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}
.catalog__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}
/* Three equal training tiles → collapse straight to one column (never orphan a card) */
@media (max-width: 720px) {
  .catalog__grid { grid-template-columns: 1fr; }
}
.card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--card-bg);
  padding: 1.7rem 1.9rem;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
/* Full-bleed training-box banner at the top of the tile: offsets the card padding so it
   sits flush to the edges, with only the top corners rounded to match the card. */
.card__media {
  display: block;
  width: calc(100% + 3.8rem);
  height: auto;
  margin: -1.7rem -1.9rem 1.3rem;
  border-bottom: 1px solid var(--card-border);
}
.card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.card__title {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6rem;
  text-decoration: none;
}
.card__title:hover { color: var(--accent); }
.card__subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin: -0.35rem 0 0.7rem;
}
.card__desc {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1rem;
}
/* Foot of the tile: date-forward schedule line + action, pushed down so they
   align across all three cards regardless of description length. */
.card__aside {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--card-border);
}
.card__meta {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.card__meta span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-soft);
}
.card__more {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.card__more:hover { text-decoration: underline; }
/* Stretch the "View details" link over the whole tile so clicking anywhere on the
   card (except the Enroll button, which sits above via z-index) opens the training page. */
.card__more::after {
  content: "";
  position: absolute;
  inset: 0;
}
/* Keep the direct enroll action clickable on top of the stretched card link. */
.card__aside .btn { position: relative; z-index: 1; }
/* Bundle tile has no "View details" link; this empty overlay makes the whole tile a
   click target to its enroll URL, sitting below the button (z-index 1) above. */
.card__stretch { position: absolute; inset: 0; z-index: 0; }
/* Reserves the same vertical space as the meta/link lines on the other tiles, without showing
   anything — keeps the enroll button aligned across tiles that don't have that content. */
.card__meta--hidden, .card__more--hidden { visibility: hidden; }
/* Direct enroll action on a catalog tile — full-width, sits above the secondary "View details" link */
.card__aside .btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  margin: 0 0 0.7rem;
}
/* Bundle callout (academy home) — third grid tile, both trainings at a discount.
   Emphasised as the recommended "Best value" pick: heavier accent border and a
   persistent shadow so it reads as the smart choice, not just a third training. */
.card--bundle {
  border-width: 2px;
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 10px 30px rgba(35, 100, 242, 0.14);
}
.card--bundle:hover { box-shadow: 0 14px 36px rgba(35, 100, 242, 0.2); }
/* "Best value" badge — sits over the top-right of the bundle banner; non-interactive
   so clicks fall through to the whole-tile enroll link beneath it. */
.card__badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  pointer-events: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(24, 33, 58, 0.25);
}
.bundle__price {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem;
  white-space: nowrap;
}
.bundle__price span {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

@media (max-width: 480px) {
  .pagenav { padding: 0.85rem 1.25rem; }
  .hero { padding: 4rem 1.25rem; }
  .stages { padding: 4rem 1.25rem 2.5rem; }
  .accountabilities { padding: 3rem 1.25rem; }
  .enrol { padding: 3rem 1.25rem 5rem; }
  .catalog { padding: 3rem 1.25rem 5rem; }
}

/* ============================================================
   Paid live-session layout — shared by the ATDD, pipeline, and
   clean-architecture session pages: facts + CTA high in a sticky
   ticket rail, an outcome triad, an optional run-of-show timeline,
   and a quiet instructor strip. Design research and attribution
   live in docs/academy-live-session-design-research.md.
   ============================================================ */

/* Masthead — hero split: headline + offer (price, facts, CTA) on the left, the product
   image on the right. Below the masthead, the body content runs in a single centred
   column. On mobile the three areas stack: headline, image, then the offer. */
.session {
  max-width: 1040px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}
.session__masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  grid-template-areas:
    "intro  media"
    "ticket media";
  column-gap: 3.5rem;
  row-gap: 2rem;
  align-items: start;
  margin: 0 0 4.5rem;
}
.masthead__intro { grid-area: intro; min-width: 0; }
.masthead__intro .pain { margin-bottom: 0; }
/* Product image — the visual anchor on the right, vertically centred against the
   headline-and-offer stack on the left. */
.masthead__media {
  grid-area: media;
  align-self: center;
  min-width: 0;
}
.masthead__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.session__body { max-width: 760px; margin: 0 auto; min-width: 0; }

/* Ticket — the offer block at the bottom of the masthead's left column (no card):
   the facts on one wrapping row, then the price beside the CTA below. */
.ticket {
  grid-area: ticket;
  align-self: start;
}
.ticket__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 0 0 1.3rem;
  padding: 0;
}
.ticket__facts li {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.ticket__buy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.ticket__price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.ticket__buy .btn { text-align: center; }

/* Problem — the pain spelled out as its own beat, before the pitch */
.problem { margin: 0; }
.problem__heading {
  font-size: 1.9rem; font-weight: 700; color: var(--ink);
  line-height: 1.2; margin: 0 0 1.25rem;
}
.problem__list { list-style: none; margin: 0; padding: 0; }
.problem__list li {
  font-size: 1.05rem; line-height: 1.55; color: var(--ink);
  margin: 0 0 0.65rem; padding-left: 1.3rem; position: relative;
}
.problem__list li::before {
  content: ""; position: absolute; left: 0; top: 0.6rem; width: 6px; height: 6px;
  border-radius: 50%; background: var(--ink);
}
.problem__list li:last-child { margin-bottom: 0; }

/* Solution — names the fix directly, so it lands before curriculum detail */
.solution { margin: 3rem 0 0; }
.solution__heading {
  font-size: 1.9rem; font-weight: 700; color: var(--ink);
  line-height: 1.2; margin: 0 0 1rem;
}
.solution__body {
  font-size: 1.05rem; line-height: 1.6; color: var(--ink);
  margin: 0 0 0.9rem; max-width: 68ch;
}
.solution__body:last-child { margin-bottom: 0; }
.solution__body strong { color: var(--ink); font-weight: 600; }

/* Outcome triad — "what you'll walk away with", trimmed to one grid */
.outcomes { margin: 4.5rem 0 0; }
.outcomes__eyebrow {
  font-size: 1.55rem; font-weight: 700; letter-spacing: normal;
  text-transform: none; color: var(--muted); margin: 0 0 1.1rem;
}
.outcomes__grid {
  display: grid; gap: 1.6rem;
  grid-template-columns: 1fr;
}
.outcome__head {
  display: flex; align-items: center; gap: 0.35rem;
  margin: 0 0 0.5rem;
}
.outcome__icon { color: var(--accent); flex-shrink: 0; width: 34px; height: 34px; }
.outcome h3 {
  font-size: 1.25rem; font-weight: 600; color: var(--ink);
  margin: 0; line-height: 1.3;
}
.outcome p { font-size: 0.94rem; line-height: 1.55; color: var(--ink); margin: 0; }

/* Curriculum — module breakdown (topics per module, used where a syllabus exists) */
.curriculum { margin: 4.5rem 0 0; }
.curriculum__eyebrow {
  font-size: 1.55rem; font-weight: 700; letter-spacing: normal;
  text-transform: none; color: var(--muted); margin: 0 0 1.25rem;
}
.curriculum__grid {
  display: grid; gap: 1.75rem;
  grid-template-columns: 1fr;
}
.module__title {
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
  margin: 0 0 0.75rem; line-height: 1.3;
}
.module__topics { list-style: none; margin: 0; padding: 0; }
.module__topics li {
  font-size: 0.92rem; line-height: 1.5; color: var(--ink);
  margin: 0 0 0.3rem; padding-left: 1.1rem; position: relative;
}
.module__topics li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent);
}
.module__topics li:last-child { margin-bottom: 0; }

/* Run-of-show timeline — session agenda (used where an agenda breakdown exists) */
.runofshow { margin: 4.5rem 0 0; }
.runofshow__eyebrow {
  font-size: 1.55rem; font-weight: 700; letter-spacing: normal;
  text-transform: none; color: var(--muted); margin: 0 0 1.25rem;
}
.timeline { list-style: none; margin: 0; padding: 0 0 0 0.4rem; }
.timeline li {
  padding: 0 0 1.4rem 1.4rem;
  position: relative;
}
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0.45rem; bottom: -0.2rem;
  width: 2px; background: var(--card-border);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: ""; position: absolute; left: -3px; top: 0.4rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg-top);
}
.timeline__body h3 {
  font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0 0 0.3rem; line-height: 1.3;
}
.timeline__body p { font-size: 0.92rem; line-height: 1.55; color: var(--muted); margin: 0; }

/* Session "how it works" prose block — used where there is no timed agenda */
.sessionhow { margin: 4.5rem 0 0; }
.sessionhow__eyebrow {
  font-size: 1.55rem; font-weight: 700; letter-spacing: normal;
  text-transform: none; color: var(--muted); margin: 0 0 1rem;
}
.sessionhow .lead { font-size: 1.02rem; line-height: 1.6; color: var(--ink); margin: 0 0 1.1rem; }
.sessionhow__list { list-style: none; margin: 0; padding: 0; }
.sessionhow__list li {
  font-size: 0.94rem; line-height: 1.55; color: var(--muted); margin: 0 0 0.7rem;
}
.sessionhow__list li:last-child { margin-bottom: 0; }
.sessionhow__list strong { color: var(--ink); font-weight: 600; }

/* Who-it's-for list inside the session body */
.audience { margin: 4.5rem 0 0; }
.audience__eyebrow {
  font-size: 1.55rem; font-weight: 700; letter-spacing: normal;
  text-transform: none; color: var(--muted); margin: 0 0 1rem;
}
.audience__intro { font-size: 1.02rem; line-height: 1.5; color: var(--ink); margin: 0 0 1rem; }
.audience__intro strong { font-weight: 600; }
.audience__list { list-style: none; margin: 0; padding: 0; }
.audience__list li {
  font-size: 0.94rem; line-height: 1.55; color: var(--ink); margin: 0 0 0.8rem; padding-left: 1.2rem; position: relative;
}
.audience__list li::before {
  content: ""; position: absolute; left: 0; top: 0.6rem; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}
.audience__list li:last-child { margin-bottom: 0; }
.audience__list strong { color: var(--ink); font-weight: 600; }

/* Instructor strip — authority up front, kept quiet (no avatar carousel) */
.instructor {
  display: flex; gap: 1.1rem; align-items: flex-start;
  margin: 3rem 0 0;
}
.instructor__avatar {
  flex: none; width: 128px; height: 128px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--card-border);
  display: grid; place-items: center; overflow: hidden;
  font-weight: 700; color: var(--accent); font-size: 1.1rem;
}
.instructor__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.instructor__body { min-width: 0; }
.instructor__name { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0 0 0.15rem; }
.instructor__role { font-size: 0.82rem; font-weight: 600; color: var(--muted); margin: 0 0 0.45rem; line-height: 1.4; }
.instructor__bio { font-size: 0.92rem; line-height: 1.55; color: var(--ink); margin: 0; }

/* Closing CTA — restates the payoff and repeats the primary action at the end of the page */
.closing {
  margin: 3rem 0 0;
  padding-top: 2.5rem;
  text-align: center;
}
.closing__line {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

@media (max-width: 860px) {
  .session__masthead {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "media"
      "ticket";
  }
  .ticket { max-width: none; }
}
