/* Breaking 3 | The Sub-3 Performance System
   Black / red / white. Anton for display, JetBrains Mono for pace figures only. */

@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/anton-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  --black: #000;
  --raise: #121212;
  --red: #e8262f;
  --white: #fff;
  --grey: #bdbdbd;
  --dim: #8f8f8f;
  --line: #2c2c2c;
  --pad: clamp(20px, 5vw, 56px);
  --max: 1180px;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--white); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
::selection { background: var(--red); color: var(--white); }

.skip { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--black); padding: .6em 1em; z-index: 10; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; margin: 0; line-height: 1; letter-spacing: .01em; }
h1 { font-size: clamp(3.2rem, 9.5vw, 7.6rem); line-height: .94; }
h2 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
p { margin: 0 0 1.1em; max-width: 62ch; }
.lead { font-size: clamp(1.2rem, 2.2vw, 1.45rem); color: var(--grey); line-height: 1.5; max-width: 46ch; }
.muted { color: var(--grey); }
.num { font-family: var(--mono); font-feature-settings: "zero" 0; letter-spacing: -.01em; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 14px; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: .4rem 1.8rem; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 600; font-size: 1.05rem; padding: .35em 0; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--white); border-bottom-color: var(--red); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }
.nav a.btn { border-bottom: 0; padding: .55em 1.1em; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 700 1.2rem/1.1 var(--body);
  padding: .85em 1.6em;
  background: var(--red); color: var(--white);
  border: 2px solid var(--red); border-radius: 3px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.btn.ghost { background: transparent; border-color: var(--white); }
.btn.ghost:hover { background: var(--white); color: var(--black); }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 10vw, 128px); border-top: 1px solid var(--line); }
.section.tight { padding-block: clamp(48px, 7vw, 88px); }
.section > .wrap > h2 { margin-bottom: clamp(1.4rem, 3vw, 2.4rem); max-width: 18ch; }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: 1fr; }
@media (min-width: 880px) { .split { grid-template-columns: 5fr 7fr; } .split.even { grid-template-columns: 1fr 1fr; } }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 110px) clamp(56px, 9vw, 120px); }
.hero .wrap { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1.25fr .75fr; } }
.hero h1 { margin-bottom: 1.6rem; }

