/* =============================================================
   PUBLIC PROGRAMME PAGES (/programmes)
   What a visitor sees before they buy. Separate from academy.css,
   which styles the signed-in student app.

   Mobile first: every media query below is min-width. No new
   palette, every colour comes from tokens.css.
   ============================================================= */

/* ── Hero ─────────────────────────────────────────────────────
   Dark navy, like the reference. Text tokens are flipped for the
   whole block, and `color` is set as well as the custom property:
   a child that declares no colour of its own inherits, and an
   inherited colour loses to any rule that matches the element.
   See docs/academy-ui.md, "Colour on dark surfaces".
   ------------------------------------------------------------- */
.prog-hero {
  --color-text-primary: #FFFFFF;
  --color-text-muted: rgba(255, 255, 255, 0.74);
  /* base.css styles every <p> with --color-text-medium and every
     heading with --color-text-dark. A tag rule beats inheritance, so
     flipping only the two tokens above left any paragraph without its
     own colour at #4b5563 on navy, which measured 2.19:1. Flip the
     whole set, not the ones that happened to be noticed. */
  --color-text-medium: rgba(255, 255, 255, 0.74);
  --color-text-dark: #FFFFFF;
  color: var(--color-text-primary);
  background: var(--gradient-surface, var(--color-navy-darker));
  padding: var(--space-10) 0;
}
.prog-hero__inner { display: grid; gap: var(--space-8); }

