/* Athlo Fitness — chalk, navy and plate red. One family: Archivo (variable width). */
:root {
  --chalk: #F3F4F0;
  --white: #FFFFFF;
  --putty: #E4E0D5;
  --ink: #15213B;
  --steel: #535E77;
  --line: #D3D5CE;
  --red: #C81E2B;
  --red-dark: #A01622;
  --red-wash: #FBEAEB;
  --wrap: 1120px;
  --gutter: 20px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: "Archivo", "Arial Narrow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3 {
  margin: 0;
  font-stretch: 78%;
  font-weight: 760;
  letter-spacing: -0.012em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 7.6vw, 4.25rem); }
h2 { font-size: clamp(2rem, 5.6vw, 3.25rem); margin-bottom: 0.45em; }
h3 { font-size: 1.4rem; line-height: 1.15; margin-bottom: 0.35em; }
.num { font-stretch: 62%; font-weight: 850; line-height: 0.82; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.lede { font-size: 1.2rem; line-height: 1.5; max-width: 40ch; }
.section-lede { font-size: 1.15rem; max-width: 52ch; color: var(--steel); margin-bottom: 2.25rem; }
.fine { font-size: 0.9rem; color: var(--steel); line-height: 1.5; }

.text-link {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover { color: var(--red-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.5rem;
  background: var(--red); color: #fff;
  font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.1;
  border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--red-dark); }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(243, 244, 240, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.wordmark {
  font-stretch: 125%; font-weight: 820; font-size: 1.3rem; letter-spacing: 0.06em;
  text-decoration: none; color: var(--ink);
}
.wordmark span { color: var(--red); }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 1.75rem; }
.nav-links a { text-decoration: none; font-weight: 550; font-size: 0.98rem; }
.nav-links a:hover { color: var(--red-dark); }
@media (min-width: 820px) { .nav-links { display: flex; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.bg-white { background: var(--white); }
.bg-putty { background: var(--putty); }
.bg-ink { background: var(--ink); color: var(--chalk); }
.bg-ink :focus-visible { outline-color: var(--chalk); }

/* ---------- Hero ---------- */
.hero { padding: 16px 0 64px; }
.hero-grid {
  display: grid; gap: 22px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "photos" "copy";
}
.hero h1 { grid-area: title; max-width: 13ch; }
.hero-photos { grid-area: photos; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-copy { grid-area: copy; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 26px 0 14px; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 120px; }
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "title photos" "copy photos";
    grid-template-rows: 1fr 1fr;
    column-gap: 64px; row-gap: 28px;
  }
  .hero h1 { align-self: end; }
  .hero-copy { align-self: start; }
  .hero-photos { gap: 12px; align-self: center; }
}

.weigh {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--putty);
  border-radius: 4px 4px 0 0;
  border-bottom: 6px solid var(--steel);
}
.weigh.after { border-bottom-color: var(--red); }
.weigh img { width: 100%; height: 100%; object-fit: cover; }
.weigh figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48% 10px 10px;
  background: linear-gradient(to top, rgba(12, 18, 36, 0.82) 0%, rgba(12, 18, 36, 0.45) 45%, rgba(12, 18, 36, 0) 100%);
  color: #fff;
  display: flex; flex-direction: column; gap: 6px;
}
.weigh .when { font-size: 0.82rem; font-weight: 650; line-height: 1.2; }
.weigh .lbs { font-size: clamp(4.1rem, 18vw, 6.75rem); }
.weigh .lbs small { font-size: 0.26em; font-stretch: 100%; font-weight: 650; margin-left: 0.18em; letter-spacing: 0; }
@media (min-width: 900px) { .weigh figcaption { padding: 48% 16px 14px; } .weigh .when { font-size: 0.95rem; } }

@media (prefers-reduced-motion: no-preference) {
  .weigh img { animation: develop 900ms cubic-bezier(.2,.7,.2,1) both; }
  .weigh .lbs { animation: rise 700ms cubic-bezier(.2,.7,.2,1) 250ms both; }
  .weigh.after img { animation-delay: 160ms; }
  .weigh.after .lbs { animation-delay: 520ms; }
}
@keyframes develop { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Proof ---------- */
.proof { padding-top: 0; }
.proof-grid { display: grid; gap: 28px; }
.proof-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.proof-photos img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; width: 100%; background: var(--putty); }
.proof-copy p { max-width: 46ch; }
@media (min-width: 900px) {
  .proof-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: center; }
  .proof-photos { gap: 12px; }
}

