/* ============================================================
   training.css — SportzLive Training Plans Page Styles
   Self-contained design tokens (the --tp-* custom properties
   below are the only variables this file depends on — nothing
   here reaches into styles.css for colour, spacing, shadow or
   radius values). That's deliberate: this stylesheet renders
   correctly on its own regardless of what else is loaded on
   the page.
   ============================================================ */

body {
  /* ── Colour ── */
  --tp-ink: #11131A;
  --tp-ink2: #3D4150;
  --tp-muted: #6B7280;
  --tp-muted2: #9CA3AF;
  --tp-border: #E6E8EC;
  --tp-border-strong: #D7DAE0;
  --tp-bg: #FAFAFA;
  --tp-bg2: #F1F2F5;
  --tp-white: #FFFFFF;

  --tp-primary: #0B1D4D;   /* SportzLive navy */
  --tp-primary2: #2952D9;
  --tp-accent: #FF2459;    /* SportzLive pink-red */
  --tp-accent-dark: #DB1346;
  --tp-teal: #0EA5B7;
  --tp-amber: #F59E0B;
  --tp-green: #16A34A;
  --tp-green-soft: #ECFDF3;

  /* ── Elevation ── */
  --tp-shadow-sm: 0 1px 3px rgba(17, 19, 26, 0.07);
  --tp-shadow-md: 0 10px 28px rgba(17, 19, 26, 0.10);
  --tp-shadow-lg: 0 26px 64px rgba(17, 19, 26, 0.18);
  --tp-shadow-card: 0 2px 10px rgba(17, 19, 26, 0.05);

  /* ── Shape ── */
  --tp-r-sm: 10px;
  --tp-r-md: 14px;
  --tp-r-lg: 20px;
  --tp-container: 1200px;

  /* ── Type ── */
  --tp-display: "Manrope", "Segoe UI", Arial, sans-serif;
  --tp-body: "Inter", "Segoe UI", Arial, sans-serif;

  /* ── Motion ── */
  --tp-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* ── Spacing scale ── */
  --tp-sp-1: 4px;
  --tp-sp-2: 8px;
  --tp-sp-3: 12px;
  --tp-sp-4: 16px;
  --tp-sp-5: 24px;
  --tp-sp-6: 32px;
  --tp-sp-7: 48px;
  --tp-sp-8: 64px;
  --tp-sp-9: 96px;
}

/* Sizing is declared here too so width:100% buttons and padded cards behave
   the same whether or not the shared stylesheet resets box-sizing. */
.training-hero, .training-hero *, .pick-s, .pick-s *, .plans-s, .plans-s *,
.included-s, .included-s *, .for-s, .for-s *, .training-cta-s, .training-cta-s * {
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════
   TRAINING HERO — full-bleed photo, scrim, overlaid content
══════════════════════════════════════════════════════════ */
.training-hero {
  position: relative;
  padding: 148px 56px 64px;
  background: var(--tp-primary);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-media-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 10, 26, 0.92) 0%, rgba(6, 10, 26, 0.55) 42%, rgba(6, 10, 26, 0.22) 68%, rgba(6, 10, 26, 0.38) 100%);
}
/* If the photo fails to load, the <img> removes itself and this class is
   added — the hero still reads as an intentional, branded banner. */
.training-hero.hero-no-media {
  background: radial-gradient(120% 140% at 15% 0%, #16306e 0%, var(--tp-primary) 55%, #070d24 100%);
}
.training-hero.hero-no-media .hero-media-scrim { background: none; }

.training-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--tp-container);
  margin: 0 auto;
  width: 100%;
}

.hero-pill {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  font-family: var(--tp-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 26px;
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tp-accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 36, 89, 0.25);
}

.training-hero h1 {
  font-family: var(--tp-display);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 22px;
  max-width: 15ch;
}
.training-hero h1 .hl { color: var(--tp-accent); }