.prog-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: #93C5FD;
  margin-bottom: var(--space-3);
}
.prog-hero__title {
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}
.prog-hero__accent { color: #7FB0FF; }
.prog-hero__lead {
  color: var(--color-text-muted);
  font-size: max(1rem, var(--text-base));
  line-height: var(--leading-relaxed);
  max-width: 54ch;
  margin-bottom: var(--space-6);
}
.prog-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Outline button for a dark surface. .btn--outline is dark-on-light
   and disappears here. */
.prog-btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}
.prog-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.prog-btn-ghost:focus-visible { outline: 2px solid #93C5FD; outline-offset: 3px; }

.prog-hero__points {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.prog-hero__points li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
/* A shape, not a tick glyph: the label beside it carries the meaning,
   so the mark is decorative and hidden from assistive tech. */
.prog-hero__tick {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(127, 176, 255, 0.22);
  border: 1px solid rgba(127, 176, 255, 0.55);
}

@media (min-width: 900px) {
  .prog-hero { padding: var(--space-16) 0; }
  .prog-hero__inner { grid-template-columns: 1.4fr 1fr; align-items: center; }
}

/* ── The four cards ───────────────────────────────────────────── */
.prog-grid {
  display: grid;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 820px)  { .prog-grid { grid-template-columns: repeat(2, 1fr); } }

.prog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-electric);
  border-radius: var(--radius-xl);
  background: var(--color-bg-surface);
  transition: box-shadow var(--ease-base), transform var(--ease-base);
}
.prog-card:hover,
.prog-card:focus-within { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* The top rule is the only per-programme colour. It is paired with the
   programme's name and icon, never used alone to tell them apart. */
.prog-card--electric { border-top-color: var(--color-electric); }
.prog-card--green    { border-top-color: #10B981; }
.prog-card--violet   { border-top-color: #8B5CF6; }
.prog-card--amber    { border-top-color: #F59E0B; }

.prog-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.prog-card__icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  background: var(--color-electric-muted);
  position: relative;
}
/* Geometric marks rather than an icon font or a dozen SVGs: no extra
   request, nothing to go stale. Each is aria-hidden; the heading
   beside it is the label. */
.prog-card__icon::after {
  content: "";
  position: absolute;
  inset: 16px;
  background: var(--color-electric);
}
.prog-card__icon--analytics::after  { clip-path: polygon(0 100%,0 55%,30% 55%,30% 100%,35% 100%,35% 25%,65% 25%,65% 100%,70% 100%,70% 0,100% 0,100% 100%); }
.prog-card__icon--engineering::after{ border-radius: 50% / 22%; background: #10B981; }
.prog-card__icon--science::after    { border-radius: 50%; background: #8B5CF6; }
.prog-card__icon--automation::after { clip-path: polygon(55% 0,0 60%,45% 60%,45% 100%,100% 40%,55% 40%); background: #F59E0B; }
.prog-card--green  .prog-card__icon { background: rgba(16, 185, 129, 0.12); }
.prog-card--violet .prog-card__icon { background: rgba(139, 92, 246, 0.12); }
.prog-card--amber  .prog-card__icon { background: rgba(245, 158, 11, 0.12); }

.prog-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--color-text-dark);
}
.prog-card__duration {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.prog-card__headline {
  font-weight: var(--font-weight-semibold);
  color: var(--color-sky);
  margin-bottom: var(--space-3);
}
.prog-card__desc {
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.prog-card__sub {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.prog-card__areas {
  display: grid;
  gap: var(--space-2);
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  font-size: var(--text-sm);
}
@media (min-width: 480px) { .prog-card__areas { grid-template-columns: repeat(2, 1fr); } }
.prog-card__areas li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--color-text-dark);
}
.prog-card__areas li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--color-electric);
}
.prog-card--green  .prog-card__areas li::before { background: #10B981; }
.prog-card--violet .prog-card__areas li::before { background: #8B5CF6; }
.prog-card--amber  .prog-card__areas li::before { background: #F59E0B; }

.prog-card__facts {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.prog-card__price { margin: var(--space-4) 0 var(--space-5); }
.prog-card__from { font-size: var(--text-base); color: var(--color-text-dark); }
.prog-card__from strong { font-size: var(--text-lg); }
.prog-card__total { font-size: var(--text-sm); color: var(--color-text-muted); }

/* Pushed to the bottom so cards of different heights line their
   buttons up. */
.prog-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}
.prog-card__details {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-sky);
}
.prog-card__details:focus-visible { outline: 2px solid var(--color-electric); outline-offset: 2px; }

/* ── Flagship ─────────────────────────────────────────────────── */
.prog-flagship {
  --color-text-primary: #FFFFFF;
  --color-text-muted: rgba(255, 255, 255, 0.74);
  /* See the note on .prog-hero: base.css's p and heading rules read
     these two, and a tag rule beats an inherited colour. */
  --color-text-medium: rgba(255, 255, 255, 0.74);
  --color-text-dark: #FFFFFF;
  color: var(--color-text-primary);
  display: grid;
  gap: var(--space-8);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--gradient-surface, var(--color-navy-darker));
}
@media (min-width: 900px) { .prog-flagship { grid-template-columns: 1.5fr 1fr; } }

.prog-flagship__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(127, 176, 255, 0.18);
  color: #93C5FD;
  margin-bottom: var(--space-4);
}
.prog-flagship__title {
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: var(--leading-tight);
}
.prog-flagship__subtitle {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: #93C5FD;
  margin-bottom: var(--space-4);
}
.prog-flagship__headline {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
}
.prog-flagship__desc {
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}
.prog-flagship__benefits {
  display: grid;
  gap: var(--space-2);
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.prog-flagship__benefits li { position: relative; padding-left: var(--space-5); }
.prog-flagship__benefits li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: #7FB0FF;
}

.prog-flagship__sub {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.prog-journey {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
}
.prog-journey__step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}
.prog-journey__num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(127, 176, 255, 0.2);
  color: #93C5FD;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
}
.prog-journey__name { font-size: var(--text-sm); font-weight: var(--font-weight-semibold); }

.prog-flagship__price {
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.prog-flagship__amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
}
.prog-flagship__saving {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-2);
}

/* ── Enrolment notice ─────────────────────────────────────────── */
.prog-notice {
  padding: var(--space-6);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle, var(--color-bg-surface));
  text-align: center;
}
.prog-notice__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-dark);
  margin-bottom: var(--space-3);
}
.prog-notice__body {
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 56ch;
  margin: 0 auto var(--space-5);
}

/* ── Motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .prog-card { transition: none; }
  .prog-card:hover, .prog-card:focus-within { transform: none; }
}

/* =============================================================
   PROGRAMME DETAIL PAGES (/tracks/:slug)
   ============================================================= */

.prog-hero--detail { padding: var(--space-8) 0 var(--space-10); }

.pd-crumbs {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.pd-crumbs a { color: #93C5FD; text-decoration: underline; text-underline-offset: 2px; }
.pd-crumbs a:focus-visible { outline: 2px solid #93C5FD; outline-offset: 2px; }
.pd-crumbs span { margin: 0 var(--space-2); }

.pd-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  list-style: none;
  margin: var(--space-6) 0;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.pd-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #fff;
}

/* ── Two-column body sections ─────────────────────────────────── */
.pd-cols { display: grid; gap: var(--space-8); }
@media (min-width: 880px) { .pd-cols { grid-template-columns: 1fr 1fr; } }

.pd-plain {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-sky);
  margin-bottom: var(--space-4);
}
.pd-body {
  color: var(--color-text-medium);
  line-height: var(--leading-relaxed);
  max-width: 62ch;
}

.pd-list {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 560px) { .pd-list--two { grid-template-columns: repeat(2, 1fr); } }
.pd-list li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--color-text-medium);
  line-height: var(--leading-relaxed);
}
.pd-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--color-electric);
}

/* ── Levels and modules ───────────────────────────────────────── */
.pd-levels { display: grid; gap: var(--space-5); }

.pd-level {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
}
.pd-level__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-4);
}
.pd-level__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
}
.pd-level__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-dark);
}
.pd-level__meta { text-align: right; }
.pd-level__price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-dark);
}
.pd-level__counts { font-size: var(--text-xs); color: var(--color-text-muted); }
.pd-level__overview {
  color: var(--color-text-medium);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.pd-modules { border-top: 1px solid var(--color-border); padding-top: var(--space-4); }
.pd-modules__summary {
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-sky);
  padding: var(--space-2) 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.pd-modules__summary:focus-visible { outline: 2px solid var(--color-electric); outline-offset: 2px; }
.pd-modules__list {
  margin: var(--space-4) 0 0;
  padding-left: var(--space-6);
  display: grid;
  gap: var(--space-4);
}
.pd-module__title { font-weight: var(--font-weight-semibold); color: var(--color-text-dark); }
.pd-module__summary {
  font-size: var(--text-sm);
  color: var(--color-text-medium);
  line-height: var(--leading-relaxed);
  margin-top: 2px;
}
.pd-module__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* ── Price and enrolment ──────────────────────────────────────── */
.pd-enrol {
  display: grid;
  gap: var(--space-8);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-bg-surface);
}
@media (min-width: 880px) { .pd-enrol { grid-template-columns: 1.3fr 1fr; align-items: center; } }

