/* ==========================================================================
   Alex Espenshade — base.css
   Single source of truth for design tokens + components.
   Loaded by layout/theme.liquid AND the offline mockup in /preview.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   Colors refined for WCAG AA. Merchant-editable colors/fonts are also wired
   through Shopify color schemes + font pickers (see settings_schema.json) and
   override these defaults at runtime via inline custom properties.
   -------------------------------------------------------------------------- */
:root {
  /* ---- Brand core (cool, high-contrast, modern) ---- */
  --color-charcoal:        #17191F; /* cool near-black: text/headings */
  --color-charcoal-700:    #24272F;
  --color-charcoal-900:    #0E1013; /* darkest: footer / dramatic sections */

  --color-sage:            #2BA89C; /* teal decorative */
  --color-sage-600:        #2BA89C; /* bright teal — links/eyebrows on dark */
  --color-sage-100:        #14201E; /* dark teal tint */

  --color-cream:           #F6F5F3; /* warm-neutral off-white (not yellow) */
  --color-cream-200:       #ECEAE6;
  --color-white:           #FFFFFF;

  /* ---- Accents: hot ember + cool teal ---- */
  --color-terracotta:      #D9492E; /* bold ember/coral — primary CTA */
  --color-terracotta-600:  #C23E26; /* ember hover */
  --color-terracotta-100:  #2A1813; /* dark ember tint */

  --color-eucalyptus:      #2BA89C; /* bright teal decorative / on-dark */
  --color-eucalyptus-700:  #1F9486; /* teal — app-funnel accent + button bg */
  --color-eucalyptus-100:  #132422; /* dark teal tint */

  /* ---- Semantic surfaces & text ---- */
  --surface-page:   #101216; /* near-black page */
  --surface-alt:    #171A20; /* subtly lifted dark */
  --surface-card:   #1E222A; /* elevated dark card */
  --surface-sage:   #14181E;
  --surface-dark:   #0B0D11; /* darkest dramatic */

  --text-primary:        #ECEEF1;
  --text-secondary:      #AAB1BA;
  --text-muted:          #7E858E;
  --text-on-dark:        #ECEEF1;
  --text-on-dark-muted:  #AAB1BA;
  --text-link:           var(--color-sage-600);
  --text-link-hover:     var(--color-terracotta);

  --border-subtle:   #262B33;
  --border-default:  #343A44;
  --border-on-dark:  #262B33;

  /* ---- Two-funnel path accents (Global Training = flagship terracotta) ---- */
  --funnel-inperson:     var(--color-eucalyptus-700);
  --funnel-inperson-bg:  var(--color-eucalyptus-100);
  --funnel-app:          var(--color-terracotta);
  --funnel-app-bg:       var(--color-terracotta-100);

  /* ---- Focus / a11y ---- */
  --focus-ring:        #2A6FB0;
  --focus-ring-width:  3px;
  --focus-ring-offset: 2px;

  /* ---- Typography: condensed display + clean sans (athletic, edgy) ---- */
  --font-heading: 'Oswald', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-accent:  'Oswald', 'Inter', sans-serif;

  --fs-xs:    0.75rem;
  --fs-sm:    0.889rem;
  --fs-base:  1rem;
  --fs-body:  1.125rem;
  --fs-md:    1.25rem;
  --fs-lg:    1.563rem;
  --fs-xl:    1.953rem;
  --fs-2xl:   2.441rem;
  --fs-3xl:   3.052rem;
  --fs-4xl:   3.815rem;

  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  --lh-tight:    1.1;
  --lh-snug:     1.25;
  --lh-normal:   1.6;
  --lh-relaxed:  1.75;

  --ls-tight:  -0.02em;
  --ls-normal:  0;
  --ls-wide:    0.08em;

  /* ---- Spacing (4px base) ---- */
  --space-2xs:  0.25rem;
  --space-xs:   0.5rem;
  --space-sm:   0.75rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;
  --space-5xl:  8rem;

  --section-pad-y:        var(--space-4xl);
  --section-pad-y-mobile: var(--space-2xl);
  --content-gap:          var(--space-lg);

  /* ---- Radius: sharper / more editorial ---- */
  --radius-sm:    2px;
  --radius-md:    4px;
  --radius-lg:    6px;
  --radius-xl:    8px;
  --radius-pill:  999px;
  --radius-image: var(--radius-xl);

  /* ---- Shadows (soft, warm-tinted) ---- */
  --shadow-xs:    0 1px 2px rgba(14, 16, 19, 0.06);
  --shadow-sm:    0 2px 8px rgba(14, 16, 19, 0.08);
  --shadow-md:    0 6px 20px rgba(14, 16, 19, 0.10);
  --shadow-lg:    0 16px 40px rgba(14, 16, 19, 0.12);
  --shadow-focus: 0 0 0 var(--focus-ring-width) var(--focus-ring);

  /* ---- Layout ---- */
  --container-max:     1200px;
  --container-narrow:  720px;
  --container-wide:    1440px;
  --container-pad-x:   var(--space-lg);
  --container-pad-x-lg: var(--space-2xl);

  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--space-md); }