.training-sub {
  font-family: var(--tp-body);
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
  margin-bottom: var(--tp-sp-6);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 0;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--tp-accent);
  color: #fff;
  font-family: var(--tp-body);
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 100px;
  padding: 16px 30px;
  box-shadow: 0 14px 30px rgba(255, 36, 89, 0.35);
  transition: transform 0.2s var(--tp-ease), box-shadow 0.2s var(--tp-ease), background 0.2s var(--tp-ease);
}
.hero-cta-btn span { transition: transform 0.2s var(--tp-ease); display: inline-block; }
.hero-cta-btn:hover {
  background: var(--tp-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 36, 89, 0.4);
}
.hero-cta-btn:hover span { transform: translateX(3px); }
.hero-cta-btn:active { transform: translateY(0) scale(0.98); }
.hero-cta-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.plan-nav {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
}
.plan-nav-btn {
  position: relative;
  font-family: var(--tp-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 100px;
  transition: color 0.2s var(--tp-ease), background 0.2s var(--tp-ease);
}
.plan-nav-btn:hover { color: #fff; }
.plan-nav-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.plan-nav-btn.active-plan {
  color: var(--tp-ink);
  background: #fff;
}

.training-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.training-hero-copy { min-width: 0; }

/* Week board — a real week from the 10K plan, bar height = effort */
.week-board {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--tp-r-lg);
  padding: 26px 26px 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.45);
  max-width: 480px;
  margin-left: auto;
  width: 100%;
}
.wb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.wb-title { font-family: var(--tp-display); font-size: 1rem; font-weight: 800; color: #fff; }
.wb-meta { font-family: var(--tp-body); font-size: 0.74rem; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.wb-days {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.wb-day { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.wb-bar {
  --eff: 0.5;
  width: 100%;
  height: 150px;
  border-radius: 8px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.92) calc(var(--eff) * 100%), rgba(255, 255, 255, 0.1) calc(var(--eff) * 100%));
  transform-origin: bottom;
  animation: bar-grow 0.9s var(--tp-ease) both;
}
.wb-day:nth-child(2) .wb-bar { animation-delay: 0.08s; }
.wb-day:nth-child(3) .wb-bar { animation-delay: 0.16s; }
.wb-day:nth-child(4) .wb-bar { animation-delay: 0.24s; }
.wb-day:nth-child(5) .wb-bar { animation-delay: 0.32s; }
.wb-day:nth-child(6) .wb-bar { animation-delay: 0.4s; }
.wb-day:nth-child(7) .wb-bar { animation-delay: 0.48s; }
@keyframes bar-grow { from { transform: scaleY(0.04); opacity: 0.4; } to { transform: scaleY(1); opacity: 1; } }
.wb-day.e-10 .wb-bar { --eff: 0.1; }
.wb-day.e-40 .wb-bar { --eff: 0.4; }
.wb-day.e-50 .wb-bar { --eff: 0.5; }
.wb-day.e-70 .wb-bar { --eff: 0.7; }
.wb-day.e-85 .wb-bar { --eff: 0.85; }
.wb-day.e-100 .wb-bar {
  --eff: 1;
  background: linear-gradient(to top, var(--tp-accent), #ff5c85);
  box-shadow: 0 10px 26px rgba(255, 36, 89, 0.4);
}
.wb-rest .wb-bar { background: linear-gradient(to top, rgba(255, 255, 255, 0.35) calc(var(--eff) * 100%), rgba(255, 255, 255, 0.08) calc(var(--eff) * 100%)); }
.wb-name { font-family: var(--tp-body); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.wb-type { font-family: var(--tp-display); font-size: 0.68rem; font-weight: 700; color: #fff; text-align: center; line-height: 1.25; }
.wb-long .wb-type, .wb-long .wb-name { color: #fff; }
.wb-rest .wb-type { color: rgba(255, 255, 255, 0.55); }
.wb-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--tp-body);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}
.wb-foot strong { color: #fff; font-weight: 700; text-align: right; }

/* Stat strip */
.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: var(--tp-sp-8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 14, 38, 0.45);
  backdrop-filter: blur(8px);
  border-radius: var(--tp-r-lg);
  overflow: hidden;
}
.hsr {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.hsr:last-child { border-right: none; }
.hsr-n {
  font-family: var(--tp-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.hsr-l {
  font-family: var(--tp-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.56);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════════════════════
   SECTION LABEL / TITLE — shared across sections
══════════════════════════════════════════════════════════ */
.sec-label {
  display: block;
  font-family: var(--tp-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tp-accent);
  margin-bottom: 14px;
}
.sec-t {
  font-family: var(--tp-display);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--tp-ink);
}
.sec-t em { color: var(--tp-accent); font-style: normal; }

/* ══════════════════════════════════════════════════════════
   CHOOSE YOUR DISTANCE
══════════════════════════════════════════════════════════ */
.pick-s {
  padding: var(--tp-sp-9) 56px var(--tp-sp-8);
  background: var(--tp-bg);
  border-bottom: 1px solid var(--tp-border);
  scroll-margin-top: 90px;
}
.pick-i { max-width: var(--tp-container); margin: 0 auto; }
.pick-head { margin-bottom: var(--tp-sp-7); }
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--tp-sp-4); }
.plan-pick {
  --plan-c: var(--tp-primary2);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--tp-sp-5);
  padding: var(--tp-sp-6) var(--tp-sp-5) var(--tp-sp-5);
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-top: 4px solid var(--plan-c);
  border-radius: var(--tp-r-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--tp-ease), box-shadow 0.25s var(--tp-ease);
}
.plan-pick:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow-lg); }
.plan-pick:focus-visible { outline: 2px solid var(--plan-c); outline-offset: 3px; }
.pk-top { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pk-dist {
  font-family: var(--tp-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--tp-ink);
}
.pk-tag { font-family: var(--tp-body); font-size: 0.76rem; font-weight: 700; color: #fff; background: var(--plan-c); padding: 4px 12px; border-radius: 100px; }
.pk-facts { margin: 0; display: flex; flex-direction: column; }
.pk-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--tp-border); }
.pk-facts dt { font-family: var(--tp-body); font-size: 0.78rem; color: var(--tp-muted); }
.pk-facts dd { margin: 0; font-family: var(--tp-display); font-size: 0.86rem; font-weight: 700; color: var(--tp-ink); text-align: right; }
.pk-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--tp-body); font-size: 0.88rem; font-weight: 700; color: var(--plan-c); }
.pk-go span { transition: transform 0.2s var(--tp-ease); }
/* amber fails contrast with white text / on white, so it gets dark text instead */
.plan-amber .pk-tag, .plan-amber .plan-tag { color: var(--tp-ink); }
.plan-amber .pk-go { color: #B45309; }
.plan-pick:hover .pk-go span { transform: translateX(4px); }

/* ══════════════════════════════════════════════════════════
   PLANS SECTION
══════════════════════════════════════════════════════════ */
.plans-s {
  padding: var(--tp-sp-5) 56px var(--tp-sp-5);
  background: var(--tp-white);
}
.plans-i {
  max-width: var(--tp-container);
  margin: 0 auto;
}

.plan-block {
  --plan-c: var(--tp-primary2);
  padding: var(--tp-sp-8) 0;
  border-bottom: 1px solid var(--tp-border);
  scroll-margin-top: 100px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--tp-ease), transform 0.6s var(--tp-ease);
}
.plan-block.visible { opacity: 1; transform: translateY(0); }
.plan-block { position: relative; }
.plan-block > * { position: relative; z-index: 1; }
/* Oversized outlined distance behind each plan — decorative only */
.plan-block::before {
  content: attr(data-dist);
  content: attr(data-dist) / "";
  position: absolute;
  right: 0;
  top: 18px;
  z-index: 0;
  font-family: var(--tp-display);
  font-size: clamp(6rem, 15vw, 13rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--plan-c) 24%, transparent);
  pointer-events: none;
  user-select: none;
}
.plan-block:last-child { border-bottom: none; }

