/* McGreen Running: apply, thanks, privacy and 404. The homepage's black, stone and one green, Barlow Condensed headings and Inter text. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed Fallback";
  src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Roboto Condensed Bold"), local("RobotoCondensed-Bold");
  font-weight: 700;
  size-adjust: 80%; ascent-override: 125%; descent-override: 25%; line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT"), local("Roboto"), local("Helvetica");
  size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%;
}

:root {
  --black: #151515;
  --white: #fff;
  --stone: #eeede9;
  --soft: rgba(255, 255, 255, .76);
  --rule: rgba(255, 255, 255, .22);
  --rule-ink: rgba(0, 0, 0, .16);
  --ink-soft: #3b3d3a;
  --field-line: #6b6d69;
  --error: #9b1c1c;
  --green: #86e0a6;
  --green-hi: #a6ecbf;

  --display: "Barlow Condensed", "Barlow Condensed Fallback", "DIN Condensed", sans-serif;
  --text: "Inter", "Inter Fallback", ui-sans-serif, system-ui, sans-serif;

  --max: 1680px;
  --g: max(20px, min(5vw, 80px), calc(env(safe-area-inset-left, 0px) + 12px), calc(env(safe-area-inset-right, 0px) + 12px));
  --wrap: min(100% - 2 * var(--g), var(--max));
  --nav-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--black); color: var(--white);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 15px 18px; background: var(--green); color: var(--black);
  font: 700 .875rem/1 var(--text); text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Shared bits, as on the homepage ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 700 .78125rem/1.2 var(--text); letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--green); flex: none; }
.display {
  font: 700 var(--fs, clamp(52px, 7vw, 120px))/.88 var(--display);
  text-transform: uppercase; letter-spacing: -.01em;
  margin-left: -.035em;
}
.accent { color: var(--green); }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.42; font-weight: 500; letter-spacing: -.01em; }

.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: var(--h); padding: 0 26px;
  font: 700 .8125rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  border: 0; border-radius: 0; cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease);
}
.btn--green { background: var(--green); color: var(--black); }
.btn--black { background: var(--black); color: var(--white); }
.btn--black .btn__arrow { color: var(--green); }
.btn--block { display: flex; width: 100%; }
.btn__arrow { flex: none; transition: transform .3s var(--ease); }
@media (hover: hover) {
  .btn--green:hover { background: var(--green-hi); }
  .btn--black:hover { background: #1b1c1b; }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}
.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px;
  font: 700 .78125rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: rgba(255, 255, 255, .45);
}
@media (hover: hover) { .link:hover { color: var(--green); text-decoration-color: var(--green); } }

/* ---------- Header: the homepage bar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: var(--black);
  box-shadow: 0 1px 0 var(--rule);
}
.nav__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__logo {
  display: inline-flex; align-items: center; flex: none;
  margin: 0; padding: 0; min-height: 0;
  line-height: 0; text-decoration: none;
}
.nav__logo img { display: block; height: 64px; width: auto; max-width: none; margin: 0; }
.nav__back {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 600 .75rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: rgba(255, 255, 255, .9); white-space: nowrap;
}
.nav__back svg { flex: none; }
@media (hover: hover) { .nav__back:hover { color: var(--green); } }
/* phones: the logo and "Back" share one row; the rest of the link text stays for screen readers */
@media (max-width: 479.98px) {
  .nav__more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 359.98px) {
  .nav__back { letter-spacing: .1em; gap: 6px; }
}

/* ---------- Apply ---------- */
.apply { padding: clamp(40px, 6vw, 96px) 0 clamp(56px, 7vw, 120px); }
.apply__grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "form" "next"; gap: 40px; }
.apply__intro { grid-area: intro; }
.apply__title { --fs: clamp(52px, 13.4vw, 76px); margin: 20px 0 22px; }
.apply__intro .lede { max-width: 30ch; }
.apply__coach {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--rule);
  color: var(--soft); font-size: .9375rem;
}
.apply__coach strong { font: 700 1.25rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--white); }
.apply__next { grid-area: next; }
.apply__next .eyebrow { margin-bottom: 4px; }