p { margin: 0 0 var(--space-md); }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--text-link); text-decoration-thickness: 1.5px; text-underline-offset: 0.15em; transition: color var(--transition-fast); }
a:hover { color: var(--text-link-hover); }
ul, ol { margin: 0 0 var(--space-md); padding-left: 1.25em; }
button { font-family: inherit; }
:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: var(--focus-ring-offset); }
:focus:not(:focus-visible) { outline: none; }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-normal);
}
h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); font-weight: var(--fw-bold); }
h2 { font-size: var(--fs-2xl); font-weight: var(--fw-bold); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-sage-600);
  margin-bottom: var(--space-sm);
}
.lead { font-size: var(--fs-md); color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
blockquote {
  margin: 0;
  font-family: var(--font-accent);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.page-width { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad-x); }
.page-width--narrow { max-width: var(--container-narrow); }
.page-width--wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-pad-y-mobile); }
.section--alt { background: var(--surface-alt); }
.section--sage { background: var(--surface-sage); }
.section--dark { background: var(--surface-dark); }
.section__header { max-width: var(--container-narrow); margin-bottom: var(--space-2xl); }
.section__header.text-center { margin-inline: auto; }

.grid { display: grid; gap: var(--space-lg); }
.stack > * + * { margin-top: var(--content-gap); }

@media (min-width: 768px) {
  .section { padding-block: var(--section-pad-y); }
  h1 { font-size: var(--fs-4xl); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.6rem;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-fast);
}
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--color-terracotta); color: #fff; }
.btn--primary:hover { background: var(--color-terracotta-600); color: #fff; }

.btn--secondary { background: transparent; color: var(--text-primary); border: 1.5px solid rgba(255, 255, 255, 0.28); }
.btn--secondary:hover { background: var(--text-primary); color: var(--color-charcoal-900); border-color: var(--text-primary); }

.btn--ghost { background: transparent; color: var(--text-link); padding-inline: 0; border: none; min-height: auto; }
.btn--ghost:hover { color: var(--text-link-hover); }
.btn--ghost .btn__arrow { transition: transform var(--transition-fast); }
.btn--ghost:hover .btn__arrow { transform: translateX(3px); }

.btn--on-dark { background: var(--color-eucalyptus); color: var(--color-charcoal-900); }
.btn--on-dark:hover { background: #fff; color: var(--color-charcoal-900); }

.btn--full { width: 100%; }

/* In-flight form submits. Mirrors .cal__nav:disabled; the :hover override stops
   the terracotta darkening while the button is inert. */
.btn:disabled { opacity: 0.55; cursor: default; }
.btn:disabled:active { transform: none; }
.btn--primary:disabled:hover { background: var(--color-terracotta); }

/* --------------------------------------------------------------------------
   6. Pills / badges
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}
.pill--cert { color: var(--color-sage-600); border-color: rgba(43, 168, 156, 0.4); }
.pill--featured { color: var(--color-terracotta); border-color: rgba(217, 73, 46, 0.45); background: rgba(217, 73, 46, 0.10); }
.pill-list { display: flex; flex-wrap: wrap; gap: var(--space-sm); list-style: none; padding: 0; margin: 0; }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-default); }
.card__media { aspect-ratio: 4 / 3; background: var(--surface-alt); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--space-lg); }
.card__title { font-size: var(--fs-lg); margin-bottom: var(--space-xs); }
.card__meta { color: var(--text-muted); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */
.field { margin-bottom: var(--space-lg); }
.field__label {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-2xs);
  color: var(--text-primary);
}
.field__input,
.field__textarea,
.field__select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--surface-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.field__input::placeholder,
.field__textarea::placeholder { color: var(--text-muted); }
.field__input:focus,
.field__textarea:focus,
.field__select:focus { outline: none; border-color: var(--color-sage-600); box-shadow: var(--shadow-focus); }
.field__textarea { min-height: 140px; resize: vertical; }
.field--error .field__input { border-color: var(--color-terracotta-600); }
/* --color-terracotta (4.55:1 on --surface-dark), not -600 (3.7:1, below AA).
   Matches .scheduler__error. */
.field__error { color: var(--color-terracotta); font-size: var(--fs-sm); margin-top: var(--space-2xs); }
.form__error { margin: 0 0 var(--space-md); color: var(--color-terracotta); font-size: var(--fs-sm); }
/* hCaptcha renders a fixed 303×78 iframe — reserve the space so the button
   doesn't jump when the widget loads. */
.field--captcha { margin-bottom: var(--space-lg); min-height: 78px; }
.form__success {
  background: var(--color-sage-100);
  color: var(--color-sage-600);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
}
.form__success:focus { outline: none; }
.form__success .icon { display: block; color: var(--color-eucalyptus); margin-bottom: var(--space-sm); }
.form__success h3 { font-size: var(--fs-lg); color: var(--color-sage-600); margin-bottom: var(--space-xs); }
.form__success p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   9. Media treatments
   -------------------------------------------------------------------------- */
.media--brand { border-radius: var(--radius-image); overflow: hidden; position: relative; }
.media--brand img { filter: saturate(0.95) contrast(1.02); width: 100%; }
.media--duotone::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(14,16,19,0.18), rgba(211,67,40,0.22));
  mix-blend-mode: multiply;
}
.media--scrim::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,16,19,0) 35%, rgba(14,16,19,0.55) 100%);
}
/* Placeholder slots — make it obvious an image needs replacing */
.media-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(45deg, var(--surface-alt), var(--surface-alt) 12px, var(--color-sage-100) 12px, var(--color-sage-100) 24px);
  border-radius: var(--radius-image);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  min-height: 220px;
  padding: var(--space-lg);
}
.media-placeholder span { background: rgba(255,255,255,0.85); padding: 6px 12px; border-radius: var(--radius-sm); }