.plan-blue   { --plan-c: var(--tp-primary2); }
.plan-accent { --plan-c: var(--tp-accent); }
.plan-teal   { --plan-c: var(--tp-teal); }
.plan-amber  { --plan-c: var(--tp-amber); }

/* Plan header row — index, distance, tag, rule */
.plan-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}
.plan-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--tp-bg2);
  font-family: var(--tp-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--plan-c);
}
.plan-head-text {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-shrink: 0;
}
.plan-dist {
  font-family: var(--tp-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--tp-ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.plan-tag {
  font-family: var(--tp-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--plan-c);
  padding: 4px 12px;
  border-radius: 100px;
}
.plan-head-rule {
  flex: 1;
  height: 1px;
  background: var(--tp-border);
}

.plan-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}

.plan-info .sec-t { margin-bottom: 18px; }

.plan-desc {
  font-family: var(--tp-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tp-ink2);
  max-width: 44ch;
  margin-bottom: var(--tp-sp-6);
}

.plan-meta-row {
  display: flex;
  gap: var(--tp-sp-6);
  margin-bottom: var(--tp-sp-5);
}
.pm {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pm-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--tp-r-sm);
  background: var(--tp-bg2);
  color: var(--plan-c);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pm-icon svg { width: 17px; height: 17px; }
.pm-val {
  display: block;
  font-family: var(--tp-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--tp-ink);
}
.pm-key {
  display: block;
  font-family: var(--tp-body);
  font-size: 0.68rem;
  color: var(--tp-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.focus-tag {
  font-family: var(--tp-body);
  font-size: 0.88rem;
  color: var(--tp-ink2);
  line-height: 1.65;
  padding: 18px 20px 18px 22px;
  border-left: 2px solid var(--plan-c);
}
.focus-tag strong {
  display: block;
  font-family: var(--tp-body);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plan-c);
  margin-bottom: 6px;
}

/* Includes card */
.includes-card {
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-r-lg);
  padding: var(--tp-sp-6);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--tp-ease), transform 0.6s var(--tp-ease), box-shadow 0.3s var(--tp-ease), border-color 0.3s var(--tp-ease);
}
.includes-card.visible { opacity: 1; transform: translateY(0); }
.includes-card:hover {
  border-color: transparent;
  box-shadow: var(--tp-shadow-lg);
}

