/* Next Stride Club — waiting-list page.
   Everything is local: fonts, icons (inline SVG) and images, because the platform's security policy only lets a
   coach's site load things from its own address.

   Sizes on wide screens are written as  calc(N * var(--u))  where N is the size in pixels on the 1024px-wide
   mock-up and --u is one of those pixels, so the whole composition scales with the window. Phones get their own
   stacked layout further down. */

@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --u: clamp(.8px, min(.09766vw, .09vh), 1.05px);

  --ink: #0b2a22;
  --text: #34404d;
  --muted: #9aa0a8;
  --orange: #fe4a0b;
  --orange-dark: #e13e03;
  --cream: #fefdfb;
  --pill: #e6eee1;
  --line: #d8d7da;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", "Comic Neue", "Comic Sans MS", cursive;

  /* wide-screen measurements (mock-up pixels) */
  --pad-x:     calc(60 * var(--u));
  --pad-top:   calc(56 * var(--u));
  --logo-h:    calc(104 * var(--u));
  --pill-h:    calc(58 * var(--u));
  --pill-fs:   calc(25 * var(--u));
  --h1-fs:     calc(96 * var(--u));
  --lead-fs:   calc(29 * var(--u));
  --field-h:   calc(64 * var(--u));
  --field-fs:  calc(22 * var(--u));
  --cta-h:     calc(68 * var(--u));
  --cta-fs:    calc(26 * var(--u));
  --hand-fs:   calc(37 * var(--u));
  --form-w:    calc(440 * var(--u));
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(1180 * var(--u));
  background: var(--cream);
}

.stage { position: relative; max-width: 1200px; min-height: inherit; margin: 0 auto; }

.copy {
  position: relative;
  z-index: 3;
  width: calc(700 * var(--u) + var(--pad-x));
  max-width: 100%;
  padding: var(--pad-top) 0 calc(70 * var(--u)) var(--pad-x);
}

.brand { display: block; width: max-content; line-height: 0; margin-left: -4px; }
.brand-img { display: block; width: auto; height: var(--logo-h); }

.pill {
  display: block;
  width: max-content;
  margin-top: calc(26 * var(--u));
  padding: 0 calc(20 * var(--u));
  height: var(--pill-h);
  line-height: var(--pill-h);
  border-radius: calc(14 * var(--u));
  background: var(--pill);
  font-size: var(--pill-fs);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}

h1 {
  margin-top: calc(46 * var(--u));
  font-size: var(--h1-fs);
  line-height: .96;
  font-weight: 700;
  letter-spacing: -.047em;
  color: var(--ink);
}
h1 span { display: block; }
/* second line: same colour, but lighter and smaller, so "Next Stride" is the name and the rest the promise */
h1 span + span { margin-top: .15em; font-size: .52em; font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }

.lead {
  margin-top: calc(24 * var(--u));
  max-width: calc(530 * var(--u));
  font-size: var(--lead-fs);
  line-height: 1.38;
  color: var(--text);
}

/* ── Sign-up form ─────────────────────────────────────────────────────── */

.signup { margin-top: calc(38 * var(--u)); width: var(--form-w); max-width: 100%; }
.signup-form { display: grid; gap: calc(16 * var(--u)); }

.field { position: relative; }
.field-icon {
  position: absolute;
  left: calc(19 * var(--u));
  top: 50%;
  width: calc(28 * var(--u));
  height: calc(28 * var(--u));
  margin-top: calc(-14 * var(--u));
  color: var(--ink);
  pointer-events: none;
}
.field input {
  width: 100%;
  height: var(--field-h);
  padding: 0 14px 0 calc(70 * var(--u));
  border: 1px solid var(--line);
  border-radius: calc(9 * var(--u));
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 42, 34, .04);
  color: var(--ink);
  font: 400 var(--field-fs)/1 Inter, system-ui, sans-serif;
}
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input:focus-visible { outline: 3px solid rgba(254, 74, 11, .25); border-color: var(--orange); }

.submit {
  width: 100%;
  min-height: var(--cta-h);
  margin-top: calc(2 * var(--u));
  padding: 0 calc(26 * var(--u));
  border: 0;
  border-radius: calc(9 * var(--u));
  background: var(--orange);
  color: #fff;
  font: 600 var(--cta-fs)/1.32 Inter, system-ui, sans-serif;
  text-wrap: balance;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}
.submit:hover { background: var(--orange-dark); }
.submit:active { transform: translateY(1px); }
.submit:focus-visible { outline: 3px solid rgba(254, 74, 11, .35); outline-offset: 3px; }
.submit[disabled] { opacity: .7; cursor: progress; }

