/* The public site. Black with one yellow, the way the coach's programme
 * file is set: a yellow band down the edge, grey chips carrying section
 * titles, hairline boxes around numbers. Tokens live in assets/tokens.css
 * and are the app's own values.
 *
 * This page is deliberately dark-only. The app offers light and dark
 * because someone lives in it; a landing page is a poster, and his file
 * has exactly one background. */

.wrap {
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: 20px;
}

.skip {
  position: absolute;
  inset-block-start: -60px;
  inset-inline-start: 20px;
  z-index: 60;
  padding: 10px 18px;
  background: var(--yellow);
  color: var(--on-yellow);
  border-radius: var(--r-pill);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  inset-block-start: 12px;
}

/* ───────────────────────────── top bar ──────────────────────────── */
.topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--divider);
}

.bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.topbar nav {
  display: flex;
  gap: 22px;
  margin-inline-start: auto;
  font-size: 15px;
}

.topbar nav a {
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}

.topbar nav a:hover {
  color: var(--text);
}

.topbar .btn {
  min-height: 40px;
  padding-inline: 18px;
  font-size: 15px;
}

/* ─────────────────────────────── hero ───────────────────────────── */
.hero {
  padding-block: clamp(56px, 10vw, 112px) clamp(40px, 7vw, 80px);
  text-align: center;
}

.eyebrow {
  color: var(--yellow-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin-block: 14px 20px;
  font-size: clamp(34px, 6.4vw, 64px);
  font-weight: 800;
}

/* The one thing on the page allowed to be yellow and large. */
.hl {
  color: var(--yellow);
}

.lede {
  max-width: 44ch;
  margin-inline: auto;
  color: var(--text-2);
  font-size: clamp(16px, 2.2vw, 19px);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-block-start: 34px;
}

/* Not links, and not styled as if they were: the app is not on either
 * store yet, and a button that goes nowhere is worse than one that says
 * so. They become <a> the day there is a URL to point at. */
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  color: var(--text-2);
  cursor: not-allowed;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: start;
}

.store-text small {
  font-size: 11px;
}

.store-text strong {
  font-size: 16px;
  color: var(--text);
}

.note {
  margin-block-start: 18px;
  color: var(--text-2);
  font-size: 14px;
}

/* ──────────────────────────── sections ──────────────────────────── */
.band {
  background: var(--card);
  border-block: 1px solid var(--divider);
  padding-block: clamp(48px, 8vw, 88px);
}

.wrap > .chip-title,
.band .chip-title {
  margin-block-end: 36px;
}

.sub {
  margin-block: -22px 28px;
  color: var(--text-2);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--gap);
}

.feature h3 {
  margin-block: 14px 8px;
  font-size: 18px;
}

.feature p {
  color: var(--text-2);
  font-size: 15px;
}

/* The hand-drawn yellow ring his file puts around every muscle name. */
.ring {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--yellow-ink);
  border-radius: 48% 52% 51% 49% / 53% 47% 53% 47%;
  color: var(--yellow-ink);
}

/* ───────────────────────────── screens ──────────────────────────── */
.shots {
  padding-block: clamp(48px, 8vw, 88px);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 28px;
}

.tab {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}

.tab:hover {
  color: var(--text);
}

.tab[aria-selected='true'] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--on-yellow);
}

.phone-pair {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 4vw, 48px);
  margin: 0;
}

.phone {
  flex: 0 1 300px;
  text-align: center;
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--divider);
  background: var(--raised);
  transition: opacity var(--base) var(--ease);
}

.phone img.out {
  opacity: 0;
}

.phone figcaption {
  margin-block-start: 10px;
  color: var(--text-2);
  font-size: 13px;
}

.caption {
  margin-block-start: 22px;
  text-align: center;
  color: var(--text-2);
}

/* ─────────────────────────────── steps ──────────────────────────── */
.steps {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.steps .n {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--yellow);
  color: var(--on-yellow);
  font-weight: 800;
}

.steps h3 {
  font-size: 18px;
  margin-block-end: 6px;
}

.steps p {
  color: var(--text-2);
  max-width: 62ch;
}

/* ──────────────────────────── subscribe ─────────────────────────── */
.subscribe {
  padding-block: clamp(48px, 8vw, 88px);
}

.plan {
  max-width: 560px;
  padding: 28px;
  border-color: var(--yellow-ink);
}

.plan-name {
  font-size: 20px;
  font-weight: 700;
}