/* --------------------------------------------------------------------------
   10. Header / nav
   -------------------------------------------------------------------------- */
.skip-to-content {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--color-charcoal); color: #fff; padding: var(--space-sm) var(--space-md);
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-to-content:focus { left: 0; color: #fff; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-charcoal-900);
  border-bottom: 1px solid var(--border-on-dark);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding-block: var(--space-md); }
.header__logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--space-2xs); white-space: nowrap; font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: var(--fs-base); line-height: 1; color: var(--text-on-dark); text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; }
.header__logo img { max-height: 40px; width: auto; flex-shrink: 0; }
.header__nav { display: none; }
.header__actions { display: flex; align-items: center; gap: var(--space-md); }
.header__menu-toggle { display: inline-flex; background: none; border: none; padding: var(--space-2xs); cursor: pointer; color: var(--text-on-dark); }
.nav-list { display: flex; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.nav-list a { font-family: var(--font-heading); font-weight: var(--fw-medium); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-sm); color: var(--text-on-dark); text-decoration: none; }
.nav-list a:hover { color: var(--color-terracotta); }
.cart-toggle { position: relative; background: none; border: none; cursor: pointer; color: var(--text-on-dark); display: inline-flex; }
.cart-count {
  position: absolute; top: -6px; right: -8px;
  background: var(--color-terracotta); color: #fff;
  font-family: var(--font-heading); font-size: 0.7rem; font-weight: var(--fw-bold);
  min-width: 18px; height: 18px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* Mobile menu (progressive — <details> works without JS) */
.mobile-menu { border: none; }
.mobile-menu[open] .mobile-menu__panel { display: block; }
.mobile-menu__panel {
  display: none; position: absolute; left: 0; right: 0;
  background: var(--color-charcoal-900); border-bottom: 1px solid var(--border-on-dark);
  padding: var(--space-lg) var(--container-pad-x);
}
.mobile-menu__panel .nav-list { flex-direction: column; gap: var(--space-md); }
.mobile-menu__panel .btn { margin-top: var(--space-md); }

/* Header CTA button is desktop-only; on mobile the action lives inside the menu panel
   (keeps the logo + hamburger from overflowing narrow screens). */
.header__actions > .btn { display: none; }

@media (min-width: 1024px) {
  .header__nav { display: block; }
  .header__menu-toggle { display: none; }
  .header__actions > .btn { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   11. Announcement bar
   -------------------------------------------------------------------------- */
.announcement { background: var(--color-charcoal); color: var(--text-on-dark); text-align: center; font-size: var(--fs-sm); }
.announcement__inner { padding-block: var(--space-xs); }
.announcement a { color: var(--color-eucalyptus); }

/* --------------------------------------------------------------------------
   12. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; display: flex; align-items: center; overflow: hidden; }
.hero--tall { min-height: 86vh; }
.hero--medium { min-height: 64vh; }
.hero--short { min-height: 48vh; }
.hero__media { position: absolute; inset: 0; }
.hero__media > * { height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media .media-placeholder { border-radius: 0; height: 100%; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(14,16,19,0.80) 0%, rgba(14,16,19,0.40) 55%, rgba(211,67,40,0.22) 100%); }
.hero__content { position: relative; z-index: 2; color: #fff; max-width: 640px; padding-block: var(--space-3xl); }
.hero__content .eyebrow { color: var(--color-eucalyptus); }
.hero__title { font-size: clamp(var(--fs-3xl), 6.5vw, var(--fs-4xl)); line-height: 0.98; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.01em; color: #fff; text-wrap: balance; }
.hero__subtitle { font-size: var(--fs-md); color: rgba(255,255,255,0.92); margin-bottom: var(--space-xl); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* --------------------------------------------------------------------------
   13. Two-funnel path cards
   -------------------------------------------------------------------------- */
.funnel-paths__grid { display: grid; gap: var(--space-lg); }
.path-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--accent, var(--color-eucalyptus));
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
}
.path-card--inperson { --accent: var(--funnel-inperson); }
.path-card--app { --accent: var(--funnel-app); }
.path-card__icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: var(--space-md); }
.path-card__eyebrow { color: var(--accent); }
.path-card__title { font-size: var(--fs-xl); }
.path-card__list { list-style: none; padding: 0; margin: var(--space-md) 0 var(--space-xl); }
.path-card__list li { display: flex; gap: var(--space-xs); align-items: flex-start; margin-bottom: var(--space-xs); color: var(--text-secondary); }
.path-card__list svg { color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.path-card .btn { width: 100%; margin-top: auto; }
.path-card--inperson .btn { background: var(--funnel-inperson); color: #fff; }
.path-card--inperson .btn:hover { background: var(--color-charcoal); }
.path-card--app .btn { background: var(--funnel-app); color: #fff; }
.path-card--app .btn:hover { background: var(--color-terracotta-600); }

@media (min-width: 768px) {
  .funnel-paths__grid { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   14. Method / steps
   -------------------------------------------------------------------------- */
.method__grid { display: grid; gap: var(--space-xl); }
.step__number { font-family: var(--font-accent); font-size: var(--fs-3xl); color: var(--color-sage); line-height: 1; }
.step__title { margin-top: var(--space-sm); }
.step__list { list-style: none; padding: 0; margin: var(--space-sm) 0 0; }
.step__list li { display: flex; gap: var(--space-xs); align-items: flex-start; margin-bottom: var(--space-xs); color: var(--text-secondary); font-size: var(--fs-sm); }
.step__list svg { color: var(--color-sage-600); flex-shrink: 0; margin-top: 4px; }
@media (min-width: 768px) {
  .method__grid--3 { grid-template-columns: repeat(3, 1fr); }
  .method__grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .method__grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   15. Stats / credentials
   -------------------------------------------------------------------------- */
.stat { text-align: center; }
.stat__value { font-family: var(--font-accent); font-size: var(--fs-3xl); color: var(--color-terracotta); line-height: 1; }
.stat__label { font-family: var(--font-heading); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   16. Full-bleed media split (image flush to page edge, full stripe height)
   -------------------------------------------------------------------------- */
.media-split { display: grid; }
.media-split__media { position: relative; min-height: 340px; background: var(--surface-alt); }
.media-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-split__content { padding: var(--space-3xl) var(--container-pad-x); }
.media-split__inner { max-width: 560px; margin-inline: auto; }
.media-split__inner > .btn { margin-top: var(--space-lg); }
.coach-anywhere-split .media-split__content { background: var(--surface-dark); }
@media (min-width: 768px) {
  .media-split { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .media-split--reverse .media-split__media { order: 2; }
  .media-split__media { min-height: 480px; }
  .media-split__content { padding: var(--space-5xl) clamp(var(--space-2xl), 5vw, var(--space-4xl)); display: flex; align-items: center; }
}

/* --------------------------------------------------------------------------
   17. Testimonials
   -------------------------------------------------------------------------- */
.testimonial {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  overflow: hidden;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -0.18em;
  left: 0.5rem;
  font-family: var(--font-accent);
  font-size: 7rem;
  line-height: 1;
  color: var(--color-terracotta);
  opacity: 0.22;
  pointer-events: none;
}
.testimonial__quote { position: relative; font-family: var(--font-body); font-style: normal; font-size: var(--fs-md); line-height: 1.5; color: var(--text-primary); }
.testimonial__author { display: flex; align-items: center; gap: var(--space-md); margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--border-subtle); }
.testimonial__avatar,
.testimonial__avatar-initial { width: 46px; height: 46px; border-radius: var(--radius-pill); flex-shrink: 0; }
.testimonial__avatar { object-fit: cover; }
.testimonial__avatar-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--color-terracotta); color: #fff; font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: var(--fs-md); }
.testimonial__name { display: block; font-family: var(--font-heading); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--fs-sm); color: var(--text-primary); }
.testimonial__role { display: block; color: var(--color-sage-600); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   18. Coach Anywhere callout + app badges
   -------------------------------------------------------------------------- */
.app-badges { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.app-badges a { display: inline-block; }
.app-badges img { height: 48px; width: auto; }

/* --------------------------------------------------------------------------
   19. Booking section
   -------------------------------------------------------------------------- */
.booking__intro { max-width: var(--container-narrow); margin-bottom: var(--space-xl); }
.booking__widget { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-xl); }
.booking__placeholder {
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  color: var(--text-muted);
}
.booking__note { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--space-md); }

/* --------------------------------------------------------------------------
   20. Product card / grid
   -------------------------------------------------------------------------- */
.product-grid { display: grid; gap: var(--space-lg); grid-template-columns: repeat(2, 1fr); }
.product-card__price { font-family: var(--font-heading); font-weight: var(--fw-semibold); color: var(--text-primary); }
.product-card__price del { color: var(--text-muted); font-weight: var(--fw-regular); margin-right: var(--space-2xs); }
.price--on-sale .price__regular { color: var(--text-muted); text-decoration: line-through; }
.price__sale { color: var(--color-terracotta); }
.badge-sold-out { color: var(--text-muted); }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   21. Product page
   -------------------------------------------------------------------------- */
.product { display: grid; gap: var(--space-2xl); }
.product__media img { border-radius: var(--radius-lg); width: 100%; }
.product__price { font-family: var(--font-heading); font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
.product__form { margin-top: var(--space-lg); }
.product__includes { margin-top: var(--space-xl); }
.quantity { display: inline-flex; align-items: center; border: 1.5px solid var(--border-default); border-radius: var(--radius-sm); }
.quantity input { width: 48px; text-align: center; border: none; padding: var(--space-xs); font-family: var(--font-body); }
.quantity button { background: none; border: none; padding: var(--space-xs) var(--space-sm); cursor: pointer; font-size: var(--fs-md); }
@media (min-width: 768px) { .product { grid-template-columns: 1fr 1fr; align-items: start; } }

/* --------------------------------------------------------------------------
   22. Cart drawer
   -------------------------------------------------------------------------- */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--surface-card); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform var(--transition-slow);
  z-index: 200; display: flex; flex-direction: column;
}
.cart-drawer[open], .cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-lg); border-bottom: 1px solid var(--border-subtle); }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: var(--space-lg); }
.cart-drawer__footer { padding: var(--space-lg); border-top: 1px solid var(--border-subtle); }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-md); margin-bottom: var(--space-lg); }
.cart-item__image img { border-radius: var(--radius-sm); }
.cart-overlay { position: fixed; inset: 0; background: rgba(14,16,19,0.4); opacity: 0; visibility: hidden; transition: opacity var(--transition-base); z-index: 150; }
.cart-overlay.is-open { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   23. Accordion / FAQ
   -------------------------------------------------------------------------- */
.accordion { border-bottom: 1px solid var(--border-subtle); }
.accordion__summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding: var(--space-lg) 0; cursor: pointer; list-style: none;
  font-family: var(--font-heading); font-weight: var(--fw-semibold); font-size: var(--fs-md);
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__icon { transition: transform var(--transition-fast); flex-shrink: 0; }
.accordion[open] .accordion__icon { transform: rotate(45deg); }
.accordion__content { padding-bottom: var(--space-lg); color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   24. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--surface-dark); color: var(--text-on-dark); }
.footer__inner { padding-block: var(--space-3xl); display: grid; gap: var(--space-2xl); }
.footer a { color: var(--text-on-dark-muted); text-decoration: none; }
.footer a:hover { color: var(--text-on-dark); }
.footer__col-title { font-family: var(--font-heading); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--text-on-dark); margin-bottom: var(--space-md); }
.footer__menu { list-style: none; padding: 0; margin: 0; }
.footer__menu li { margin-bottom: var(--space-xs); }
/* Footer links use the same type treatment as the header nav */
.footer__menu a { font-family: var(--font-heading); font-weight: var(--fw-medium); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-sm); }
.footer__social { display: flex; gap: var(--space-md); list-style: none; padding: 0; margin: 0; }
.footer__social a { color: var(--text-on-dark); }
.footer__bottom { border-top: 1px solid var(--border-on-dark); padding-block: var(--space-lg); display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: space-between; color: var(--text-on-dark-muted); font-size: var(--fs-sm); }
@media (min-width: 768px) { .footer__inner { grid-template-columns: 1.4fr repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   25. Article / blog
   -------------------------------------------------------------------------- */
.article__body { font-size: var(--fs-body); line-height: var(--lh-relaxed); }
.article__body h2, .article__body h3 { margin-top: var(--space-2xl); }
.article__meta { color: var(--text-muted); font-size: var(--fs-sm); display: flex; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-lg); }
.author-card { display: flex; gap: var(--space-md); align-items: center; background: var(--surface-alt); border-radius: var(--radius-lg); padding: var(--space-lg); margin-top: var(--space-2xl); }
.author-card__avatar { width: 64px; height: 64px; border-radius: var(--radius-pill); object-fit: cover; }

/* --------------------------------------------------------------------------
   26. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
[hidden] { display: none !important; }

/* Reveal-on-scroll (progressive — visible by default if JS/observer absent) */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--transition-slow), transform var(--transition-slow); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   27. Book-a-consultation scheduler (work-with-me)
   Two-column card: JS-rendered month calendar (left) + request form (right).
   Day cells are real <button type="button"> elements — selected day is solid
   terracotta, today gets a teal outline, past days are disabled. Service
   segmented control uses hidden radios + :checked labels (funnel accents).
   -------------------------------------------------------------------------- */