/* ---------- Story ---------- */
.story-grid { display: grid; gap: 24px; }
.headshot { width: 132px; height: 132px; object-fit: cover; border-radius: 4px; }
.story-copy p { max-width: 62ch; }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: 220px minmax(0, 1fr); column-gap: 64px; }
  .headshot { width: 220px; height: 220px; }
}

/* ---------- What coaching includes ---------- */
.includes { display: grid; gap: 28px 40px; margin: 0; }
.includes > div { border-top: 3px solid var(--ink); padding-top: 14px; }
.includes dt { font-stretch: 85%; font-weight: 740; font-size: 1.3rem; line-height: 1.2; margin-bottom: 6px; }
.includes dd { margin: 0; color: var(--steel); }
@media (min-width: 680px) { .includes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .includes { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 8px 0 44px; padding: 0; display: grid; gap: 28px; counter-reset: none; }
.steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-items: start; }
.step-n { grid-row: span 2; font-size: 4.6rem; color: var(--red); }
.steps h3 { margin-top: 6px; }
.steps p { color: var(--steel); grid-column: 2; margin: 0; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 40px; }
  .steps li { grid-template-columns: 1fr; }
  .step-n { grid-row: auto; font-size: 6rem; margin-bottom: 14px; }
  .steps p { grid-column: 1; }
}