.inc-title {
  font-family: var(--tp-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--tp-ink);
  margin-bottom: 18px;
}
.inc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--tp-sp-6);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: var(--tp-sp-6);
}
.inc-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--tp-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--tp-ink2);
}
.inc-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--plan-c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.inc-dot svg { width: 10px; height: 10px; }

.plan-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  background: var(--tp-ink);
  color: #fff;
  font-family: var(--tp-body);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 100px;
  padding: 15px 24px;
  transition: background 0.2s var(--tp-ease), transform 0.15s var(--tp-ease), box-shadow 0.2s var(--tp-ease);
  box-shadow: 0 1px 2px rgba(17, 19, 26, 0.08);
}
.plan-cta-btn:hover {
  background: var(--plan-c);
  transform: translateY(-1px);
  box-shadow: var(--tp-shadow-md);
}
.plan-cta-btn:active { transform: translateY(0) scale(0.98); }
.plan-cta-btn:focus-visible { outline: 2px solid var(--plan-c); outline-offset: 3px; }
.btn-arrow { transition: transform 0.2s var(--tp-ease); }
.plan-cta-btn:hover .btn-arrow { transform: translateX(3px); }

/* Week preview */
.week-preview { margin-top: var(--tp-sp-7); }
.wp-label {
  font-family: var(--tp-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tp-muted);
  margin-bottom: 14px;
}
.wp-label { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wp-key { margin-left: auto; font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--tp-muted2); font-size: 0.74rem; }
.wp-label span { color: var(--tp-muted2); font-weight: 500; text-transform: none; letter-spacing: 0; }

.week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.day-card {
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--tp-ease), transform 0.3s var(--tp-ease), border-color 0.2s var(--tp-ease);
}
.day-card.visible { opacity: 1; transform: translateY(0); }
/* Effort bar: height encodes relative intensity of the session */
.day-card { --eff: 0.5; align-items: stretch; }
.day-card::before {
  content: "";
  height: 64px;
  border-radius: 6px;
  margin-bottom: 4px;
  background: linear-gradient(to top, var(--plan-c) calc(var(--eff) * 100%), var(--tp-bg2) calc(var(--eff) * 100%));
}
.day-card.e-10 { --eff: 0.1; }
.day-card.e-30 { --eff: 0.3; }
.day-card.e-40 { --eff: 0.4; }
.day-card.e-50 { --eff: 0.5; }
.day-card.e-70 { --eff: 0.7; }
.day-card.e-75 { --eff: 0.75; }
.day-card.e-85 { --eff: 0.85; }
.day-card.e-100 { --eff: 1; }
.day-card.rest-card::before { background: linear-gradient(to top, var(--tp-border-strong) calc(var(--eff) * 100%), var(--tp-white) calc(var(--eff) * 100%)); }
.day-card.long-card::before { background: linear-gradient(to top, var(--plan-c) calc(var(--eff) * 100%), rgba(255, 255, 255, 0.12) calc(var(--eff) * 100%)); }
.day-card:not(.rest-card):not(.long-card):hover {
  border-color: var(--plan-c);
  transform: translateY(-2px);
}

