:root {
  --ink-black: #121212;
  --sun-yellow: #FFD21F;
  --track-red: #FF4B2B;
  --sky-blue: #2357FF;
  --paper-white: #FFF9EE;
  --leaf-green: #18B56B;
  --thick-line: 4px solid var(--ink-black);
  --hard-offset: 10px 10px 0 var(--ink-black);
  --corner-sharp: 2px;
  --heading-face: "Unbounded", "Arial Black", sans-serif;
  --text-face: "Work Sans", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink-black);
  color: var(--ink-black);
  font-family: var(--text-face);
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
  line-height: 1.6;
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--heading-face);
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 0.6em;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
}

p {
  margin: 0 0 1em;
  max-width: 38rem;
}

a {
  color: inherit;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

a:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 4px solid var(--sky-blue);
  outline-offset: 4px;
}

/* ---------- Common screen frame ---------- */

.runner-hero,
.track-band,
.pace-band,
.finish-line {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 4rem 1.25rem;
  overflow: hidden;
  width: 100%;
}

.stride-main {
  width: 100%;
  overflow-x: hidden;
}

/* ---------- Screen 1: hero ---------- */

.runner-hero {
  background: var(--sun-yellow);
}

.runner-hero-bg,
.track-band-bg,
.pace-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.1) contrast(1.05);
}

.runner-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.runner-hero-plaque {
  background: var(--paper-white);
  border: var(--thick-line);
  box-shadow: var(--hard-offset);
  border-radius: var(--corner-sharp);
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 38rem;
}

.runner-kicker {
  display: inline-block;
  background: var(--track-red);
  color: var(--paper-white);
  font-family: var(--heading-face);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.8rem;
  border: 3px solid var(--ink-black);
  margin-bottom: 1.2rem;
}

.runner-hero-sub {
  display: block;
  font-size: 0.42em;
  margin-top: 0.7em;
  font-weight: 700;
  color: var(--sky-blue);
}

.runner-promise {
  font-weight: 500;
  margin-top: 1rem;
}

.rhythm-cta {
  display: inline-block;
  margin-top: 1rem;
  background: var(--ink-black);
  color: var(--paper-white);
  font-family: var(--heading-face);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 1.1rem 2rem;
  border: var(--thick-line);
  border-radius: var(--corner-sharp);
  box-shadow: 6px 6px 0 var(--track-red);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rhythm-cta:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--track-red);
}

/* ---------- Book cover (pure CSS) ---------- */

.cover-book {
  position: relative;
  display: flex;
  width: min(70vw, 300px);
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  border: var(--thick-line);
  border-radius: var(--corner-sharp);
  box-shadow: var(--hard-offset);
  background: linear-gradient(160deg, var(--track-red) 0%, #b82410 60%, #7a1408 100%);
  overflow: hidden;
}

.cover-spine {
  flex: 0 0 14%;
  background: repeating-linear-gradient(90deg, #0d0d0d 0 6px, #242424 6px 8px);
  border-right: 3px solid var(--ink-black);
}

.cover-face {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  color: var(--paper-white);
  position: relative;
}

.cover-face::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid var(--sun-yellow);
  pointer-events: none;
}

.cover-top {
  font-family: var(--heading-face);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sun-yellow);
  margin: 0 0 0.8rem;
  max-width: none;
}

.cover-title {
  font-family: var(--heading-face);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 4vw, 1.7rem);
  line-height: 1;
  margin: 0 0 0.6rem;
  max-width: none;
}

.cover-sub {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1.2rem;
  max-width: none;
  line-height: 1.3;
}

.cover-author {
  font-family: var(--heading-face);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--sun-yellow);
  color: var(--ink-black);
  padding: 0.3rem 0.5rem;
  margin: 0;
  max-width: none;
}

.cover-book-small {
  width: min(60vw, 240px);
}

/* ---------- Screen 2: reader band ---------- */

.track-band {
  background: var(--sky-blue);
  color: var(--paper-white);
}

.track-band-bg {
  opacity: 0.55;
}

.track-plaque {
  position: relative;
  z-index: 1;
  background: rgba(18, 18, 18, 0.82);
  border: var(--thick-line);
  border-color: var(--paper-white);
  box-shadow: var(--hard-offset);
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 38rem;
  width: 100%;
}

.track-plaque h2 {
  color: var(--sun-yellow);
}

.track-plaque p {
  color: var(--paper-white);
}

.reader-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 1rem;
}

.reader-item {
  border-left: 8px solid var(--sun-yellow);
  padding: 0.4rem 0 0.4rem 1rem;
}

.reader-item h3 {
  color: var(--paper-white);
  margin-bottom: 0.3em;
}

.reader-item p {
  margin: 0;
}

.track-subhead {
  margin-top: 1rem;
}

.track-side-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: var(--thick-line);
  box-shadow: 8px 8px 0 var(--sun-yellow);
  margin-top: 2rem;
  border-radius: var(--corner-sharp);
}

/* ---------- Screen 3: pace band ---------- */

.pace-band {
  background: var(--track-red);
  color: var(--ink-black);
}

.pace-band-bg {
  opacity: 0.35;
  mix-blend-mode: multiply;
}

.pace-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--paper-white);
  border: var(--thick-line);
  box-shadow: var(--hard-offset);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.pace-content > h2 {
  color: var(--track-red);
  -webkit-text-stroke: 0;
}