.status { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; color: #b3261e; }
.status:empty { display: none; }

/* the bot trap: out of sight and out of the tab order, but still in the page for a bot to fill in */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* the handwritten nudge under the button */
.hand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: calc(10 * var(--u));
  margin: calc(20 * var(--u)) 0 0 calc(12 * var(--u));
  padding-bottom: calc(12 * var(--u));
  font-family: var(--hand);
  font-size: var(--hand-fs);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  transform: rotate(-2.5deg);
  transform-origin: left center;
}
.hand-arrow { width: calc(36 * var(--u)); min-width: 22px; height: auto; margin-top: calc(6 * var(--u)); }
.hand-line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% - calc(46 * var(--u)));
  height: calc(12 * var(--u));
  min-height: 6px;
  color: #f68b5b;
  overflow: visible;
}

/* after a successful sign-up the form is replaced by a thank-you */
.signup.is-done > :not(.thanks) { display: none; }
.thanks {
  padding: calc(30 * var(--u)) calc(32 * var(--u));
  border-radius: calc(14 * var(--u));
  background: var(--pill);
}
.thanks .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.thanks h2 { margin-top: 6px; font-size: max(28px, calc(40 * var(--u))); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.thanks p { margin-top: 10px; font-size: max(16px, calc(21 * var(--u))); line-height: 1.45; color: var(--text); }

/* ── The runner and the floating cards ────────────────────────────────── */

.frame {
  position: absolute;
  z-index: 1;
  right: calc(-64 * var(--u));
  bottom: calc(-48 * var(--u));
  width: calc(675 * var(--u));
  aspect-ratio: 2 / 3;
  container-type: inline-size;
}

.visual {
  --cu: calc(100cqw / 675);       /* one card pixel */
  position: relative;
  width: 100%;
  height: 100%;
}

.runner { width: 100%; height: 100%; object-fit: cover; }

/* the photo melts into the page at its top and sides */
.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--cream) 0%, rgba(254, 253, 251, .9) 7%, rgba(254, 253, 251, .45) 22%, rgba(254, 253, 251, 0) 42%),
    linear-gradient(270deg, var(--cream) 0%, rgba(254, 253, 251, 0) 9%),
    linear-gradient(180deg, var(--cream) 0%, rgba(254, 253, 251, .85) 8%, rgba(254, 253, 251, 0) 30%);
}

.cards { position: absolute; inset: 0; z-index: 2; }

.card {
  position: absolute;
  display: grid;
  background: rgba(255, 255, 255, .94);
  border-radius: calc(20 * var(--cu));
  box-shadow: 0 calc(10 * var(--cu)) calc(28 * var(--cu)) rgba(40, 30, 20, .13), 0 1px 3px rgba(40, 30, 20, .06);
  color: var(--ink);
  font-size: calc(15 * var(--cu));
  line-height: 1.25;
}
.card b { font-weight: 700; }

.c1, .c2 {
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr 1fr;
  column-gap: calc(13 * var(--cu));
  align-items: center;
  padding: calc(17 * var(--cu)) calc(20 * var(--cu)) calc(17 * var(--cu)) calc(13 * var(--cu));
  width: max-content;
}
.c1 { right: calc(83 * var(--cu)); top: calc(-48 * var(--cu)); min-width: calc(263 * var(--cu)); height: calc(88 * var(--cu)); transform: rotate(-2.2deg); }
.c2 { right: calc(77 * var(--cu)); top: calc(48 * var(--cu));  min-width: calc(252 * var(--cu)); height: calc(87 * var(--cu)); transform: rotate(-2.6deg); }