/* Global flat-form fix: kill native control chrome everywhere.
   Chevron is an inline SVG stroked in #AAB1BA (= --text-secondary; data URIs
   can't reference custom properties). color-scheme keeps the select's
   dropdown list dark in supporting browsers. */
.field__input,
.field__textarea,
.field__select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.field__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23AAB1BA' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px 16px;
  padding-right: 2.6rem;
  color-scheme: dark;
}
.field__select::-ms-expand { display: none; }

/* Card shell */
.scheduler {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 980px;
  margin-inline: auto;
  display: grid;
  gap: var(--space-xl);
}
.scheduler__cal { border-bottom: 1px solid var(--border-subtle); padding-bottom: var(--space-xl); min-width: 0; }
.scheduler__form { min-width: 0; }
.scheduler__intro { border-bottom: 1px solid var(--border-subtle); padding-bottom: var(--space-xl); min-width: 0; }
.scheduler__intro .scheduler__services { margin: 0 0 var(--space-lg); }
.scheduler__tier { min-width: 0; }
.scheduler__intro .field { margin: 0; }
@media (min-width: 900px) {
  .scheduler {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--space-2xl);
    padding: var(--space-2xl);
  }
  .scheduler__cal { border-bottom: 0; padding-bottom: 0; }
  .scheduler__form { border-left: 1px solid var(--border-subtle); padding-left: var(--space-2xl); }
  .scheduler__intro {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--space-2xl);
    align-items: end;
  }
  .scheduler__intro .scheduler__services { margin: 0; }
}