.day-name {
  font-family: var(--tp-body);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--tp-muted2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.day-type {
  position: relative;
  font-family: var(--tp-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--tp-ink);
  padding-left: 13px;
}
.day-type[data-tip] { cursor: help; outline: none; }
.day-type[data-tip]:focus-visible {
  box-shadow: 0 0 0 2px var(--tp-white), 0 0 0 4px var(--tp-accent);
  border-radius: 3px;
}
.day-type::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tp-ink2);
}
.day-dur {
  font-family: var(--tp-body);
  font-size: 0.76rem;
  color: var(--tp-muted);
}

/* Day-type colour cues — one hue per plan, read as an effort gradient. */
.day-type.walk::before,
.day-type.cross::before {
  background: var(--plan-c);
  background: color-mix(in srgb, var(--plan-c) 42%, white);
}
.day-type.run::before {
  background: var(--plan-c);
  background: color-mix(in srgb, var(--plan-c) 68%, white);
}
.day-type.tempo::before,
.day-type.hill::before {
  background: var(--plan-c);
  background: color-mix(in srgb, var(--plan-c) 88%, black 2%);
}
.day-type.interval::before,
.day-type.long::before { background: var(--plan-c); }
.day-type.strength::before { background: var(--tp-ink2); }

.day-card.rest-card { background: var(--tp-bg2); border-color: transparent; }
.rest-card .day-type { color: var(--tp-muted); }
.rest-card .day-type::before { background: var(--tp-muted2); }

.day-card.long-card { background: var(--tp-ink); border-color: var(--tp-ink); }
.long-card .day-name { color: rgba(255, 255, 255, 0.55); }
.long-card .day-type { color: #fff; }
.long-card .day-type::before { background: var(--plan-c); }
.long-card .day-dur { color: rgba(255, 255, 255, 0.7); }
.long-card .day-type[data-tip] { box-shadow: none; }

/* Pure-CSS tooltip, driven by the data-tip attribute */
.day-type[data-tip] { border-bottom: 1px dotted var(--tp-border-strong); }
.day-type[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: max-content;
  max-width: 220px;
  background: var(--tp-ink);
  color: #fff;
  font-family: var(--tp-body);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
  padding: 9px 12px;
  border-radius: 8px;
  box-shadow: var(--tp-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s var(--tp-ease), transform 0.15s var(--tp-ease);
  pointer-events: none;
}
/* Right-hand days open their tooltip leftwards so it never pushes the page wider */
.day-card:nth-child(n+5) .day-type[data-tip]::after { left: auto; right: 0; }
.day-type[data-tip]:hover::after,
.day-type[data-tip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.long-card .day-type[data-tip] { border-bottom-color: rgba(255, 255, 255, 0.35); }

/* ══════════════════════════════════════════════════════════
   WHAT'S INCLUDED — spec-sheet grid
══════════════════════════════════════════════════════════ */
.included-s {
  padding: var(--tp-sp-9) 56px;
  background: var(--tp-bg);
  border-top: 1px solid var(--tp-border);
  border-bottom: 1px solid var(--tp-border);
}
.included-i {
  max-width: var(--tp-container);
  margin: 0 auto;
}
.inc-head { max-width: 560px; margin-bottom: var(--tp-sp-7); }
.inc-sub {
  font-family: var(--tp-body);
  font-size: 1rem;
  color: var(--tp-muted);
  line-height: 1.6;
  margin-top: 14px;
}

.inc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tp-sp-4);
}
.inc-item {
  position: relative;
  padding: var(--tp-sp-6) var(--tp-sp-5) var(--tp-sp-5);
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-r-md);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--tp-ease), transform 0.6s var(--tp-ease), box-shadow 0.25s var(--tp-ease), border-color 0.25s var(--tp-ease);
}
.inc-item.visible { opacity: 1; transform: translateY(0); }
.inc-item:hover {
  box-shadow: var(--tp-shadow-md);
  border-color: transparent;
}
.inc-item:hover .inc-item-icon { transform: translateY(-2px); background: var(--tp-accent); color: #fff; }

.inc-item-n {
  display: block;
  font-family: var(--tp-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tp-muted2);
  letter-spacing: 0.05em;
  margin-bottom: var(--tp-sp-4);
}
.inc-item-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--tp-r-sm);
  background: var(--tp-bg2);
  color: var(--tp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--tp-sp-4);
  transition: transform 0.25s var(--tp-ease), background 0.25s var(--tp-ease), color 0.25s var(--tp-ease);
}
.inc-item-icon svg { width: 20px; height: 20px; }
.inc-item h3 {
  font-family: var(--tp-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--tp-ink);
  margin-bottom: 8px;
}
.inc-item p {
  font-family: var(--tp-body);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--tp-muted);
}

