@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 360deg;
}

:root {
  --night: #151621;
  --panel: #1e2233;
  --line: #343a50;
  --coral: #fa4f4f;
  --teal: #59e3c2;
  --blue: #4276f5;
  --text: #f6f7fa;
  --muted: #b5bdd1;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

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

a {
  color: var(--teal);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
}

.wrap {
  width: min(100%, 76rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  background: var(--teal);
  color: var(--night);
  font-weight: 600;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(21 22 33 / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-download {
  padding: 0.45rem 1rem;
  background: var(--teal);
  color: var(--night);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

.nav-download:hover {
  background: var(--text);
}

.store-badge {
  display: inline-block;
}

.store-badge img {
  width: auto;
  height: 54px;
}

.hero {
  position: relative;
  overflow: clip;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.hero h1 {
  font-size: clamp(3.75rem, 6.2vw, 5.75rem);
  line-height: 0.95;
  font-weight: 900;
}

.hero h1 span {
  display: block;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-lede {
  max-width: 30rem;
  margin-block: 1.75rem 2rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.5;
}

.hero-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.hero-action p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(30rem, 48vw, 42rem);
}

.ring,
.ring::after {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  mask:
    radial-gradient(farthest-side, transparent calc(100% - var(--band)), #000 calc(100% - var(--band) + 1px)),
    conic-gradient(#000 var(--sweep), transparent 0);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  animation: fill-ring 1.6s cubic-bezier(0.3, 0.7, 0.2, 1) both;
}

.ring {
  --band: clamp(1.75rem, 4vw, 3.5rem);
  top: 50%;
  left: 50%;
  width: clamp(30rem, 54vw, 50rem);
  transform: translate(-50%, -50%);
  background: conic-gradient(var(--coral), #f7a06b 30%, var(--teal) 72%, var(--coral));
}

.ring::after {
  --band: clamp(1.1rem, 2.4vw, 2.1rem);
  content: "";
  inset: 15%;
  background: conic-gradient(var(--teal), var(--blue) 60%, var(--teal));
  animation-delay: 0.25s;
}

@keyframes fill-ring {
  from {
    --sweep: 0deg;
  }
}

.phone {
  position: relative;
  overflow: hidden;
  padding: 2.5%;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 13% / 6%;
}

.phone img {
  border-radius: 11% / 5.2%;
}

.hero-phone {
  width: clamp(14.5rem, 23vw, 20rem);
  box-shadow: 0 2rem 4rem rgb(0 0 0 / 0.55);
}

.watch {
  overflow: hidden;
  padding: 0.5rem;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 24%;
}

.watch img {
  border-radius: 20%;
}

.hero-watch {
  position: absolute;
  right: max(0rem, calc(50% - 15rem));
  bottom: 9%;
  width: clamp(7.5rem, 11vw, 9.5rem);
  box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 0.6);
}

.whats-new {
  border-block: 1px solid var(--line);
  background: var(--panel);
}

.whats-new p {
  padding-block: 1rem;
}

.whats-new strong {
  font-weight: 600;
}

.program {
  padding-block: var(--section);
}

.section-intro {
  max-width: 44rem;
}

.section-intro p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.level-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  border: 0;
}

.level-picker label {
  flex: 1 1 12rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.level-picker label:hover {
  border-color: var(--muted);
}

.level-picker strong {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.level-picker small {
  color: var(--muted);
  font-size: 0.9rem;
}

.level-picker input {
  position: absolute;
  opacity: 0;
}

.level-picker input:checked + label {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--night);
}

.level-picker input:checked + label small {
  color: var(--night);
}

.level-picker input:focus-visible + label {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.level-panel {
  margin-top: 2rem;
}

@supports selector(:has(*)) {
  .level-panel {
    display: none;
  }

  .program:has(#level-1:checked) [data-level="1"],
  .program:has(#level-2:checked) [data-level="2"],
  .program:has(#level-3:checked) [data-level="3"] {
    display: block;
  }
}

.level-summary {
  font-size: 1.15rem;
}

.level-summary b {
  font-family: var(--display);
  font-size: 1.6em;
  font-weight: 800;
  line-height: 1;
}

.schedule {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: separate;
  border-spacing: 0.4rem;
  table-layout: fixed;
}

.schedule th {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
}

.schedule thead th:first-child,
.schedule tbody th {
  width: 4.25rem;
}

.schedule td {
  padding: 0.6rem 0.7rem 0.7rem;
  background: var(--panel);
  border-radius: 8px;
  vertical-align: bottom;
}

.schedule .workout-total {
  display: block;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.set-list {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.last-workout .set-list {
  color: var(--night);
}

.program-more {
  margin-top: 1.5rem;
  font-weight: 600;
}

.program-action {
  margin-top: 1.25rem;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 3rem;
  margin-top: 0.5rem;
}

.bars i {
  flex: 1;
  height: calc(var(--reps) / 60 * 100%);
  min-height: 2px;
  background: var(--teal);
  border-radius: 1px;
}

.schedule .last-workout {
  background: var(--coral);
  color: var(--night);
}

.last-workout .bars i {
  background: var(--night);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

.feature-copy p {
  max-width: 30rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.shots {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.shots > * {
  flex: 0 1 17rem;
  min-width: 0;
}

.watch-shots > * {
  flex-basis: 15rem;
}

.also {
  padding-block: clamp(3rem, 6vw, 5rem) var(--section);
  border-top: 1px solid var(--line);
}

.also-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem clamp(2rem, 4vw, 3.5rem);
  margin-top: 2.75rem;
}

.also-list dt {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.also-list dd {
  margin-top: 0.4rem;
  color: var(--muted);
}

.cta {
  background: var(--coral);
  color: var(--night);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.cta h2 {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 900;
}

.cta p {
  max-width: 32rem;
  margin-top: 1rem;
  font-size: 1.15rem;
  font-weight: 500;
}

.cta a:focus-visible {
  outline-color: var(--night);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: 2.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-links a {
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.footer-legal {
  width: 100%;
  color: var(--muted);
  font-size: 0.85rem;
}

.page {
  padding-block: clamp(3rem, 7vw, 5.5rem) var(--section);
}

.page h1 {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
}

.prose {
  max-width: 42rem;
  margin-top: 2rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: 3.25rem;
  font-size: clamp(2.1rem, 4vw, 2.75rem);
}

.prose h3 {
  margin-top: 2rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.prose p,
.prose ul,
.prose ol {
  margin-block: 0.85rem 0;
  color: var(--muted);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose .lede {
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.5;
}

.prose hr {
  margin-block: 3rem;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose details {
  border-bottom: 1px solid var(--line);
}

.prose h2 + details {
  margin-top: 1rem;
}

.prose summary {
  padding-block: 1rem;
  padding-right: 2rem;
  position: relative;
  color: var(--text);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.prose summary::after {
  content: "+";
  position: absolute;
  top: 0.8rem;
  right: 0.25rem;
  color: var(--teal);
  font-size: 1.4rem;
  line-height: 1.4;
}

.prose details[open] summary::after {
  content: "\2212";
}

.prose summary:hover {
  color: var(--teal);
}

.prose details > p {
  margin-block: 0 1.25rem;
}

@media (min-width: 901px) and (max-width: 1200px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .hero h1 {
    font-size: clamp(3.25rem, 5.6vw, 4.25rem);
  }

  .hero-lede {
    max-width: 25rem;
  }

  .ring {
    width: 42vw;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    min-height: clamp(30rem, 110vw, 40rem);
  }

  .ring {
    width: clamp(26rem, 112vw, 44rem);
  }

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

  .also-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-download {
    margin-left: auto;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 18vw, 5.5rem);
  }

  .shots {
    justify-content: flex-start;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
  }

  .shots > * {
    flex: 0 0 min(66vw, 15rem);
    scroll-snap-align: start;
  }

  .watch-shots > * {
    flex: 1 1 0;
  }

  .also-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule {
    border-spacing: 0.2rem;
  }

  .schedule thead th:first-child,
  .schedule tbody th {
    width: 2.6rem;
  }

  .schedule td {
    padding: 0.45rem 0.45rem 0.5rem;
  }

  .schedule .workout-total {
    font-size: 1.4rem;
  }

  .bars {
    gap: 1px;
    height: 2.25rem;
  }
}

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

  .ring,
  .ring::after {
    animation: none;
  }
}