.pd-enrol__from {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text-dark);
}
.pd-enrol__total {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.pd-enrol__action { display: grid; gap: var(--space-3); justify-items: start; }
@media (min-width: 880px) { .pd-enrol__action { justify-items: end; text-align: right; } }
.pd-enrol__notice {
  font-size: var(--text-sm);
  color: var(--color-text-medium);
  line-height: var(--leading-relaxed);
}

/* ── Flagship journey steps ───────────────────────────────────── */
.pf-steps {
  display: grid;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
@media (min-width: 820px) { .pf-steps { grid-template-columns: repeat(2, 1fr); } }

.pf-step {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-electric);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
}
.pf-step--green  { border-left-color: #10B981; }
.pf-step--violet { border-left-color: #8B5CF6; }
.pf-step--amber  { border-left-color: #F59E0B; }

.pf-step__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
}
.pf-step__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-dark);
  margin: 2px 0 var(--space-2);
}
.pf-step__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.pf-step__desc {
  color: var(--color-text-medium);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

/* ── Inline links in prose ────────────────────────────────────
   axe flagged these as link-in-text-block: inside a sentence they
   were told apart from the surrounding words by colour alone, which
   WCAG 1.4.1 does not allow. One of them also failed contrast,
   because --color-electric is tuned for buttons rather than for
   text on a light surface.

   --color-sky is the design system's blue for accent text on light,
   and an underline is what a link in a sentence should look like.
   Scoped to .prog-page so the shared .section-subtitle rule is not
   changed for every other page on the site. */
.prog-page .pd-body a,
.prog-page .adm-field__note a,
.prog-page .section-subtitle a,
.prog-page .prog-notice__body a {
  color: var(--color-sky);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prog-page .pd-body a:focus-visible,
.prog-page .adm-field__note a:focus-visible,
.prog-page .section-subtitle a:focus-visible,
.prog-page .prog-notice__body a:focus-visible {
  outline: 2px solid var(--color-electric);
  outline-offset: 2px;
}

/* ── Which one is right for you ───────────────────────────────── */
.prog-which {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
}
.prog-which__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 44px;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-electric);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  text-decoration: none;
  transition: border-color var(--ease-fast), background var(--ease-fast);
}
.prog-which__row:hover,
.prog-which__row:focus-visible { background: var(--color-bg-hover); }
.prog-which__row:focus-visible { outline: 2px solid var(--color-electric); outline-offset: 2px; }

/* Paired with the programme name in the same row, so the colour is
   reinforcement and never the only way to tell the rows apart. */
.prog-which__row--green  { border-left-color: #10B981; }
.prog-which__row--violet { border-left-color: #8B5CF6; }
.prog-which__row--amber  { border-left-color: #F59E0B; }
.prog-which__row--navy   { border-left-color: var(--color-navy-mid); }

.prog-which__if {
  color: var(--color-text-dark);
  font-size: max(1rem, var(--text-base));
  line-height: var(--leading-relaxed);
}
.prog-which__then { display: flex; align-items: center; gap: var(--space-2); }
.prog-which__name {
  font-weight: var(--font-weight-semibold);
  color: var(--color-sky);
}
.prog-which__go { color: var(--color-sky); }
.prog-which__note { max-width: 62ch; }

/* ── More than just a course ──────────────────────────────────── */
.prog-gain {
  display: grid;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px)  { .prog-gain { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .prog-gain { grid-template-columns: repeat(3, 1fr); } }

.prog-gain__item { padding-top: var(--space-4); border-top: 2px solid var(--color-electric); }
.prog-gain__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-dark);
  margin-bottom: var(--space-2);
}
.prog-gain__body {
  color: var(--color-text-medium);
  line-height: var(--leading-relaxed);
}

/* ── Register interest ────────────────────────────────────────── */
.pe-wrap { max-width: 44rem; }

.pe-notice {
  padding: var(--space-5);
  border-left: 3px solid var(--color-electric);
  border-radius: var(--radius-md);
  background: var(--color-electric-muted);
  margin-bottom: var(--space-6);
}
.pe-notice__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-dark);
  margin-bottom: var(--space-2);
}

.pe-form { display: block; }

.pe-choices {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: 0;
  border: 0;
}
.pe-choice {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
  cursor: pointer;
  line-height: var(--leading-relaxed);
}
.pe-choice:hover { background: var(--color-bg-hover); }
.pe-choice:focus-within { outline: 2px solid var(--color-electric); outline-offset: 2px; }
.pe-choice input { flex-shrink: 0; width: 18px; height: 18px; }

/* ── Confirmation ─────────────────────────────────────────────── */
.pe-thanks { max-width: 44rem; }
.pe-thanks__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--color-text-dark);
  margin-bottom: var(--space-4);
}
.pe-thanks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-6) 0 var(--space-4);
}

