/* The /athletes page. It stands alone from main.css, which is the coach page. */
:root {
  --ink: #141414;
  --card: #212121;
  --line: #2c2c2e;
  --line-strong: #3a3a3c;
  --lime: #81c784;
  --lime-dark: #63a867;
  --text-soft: #cccccc;
  --text-dim: #8e8e93;
  --grain: url("/athletes-grain.png");
  --gradient: radial-gradient(90% 90% at 12% 10%, #bceba8 0%, transparent 60%),
    linear-gradient(115deg, #81c784, #66b36e);
}

[data-palette="deep"] {
  --gradient: radial-gradient(90% 90% at 10% 8%, #ccf2ad 0%, transparent 58%),
    linear-gradient(115deg, #81c784 25%, #24804f);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", ui-sans-serif,
    system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.block a:focus-visible {
  outline-color: var(--ink);
}

/* Layout */
.wrap {
  max-width: 90rem;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 3.5rem);
  padding-right: clamp(1.25rem, 4vw, 3.5rem);
}

.wrap--tight {
  padding-left: clamp(1rem, 4vw, 3.5rem);
  padding-right: clamp(1rem, 4vw, 3.5rem);
}

.section {
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stack--large {
  gap: clamp(2rem, 4vw, 3.5rem);
}

.stack--small {
  gap: 0.75rem;
}

.stack--tiny {
  gap: 0.375rem;
}

/* Type */
.title {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.title--large {
  font-size: clamp(44px, 7vw, 100px);
  line-height: 0.95;
}

.lead {
  margin: 0;
  max-width: 30rem;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--text-soft);
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-soft);
}

.chip {
  align-self: flex-start;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.chip--outline {
  border: 1px solid var(--lime);
  color: var(--lime);
}

.chip--lime {
  color: var(--ink);
}

/* The green blocks: a gradient, a moving canvas once it's running, then grain. */
.block {
  position: relative;
  overflow: hidden;
  background: var(--gradient);
  color: var(--ink);
}

.block--hero {
  border-radius: 0 0 48px 48px;
}

.block--cta {
  border-radius: 48px 48px 0 0;
}

.block-gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.block-grain {
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 220px 220px;
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}

.grain-tile {
  background-color: var(--lime);
  background-image: linear-gradient(rgba(129, 199, 132, 0.78), rgba(129, 199, 132, 0.78)),
    var(--grain);
  background-size: auto, 220px 220px;
  background-blend-mode: normal, overlay;
}

/* Hero */
.hero-mark {
  position: absolute;
  right: -3%;
  bottom: -16%;
  width: 46%;
  aspect-ratio: 568 / 684;
  color: var(--ink);
}

.hero-inner {
  position: relative;
  max-width: 90rem;
  margin: 0 auto;
  padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem) 7rem;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5.5rem);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
}

.brand-word {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 6px;
}

.brand-tag {
  background: var(--ink);
  color: var(--lime);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 15px;
  font-weight: 600;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: min(100%, 58vw);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(72px, 11.5vw, 176px);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.hero-copy p {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  padding: 0 1.75rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.pill--small {
  height: 44px;
  padding: 0 1.125rem;
  font-size: 15px;
}

.pill--outline {
  background: none;
  border: 2px solid var(--ink);
  color: var(--ink);
}

/* Ticker */
.ticker {
  overflow: hidden;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-slide 60s linear infinite;
}

.ticker-items {
  display: flex;
  gap: 3rem;
  padding-right: 3rem;
}

.ticker b {
  font-weight: 600;
  color: var(--lime);
}

@keyframes ticker-slide {
  to {
    transform: translateX(-50%);
  }
}

/* Phones */
.phones {
  position: relative;
  height: clamp(500px, 56vw, 700px);
}

.phone {
  position: absolute;
  width: min(56%, 320px);
  padding: 7px;
  border-radius: 44px;
  background: var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.phone img {
  width: 100%;
  border-radius: 38px;
}

.phone--back {
  left: 0;
  top: 7%;
}

.phone--front {
  right: 0;
  top: 0;
}

.tilt {
  transform: perspective(1400px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform 0.25s ease-out;
}

@supports (animation-timeline: view()) {
  .grow {
    animation: grow linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }

  @keyframes grow {
    from {
      transform: translateY(48px) scale(0.94);
    }
    to {
      transform: none;
    }
  }
}

/* Cards with a glow that follows the cursor */
.spot {
  position: relative;
  overflow: hidden;
}

.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--x, 50%) var(--y, -20%),
    rgba(129, 199, 132, 0.13),
    transparent 70%
  );
  pointer-events: none;
}

/* Apple Watch */
.watch-section {
  padding: 0 clamp(1rem, 4vw, 3.5rem);
}

.card--wide {
  max-width: 83rem;
  background: var(--card);
  border-radius: 40px;
  padding: clamp(1.75rem, 5vw, 4.5rem);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}

.tags li {
  background: var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

.watches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.watch {
  width: 196px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.watch-band {
  width: 138px;
  height: 44px;
  background: var(--line);
}

.watch-band--top {
  border-radius: 14px 14px 0 0;
}

.watch-band--bottom {
  border-radius: 0 0 14px 14px;
}

.watch-body {
  position: relative;
  width: 196px;
  height: 236px;
  padding: 12px 11px;
  background: #000;
  border: 3px solid var(--line-strong);
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.watch-body--center {
  align-items: center;
  gap: 8px;
  padding-top: 14px;
}

.watch-crown {
  position: absolute;
  right: -8px;
  top: 66px;
  width: 6px;
  height: 34px;
  border-radius: 3px;
  background: var(--line-strong);
}

.watch-top {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.watch-heart {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #ff6961;
}

.watch-title {
  font-size: 17px;
  line-height: 1.1;
}

.watch-sub {
  font-size: 12px;
  color: #aeaeb2;
}

.watch-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.watch-field {
  background: #1c1c1e;
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 5px;
  text-align: center;
}

.watch-field--on {
  border-color: var(--lime);
}

.watch-field strong {
  font-size: 20px;
}

.watch-field span {
  font-size: 10px;
  color: #aeaeb2;
}

.watch-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  margin-top: auto;
}

.watch-actions--weighted {
  grid-template-columns: 1fr 1.5fr;
}

.watch-actions span {
  background: rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  padding: 8px 0;
  text-align: center;
  font-weight: 600;
}

.watch-actions .is-go {
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.watch-ring {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 9px solid var(--lime);
  border-left-color: var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.watch-ring strong {
  font-size: 30px;
  line-height: 1.05;
}

.watch-ring span {
  font-size: 12px;
  color: #aeaeb2;
}

/* Keylo Plus */
.numbers-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--card);
  border-radius: 999px;
}

.segmented button {
  min-height: 44px;
  padding: 0 1.125rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.segmented button[aria-pressed="true"] {
  background: var(--lime);
  color: var(--ink);
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.span2 {
  grid-column: span 2;
}

.tile {
  background-color: var(--card);
  border-radius: 32px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tile--lime {
  background-color: var(--lime);
  color: var(--ink);
  gap: 1rem;
}

.tile-title {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.tile-title--small {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
}

.tile-text {
  margin: 0;
  font-size: 17px;
  color: var(--text-soft);
}

.tile--lime .tile-text {
  color: var(--ink);
  font-weight: 500;
}

.pr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.pr-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.pr-number {
  display: flex;
  align-items: baseline;
  font-size: clamp(96px, 13vw, 170px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.pr-digits {
  display: flex;
}

.pr-digit {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}

.pr-digit > span {
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pr-digits--still .pr-digit > span {
  transition: none;
}

.pr-digit i {
  display: block;
  height: 1em;
  font-style: normal;
}

.pr-unit {
  margin-left: 0.3em;
  font-size: 0.22em;
  letter-spacing: 0;
  color: #fff;
}

.rep-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-top: auto;
}

.rep-tabs button {
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--line);
  color: #fff;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 800;
}

.rep-tabs button[aria-pressed="true"] {
  background: var(--lime);
  color: var(--ink);
}

.report {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: auto 0 0;
  font-variant-numeric: tabular-nums;
}

.report div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line-strong);
  padding-top: 0.625rem;
}

.report dt {
  font-size: 15px;
  color: var(--text-soft);
}

.report b {
  font-weight: 400;
  color: var(--lime);
}

.report dd {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.ratio {
  font-size: clamp(90px, 11vw, 140px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.meet {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
}

.meet-copy {
  flex: 1 1 15rem;
  min-width: 0;
}

.countdown {
  font-size: clamp(100px, 13vw, 170px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--lime);
}

.attempts {
  flex: 1 1 18rem;
  min-width: 0;
  background: var(--ink);
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.625rem;
  font-variant-numeric: tabular-nums;
}

[data-attempts] {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.attempts-row {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  font-size: 22px;
  font-weight: 800;
}

.attempts-row span:last-child {
  color: var(--lime);
}

.attempts-row--head {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
}

.attempts-row--head span:last-child {
  color: var(--text-soft);
}

.attempts-total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  border-top: 1px solid var(--line-strong);
  padding-top: 0.625rem;
  font-size: 15px;
  font-weight: 700;
}

.compare {
  --lift: 0.99;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.compare-frame {
  position: relative;
  height: 220px;
  border-radius: 18px;
  background: var(--ink);
  overflow: hidden;
}

.compare-frame span {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-soft);
}

.compare-frame--now span {
  color: var(--lime);
}

.barbell {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 6px;
  border-radius: 3px;
}

.compare-frame--then .barbell {
  bottom: calc(14% + var(--lift) * 30%);
  background: var(--text-soft);
}

.compare-frame--now .barbell {
  bottom: calc(14% + var(--lift) * 40%);
  background: #fff;
}

.barbell i {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 78px;
  transform: translateY(-50%);
  border-radius: 6px;
  background: var(--lime-dark);
}

.compare-frame--now .barbell i {
  width: 18px;
  height: 86px;
  background: var(--lime);
}

.barbell i:first-child {
  left: 0;
}

.barbell i:last-child {
  right: 0;
}

.compare-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}

input[type="range"] {
  width: 100%;
  height: 44px;
  margin: -0.75rem 0 0;
  accent-color: var(--lime);
}

.muscles {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
}

.muscles div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.muscles i {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--lime);
}

.muscles .is-low i {
  background: var(--lime-dark);
}

/* Free and plans */
.plans-section {
  border-top: 1px solid var(--line);
}

.free-list {
  gap: 1.25rem;
  padding: 0 clamp(0.25rem, 1vw, 0.5rem);
}

.free-list p {
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.free-list p span {
  color: var(--text-dim);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.plan {
  background-color: var(--card);
  border-radius: 32px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.plan strong {
  font-size: clamp(44px, 4.7vw, 60px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.plan small {
  font-size: 20px;
  letter-spacing: 0;
}

.plan p {
  margin: 0;
  font-size: 16px;
  color: var(--text-soft);
}

.plan--lime {
  color: var(--ink);
  background-color: var(--lime);
}

.plan--lime p {
  color: var(--ink);
  font-weight: 500;
}

/* Download */
.cta-mark {
  position: absolute;
  right: -4%;
  bottom: -30%;
  width: 34%;
  aspect-ratio: 568 / 684;
  color: var(--ink);
}

.cta-inner {
  position: relative;
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.cta-inner h2 {
  margin: 0;
  width: min(100%, 66vw);
  font-size: clamp(56px, 9vw, 130px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.qr {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.5rem;
  font-size: 14px;
  font-weight: 600;
}

.qr img {
  flex-shrink: 0;
  border-radius: 12px;
}

.qr span {
  max-width: 9rem;
}

.coach-link {
  align-self: flex-start;
  font-size: 17px;
  font-weight: 700;
  text-decoration: underline;
}

.cta-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .hero-inner {
    padding-bottom: 88vw;
  }

  .hero-mark {
    right: -8%;
    bottom: -14%;
    width: 92%;
  }

  .hero-copy,
  .cta-inner h2 {
    width: 100%;
  }

  .split,
  .bento,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .span2 {
    grid-column: auto;
  }

  .phone {
    width: 62%;
  }

  /* You're already on your phone. */
  .qr,
  .cta-mark {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker-track,
  .grow {
    animation: none;
  }

  .tilt,
  .pr-digit > span {
    transition: none;
  }
}