/* Calendar — no-JS fallback (replaced by the rendered grid) */
.cal__fallback {
  margin: 0;
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-md);
}

/* Calendar — header nav */
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.cal__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--text-primary);
}
.cal__nav {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--fs-md);
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.cal__nav:hover:not(:disabled) { color: var(--text-primary); border-color: var(--text-muted); }
.cal__nav:disabled { opacity: 0.35; cursor: default; }

/* Calendar — weekday row + day grid */
.cal__weekdays,
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-2xs);
}
.cal__weekdays { margin-bottom: var(--space-2xs); }
.cal__weekday {
  text-align: center;
  padding-block: var(--space-2xs);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--text-muted);
}
.cal__day {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.cal__day:hover:not(:disabled):not(.is-selected) { background: var(--surface-alt); border-color: var(--border-default); }
.cal__day:disabled { color: var(--text-muted); opacity: 0.45; cursor: default; }
.cal__day--today { border-color: var(--color-eucalyptus); }
.cal__day.is-selected {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: #fff;
  font-weight: var(--fw-semibold);
}
.cal__day.is-selected:hover { background: var(--color-terracotta-600); border-color: var(--color-terracotta-600); }

/* Service segmented control */
.scheduler__services { border: 0; padding: 0; margin: 0 0 var(--space-lg); min-inline-size: 0; }
.scheduler__services legend { padding: 0; }
.scheduler__seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-sm); }
.seg-option {
  display: block;
  cursor: pointer;
  background: var(--surface-alt);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.seg-option--inperson { --accent: var(--funnel-inperson); --accent-bg: var(--funnel-inperson-bg); }
.seg-option--anywhere { --accent: var(--funnel-app); --accent-bg: var(--funnel-app-bg); }
.seg-option:hover { border-color: var(--accent); }
.seg-option__name {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-md);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}
.seg-option__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-top: var(--space-2xs);
  color: var(--text-secondary);
  font-size: var(--fs-xs);
}
.seg-option__meta .icon { color: var(--accent); flex-shrink: 0; }
.scheduler__seg input:checked + .seg-option { border-color: var(--accent); background: var(--accent-bg); }
.scheduler__seg input:focus-visible + .seg-option {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

/* Time-of-day preference (below the calendar) */
.scheduler__times { border: 0; padding: 0; margin: var(--space-lg) 0 0; min-inline-size: 0; }
.scheduler__times legend { padding: 0; }
.scheduler__seg--times { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.seg-option--time { --accent: var(--color-terracotta); --accent-bg: var(--color-terracotta-100); text-align: center; }

/* Selected-date strip, errors, note */
.scheduler__date {
  margin: 0 0 var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--color-terracotta);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
.scheduler__date strong { color: var(--text-primary); font-weight: var(--fw-semibold); }
.scheduler__error { margin: 0 0 var(--space-md); color: var(--color-terracotta); font-size: var(--fs-sm); }
.scheduler__note { margin: var(--space-md) 0 0; color: var(--text-muted); font-size: var(--fs-sm); }

/* Success state (swapped in for the form fields on submit) */
.scheduler__success {
  background: var(--color-sage-100);
  border: 1px solid rgba(43, 168, 156, 0.4); /* matches .pill--cert border */
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}
.scheduler__success:focus { outline: none; }
.scheduler__success-icon { color: var(--color-eucalyptus); margin-bottom: var(--space-sm); }
.scheduler__success-title { font-size: var(--fs-lg); margin-bottom: var(--space-xs); }
.scheduler__success p { color: var(--text-secondary); margin-bottom: var(--space-xs); }
.scheduler__success .scheduler__success-detail { margin: var(--space-sm) 0 0; color: var(--color-sage-600); font-size: var(--fs-sm); font-weight: var(--fw-medium); }

/* In-page anchor targets clear the sticky header (taller since the stacked brand) */
#request, #send, #book, #pricing, #included, #system, #nutrition { scroll-margin-top: 120px; }

/* --------------------------------------------------------------------------
   28. AE System™ — trademark lockup + blueprint panel
   -------------------------------------------------------------------------- */
/* ™ span (not <sup>: the glyph is already superscript-shaped; UA sup styles
   double-raise it). Sized down and re-seated near cap height. */
.tm {
  font-size: 0.72em;
  line-height: 0;
  vertical-align: 0.5em;
  margin-left: 0.06em;
  letter-spacing: 0;
  font-weight: var(--fw-semibold);
  color: var(--color-terracotta);
}
.eyebrow .tm,
.system-panel__badge .tm { font-size: 0.85em; vertical-align: 0.35em; }

/* Spec-sheet panel (home #system). No overflow:hidden — the badge chip
   overhangs the top edge. */
.system-panel {
  position: relative;
  background: var(--surface-alt);
  border: 1px solid var(--border-default);
  border-top: 4px solid var(--color-terracotta);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
}
@media (min-width: 768px) {
  .system-panel { padding: var(--space-2xl); }
}
@media (min-width: 1024px) {
  .system-panel { padding: var(--space-2xl) var(--space-3xl); }
}
/* Title-block chip seated on the terracotta top rule, like a drawing stamp */
.system-panel__badge {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  background: var(--surface-page);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-md);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-terracotta);
}
/* Faint monogram watermark, fully inside the panel bounds */
.system-panel::after {
  content: "";
  position: absolute;
  right: var(--space-lg);
  bottom: var(--space-lg);
  width: min(300px, 40%);
  aspect-ratio: 394 / 261;
  background: url("/assets/logo-mark.svg") no-repeat center / contain;
  opacity: 0.05;
  pointer-events: none;
}
.system-panel__footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
}

