/* Be Transformed website styles.
   Brand colors only: off-white, charcoal (and shades of it), red.
   Red is kept for the one main button on each screen. */

:root {
  --off-white: #F1F2F2;
  --charcoal: #231F20;
  --red: #ED1C24;

  /* Light mode (default) */
  --bg: var(--off-white);
  --bg-alt: #E4E5E5;
  --card: #FFFFFF;
  --text: var(--charcoal);
  --text-muted: #5A5556;
  --border: #D3D2D2;
  /* Background of the dark bands */
  --dark-bg: var(--charcoal);

  --headline: 'Jost', 'Futura', system-ui, sans-serif;
  --body: 'Lato', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Dark mode follows the visitor's device setting */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--charcoal);
    --bg-alt: #2C2829;
    --card: #353031;
    --text: var(--off-white);
    --text-muted: #B4B0B1;
    --border: #484344;
    --dark-bg: #171415;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--headline);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 18ch; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: 0; }

p { margin: 0 0 1em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center h2 { margin-left: auto; margin-right: auto; }

/* Small spaced-out label above a headline, with a short line before it */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2em;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}
.center .eyebrow { justify-content: center; }

.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--text-muted); }

/* Text the trainer still needs to supply */
.placeholder {
  border: 1px dashed var(--border);
  padding: 12px 16px;
  color: var(--text-muted);
  font-style: italic;
}

/* Header: dark over the home page hero, and on every page once scrolled (site.js adds .scrolled) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.site-header.scrolled,
.site-header.over-hero {
  --text: var(--off-white);
  --text-muted: #B4B0B1;
  --bg: var(--dark-bg);
  background: var(--dark-bg);
  color: var(--text);
  border-bottom-color: transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--headline);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav { display: flex; gap: 32px; }
.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--text); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.button {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--red); color: #FFFFFF; }
.button.primary:hover { background: #C8151C; }
.button.secondary { border-color: var(--text); color: var(--text); }
.button.secondary:hover { background: var(--text); color: var(--bg); }
.button.small { padding: 10px 18px; font-size: 0.72rem; white-space: nowrap; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* Hero: full-screen dark opening with a large photo on the right */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  padding: 96px 0;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  height: 100%;
  object-fit: cover;
}
/* Fades the photo into the charcoal so the headline stays easy to read */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 38%, transparent 75%),
              linear-gradient(0deg, var(--bg) 0%, transparent 30%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-text { max-width: 620px; }
.hero h1 { font-size: clamp(3.2rem, 8vw, 6.2rem); margin-bottom: 0.3em; }
.hero .lead { font-size: 1.2rem; max-width: 46ch; margin-bottom: 1.6em; }

/* Gentle entrance when the page opens */
.hero-text > * { animation: rise 1s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: 0.1s; }
.hero-text > :nth-child(3) { animation-delay: 0.2s; }
.hero-text > :nth-child(n+4) { animation-delay: 0.3s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* Stand-in for a photo that hasn't been taken yet */
.photo-placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 32px;
  background:
    url("images/logo-alt-red.svg") center / 30% no-repeat,
    radial-gradient(circle at 60% 40%, #3A3536, #1E1A1B 70%);
  background-blend-mode: luminosity, normal;
}
.photo-placeholder span {
  position: relative;
  z-index: 2;
  padding: 8px 12px;
  border: 1px dashed rgba(241, 242, 242, 0.35);
  color: #B4B0B1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Credentials strip under the hero */
.proof { border-top: 1px solid var(--border); }
.proof-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
}
.proof-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 36px 24px;
  border-left: 1px solid var(--border);
}
.proof-list li:first-child { border-left: 0; padding-left: 0; }
.proof-list strong {
  font-family: var(--headline);
  font-size: 1.45rem;
  line-height: 1.1;
}
.proof-list span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Sections */
.section { padding: 112px 0; }
.section.alt { background: var(--bg-alt); }

/* Dark bands: everything inside switches to light-on-charcoal */
.dark {
  --bg: var(--dark-bg);
  --card: #2C2829;
  --text: var(--off-white);
  --text-muted: #B4B0B1;
  --border: rgba(241, 242, 242, 0.16);
  background: var(--bg);
  color: var(--text);
}

/* Offer and quote columns: thin lines instead of boxes */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
}
.card {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.5s var(--ease);
}
.card:hover::before { width: 100%; }
.card p { color: var(--text-muted); margin: 0; }
/* Options with a photo: picture on top, line under it */
.card.has-media { border-top: 0; padding-top: 0; }
.card.has-media::before { display: none; }
.card-media {
  aspect-ratio: 4 / 5;
  width: 100%;
  margin-bottom: 24px;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.card.has-media h3 { padding-top: 20px; border-top: 1px solid var(--border); }
img.card-media { filter: grayscale(0.25); }
.card:hover img.card-media { filter: none; transform: scale(1.02); }

/* Numbered steps: large 01, 02… above each step */
.steps {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 20px;
  font-family: var(--headline);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--text-muted);
  opacity: 0.6;
}
.steps p { color: var(--text-muted); margin: 0; }

.app-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
/* App screenshot (portrait phone screen) */
.app-shot {
  justify-self: center;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  border: 1px solid var(--border);
  box-shadow: 0 32px 64px rgba(35, 31, 32, 0.25);
  object-fit: cover;
}
.app-shot.photo-placeholder { justify-content: center; padding-bottom: 48px; }