/* ---------- Calculator ---------- */
.calc-grid { display: grid; gap: 32px; }
.calc-intro p { color: #C9CFDB; max-width: 40ch; font-size: 1.12rem; }
@media (min-width: 900px) {
  .calc-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
}
.calc-form { display: grid; gap: 18px; }
.calc-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label, .field .label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.bg-ink .field label, .bg-ink .field .label, .bg-ink legend { color: var(--chalk); }
.calc-form input, .calc-form select, .tips input[type="email"] {
  width: 100%; min-height: 50px; padding: 0 14px;
  font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--white); border: 2px solid transparent; border-radius: var(--radius);
}
.calc-form input:focus, .calc-form select:focus, .tips input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(243,244,240,.35); }
.unit { position: relative; }
.unit input { padding-right: 46px; }
.unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--steel); font-size: 0.95rem; pointer-events: none; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { width: 100%; }
.seg label { position: relative; flex: 1 1 auto; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 46px; padding: 6px 14px; border-radius: var(--radius);
  border: 2px solid rgba(243,244,240,.28); color: var(--chalk);
  font-weight: 600; font-size: 0.98rem; cursor: pointer; line-height: 1.2;
}
.seg input:checked + span { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.calc-error { color: #FFB4B9; font-weight: 600; min-height: 1px; margin: 0; }
.calc-error:empty { display: none; }

.calc-result { margin-top: 8px; padding-top: 28px; border-top: 2px solid rgba(243,244,240,.25); }
.readouts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.readout .num { display: block; font-size: clamp(3.6rem, 14vw, 6rem); color: var(--chalk); }
.readout span:last-child { display: block; margin-top: 8px; color: #C9CFDB; font-size: 0.98rem; line-height: 1.35; }
.calc-result .fine { color: #AEB6C7; }
.tips { margin: 26px 0 22px; padding: 20px; background: rgba(243,244,240,.07); border-radius: var(--radius); }
.tips label { display: block; margin-bottom: 12px; font-weight: 550; }
.inline { display: flex; flex-wrap: wrap; gap: 10px; }
.inline input { flex: 1 1 220px; }
.inline .btn { flex: 0 0 auto; }
.tips-status { margin: 12px 0 0; font-weight: 600; }
.tips input:disabled { opacity: .7; }
.tips-status:empty { display: none; }
.bg-ink .text-link { color: var(--chalk); }
.bg-ink .text-link:hover { color: #fff; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 64px; } }
.faq-list details { border-bottom: 2px solid var(--line); }
.faq-list details:first-child { border-top: 2px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 680; font-size: 1.12rem; line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: 0 0 14px; height: 14px;
  background:
    linear-gradient(var(--red), var(--red)) center / 14px 2.5px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 2.5px 14px no-repeat;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: -4px 0 22px; color: var(--steel); max-width: 60ch; }

/* ---------- Apply ---------- */
.apply-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .apply-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); column-gap: 64px; align-items: start; } }
.apply-intro p { max-width: 42ch; font-size: 1.12rem; }
.founder { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.founder img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.founder strong { display: block; font-size: 1.05rem; }
.founder span { color: var(--steel); font-size: 0.95rem; }

.apply-card { background: var(--white); border-radius: 10px; padding: 24px 20px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(21, 33, 59, 0.35); }
@media (min-width: 600px) { .apply-card { padding: 36px; } }
.progress { height: 6px; background: var(--chalk); border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 20%; background: var(--red); border-radius: 3px; transition: width 0.3s ease; }
.step-count { margin: 10px 0 18px; font-size: 0.9rem; color: var(--steel); font-weight: 600; }
.no-js .progress, .no-js .step-count { display: none; }

.step { margin-bottom: 22px; }
.js .step { display: none; }
.js .step.is-current { display: block; }
.step > legend, .step-title { font-stretch: 82%; font-weight: 740; font-size: clamp(1.5rem, 4.6vw, 1.9rem); line-height: 1.12; margin-bottom: 16px; color: var(--ink); }
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; align-items: center; min-height: 56px; padding: 12px 16px;
  border: 2px solid var(--line); border-radius: var(--radius);
  font-weight: 600; cursor: pointer; transition: border-color 0.12s ease, background-color 0.12s ease;
}
.choice span:hover { border-color: var(--steel); }
.choice input:checked + span { border-color: var(--red); background: var(--red-wash); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.apply-card label.lbl { display: block; font-weight: 600; font-size: 0.95rem; margin: 0 0 6px; }
.apply-card .opt { font-weight: 400; color: var(--steel); }
.apply-card input[type="text"], .apply-card input[type="email"], .apply-card textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; margin-bottom: 16px;
  font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid var(--line); border-radius: var(--radius);
}
.apply-card textarea { min-height: 140px; resize: vertical; margin-bottom: 8px; }
.apply-card input:focus, .apply-card textarea:focus { outline: none; border-color: var(--ink); }
.apply-card [aria-invalid="true"] { border-color: var(--red); }
.hint { color: var(--steel); font-size: 0.95rem; margin: -6px 0 12px; }
.form-error { color: var(--red-dark); font-weight: 600; margin: 0 0 14px; }
.form-error:empty { display: none; }
.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-nav .btn { flex: 1 1 auto; max-width: 280px; margin-left: auto; }
.btn-back {
  background: none; border: 0; padding: 12px 4px; font: inherit; font-weight: 650; color: var(--steel);
  cursor: pointer; text-decoration: underline; text-underline-offset: 4px;
}
.btn-back:hover { color: var(--ink); }
.btn-back[hidden], .btn[hidden] { display: none; }
.no-js #next, .no-js #back { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply-done h3 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 12px; }
.apply-done p { font-size: 1.1rem; }
.apply-done:focus { outline: none; }
.reassure { margin-top: 18px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9CFDB; padding: 48px 0 40px; }
.foot { display: grid; gap: 18px; }
.site-footer .wordmark { color: var(--chalk); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-links a { color: var(--chalk); text-decoration: none; font-weight: 550; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .fine { color: #9AA3B6; }
.site-footer :focus-visible { outline-color: var(--chalk); }
@media (min-width: 900px) { .foot { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(243, 244, 240, 0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.25s ease;
}
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-on { transform: none; }
@media (min-width: 820px) { .sticky-cta { display: none; } }
@media (max-width: 819px) { .has-sticky .site-footer { padding-bottom: 110px; } }

/* ---------- Simple pages (privacy, terms, thanks, 404) ---------- */
.page { padding: 56px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); margin-bottom: 0.4em; }
.page h2 { font-size: 1.6rem; margin: 2em 0 0.5em; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 0.4em; }
.page .updated { color: var(--steel); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