/* Step dividers with terracotta arrowheads (panel + Global Training echo).
   Dividers are borders owned by the steps, so they cannot misalign; the
   arrowhead knockout uses --steps-bg to match the backdrop it sits on. */
.system-steps { gap: 0; --steps-bg: var(--surface-page); }
.system-panel .system-steps { --steps-bg: var(--surface-alt); }
.system-steps > .step { position: relative; }
/* Default = mobile stack: horizontal rules with DOWN arrowheads */
.system-steps > .step + .step {
  border-top: 1px solid var(--border-default);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
}
.system-steps > .step + .step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--steps-bg);
  border-top: 2px solid var(--color-terracotta);
  border-right: 2px solid var(--color-terracotta);
  transform: translate(-50%, -50%) rotate(135deg);
  pointer-events: none;
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  /* 2x2 grid: arrows only WITHIN rows (01→02, 03→04); the wrap-around
     02→03 arrow is suppressed so nothing points at the wrong step. */
  .system-steps > .step + .step { border-top: 0; margin-top: 0; padding-top: 0; }
  .system-steps > .step { padding-inline: var(--space-lg); }
  .system-steps > .step:nth-child(odd) { padding-left: 0; }
  .system-steps > .step:nth-child(even) { padding-right: 0; border-left: 1px solid var(--border-default); }
  .system-steps > .step:nth-child(n+3) {
    border-top: 1px solid var(--border-default);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
  }
  .system-steps > .step:nth-child(even)::before {
    top: 50%; left: 0;
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .system-steps > .step:nth-child(3)::before { content: none; }
}
@media (min-width: 1024px) {
  .system-steps > .step + .step {
    border-top: 0; margin-top: 0; padding-top: 0;
    border-left: 1px solid var(--border-default);
  }
  .system-steps > .step { padding-inline: var(--space-lg); }
  .system-steps > .step:first-child { padding-left: 0; }
  .system-steps > .step:last-child { padding-right: 0; }
  .system-steps > .step + .step::before {
    top: 50%; left: 0;
    transform: translate(-50%, -50%) rotate(45deg);
  }
}