.steps { border-top: 1px solid var(--rule); margin-top: 14px; }
.step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 16px 0 14px; border-bottom: 1px solid var(--rule); }
.step__n { font: 700 1.625rem/1 var(--display); color: var(--soft); }
.step__t { font: 700 1.3125rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 3px 0 6px; }
.step p { color: var(--soft); font-size: .9375rem; max-width: 42ch; }

/* the form sits on stone, like the homepage's coaching section: black type, crisp fields, one black Apply */
.coaching-application {
  grid-area: form;
  background: var(--stone); color: var(--black);
  margin-inline: calc(var(--g) * -1);
  padding: 36px var(--g) 32px;
}
.coaching-application fieldset { border: 0; padding: 0; min-width: 0; }
/* on stone the focus ring is black, as in the homepage's light section (mint on stone is too faint) */
.coaching-application :focus-visible { outline-color: var(--black); }
.coaching-application > fieldset:first-of-type > legend {
  padding: 0; margin-bottom: 8px;
  font: 700 clamp(2rem, 3vw, 2.75rem)/.9 var(--display); text-transform: uppercase; letter-spacing: -.005em;
}
.form-guidance { color: var(--ink-soft); font-size: .9375rem; margin-bottom: 26px; max-width: 46ch; }
.form-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 20px; }
.form-field { margin-bottom: 22px; }
.form-field label { display: block; font-weight: 600; font-size: .9375rem; line-height: 1.35; margin-bottom: 8px; }
.form-field label span { color: var(--ink-soft); font-weight: 400; }
.field-help { color: var(--ink-soft); font-size: .875rem; line-height: 1.45; margin: -2px 0 9px; max-width: 60ch; }
.form-field input, .form-field textarea, .form-field select {
  display: block; width: 100%; min-width: 0; min-height: 56px;
  padding: 15px 16px;
  background: var(--white); color: var(--black);
  border: 1px solid var(--field-line); border-radius: 0;
  font: 400 1rem/1.45 var(--text);
  caret-color: var(--black); box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { resize: vertical; min-height: 132px; }
.form-field select {
  appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
@media (forced-colors: active) { .form-field select { appearance: auto; -webkit-appearance: auto; background-image: none; padding-right: 16px; } }
.form-field input::placeholder { color: #707270; opacity: 1; }
.form-field input:focus-visible, .form-field textarea:focus-visible, .form-field select:focus-visible {
  outline: 3px solid var(--black); outline-offset: 2px; border-color: var(--black);
}
.form-field input:user-invalid, .form-field textarea:user-invalid { border-color: var(--error); box-shadow: inset 4px 0 0 var(--error); }
@media (hover: hover) { .form-field input:hover, .form-field textarea:hover, .form-field select:hover { border-color: var(--black); } }

/* "Add a little more": a fieldset without JS, a disclosure with it */
.coaching-application .optional-details { border-block: 1px solid var(--rule-ink); margin: 8px 0 28px; }
.optional-details summary, .optional-details > legend {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; min-height: 68px; padding: 0;
  font: 700 1.375rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em;
  cursor: pointer; list-style: none;
}
.optional-details > legend { float: left; cursor: auto; margin-bottom: 4px; }
.optional-details > legend + * { clear: both; }
.optional-details > legend .icon { display: none; }
.optional-details summary::-webkit-details-marker { display: none; }
.optional-details small { margin-left: 10px; font: 500 .8125rem/1 var(--text); text-transform: none; letter-spacing: 0; color: var(--ink-soft); }
.optional-details .icon { width: 28px; height: 28px; padding: 5px; flex: none; border: 1px solid rgba(0, 0, 0, .45); }
/* the box stays square; only the plus turns into a close mark */
.optional-details .icon path { transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease); }
.optional-details[open] summary .icon path { transform: rotate(45deg); }
@media (hover: hover) { .optional-details summary:hover .icon { border-color: var(--black); } }
.optional-fields { padding: 6px 0 4px; }

.form-error {
  margin-bottom: 22px; padding: 16px 18px;
  background: var(--white); color: var(--error);
  border-left: 4px solid var(--error);
  font-size: .9375rem; line-height: 1.55;
}
.form-error:focus-visible { outline-color: var(--error); }
.form-error a, .application-privacy a, .preview-notice a { text-decoration: underline; text-underline-offset: 3px; }
.application-submit { width: 100%; --h: 60px; justify-content: space-between; padding: 0 24px; font-size: .875rem; }
.application-submit:disabled { background: #3b3d3a; cursor: progress; }
.application-submit:disabled .btn__arrow { transform: none; }
.application-decision { margin-top: 16px; font-weight: 600; font-size: .9375rem; line-height: 1.5; }
.application-privacy, .preview-notice { margin-top: 12px; font-size: .8125rem; line-height: 1.55; color: var(--ink-soft); }
.preview-notice { padding-top: 12px; border-top: 1px solid var(--rule-ink); }

@media (min-width: 640px) {
  .form-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coaching-application { margin-inline: 0; padding: clamp(32px, 4vw, 56px); }
}
@media (min-width: 1000px) {
  .apply__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro form" "next form";
    column-gap: clamp(48px, 6vw, 112px); row-gap: 48px;
    align-items: start;
  }
  .apply__title { --fs: clamp(64px, 6.2vw, 116px); }
  .apply__next { align-self: start; }
}

/* ---------- Thanks and 404 ---------- */
.notice { padding: clamp(56px, 9vw, 140px) 0 clamp(64px, 9vw, 140px); }
.notice__title { --fs: clamp(52px, 8.6vw, 150px); margin: 20px 0 28px; max-width: 12ch; }
.notice .lede { max-width: 34ch; }
.notice__body { margin-top: 14px; color: var(--soft); max-width: 46ch; }
.notice__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; margin-top: 34px; }
.notice .steps { margin-top: clamp(40px, 5vw, 64px); max-width: 980px; }
@media (min-width: 1000px) {
  .notice .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 2vw, 40px); }
  .notice .step { grid-template-columns: minmax(0, 1fr); align-content: start; border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 519.98px) { .notice__actions .btn { width: 100%; } }