.av { grid-row: 1 / span 2; max-width: none; flex: none; width: calc(52 * var(--cu)); height: calc(52 * var(--cu)); border-radius: 50%; object-fit: cover; }
.who { grid-row: 1 / span 2; display: grid; gap: calc(3 * var(--cu)); }
.who b { font-size: calc(15 * var(--cu)); }
.who span { font-size: calc(13.500 * var(--cu)); color: #2a3a42; white-space: nowrap; }
.card time { grid-column: 3; grid-row: 1; align-self: start; justify-self: end; font-size: calc(14 * var(--cu)); color: var(--muted); }
.heart { grid-column: 3; grid-row: 2; align-self: end; justify-self: end; width: calc(24 * var(--cu)); height: calc(24 * var(--cu)); fill: #ff5a12; }

.c3 {
  right: calc(78 * var(--cu));
  top: calc(144 * var(--cu));
  width: calc(205 * var(--cu));
  height: calc(150 * var(--cu));
  padding: calc(24 * var(--cu)) calc(24 * var(--cu)) 0 calc(24 * var(--cu));
  grid-template-rows: auto auto auto auto;
  align-content: start;
  transform: rotate(-1.6deg);
}
.c3 .bars { width: calc(30 * var(--cu)); height: calc(28 * var(--cu)); color: var(--ink); }
.c3 b { margin-top: calc(12 * var(--cu)); font-size: calc(17 * var(--cu)); }
.bar { display: block; margin-top: calc(12 * var(--cu)); height: calc(11 * var(--cu)); border-radius: 99px; background: #d3d4d4; overflow: hidden; }
.bar i { display: block; width: 62%; height: 100%; border-radius: 99px; background: #0b3d31; }
.c3 .sub { margin-top: calc(14 * var(--cu)); font-size: calc(14 * var(--cu)); color: #2a3a42; }

/* ── Four things you get ──────────────────────────────────────────────── */

.features {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(14 * var(--u)) calc(20 * var(--u)) calc(34 * var(--u));
}
.feature { position: relative; padding: calc(16 * var(--u)) calc(14 * var(--u)) calc(30 * var(--u)); text-align: center; }
.feature + .feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(14 * var(--u));
  bottom: calc(26 * var(--u));
  width: 1px;
  background: #e7e3dd;
}
.badge { display: grid; place-items: center; width: calc(92 * var(--u)); height: calc(92 * var(--u)); margin: 0 auto calc(20 * var(--u)); border-radius: 50%; color: var(--ink); }
.badge .ico { width: 58%; height: 58%; }
.b-green { background: #e6eee3; }
.b-green .ico { width: 66%; height: 66%; }
.b-peach { background: #ffe8d8; }
.b-blue  { background: #e8ecf7; }
.b-lilac { background: #f6e3f4; }
.feature h3 { font-size: max(16px, calc(21 * var(--u))); line-height: 1.25; font-weight: 700; letter-spacing: -.012em; color: var(--ink); }
.feature p { margin: calc(10 * var(--u)) auto 0; font-size: max(14px, calc(17.500 * var(--u))); line-height: 1.32; color: var(--text); text-wrap: balance; }

/* ── Tablet and phone: everything stacks, the photo comes after the form ── */

@media (max-width: 859px) {
  :root {
    --pad-x: 24px;
    --pad-top: 22px;
    --logo-h: 88px;
    --pill-h: 40px;
    --pill-fs: 13px;
    --h1-fs: clamp(47px, 13vw, 82px);
    --lead-fs: clamp(18px, 4.6vw, 24px);
    --field-h: 56px;
    --field-fs: 17px;
    --cta-h: 58px;
    --cta-fs: 19px;
    --hand-fs: 30px;
    --form-w: 440px;
  }

  .hero { min-height: 0; }
  .stage { display: flex; flex-direction: column; }
  .copy { width: 100%; padding: var(--pad-top) var(--pad-x) 0; }
  .brand { margin-left: -3px; }
  .pill { margin-top: 26px; padding: 0 14px; border-radius: 11px; letter-spacing: .02em; white-space: normal; line-height: 1.25; height: auto; padding-block: 10px; }
  h1 { margin-top: 28px; letter-spacing: -.04em; }
  .lead { margin-top: 16px; max-width: 30em; }
  .signup { margin-top: 26px; }
  .signup-form { gap: 12px; }
  .field-icon { left: 16px; width: 24px; height: 24px; margin-top: -12px; }
  .field input { padding-left: 54px; border-radius: 9px; }
  .submit { border-radius: 9px; padding: 10px 20px; margin-top: 2px; }
  .hand { margin: 16px 0 0 8px; padding-bottom: 9px; gap: 9px; }
  .hand-arrow { width: 30px; }
  .hand-line { width: calc(100% - 40px); height: 9px; }
  .thanks { padding: 22px 22px 24px; border-radius: 12px; }
  .thanks h2 { font-size: 32px; }

  .frame {
    position: relative;
    right: auto;
    bottom: auto;
    order: 2;
    width: min(100%, 540px);
    margin: 70px 0 0 auto;
  }
  .visual { --cu: max(.78px, calc(100cqw / 600)); }
  .visual::after {
    background:
      linear-gradient(90deg, var(--cream) 0%, rgba(254, 253, 251, 0) 14%),
      linear-gradient(180deg, var(--cream) 0%, rgba(254, 253, 251, .8) 6%, rgba(254, 253, 251, 0) 26%);
  }
  .c1 { right: calc(18 * var(--cu)); top: calc(-48 * var(--cu)); }
  .c2 { right: calc(12 * var(--cu)); top: calc(48 * var(--cu)); }
  .c3 { right: calc(14 * var(--cu)); top: calc(144 * var(--cu)); }

  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 30px 14px 48px; gap: 10px 0; }
  .feature { padding: 22px 12px 14px; }
  .feature + .feature::before { display: none; }
  .badge { width: 84px; height: 84px; margin-bottom: 16px; }
  .feature p { max-width: 17em; font-size: 15.5px; }
}

@media (max-width: 859px) and (min-width: 560px) {
  .copy { padding-left: 48px; padding-right: 48px; }
  .features { padding-inline: 38px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature + .feature::before { display: block; top: 20px; bottom: 16px; }
  .feature p { font-size: 14.5px; }
  .badge { width: 78px; height: 78px; }
}

@media (max-width: 400px) {
  .features { gap: 6px 0; }
  .feature h3 { font-size: 16px; }
  .feature p { font-size: 14px; }
}

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

/* the mock-up's line breaks only make sense in the side-by-side layout; on phones the text reflows by itself */
@media (max-width: 859px) { br.d { display: none; } }