/* ══════════════════════════════════════════════════════════
   WHO IS IT FOR
══════════════════════════════════════════════════════════ */
.for-s {
  padding: var(--tp-sp-9) 56px;
  background: var(--tp-white);
}
.for-i {
  max-width: var(--tp-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.for-text p {
  font-family: var(--tp-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--tp-ink2);
  max-width: 46ch;
  margin: 16px 0 var(--tp-sp-6);
}

.for-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}
.for-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--tp-body);
  font-size: 0.98rem;
  color: var(--tp-ink2);
  padding: 13px 0;
  border-bottom: 1px solid var(--tp-border);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s var(--tp-ease), transform 0.5s var(--tp-ease);
}
.for-list li.visible { opacity: 1; transform: translateX(0); }
.for-list li:last-child { border-bottom: none; }

.for-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tp-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.for-check svg { width: 11px; height: 11px; }

/* Progress card */
.progress-card {
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-r-lg);
  padding: var(--tp-sp-6);
  box-shadow: var(--tp-shadow-card);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--tp-ease), transform 0.6s var(--tp-ease), box-shadow 0.3s var(--tp-ease);
}
.progress-card.visible { opacity: 1; transform: translateY(0); }
.progress-card:hover { box-shadow: var(--tp-shadow-lg); }

.pc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.pc-label {
  font-family: var(--tp-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--tp-ink);
}
.pc-week {
  font-family: var(--tp-body);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--tp-muted);
  background: var(--tp-bg2);
  padding: 4px 10px;
  border-radius: 100px;
}

.pc-arc-wrap { display: flex; justify-content: center; margin-bottom: 18px; }
.pc-arc { width: 100%; max-width: 280px; }
.pc-arc-pct { font-family: var(--tp-display); fill: var(--tp-ink); }
.pc-arc-lbl { font-family: var(--tp-body); fill: var(--tp-muted); letter-spacing: 0.08em; }
.arc-progress { transition: stroke-dashoffset 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.pc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--tp-border);
  border-bottom: 1px solid var(--tp-border);
  padding: 18px 0;
  margin-bottom: 18px;
}
.pcs { display: flex; flex-direction: column; gap: 3px; text-align: center; }
.pcs-n {
  font-family: var(--tp-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tp-ink);
  font-variant-numeric: tabular-nums;
}
.pcs-l {
  font-family: var(--tp-body);
  font-size: 0.68rem;
  color: var(--tp-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pc-today {
  background: var(--tp-bg2);
  border-radius: 10px;
  padding: 4px 16px;
  margin-bottom: 18px;
}
.pc-today-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
}
.pc-today-row + .pc-today-row { border-top: 1px solid var(--tp-border-strong); }
.pc-today-label {
  font-family: var(--tp-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tp-muted);
  flex-shrink: 0;
}
.pc-today-val {
  font-family: var(--tp-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--tp-ink);
  text-align: right;
}

.milestones { position: relative; display: flex; flex-direction: column; gap: 0; }
.ms {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--tp-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tp-muted2);
  padding: 9px 0 9px 4px;
}
.milestones::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 18px;
  bottom: 18px;
  width: 1.5px;
  background: var(--tp-border);
}
.milestones::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 18px;
  width: 1.5px;
  height: calc((100% - 36px) * 0.667);
  background: var(--tp-green);
}
.ms svg { width: 15px; height: 15px; flex-shrink: 0; position: relative; z-index: 1; background: var(--tp-white); border-radius: 50%; }
.ms span { margin-left: auto; font-weight: 500; color: var(--tp-muted2); font-variant-numeric: tabular-nums; }
.ms.done { color: var(--tp-ink2); }
.ms.done svg { color: var(--tp-green); }
.ms.active-ms { color: var(--tp-ink); font-weight: 700; }
.ms.active-ms svg { color: var(--tp-accent); }
.ms.active-ms span { color: var(--tp-accent); font-weight: 700; }