/* --------------------------------------------------------------------------
   29. AE System™ — cyclical ring (additive; does not touch §14/§28)
   Ring = inline SVG themed entirely through CSS vars/currentColor.
   Layout: ring centerpiece, detailed .step cards in the existing
   .method__grid--4 cascade below. Flow = terracotta, numbers = teal.
   -------------------------------------------------------------------------- */
.system-cycle {
  --cycle-flow:    var(--color-terracotta);   /* arrows / loop-back */
  --cycle-node:    var(--color-sage-600);     /* 01–04 numbers */
  --cycle-surface: var(--surface-card);       /* node disc fill (reads on both panel + page) */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
}
.system-cycle--bare { --cycle-surface: var(--surface-card); }

/* --- the ring --- */
.cycle-ring { width: 100%; max-width: 460px; margin-inline: auto; }
.cycle-ring__svg { display: block; width: 100%; height: auto; }

.cycle-ring__guide { fill: none; stroke: var(--border-subtle); stroke-width: 1; }

.cycle-ring__flow {
  fill: none;
  stroke: var(--cycle-flow);
  stroke-width: 3;
  stroke-linecap: round;
}
.cycle-ring__loop      { stroke-dasharray: 7 6; }   /* loop-back reads as a feedback/return path */
.cycle-ring__arrowhead { fill: var(--cycle-flow); } /* explicit var dodges marker currentColor quirks */

