:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --line: #2a2a2e;
  --text: #f2efe9;
  --muted: #a3a09a;
  --red: #e11d2a;
  --red-deep: #b3141f;
  --red-tint: #1f0d0f;
  --radius: 10px;
  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: .95; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-family: var(--display);
  color: var(--red);
  letter-spacing: .18em;
  font-size: 15px;
  margin-bottom: 10px;
  display: block;
}
.accent { color: var(--red); }
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(44px, 7vw, 72px); margin-bottom: 18px; }
.lede { color: var(--muted); max-width: 560px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-size: 21px; letter-spacing: .06em;
  text-decoration: none; cursor: pointer;
  padding: 14px 24px; min-height: 52px;
  border-radius: 8px; border: 2px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-ghost { border-color: var(--text); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-outline { border-color: var(--red); color: #fff; background: var(--red-tint); }
.btn-outline:hover { background: var(--red); }
.btn-sm { font-size: 17px; padding: 8px 16px; min-height: 40px; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--red); outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 12, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 24px; letter-spacing: .06em; }
.brand img { width: 36px; height: 36px; border-radius: 6px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.nav a:not(.btn):hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.brand, .header-actions .btn { white-space: nowrap; }
.menu-btn {
  display: none; width: 44px; height: 40px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: "";
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(64px, 11vw, 132px); margin: 4px 0 20px; }
.hero p.lede { font-size: 19px; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.placeholder {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.025) 14px 28px),
    var(--surface);
  border: 1px dashed #3a3a3f; border-radius: var(--radius);
  color: var(--muted); font-size: 14px; text-align: center;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.hero-media { aspect-ratio: 4 / 5; position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
/* 12s loop: each photo holds ~4.5s, with a ~1.5s crossfade between them */
.hero-media img:nth-child(2) { animation: hero-fade 12s ease-in-out infinite; }
@keyframes hero-fade {
  0%, 37.5% { opacity: 0; }
  50%, 87.5% { opacity: 1; }
  100% { opacity: 0; }
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.stat { border-top: 2px solid var(--red); padding-top: 12px; }
.stat strong { display: block; font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1; }
.stat span { color: var(--muted); font-size: 14px; }

/* Program */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-height: 130px; transition: border-color .15s; }
.pillar:hover { border-color: var(--red); }
.pillar b { display: block; font-family: var(--display); font-weight: 400; color: var(--red); font-size: 40px; line-height: 1; margin-bottom: 14px; }
.pillar h3 { font-size: 28px; }

/* Start your training */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; align-items: stretch; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan-card.featured { border-color: var(--red); background: linear-gradient(180deg, var(--red-tint), var(--surface) 70%); }
.plan-card .badge { align-self: flex-start; background: var(--red); color: #fff; font-family: var(--display); letter-spacing: .1em; font-size: 14px; padding: 4px 10px; border-radius: 4px; }
.plan-card h3 { font-size: 32px; }
.plan-card p, .plan-card li { color: var(--muted); }
.plan-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan-card li::before { content: "✓"; color: var(--red); font-weight: 700; margin-right: 10px; }
.plan-card .btn { margin-top: auto; }

/* Schedule */
.schedule { margin-top: 32px; display: grid; gap: 10px; }
.class-row {
  display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
}
.class-row .day { font-family: var(--display); font-size: 24px; }
.class-row .name { color: var(--muted); }
.class-row.highlight { border-color: var(--red); }
.class-row.highlight .day { color: var(--red); }

/* Coach */
.coach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.coach-media { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; object-position: 60% 30%; border-radius: var(--radius); border: 1px solid var(--line); }
.coach-grid p { color: var(--muted); font-size: 18px; }

/* Results */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 18px; margin: 0; }
.quote blockquote { margin: 0; font-style: italic; font-size: 18px; }
.quote figcaption { font-family: var(--display); letter-spacing: .08em; color: var(--muted); font-size: 16px; margin-top: auto; }

/* Run club */
.runclub {
  background: var(--red); color: #fff; border-radius: 14px;
  padding: 44px; display: grid; grid-template-columns: 1fr minmax(0, 340px); gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.runclub .eyebrow { color: #fff; opacity: .85; }
.runclub h2 { font-size: clamp(44px, 7vw, 72px); margin-bottom: 12px; }
.runclub p { max-width: 480px; }
.runclub .btn { background: var(--bg); color: #fff; }
.runclub .btn:hover { background: #000; }
.runclub p + .btn { margin-top: 24px; }
/* Bright red border, separated from the red card by a dark ring so it stays visible */
.runclub-video {
  display: block; width: 100%; max-width: 340px; height: auto; aspect-ratio: 720 / 1112;
  object-fit: cover; background: var(--bg);
  border: 4px solid #ff2b2b; border-radius: 12px;
  box-shadow: 0 0 0 4px var(--bg), 0 12px 32px rgba(0, 0, 0, .35);
}

/* Footer / contact */
.cta-final h2 { font-size: clamp(72px, 13vw, 150px); margin-bottom: 28px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; margin-top: 44px; align-items: stretch; }
.contact-list { display: grid; gap: 10px; color: var(--muted); align-content: start; }
.contact-list a { color: var(--text); }
.contact-list address { font-style: normal; line-height: 1.5; }
.map { width: 100%; min-height: 280px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 14px; }

/* Get Started intake form */
.subhead { margin-top: 56px; margin-bottom: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.steps .pillar h3 { margin-bottom: 10px; }
.steps .pillar p { color: var(--muted); font-size: 16px; }
.subhead + .plans { margin-top: 20px; }
.plans-note { color: var(--muted); margin-top: 18px; }
.intake {
  max-width: 760px; margin: 48px auto 0; scroll-margin-top: 84px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--red-tint), var(--surface) 240px);
  border: 1px solid rgba(225, 29, 42, .45); border-radius: 14px; padding: 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.intake::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--red); }
.intake h3 { font-size: clamp(36px, 5.5vw, 52px); }
.intake-sub { color: var(--muted); margin: 6px 0 30px; }
.intake-done { text-align: center; }
.intake-done:focus { outline: none; }
.intake-done h3 { line-height: 1.05; margin-bottom: 14px; }
.intake-done p { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.field { display: grid; gap: 8px; margin: 0 0 26px; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.field label:not(.chip), .field legend {
  font-family: var(--display); font-size: 20px; letter-spacing: .06em; line-height: 1.1; padding: 0;
}
.field legend { margin-bottom: 12px; }
.hint { font-family: var(--body); letter-spacing: 0; font-size: 14px; color: var(--red); margin-left: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  font: inherit; color: var(--text); background: rgba(11, 11, 12, .7);
  border: 1px solid rgba(225, 29, 42, .3); border-radius: 10px;
  padding: 14px 16px; min-height: 54px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field select {
  color-scheme: dark; cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23e11d2a' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #75706a; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 29, 42, .25);
}
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 29, 42, .35); }

/* Tappable chips in place of plain checkboxes and radio dots */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: 999px; cursor: pointer; user-select: none;
  font-weight: 600; font-size: 16px; color: var(--text);
  background: rgba(11, 11, 12, .7); border: 1px solid rgba(225, 29, 42, .35);
  transition: background .15s, border-color .15s, transform .1s;
}
.chip:hover { border-color: var(--red); }
.chip:active { transform: scale(.97); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--red); border-color: var(--red); color: #fff; }
.chip:has(input[type="checkbox"]:checked)::before { content: "✓"; font-weight: 700; }
.chip:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
/* Text / Call / Email as a single three-way toggle */
.segmented {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; max-width: 420px;
  background: rgba(11, 11, 12, .7); border: 1px solid rgba(225, 29, 42, .35); border-radius: 12px;
}
.segmented .chip { justify-content: center; border: 0; border-radius: 8px; background: transparent; min-height: 44px; }

.intake .btn { margin-top: 10px; min-height: 60px; font-size: 24px; box-shadow: 0 10px 28px rgba(225, 29, 42, .35); }
.intake .btn:disabled { opacity: .7; cursor: progress; }
.form-msg { margin-top: 12px; color: var(--muted); font-size: 15px; text-align: center; min-height: 1em; }
.form-msg.error { color: #ff6b74; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .coach-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .plans, .quotes, .steps { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .runclub { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; }
  .runclub-video { justify-self: center; max-width: 260px; }
  .hero-media { aspect-ratio: 4 / 5; width: 100%; max-width: 440px; justify-self: center; }
  .hero-media img { object-position: 50% 50%; }
  .coach-media { aspect-ratio: 2 / 3; max-width: 440px; justify-self: center; object-position: 70% 28%; order: -1; }
}
@media (max-width: 760px) {
  .runclub-video { max-width: 210px; }
  .menu-btn { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero-ctas .btn { width: 100%; }
  .section { padding: 56px 0; }
  .class-row { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .class-row .day { grid-column: 1; }
  .class-row .name { grid-column: 1; grid-row: 2; }
  .class-row .btn { grid-column: 2; grid-row: 1 / span 2; }
  .stat strong { font-size: 32px; }
  .intake { padding: 32px 18px 26px; }
  .segmented { max-width: none; }
  .hint { display: block; margin: 4px 0 0; }
  .field-row { grid-template-columns: 1fr; }
}
/* Small phones: tighten the header so the brand and GET STARTED stay on one line */
@media (max-width: 400px) {
  .site-header .wrap { gap: 10px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-sm { font-size: 15px; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero-media img:nth-child(2) { animation: none; opacity: 0; }
}