/* ══════════════════════════════════════════════════════════
   CTA BANNER — asymmetric split
══════════════════════════════════════════════════════════ */
.training-cta-s {
  padding: var(--tp-sp-9) 56px;
  background: var(--tp-ink);
}
.training-cta-i {
  max-width: var(--tp-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 56px;
  align-items: center;
}
.cta-left {
  padding-right: 56px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.cta-medal {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: var(--tp-accent);
}
.cta-medal svg { width: 100%; height: 100%; }
.training-cta-i h2 {
  font-family: var(--tp-display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #fff;
}
.cta-right { min-width: 0; }
.training-cta-i p {
  font-family: var(--tp-body);
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  max-width: 40ch;
  margin-bottom: var(--tp-sp-5);
}
.cta-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-white,
.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tp-body);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 100px;
  padding: 14px 26px;
  transition: filter 0.2s var(--tp-ease), background 0.2s var(--tp-ease), transform 0.15s var(--tp-ease), box-shadow 0.2s var(--tp-ease);
}
.btn-white { background: #fff; color: var(--tp-ink); }
.btn-white span { transition: transform 0.2s var(--tp-ease); display: inline-block; }
.btn-white:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); transform: translateY(-1px); }
.btn-white:hover span { transform: translateX(3px); }
.btn-white:active { transform: translateY(0) scale(0.98); }
.btn-ghost-white { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.btn-ghost-white:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost-white:active { transform: scale(0.98); }

/* ══ RESPONSIVE ══ */
@media (max-width: 1200px) {
  .training-hero, .pick-s, .plans-s, .included-s, .for-s, .training-cta-s {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (max-width: 1024px) {
  .training-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .week-board { margin-left: 0; max-width: 520px; }
  .pick-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; gap: 36px; }
  .for-i { grid-template-columns: 1fr; gap: 48px; }
  .inc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .training-hero, .pick-s, .plans-s, .included-s, .for-s, .training-cta-s {
    padding-left: 20px;
    padding-right: 20px;
  }
  .training-hero { padding-top: 112px; padding-bottom: 40px; }
  .pick-s { padding-top: 64px; padding-bottom: 48px; }
  .wb-bar { height: 110px; }
  .plan-block::before { top: 8px; opacity: 0.8; }
  .training-hero h1 { font-size: 2.4rem; max-width: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-stat-row { grid-template-columns: repeat(2, 1fr); margin-top: var(--tp-sp-7); }
  .hsr { padding: 18px 20px; }
  .hsr:nth-child(2) { border-right: none; }
  .hsr:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .pick-grid { grid-template-columns: 1fr; }
  .plan-block { padding: 56px 0; }
  .plan-head { flex-wrap: wrap; row-gap: 10px; margin-bottom: 32px; }
  .plan-head-rule { display: none; }
  .week-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .inc-grid { grid-template-columns: 1fr; }
  .day-type[data-tip]::after { display: none; }
  .cta-btns { flex-direction: column; }
  .btn-white, .btn-ghost-white { justify-content: center; }
  .training-cta-s { padding-top: 64px; padding-bottom: 64px; }
  .included-s, .for-s { padding-top: 64px; padding-bottom: 64px; }
  .training-cta-i { grid-template-columns: 1fr; gap: 28px; }
  .cta-left {
    padding-right: 0;
    padding-bottom: 28px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
}
@media (max-width: 600px) {
  /* Seven narrow columns can't fit session names; keep them for screen readers only */
  .wb-type { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wb-bar { height: 120px; }
}
@media (max-width: 480px) {
  .training-hero h1 { font-size: 2rem; }
  .plan-dist { font-size: 1.6rem; }
  .week-row { grid-template-columns: 1fr 1fr; }
  .plan-meta-row { flex-wrap: wrap; row-gap: 14px; }
  .hero-cta-btn { width: 100%; justify-content: center; }
  .plan-nav { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .wb-bar { animation: none !important; }
  .plan-block, .includes-card, .day-card, .inc-item, .for-list li, .progress-card, .arc-progress {
    transition: none !important;
  }
}