/* ---------- Privacy ---------- */
.privacy { padding: clamp(48px, 7vw, 112px) 0 clamp(64px, 8vw, 128px); }
.privacy__grid { display: grid; gap: 32px clamp(48px, 6vw, 112px); }
.privacy__title { --fs: clamp(52px, 8vw, 132px); margin: 20px 0 0; }
.privacy__body > p:first-child { font-size: clamp(1.125rem, 1.4vw, 1.3125rem); line-height: 1.5; font-weight: 500; max-width: 52ch; }
.privacy__body section { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--rule); }
.privacy__body h2 { font: 700 clamp(1.5rem, 2vw, 2rem)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; margin-bottom: 12px; }
.privacy__body section p { color: var(--soft); max-width: 62ch; }
.privacy__body section p + p { margin-top: 12px; }
.privacy__body section a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .5); }
.privacy__body .btn { margin-top: 40px; }
@media (min-width: 1000px) {
  .privacy__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
  .privacy__head { position: sticky; top: calc(var(--nav-h) + 48px); }
}
@media (max-width: 519.98px) { .privacy__body .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding: 18px 0 calc(22px + env(safe-area-inset-bottom, 0px)); color: var(--soft); font-size: .875rem; }
.site-foot__bar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 28px; }
.site-foot .link { color: var(--white); }
.site-foot__social { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-left: auto; }
@media (max-width: 599.98px) { .site-foot__social { margin-left: 0; width: 100%; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