/* ── Paying by bank transfer ──────────────────────────────────── */
/* Same 44rem measure as .pe-wrap: this is a form to work through, not
   a page to scan, and a wide column makes a numbered sequence harder
   to follow. */
.pp-wrap { max-width: 44rem; }

/* The amount, given its own block because it is the one number on the
   page that must not be misread. */
.pp-amount {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
  margin-bottom: var(--space-6);
}
.pp-amount__label {
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-medium);
  margin-bottom: var(--space-1);
}
.pp-amount__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  color: var(--color-text-dark);
  /* Naira figures sit next to each other down the page; lining them up
     stops ₦50,000 and ₦100,000 reading as the same width. */
  font-variant-numeric: tabular-nums;
}
.pp-amount__note {
  font-size: var(--text-sm);
  color: var(--color-text-medium);
  margin-top: var(--space-2);
  line-height: var(--leading-relaxed);
}

/* The steps are genuinely a sequence: transfer, reference, proof, tell
   us. The numbers carry that order rather than decorating the list. */
.pp-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: pp-step;
}
.pp-step {
  counter-increment: pp-step;
  position: relative;
  padding: 0 0 var(--space-6) var(--space-8);
  border-left: 2px solid var(--color-border);
  margin-left: 13px;
}
.pp-step:last-child { border-left-color: transparent; padding-bottom: var(--space-4); }
.pp-step::before {
  content: counter(pp-step);
  position: absolute;
  left: -14px;
  top: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
}
.pp-step__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-dark);
  margin: 0 0 var(--space-2);
  padding-top: 2px;
}

/* Bank details as a definition list, since that is what they are. */
.pp-bank {
  margin: var(--space-3) 0 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.pp-bank__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
}
.pp-bank__row:last-child { border-bottom: 0; }
.pp-bank dt {
  flex: 0 0 9rem;
  font-size: var(--text-sm);
  color: var(--color-text-medium);
}
.pp-bank dd {
  flex: 1 1 10rem;
  margin: 0;
  font-weight: 600;
  color: var(--color-text-dark);
}
.pp-bank__number {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  font-size: var(--text-lg);
}

/* The reference. Large, spaced and monospaced, because it gets copied
   by eye into a banking app and a misread character makes the transfer
   impossible to match. */
.pp-ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-text-dark);
  background: var(--color-electric-muted);
  border: 1px dashed var(--color-electric);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-3) 0;
  display: inline-block;
  /* Long enough to overflow a 375px screen if it ran as one word. */
  word-break: break-all;
}
.pp-ref--inline {
  font-size: var(--text-lg);
  letter-spacing: 0.1em;
  padding: 2px var(--space-2);
  border-style: solid;
  margin: 0;
}
.pp-copy { margin-bottom: var(--space-2); }

/* The states that replace the form: already held, already confirmed,
   or declared and waiting. Bordered rather than filled, so they read
   as a status and not as another thing to fill in. */
.pp-state {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-left-width: 3px;
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
}
.pp-state--good    { border-left-color: var(--color-teal, var(--color-electric)); }
.pp-state--waiting { border-left-color: var(--color-cta); }
.pp-state__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  color: var(--color-text-dark);
  margin-bottom: var(--space-3);
}

/* The "this does not give you access" block. Last thing on the page
   and deliberately not styled as a warning: it is the plain truth
   about what just happened, not an error. */
.pp-notice {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-top: 2px solid var(--color-border);
}

/* ── Buy a level, on the track page ───────────────────────────── */
/* A row per level, because each one is bought on its own and a
   single "Enrol" button cannot say which. */
.pd-buy { list-style: none; margin: var(--space-3) 0; padding: 0; display: grid; gap: var(--space-2); }
.pd-buy__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
}
.pd-buy__what { flex: 1 1 10rem; color: var(--color-text-dark); line-height: var(--leading-relaxed); }
.pd-buy__price {
  font-weight: 700;
  color: var(--color-text-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
