/* Programme comparison: scoped to the pricing section. */
.course-fees {
  --fees-accent: #00f35b;
  --fees-ink: #082313;
  --fees-muted: #16452b;
  padding: 28px clamp(16px, 4vw, 74px) 24px;
  background: #101010;
  scroll-margin-top: 24px;
}
.course-fees__inner { max-width: 1280px; margin-inline: auto; }
.course-fees__heading { max-width: 750px; margin: 0 auto; text-align: center; }
.course-fees__eyebrow { margin: 0 0 6px; color: #85d6ad; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.course-fees__heading h2 { margin: 0; color: #e8f4ee; font-size: clamp(28px, 2.6vw, 36px); font-weight: 600; line-height: 1.2; letter-spacing: -.04em; text-wrap: balance; }
.course-fees__heading h2 em { color: var(--fees-accent); font-family: "Instrument Serif", Georgia, serif; font-size: 1.16em; font-weight: 400; }
.course-fees__heading > p:last-child { margin: 8px auto 0; max-width: 60ch; color: #acc7b8; font-size: 13px; line-height: 1.6; }
.course-fees__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 1fr); align-items: stretch; gap: 18px; margin-top: 86px; }
.fees-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 22px 22px 20px; border: 1px solid #00f35b; border-radius: 24px; color: var(--fees-ink); background: var(--fees-accent); color-scheme: light; }
.fees-card:not(.fees-card--ai) { transform: scale(.94); transform-origin: center; }
.fees-card__eyebrow { display: flex; align-items: center; min-height: 26px; margin: 0 0 10px; color: #16452b; font-size: 10px; font-weight: 600; line-height: 1.4; letter-spacing: .075em; text-transform: uppercase; }
.fees-card__batch { display: inline-flex; align-self: flex-start; align-items: center; gap: 9px; max-width: 100%; margin: 0 0 12px; padding-right: 10px; border: 1px solid #087d48; border-radius: 7px; background: #f2fff6; color: #193029; font-size: 11px; font-weight: 600; line-height: 1.5; }
.fees-card__batch-label { flex-shrink: 0; padding: 5px 9px; border-radius: 5px 0 0 5px; background: #087d48; color: #fff; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.fees-card h3 { margin: 0; font-size: clamp(20px, 1.8vw, 23px); font-weight: 600; line-height: 1.22; letter-spacing: -.035em; text-wrap: balance; }
.fees-card__duration { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; color: var(--fees-muted); font-size: 11px; font-weight: 500; }
.fees-card__duration svg { width: 16px; height: 16px; flex-shrink: 0; }
.fees-card__price { margin-block: 14px 0; padding-block: 12px; border-block: 1px solid #16452b45; }
.fees-card__regular { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; font-size: 10px; color: var(--fees-muted); }
.fees-card__regular del { font-size: 14px; text-decoration-color: currentColor; text-decoration-thickness: 1.5px; }
.fees-card__offer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin: 5px 0 0; }
.fees-card__offer strong { font-size: clamp(36px, 3vw, 42px); line-height: 1.15; letter-spacing: -.055em; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fees-card__offer > span:not(.fees-card__saving) { color: var(--fees-muted); font-size: 11px; }
.fees-card__saving { display: inline-block; flex-shrink: 0; margin: 0; padding: 5px 8px; border: 1px solid #082313; border-radius: 6px; background: #082313; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.4; white-space: nowrap; box-shadow: 0 2px 5px #08231324; }
.fees-card__benefit-title { margin: 15px 0 9px; font-size: 12px; font-weight: 600; }
.fees-card__benefits { display: grid; flex: 1; align-content: start; gap: 10px; list-style: none; padding: 0; margin: 0; }
.fees-card__benefits li { position: relative; padding-left: 21px; color: #16452b; font-size: 12px; line-height: 1.5; }
.fees-card__benefits li::before { content: "✓"; position: absolute; top: 1px; left: 0; color: #16452b; font-weight: 600; }
.fees-card__benefits small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.5; color: var(--fees-muted); }
.fees-card__benefits .fees-card__not-included { color: #16452b; }
.fees-card__benefits .fees-card__not-included::before { content: "–"; color: #16452b; }
.fees-card__cta { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; margin-top: 18px; padding: 10px 12px; border: 1px solid #082313; border-radius: 10px; color: #fff; background: #082313; font-size: 12px; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; transition: background .2s, border-color .2s, box-shadow .2s; }
.fees-card__cta:hover { background: #16452b; border-color: #16452b; }
.fees-card__cta:focus-visible { outline: 3px solid #082313; outline-offset: 4px; }
.fees-card--ai {
  --fees-ink: #193029;
  --fees-muted: #52685d;
  --fees-card-lift: -26px;
  --fees-card-scale-low: 1.01;
  --fees-card-scale-high: 1.035;
  z-index: 1;
  transform: translateY(var(--fees-card-lift)) scale(var(--fees-card-scale-low));
  transform-origin: center;
  border-color: #96d6ad;
  background: #fff;
  color: var(--fees-ink);
  box-shadow: 0 24px 58px -18px #0009, 0 0 30px -14px #00f35b70;
  animation: fees-card-breathe 6s ease-in-out infinite paused;
}
.fees-card__promotion { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 26px; margin: 0 0 10px; color: #365044; font-size: 10px; line-height: 1.4; }
.fees-card__discount { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 20px; background: #087d48; color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; }
.fees-card__discount svg { width: 14px; height: 14px; flex-shrink: 0; }
.fees-card--ai .fees-card__duration,
.fees-card--ai .fees-card__regular,
.fees-card--ai .fees-card__offer > span:not(.fees-card__saving),
.fees-card--ai .fees-card__benefits small { color: var(--fees-muted); }
.fees-card--ai .fees-card__price { border-color: #d7e5dd; }
.fees-card--ai .fees-card__offer strong { color: #087d48; }
.fees-card--ai .fees-card__saving { color: #082313; background: var(--fees-accent); border-color: #087d48; }
.fees-card--ai .fees-card__benefits li { color: #365044; }
.fees-card--ai .fees-card__benefits li::before { color: #087d48; }
.fees-card--ai .fees-card__benefit-title { color: #193029; }
.fees-card--ai .fees-card__cta { border-color: var(--fees-accent); background: var(--fees-accent); color: #082313; }
.fees-card--ai .fees-card__cta:hover { background: #63ff9c; box-shadow: 0 0 24px #00f35b28; }
.fees-card--ai .fees-card__cta:focus-visible { outline-color: #087d48; }
.fees-card__trace { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; border-radius: inherit; }
.fees-card__trace rect { x: 1px; y: 1px; width: calc(100% - 2px); height: calc(100% - 2px); fill: none; stroke: #00f35b; vector-effect: non-scaling-stroke; animation: fees-border-orbit 10s linear infinite paused; }
.fees-card__trace-trail { stroke-width: 3; stroke-dasharray: 18 82; opacity: .45; filter: drop-shadow(0 0 5px #00f35b); }
.fees-card__trace .fees-card__trace-head { stroke: #c0ffd7; stroke-width: 2; stroke-dasharray: 3 97; stroke-dashoffset: -15; filter: drop-shadow(0 0 4px #00f35b); animation-name: fees-border-head; }
.fees-robot-track { position: absolute; top: -43px; left: 22px; right: 22px; height: 42px; pointer-events: none; }
.fees-robot { position: absolute; left: 0; bottom: 0; width: 36px; height: 42px; animation: fees-robot-cross 12s linear infinite paused; }
.fees-robot svg { display: block; width: 36px; height: 42px; overflow: visible; filter: drop-shadow(0 2px 5px #00f35b40); }
.fees-robot__body { animation: fees-robot-bob .6s ease-in-out infinite alternate paused; }
.fees-robot__leg { transform-box: fill-box; transform-origin: 50% 0; animation: fees-robot-step .6s ease-in-out infinite alternate paused; }
.fees-robot__leg--back { animation-delay: -.6s; }
.course-fees.is-motion-active .fees-card--ai,
.course-fees.is-motion-active .fees-card__trace rect,
.course-fees.is-motion-active .fees-robot,
.course-fees.is-motion-active .fees-robot__body,
.course-fees.is-motion-active .fees-robot__leg { animation-play-state: running; }
.course-fees.is-motion-active .fees-card--ai:is(:hover, :focus-within) { animation-play-state: paused; }
.course-fees__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #2b4036; color: #acc7b8; font-size: 11px; line-height: 1.7; }
.course-fees__footer p { margin: 0; }
.course-fees__footer a { color: #85e9ab; text-underline-offset: 4px; }
.course-fees__footer a:focus-visible { outline: 2px solid #85e9ab; outline-offset: 5px; border-radius: 2px; }
@keyframes fees-card-breathe {
  0%, 100% { transform: translateY(var(--fees-card-lift)) scale(var(--fees-card-scale-low)); }
  50% { transform: translateY(var(--fees-card-lift)) scale(var(--fees-card-scale-high)); }
}
@keyframes fees-border-orbit { to { stroke-dashoffset: -100; } }
@keyframes fees-border-head { to { stroke-dashoffset: -115; } }
@keyframes fees-robot-cross { 0% { left: 0; opacity: 1; } 90% { left: calc(100% - 36px); opacity: 1; } 98%, 100% { left: calc(100% - 36px); opacity: 0; } }
@keyframes fees-robot-bob { to { transform: translateY(-2px); } }
@keyframes fees-robot-step { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@media (max-width: 1100px) {
  .course-fees__grid { gap: 15px; }
  .fees-card { padding: 20px 18px; }
  .fees-card h3 { font-size: 21px; }
  .fees-card__offer strong { font-size: 36px; }
  .fees-card__benefits li { font-size: 12px; }
}
@media (max-width: 900px) {
  .course-fees { padding-top: 32px; }
  .course-fees__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 540px; margin: 28px auto 0; }
  .fees-card { padding: 24px; }
  .fees-card:not(.fees-card--ai) { transform: none; }
  .fees-card--ai { order: -1; --fees-card-lift: 0px; --fees-card-scale-low: 1; --fees-card-scale-high: 1.012; margin-top: 46px; }
  .fees-card h3 { font-size: 25px; }
  .fees-card__cta { min-height: 48px; }
  .fees-card__offer strong { font-size: 40px; }
  .fees-card__benefits li { font-size: 13px; }
  .course-fees__footer { max-width: 540px; margin-inline: auto; flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 400px) {
  .fees-card { padding: 24px 20px; }
  .fees-card h3 { font-size: 25px; }
  .fees-card__offer strong { font-size: 40px; }
  .fees-card__cta { font-size: 12px; }
}
/* Keep the complete comparison compact on laptop-height desktop viewports. */
@media (min-width: 901px) and (max-height: 780px) {
  .course-fees { padding-block: 16px; }
  .course-fees__heading h2 { font-size: 30px; }
  .course-fees__heading > p:last-child { margin-top: 6px; font-size: 12px; }
  .course-fees__grid { margin-top: 82px; }
  .fees-card { padding: 18px; }
  .fees-card h3 { font-size: 20px; }
  .fees-card__price { margin-top: 12px; padding-block: 10px; }
  .fees-card__offer strong { font-size: 38px; }
  .fees-card__benefit-title { margin-top: 12px; }
  .fees-card__benefits { gap: 8px; }
  .fees-card__cta { margin-top: 14px; }
  .course-fees__footer { margin-top: 10px; padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .course-fees .fees-card--ai,
  .course-fees .fees-card__trace rect,
  .course-fees .fees-robot,
  .course-fees .fees-robot__body,
  .course-fees .fees-robot__leg { animation: none; }
  .fees-card__cta { transition: none; }
}