.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-tile {
  background: var(--sun-yellow);
  border: var(--thick-line);
  padding: 1.25rem;
  position: relative;
  border-radius: var(--corner-sharp);
}

.feature-num {
  display: block;
  font-family: var(--heading-face);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--ink-black);
}

.feature-tile h3 {
  margin-bottom: 0.3em;
}

.feature-tile p {
  margin: 0;
}

.pace-subhead {
  color: var(--sky-blue);
}

.chapter-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.chapter-tile {
  border-top: 8px solid var(--sky-blue);
  border-bottom: var(--thick-line);
  border-left: var(--thick-line);
  border-right: var(--thick-line);
  padding: 1.25rem;
  background: #ffffff;
  border-radius: var(--corner-sharp);
}

.chapter-tile h3 {
  color: var(--sky-blue);
}

.chapter-tile p {
  margin: 0;
}

.pace-side-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: var(--thick-line);
  box-shadow: 8px 8px 0 var(--ink-black);
  margin-top: 2rem;
  border-radius: var(--corner-sharp);
}

/* ---------- Screen 4: order ---------- */

.finish-line {
  background: var(--leaf-green);
  flex-direction: column;
  gap: 2.5rem;
  justify-content: center;
}

.order-cover-wrap {
  width: 100%;
  max-width: 340px;
  text-align: center;
}

.order-format-note {
  margin: 1.5rem auto 0;
  font-weight: 600;
  color: var(--ink-black);
  max-width: 22rem;
}

.order-form-wrap {
  width: 100%;
  max-width: 38rem;
  background: var(--paper-white);
  border: var(--thick-line);
  box-shadow: var(--hard-offset);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.order-lead {
  margin-bottom: 1.5rem;
}

.order-form {
  display: grid;
  gap: 0.6rem;
}

.order-form label {
  font-family: var(--heading-face);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.6rem;
}

.order-form input {
  width: 100%;
  min-height: 3.5rem;
  font-family: var(--text-face);
  font-size: 1.125rem;
  padding: 0.8rem 1rem;
  border: 3px solid var(--ink-black);
  border-radius: var(--corner-sharp);
  background: #ffffff;
  color: var(--ink-black);
}

.order-form input::placeholder {
  color: #6b6b6b;
}

.order-submit {
  margin-top: 1rem;
  min-height: 3.8rem;
  width: 100%;
  font-family: var(--heading-face);
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--track-red);
  color: var(--paper-white);
  border: var(--thick-line);
  border-radius: var(--corner-sharp);
  box-shadow: 6px 6px 0 var(--ink-black);
  cursor: pointer;
}

.order-submit:hover {
  background: var(--sun-yellow);
  color: var(--ink-black);
}

.consent-line {
  font-size: 0.95rem;
  margin-top: 1.2rem;
  margin-bottom: 0;
}

.consent-line a {
  font-weight: 700;
}

/* ---------- Footer ---------- */

.stride-footer {
  background: var(--ink-black);
  color: var(--paper-white);
  padding: 2.5rem 1.25rem;
  text-align: center;
  font-size: 0.95rem;
}

.stride-footer p {
  margin: 0.5rem auto;
  max-width: 40rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--sun-yellow);
  font-weight: 700;
}

.footer-note {
  color: #bdbdbd;
  font-size: 0.85rem;
}

/* ---------- Legal pages ---------- */

.legal-page {
  background: var(--paper-white);
  color: var(--ink-black);
  font-family: var(--text-face);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  overflow-x: hidden;
}

.legal-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.legal-main h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--track-red);
  border-bottom: var(--thick-line);
  padding-bottom: 0.5rem;
}

.legal-section {
  border-left: 6px solid var(--sky-blue);
  padding: 0.5rem 0 0.5rem 1.2rem;
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--ink-black);
}

.legal-section p,
.legal-section li {
  max-width: 100%;
}

.legal-section ul {
  padding-left: 1.2rem;
  margin: 0 0 1em;
}

.legal-back {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--heading-face);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--ink-black);
  background: var(--sun-yellow);
  border: var(--thick-line);
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  border-radius: var(--corner-sharp);
  box-shadow: 5px 5px 0 var(--ink-black);
}

/* ---------- Responsive ---------- */

@media (min-width: 720px) {
  .feature-grid,
  .chapter-band {
    grid-template-columns: 1fr 1fr;
  }

  .reader-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .runner-hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }

  .runner-hero-plaque {
    flex: 1 1 55%;
  }

  .runner-hero-inner .cover-book {
    flex: 0 0 300px;
    margin: 0;
    transform: rotate(4deg);
  }

  .track-band {
    justify-content: flex-start;
  }

  .track-plaque {
    margin-left: 6%;
    max-width: 40rem;
  }

  .track-side-img {
    position: absolute;
    right: 6%;
    bottom: 8%;
    width: 30%;
    max-width: 360px;
    margin-top: 0;
    z-index: 1;
  }

  .pace-content {
    margin-right: 6%;
    margin-left: auto;
  }

  .pace-side-img {
    position: absolute;
    left: 6%;
    bottom: 8%;
    width: 26%;
    max-width: 320px;
    margin-top: 0;
  }

  .chapter-band {
    grid-template-columns: repeat(3, 1fr);
  }

  .finish-line {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4rem;
  }

  .order-form-wrap {
    max-width: 36rem;
  }
}

@media (min-width: 1200px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rhythm-cta {
    transition: none;
  }
}