/* Your coach */
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.photo-slot, .coach-photo {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
}
.coach-photo { object-fit: cover; }
.photo-slot {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  background: var(--card);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
}
.photo-slot img { width: 96px; filter: grayscale(1); opacity: 0.3; }

.credential {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: -0.4em 0 1.6em;
}
.pull-quote {
  margin: 0 0 1.4em;
  padding-left: 24px;
  border-left: 2px solid var(--red);
  font-family: var(--headline);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.3;
}
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 20px; }
.tags li {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Client testimonials: one large quote at a time (site.js adds .is-slider and the arrows).
   Without the script, all three quotes simply stack. */
.testimonials { margin-top: 56px; max-width: 900px; }
.testimonial { margin: 0 0 56px; }
.testimonial blockquote {
  position: relative;
  margin: 0 0 24px;
  padding-top: 56px;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.45;
}
.testimonial blockquote::before {
  content: "“";
  position: absolute;
  top: -8px;
  left: -4px;
  font-family: var(--headline);
  font-size: 6rem;
  line-height: 1;
  color: var(--red);
}
.testimonial figcaption {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.testimonial figcaption::before { content: "— "; }

.testimonials.is-slider { display: grid; }
.is-slider .testimonial {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s;
}
.is-slider .testimonial.active { opacity: 1; visibility: visible; transform: none; }

.slider-controls { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.slider-controls button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--text);
  border-radius: 2px;
  background: none;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.slider-controls button:hover { background: var(--text); color: var(--bg); }
.slider-controls button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.slider-count {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  min-width: 64px;
  text-align: center;
}

/* Closing call to action */
.contact-email { margin: 20px 0 0; color: var(--text-muted); font-size: 0.95rem; }
@media (prefers-color-scheme: dark) {
  .contact-band { border-top: 1px solid #2C2829; }
}

.checks { list-style: none; padding: 0; margin: 28px 0; }
.checks li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--border); margin: 0; }
.checks li:first-child { border-top: 1px solid var(--border); }
.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.2em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(-45deg);
}

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Scroll fade-ins (site.js marks elements with .reveal, then .in when they come into view) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-text > * { animation: none; }
  .button, .card::before, .card-media, .is-slider .testimonial { transition: none; }
  .button:hover { transform: none; }
}

/* Apply page */
.apply { min-height: calc(100vh - 68px); }
.apply-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.apply h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); }
.apply-next {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  counter-reset: next;
}
.apply-next li {
  counter-increment: next;
  display: grid;
  grid-template-columns: 56px 1fr;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.apply-next li::before {
  content: counter(next, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--headline);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text-muted);
}
.apply-next strong { font-family: var(--headline); font-size: 1.15rem; }
.apply-next span { color: var(--text-muted); font-size: 0.95rem; }

.apply-form, .form-thanks {
  padding: 48px;
  border: 1px solid var(--border);
  background: rgba(241, 242, 242, 0.03);
}
.field { margin: 0 0 32px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.optional { letter-spacing: 0.06em; text-transform: none; font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 1.1rem;
  transition: border-color 0.25s ease;
}
.field input:focus { outline: none; border-bottom-color: var(--text); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; margin: 0; cursor: pointer; }
.field .choice { margin: 0; letter-spacing: 0; text-transform: none; font-size: 1rem; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.choice:hover span { border-color: var(--text-muted); }
.choice input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.choice input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 3px; }
.apply-form .button { width: 100%; cursor: pointer; font-family: inherit; }
.form-status { margin: 16px 0 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-note { margin: 16px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.trap { position: absolute; left: -9999px; }
.form-thanks h2 { font-size: 2rem; }

/* Privacy, terms and support pages */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 0.25em; }
.legal h2 { font-size: 1.5rem; margin-top: 1.8em; max-width: none; }
.legal h3 { margin-top: 1.4em; margin-bottom: 0.3em; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4em; }
.legal a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Shown until a page has been reviewed; remove before publishing */
.draft-notice {
  border: 1px dashed var(--text);
  border-radius: 2px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Page not found */
.not-found { min-height: calc(100vh - 150px); display: grid; align-items: center; }
.center-actions { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; font-size: 0.85rem; color: var(--text-muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-inner p { margin: 0; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* Tablets */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .proof-list { grid-template-columns: 1fr 1fr; }
  .apply-inner { gap: 56px; }
  .proof-list li { padding: 28px 20px; }
  .proof-list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .proof-list li:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* Phones */
@media (max-width: 700px) {
  .nav { display: none; }
  .hero { display: block; min-height: 0; padding: 0 0 64px; }
  .hero-media { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, transparent 45%); bottom: auto; height: 75vw; }
  .hero-inner { margin-top: -32px; }
  .hero .photo-placeholder { align-items: flex-start; padding: 16px; }
  .app-inner, .about-inner, .apply-inner { grid-template-columns: 1fr; gap: 40px; }
  .apply-form, .form-thanks { padding: 28px 20px; }
  .choices { grid-template-columns: 1fr; }
  .photo-slot, .coach-photo { max-width: 340px; }
  .section { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; }
  .steps li::before { grid-row: span 2; margin-bottom: 0; font-size: 2rem; }
}

/* Small phones: the logo mark alone keeps room for the header button */
@media (max-width: 420px) {
  .brand span { display: none; }
}