/* The pace band: the one memorable object on the site */
.band { background: var(--white); color: var(--black); border-radius: 4px; overflow: hidden; max-width: 420px; width: 100%; justify-self: end; box-shadow: 0 0 0 1px var(--white); }
.band-head { background: var(--red); color: var(--white); padding: 1rem 1.3rem .9rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.band-head strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 6vw, 2.1rem); line-height: 1; text-transform: uppercase; }
.band-head span { font-family: var(--mono); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.band ol { list-style: none; margin: 0; padding: 0; }
.band li { display: flex; justify-content: space-between; align-items: baseline; padding: .72rem 1.3rem; border-bottom: 1px solid #d9d9d9; font-family: var(--mono); font-size: 1.15rem; font-weight: 700; }
.band li span:first-child { font-family: var(--body); font-weight: 600; font-size: 1.05rem; color: #3a3a3a; }
.band li.finish { background: var(--black); color: var(--white); border-bottom: 0; }
.band li.finish span:first-child { color: var(--white); font-family: var(--display); font-weight: 400; font-size: 1.4rem; text-transform: uppercase; }
.band li.finish span:last-child { color: #ff5a62; font-size: 1.5rem; }
.band-note { margin: 0; padding: .8rem 1.3rem 1rem; font-size: .95rem; color: #3a3a3a; max-width: none; line-height: 1.4; }

@keyframes pass { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.band li { opacity: 0; animation: pass .45s ease-out forwards; animation-delay: calc(.35s + var(--i) * .2s); }
@media (prefers-reduced-motion: reduce) { .band li { opacity: 1; animation: none; } html { scroll-behavior: auto; } }

/* ---------- Coach statement ---------- */
.statement { font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.3; max-width: 30em; margin: 0; font-weight: 500; }
.statement b { font-family: var(--display); font-weight: 400; font-size: 1.12em; letter-spacing: .01em; }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.tbl th { font-weight: 600; color: var(--dim); font-size: 1rem; }
.tbl td.num { font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.tbl tr.you td, .tbl tr.you th { color: var(--white); }
.tbl .hl { color: #ff5a62; }

/* ---------- Phases ---------- */
.phases { display: grid; gap: 2.5rem 3rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 860px) { .phases { grid-template-columns: repeat(3, 1fr); } }
.phase { border-top: 4px solid var(--red); padding-top: 1.3rem; position: relative; }
.phase h3 { margin-bottom: .9rem; }
.phase p { color: var(--grey); }
.phase .fig { font-family: var(--mono); font-weight: 700; color: var(--white); font-size: 1.05rem; display: block; margin-top: 1rem; }
@media (min-width: 860px) {
  .phase + .phase::before { content: ""; position: absolute; top: -4px; left: -2.05rem; width: 14px; height: 14px; border-top: 4px solid var(--red); border-right: 4px solid var(--red); transform: translateY(-5px) rotate(45deg); }
}
.keep { border-left: 4px solid var(--white); padding: .2rem 0 .2rem 1.2rem; margin-top: 3rem; font-size: 1.3rem; max-width: 40em; }

/* ---------- Rule lists ---------- */
.rules { list-style: none; margin: 0; padding: 0; }
.rules li { padding: 1.2rem 0; border-top: 1px solid var(--line); display: grid; gap: .3rem 2rem; grid-template-columns: 1fr; }
.rules li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .rules li { grid-template-columns: 13rem 1fr; } }
.rules b { font-weight: 700; }
.rules span { color: var(--grey); }

/* ---------- Steps (a true sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.4rem 1fr; gap: 0 1rem; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--red); }
.steps b { display: block; font-size: 1.2rem; }
.steps span { color: var(--grey); }

/* ---------- Long-run bar ---------- */
.run { display: flex; gap: 2px; height: 58px; margin: 1.6rem 0 .8rem; }
.run span { display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: .85rem; background: #3a3a3a; color: var(--white); border-radius: 2px; }
.run span.mp { background: var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; color: var(--grey); font-size: 1rem; }
.legend i { display: inline-block; width: .9em; height: .9em; background: #3a3a3a; margin-right: .5em; border-radius: 2px; vertical-align: -.1em; }
.legend i.mp { background: var(--red); }

/* ---------- Two-up lists ---------- */
.pair { display: grid; gap: 2.5rem 4rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair h3 { margin-bottom: 1rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: .65rem 0 .65rem 1.7rem; border-top: 1px solid var(--line); position: relative; color: var(--grey); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: .8rem; height: .8rem; background: var(--red); }
.ticks.wait li::before { background: transparent; border: 2px solid var(--dim); }

/* ---------- Price ---------- */
.price { font-family: var(--display); font-size: clamp(4rem, 12vw, 8rem); line-height: .9; margin: 0 0 .4rem; }
.price small { font-family: var(--body); font-size: 1.4rem; color: var(--grey); margin-left: .4rem; }

/* ---------- FAQ ---------- */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 1.15rem 2.4rem 1.15rem 0; font-weight: 700; font-size: 1.2rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .2rem; top: .55rem; font-family: var(--body); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--red); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--grey); padding-right: 2.4rem; }

/* ---------- Page heads ---------- */
.page-head { padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.page-head h1 { font-size: clamp(2.9rem, 8vw, 6.2rem); max-width: 14ch; margin-bottom: 1.4rem; }

/* ---------- Photos ---------- */
.photo { border-radius: 3px; border: 1px solid var(--line); }
figure { margin: 0; }
figcaption { color: var(--dim); font-size: .95rem; margin-top: .6rem; }

/* ---------- Apply form ---------- */
.form-slot { background: var(--raise); border: 1px solid var(--line); border-radius: 4px; padding: clamp(1.2rem, 3vw, 2rem); }
.form-slot iframe { width: 100%; height: 1900px; border: 0; background: var(--white); border-radius: 3px; }
.form-slot p { max-width: none; }

/* ---------- CTA ---------- */
.cta h2 { max-width: 14ch; }
.cta p { color: var(--grey); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 3.5rem; color: var(--grey); font-size: 1rem; }
.site-footer .wrap { display: grid; gap: 2rem 3rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: auto 1fr auto; } }
.site-footer img { height: 84px; width: auto; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0; max-width: 30ch; }
.fine { color: var(--dim); font-size: .9rem; }

/* ---------- 404 ---------- */
.lost { min-height: 55vh; display: grid; align-content: center; }

@media (max-width: 520px) {
  .nav { gap: .3rem 1.1rem; width: 100%; }
  .nav a { font-size: 1rem; }
  .nav a.btn { margin-left: auto; padding: .5em 1em; }
}

.prose p { max-width: 40rem; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.6; margin: 0 0 1.4rem; color: #fff; }
.prose b { font-family: var(--display); font-weight: 400; font-size: 1.15em; letter-spacing: .01em; }

.site-footer a.with-ico { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.site-footer a.with-ico span { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.site-footer .ico { flex: none; color: var(--red); }
.site-footer a.with-ico:hover .ico { color: var(--white); }