.cycle-ring__loop-label {
  fill: var(--cycle-flow);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 11px;
  letter-spacing: 1.5px;
}

/* --- nodes --- */
.cycle-node__disc { fill: var(--cycle-surface); stroke: var(--border-default); stroke-width: 1.5; }
.cycle-node__num {
  fill: var(--cycle-node);
  font-family: var(--font-accent);
  font-weight: var(--fw-semibold);
  font-size: 23px;
}
.cycle-node__label {
  fill: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  font-size: 12.5px;
  letter-spacing: 1px;
}

/* --- center cadence label --- */
.cycle-center__kicker,
.cycle-center__unit {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 12.5px;
  letter-spacing: 1.5px;
}
.cycle-center__kicker { fill: var(--text-muted); }
.cycle-center__unit   { fill: var(--text-secondary); }
.cycle-center__value {
  fill: var(--color-terracotta);
  font-family: var(--font-accent);
  font-weight: var(--fw-bold);
  font-size: 46px;
}

/* --- detail cards below (reuse the tested .method__grid--4 cascade) --- */
.system-cycle__cards { width: 100%; }
.system-cycle__cards > .step {
  border-top: 1px solid var(--border-default);   /* spec-sheet header rule; teal number carries the ring tie */
  padding-top: var(--space-md);
}

/* --- responsive ring sizing --- */
@media (min-width: 768px)  { .cycle-ring { max-width: 420px; } }
@media (min-width: 1024px) { .cycle-ring { max-width: 460px; } }

/* MOBILE (<600px): smaller centered ring, cards stack (method__grid--4 is 1-col here) */
@media (max-width: 599.98px) { .cycle-ring { max-width: min(76vw, 300px); } }
/* declutter the tiniest screens: drop node names (the cards carry them); keep numbers */
@media (max-width: 380px)    { .cycle-node__label { display: none; } }