.plan-price {
  margin-block-start: 6px;
  font-size: 30px;
  font-weight: 800;
  color: var(--yellow);
}

.plan-list {
  margin-block: 20px;
  padding-inline-start: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--text-2);
}

.plan-list li {
  position: relative;
  padding-inline-start: 26px;
}

.plan-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 4px;
  inset-block-start: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
}

.plan-cta {
  width: 100%;
}

.plan-note {
  margin-block-start: 14px;
  color: var(--text-2);
  font-size: 13px;
  text-align: center;
}

/* ─────────────────────────────── coach ──────────────────────────── */
/* The one yellow-ground block on the page, the way his file closes. */
.coach {
  background: var(--yellow);
  color: var(--on-yellow);
  padding-block: clamp(48px, 8vw, 80px);
}

.coach-inner {
  text-align: center;
}

.coach h2 {
  font-size: clamp(26px, 4.4vw, 40px);
  font-weight: 800;
}

.coach p {
  max-width: 54ch;
  margin: 16px auto 0;
  opacity: 0.86;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-block-start: 26px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1.5px solid var(--on-yellow);
  border-radius: var(--r-pill);
  color: var(--on-yellow);
  transition: background var(--fast) var(--ease);
}

.socials a:hover {
  background: color-mix(in srgb, var(--on-yellow) 12%, transparent);
}

.socials:empty {
  display: none;
}

/* ──────────────────────────────── faq ───────────────────────────── */
.faq {
  padding-block: clamp(48px, 8vw, 88px);
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  background: var(--card);
  padding: 4px 18px;
}

summary {
  padding-block: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  float: inline-start;
  margin-inline-end: 12px;
  color: var(--yellow-ink);
  font-weight: 700;
}

details[open] summary::after {
  content: '–';
}

details p {
  padding-block-end: 16px;
  color: var(--text-2);
}

/* ─────────────────────── close + footer ─────────────────────────── */
.close {
  padding-block: clamp(48px, 8vw, 96px);
  text-align: center;
}

.close h2 {
  font-size: clamp(26px, 4.4vw, 42px);
  font-weight: 800;
}

.close p {
  margin-block: 12px 26px;
  color: var(--text-2);
}

footer {
  border-block-start: 1px solid var(--divider);
  padding-block: 28px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.foot nav {
  margin-inline-start: auto;
}

.foot a {
  color: var(--text-2);
  text-decoration: none;
}

.foot a:hover {
  color: var(--text);
}

.small {
  width: 100%;
  color: var(--text-2);
  font-size: 13px;
}

/* ───────────────────────────── narrow ───────────────────────────── */
@media (max-width: 760px) {
  .wrap {
    padding-inline: 16px;
  }

  /* The links are not dropped on a phone. A one-page site whose only
   * navigation is the scrollbar makes the reader hunt for the section
   * they came for, and the sections are the whole argument. They move to
   * a second row that scrolls sideways — thumb-reachable, no menu
   * button, no JavaScript. */
  .bar {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 56px;
    padding-block-end: 8px;
  }

  .topbar nav {
    order: 3;
    width: 100%;
    margin-inline-start: 0;
    gap: 18px;
    font-size: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .topbar nav::-webkit-scrollbar {
    display: none;
  }

  .topbar nav a {
    padding-block: 4px;
    white-space: nowrap;
  }

  .topbar .btn {
    margin-inline-start: auto;
  }

  .sub {
    margin-block: -14px 24px;
  }

  .phone-pair {
    flex-direction: column;
    align-items: center;
  }

  .phone {
    flex-basis: auto;
    max-width: 280px;
  }
}

/* A phone held in one hand. Everything here is the same layout, sized
 * for a 360–430px screen rather than squeezed into one. */
@media (max-width: 480px) {
  .hero {
    padding-block: 44px 36px;
  }

  .stores {
    gap: 10px;
    margin-block-start: 28px;
  }

  .store {
    flex: 1 1 160px;
    justify-content: center;
    padding-inline: 14px;
  }

  .tab {
    min-height: 40px;
    padding: 0 16px;
  }

  .phone {
    max-width: 250px;
  }

  .steps li {
    gap: 14px;
  }

  .steps .n {
    width: 38px;
    height: 38px;
  }

  .plan {
    padding: 22px 18px;
  }

  .socials a {
    width: 48px;
    height: 48px;
  }

  details {
    padding-inline: 14px;
  }

  .foot nav {
    margin-inline-start: 0;
  }
}
