:root {
  color-scheme: light;
  --legal-bg: #f7f4ee;
  --legal-ink: #16191d;
  --legal-muted: #555f68;
  --legal-link: #8a3c1f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--legal-bg);
  color: var(--legal-ink);
  font-family: Manrope, Aptos, "Segoe UI Variable Text", "SF Pro Text", system-ui, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

main {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Manrope, "Aptos Display", "Segoe UI Variable Display", "SF Pro Display", Aptos, system-ui, sans-serif;
  line-height: .98;
  letter-spacing: -.04em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.45rem, 7vw, 4.8rem);
}

h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

p {
  max-width: 68ch;
}

a {
  color: var(--legal-link);
  font-weight: 750;
  text-underline-offset: .16em;
}

a:focus-visible {
  outline: 3px solid #126f91;
  outline-offset: 4px;
}

li + li {
  margin-top: 8px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 4;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffe9a8;
  color: #201713;
  transform: translateY(-180%);
  transition: transform .2s cubic-bezier(.22, 1, .36, 1);
}

.skip-link:focus {
  transform: translateY(0);
}

body.landing-page {
  color-scheme: light;
  --app-bg: #fff7f1;
  --surface: #ffffff;
  --surface-warm: #ffefe4;
  --ink: #201713;
  --muted: #5e4d45;
  --soft: #8c7468;
  --line: #eedbd0;
  --orange: #c5410c;
  --orange-soft: #ffd9c4;
  --yellow: #ffe9a8;
  --blue: #cbeff8;
  --green: #d6f0dd;
  --red: #c93644;
  --shadow: rgba(114, 60, 31, .16);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 217, 196, .9), transparent 23rem),
    radial-gradient(circle at 92% 15%, rgba(203, 239, 248, .95), transparent 22rem),
    radial-gradient(circle at 16% 84%, rgba(214, 240, 221, .92), transparent 24rem),
    linear-gradient(180deg, var(--app-bg), #fffaf6 55%, #fff1e7);
  color: var(--ink);
}

body.landing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .36;
  background-image:
    radial-gradient(circle, rgba(197, 65, 12, .15) 0 2px, transparent 2.6px),
    radial-gradient(circle, rgba(18, 111, 145, .12) 0 2px, transparent 2.6px);
  background-position: 0 0, 28px 32px;
  background-size: 76px 76px, 92px 92px;
  mask-image: linear-gradient(#000, transparent 84%);
}

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

.landing-page .landing-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  padding: 22px 0 72px;
}

.landing-page .site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 8px 0 18px;
}

.landing-page .brand-mark,
.landing-page .nav-links a,
.landing-page .primary-action,
.landing-page .secondary-action,
.landing-page .trust-links a {
  text-decoration: none;
}

.landing-page .brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -.03em;
}

.landing-page .brand-mark img {
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(197, 65, 12, .18);
}

.landing-page .nav-links,
.landing-page .trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.landing-page li + li {
  margin-top: 0;
}

.landing-page .nav-links a {
  display: block;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 760;
  transition: color .2s cubic-bezier(.22, 1, .36, 1), background-color .2s cubic-bezier(.22, 1, .36, 1), transform .2s cubic-bezier(.22, 1, .36, 1);
}

.landing-page .nav-links a:hover {
  color: var(--orange);
  background: rgba(255, 217, 196, .58);
  transform: translateY(-1px);
}

.landing-page .hero-section {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
  min-height: calc(100dvh - 92px);
  padding: clamp(28px, 5vw, 60px) 0 clamp(64px, 8vw, 96px);
}

.landing-page .hero-copy {
  max-width: 690px;
}

.landing-page h1 {
  max-width: 11ch;
  margin-bottom: 24px;
  font-size: clamp(4.2rem, 9vw, 6rem);
  line-height: .9;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.landing-page h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 4.6vw, 4.7rem);
  line-height: .96;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.landing-page h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.25vw, 2rem);
  line-height: 1.04;
}

.landing-page p,
.landing-page figure {
  margin: 0;
}

.landing-page .hero-lede,
.landing-page .section-copy p,
.landing-page .progress-copy p,
.landing-page .trust-section p,
.landing-page figcaption,
.landing-page .rhythm-card p,
.landing-page .companion-list {
  color: var(--muted);
}

.landing-page .hero-lede {
  max-width: 46ch;
  font-size: clamp(1.13rem, 1.7vw, 1.33rem);
  line-height: 1.5;
}

.landing-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.landing-page .release-note {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid rgba(181, 106, 0, .18);
  border-radius: 999px;
  background: rgba(255, 233, 168, .72);
  color: #694009;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.2;
}

.landing-page .primary-action,
.landing-page .secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s cubic-bezier(.22, 1, .36, 1), background-color .2s cubic-bezier(.22, 1, .36, 1);
}

.landing-page .primary-action {
  padding: 0 22px;
  background: var(--orange);
  color: #fffaf6;
  box-shadow: 0 18px 38px rgba(197, 65, 12, .24);
}

.landing-page .secondary-action {
  padding: 0 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .68);
  color: var(--ink);
}

.landing-page .primary-action:hover,
.landing-page .secondary-action:hover,
.landing-page .trust-links a:hover {
  transform: translateY(-2px);
}

.landing-page .primary-action:active,
.landing-page .secondary-action:active,
.landing-page .trust-links a:active {
  transform: translateY(0) scale(.98);
}

.landing-page .hero-stage {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 590px;
}

.landing-page figcaption {
  font-size: .94rem;
  line-height: 1.45;
}

.landing-page .rhythm-card,
.landing-page .companion-art-card,
.landing-page .body-frame-card,
.landing-page .progress-showcase {
  border: 1px solid rgba(238, 219, 208, .82);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 24px 64px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .88);
}

.landing-page .routine-section,
.landing-page .companion-section,
.landing-page .progress-section,
.landing-page .trust-section {
  margin-top: clamp(70px, 9vw, 120px);
}

.landing-page .hero-promo-video {
  position: relative;
  display: block;
  width: min(100%, 330px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 22px;
  background: #201713;
  box-shadow: 0 24px 64px var(--shadow);
}

.landing-page .hero-promo-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.landing-page .promo-video-shield {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: default;
}

.landing-page .promo-mute-toggle {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 50%;
  background: rgba(32, 23, 19, .72);
  color: #fffaf6;
  font-size: 1.15rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), background-color .2s cubic-bezier(.22, 1, .36, 1);
}

.landing-page .speaker-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.landing-page .speaker-icon > path:first-child {
  fill: currentColor;
  stroke: none;
}

.landing-page .speaker-slash {
  display: none;
}

.landing-page .promo-mute-toggle[aria-pressed="true"] .speaker-waves {
  display: none;
}

.landing-page .promo-mute-toggle[aria-pressed="true"] .speaker-slash {
  display: block;
}

.landing-page .promo-mute-toggle:hover {
  transform: scale(1.06);
  background: rgba(32, 23, 19, .9);
}

.landing-page .promo-mute-toggle:focus-visible {
  outline: 3px solid #126f91;
  outline-offset: 3px;
}

.landing-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-page .section-copy {
  max-width: 780px;
}

.landing-page .section-copy p,
.landing-page .progress-copy p {
  max-width: 64ch;
  margin-top: 18px;
  font-size: 1.08rem;
}

.landing-page .tab-rhythm {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 16px;
  margin-top: 34px;
}

.landing-page .rhythm-card {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 30px;
}

.landing-page .rhythm-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 128px;
  height: 128px;
  border-radius: 40px;
  background: rgba(255, 255, 255, .38);
  transform: rotate(18deg);
}

.landing-page .rhythm-card > * {
  position: relative;
  z-index: 1;
}

.landing-page .today-card {
  grid-row: span 2;
  display: flex;
  min-height: 492px;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 233, 168, .92), transparent 15rem),
    linear-gradient(145deg, #ffffff, #ffefe4);
}

.landing-page .workout-card {
  display: grid;
  grid-column: span 2;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  background: linear-gradient(145deg, var(--blue), #ffffff 78%);
}

.landing-page .workout-card img {
  border-radius: 24px;
  background: rgba(255, 255, 255, .8);
}

.landing-page .report-card {
  background: linear-gradient(145deg, var(--green), #ffffff 82%);
}

.landing-page .profile-card {
  background: linear-gradient(145deg, var(--yellow), #ffffff 82%);
}

.landing-page .rhythm-card p {
  max-width: 39ch;
  font-size: 1rem;
}

.landing-page .companion-section {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
}

.landing-page .companion-art-card {
  padding: 18px;
  border-radius: 34px;
  transform: rotate(-2deg);
  background: linear-gradient(150deg, var(--orange-soft), #ffffff 78%);
}

.landing-page .companion-art-card img {
  width: 100%;
  border-radius: 26px;
}

.landing-page .companion-art-card figcaption,
.landing-page .body-frame-card figcaption {
  margin: 12px 8px 2px;
}

.landing-page .companion-copy {
  max-width: 680px;
}

.landing-page .companion-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.landing-page .companion-list li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .58);
}

.landing-page .companion-list strong {
  color: var(--ink);
}

.landing-page .progress-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, .72fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
}

.landing-page .progress-copy {
  max-width: 690px;
}

.landing-page .progress-showcase {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: 34px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .84), rgba(203, 239, 248, .72));
}

.landing-page .body-frame-card {
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: transparent;
  box-shadow: none;
}

.landing-page .body-frame-card img {
  width: 100%;
  border-radius: 24px;
}

.landing-page .progress-track {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-page .progress-track span,
.landing-page .trust-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 999px;
}

.landing-page .progress-track span {
  padding: 0 14px;
  background: #ffffff;
  color: #126f91;
  font-weight: 800;
}

.landing-page .trust-section {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  padding-top: clamp(34px, 6vw, 64px);
  border-top: 1px solid var(--line);
}

.landing-page .trust-section p {
  max-width: 62ch;
  margin-top: 16px;
  font-size: 1.04rem;
}

.landing-page .trust-links {
  justify-content: flex-end;
}

.landing-page .trust-links a {
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font-weight: 780;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), background-color .2s cubic-bezier(.22, 1, .36, 1), color .2s cubic-bezier(.22, 1, .36, 1);
}

.landing-page .trust-links a:hover {
  background: var(--orange-soft);
  color: var(--orange);
}

@media (prefers-reduced-motion: no-preference) {
  .landing-page .reveal-on-load {
    animation: rise-in .62s cubic-bezier(.16, 1, .3, 1) both;
  }

  .landing-page .hero-stage {
    animation-delay: .08s;
  }

}

@keyframes rise-in {
  from {
    opacity: .001;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .landing-page .landing-shell {
    width: min(100% - 30px, 680px);
    padding: 16px 0 56px;
  }

  .landing-page .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-page .nav-links {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .landing-page .nav-links a {
    white-space: nowrap;
  }

  .landing-page .hero-section,
  .landing-page .companion-section,
  .landing-page .progress-section,
  .landing-page .trust-section {
    grid-template-columns: 1fr;
  }

  .landing-page .hero-section {
    min-height: auto;
    padding: 24px 0 62px;
  }

  .landing-page h1 {
    max-width: 10.2ch;
    font-size: clamp(3.4rem, 17vw, 5.15rem);
  }

  .landing-page .hero-actions,
  .landing-page .primary-action,
  .landing-page .secondary-action {
    width: 100%;
  }

  .landing-page .hero-stage {
    min-height: 520px;
    display: block;
    margin-top: 18px;
  }

  .landing-page .hero-promo-video {
    width: min(100%, 330px);
    height: auto;
    margin: 0 auto;
  }

  .landing-page .tab-rhythm {
    grid-template-columns: 1fr;
  }

  .landing-page .today-card,
  .landing-page .workout-card {
    grid-row: auto;
    grid-column: auto;
    min-height: 230px;
  }

  .landing-page .workout-card {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .landing-page .companion-art-card {
    transform: none;
  }

  .landing-page .trust-links {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .landing-page .site-nav {
    flex-direction: row;
    align-items: center;
  }

  .landing-page .nav-links {
    width: auto;
    max-width: 70%;
  }

  .landing-page .hero-section {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
    gap: 28px;
    min-height: auto;
    padding: 26px 0 56px;
  }

  .landing-page .hero-copy {
    min-width: 0;
  }

  .landing-page h1 {
    max-width: 9ch;
    font-size: clamp(2.8rem, 9vw, 4.2rem);
  }

  .landing-page .hero-lede {
    font-size: 1rem;
  }

  .landing-page .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-page .primary-action,
  .landing-page .secondary-action {
    width: fit-content;
    max-width: 100%;
  }

  .landing-page .hero-stage {
    min-height: 440px;
    margin-top: 0;
  }

  .landing-page .hero-promo-video {
    width: min(100%, 248px);
  }
}

@media (max-width: 480px) {
  main {
    width: min(100% - 28px, 760px);
    padding-top: 40px;
  }

  .landing-page .landing-shell {
    width: min(100% - 24px, 640px);
  }

  .landing-page h1 {
    font-size: clamp(2.72rem, 14.5vw, 3.65rem);
  }

  .landing-page h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .landing-page .workout-card {
    grid-template-columns: 1fr;
  }

  .landing-page .workout-card img {
    width: min(178px, 100%);
  }
}

@media (max-width: 480px) and (orientation: landscape) {
  .landing-page .landing-shell {
    width: min(100% - 28px, 760px);
  }

  .landing-page .site-nav {
    min-height: 58px;
  }

  .landing-page .brand-mark img {
    width: 36px;
    height: 36px;
  }

  .landing-page .nav-links {
    max-width: 74%;
  }

  .landing-page .nav-links a {
    min-height: 44px;
    padding-inline: 10px;
  }

  .landing-page .hero-section {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 18px;
    padding-top: 18px;
  }

  .landing-page h1 {
    font-size: clamp(2.4rem, 9vw, 3.2rem);
  }

  .landing-page .hero-actions {
    gap: 8px;
    margin-top: 18px;
  }

  .landing-page .primary-action,
  .landing-page .secondary-action {
    min-height: 48px;
    font-size: .9rem;
  }

  .landing-page .hero-stage {
    min-height: 370px;
  }

  .landing-page .hero-promo-video {
    width: 210px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .landing-page .companion-art-card,
  .landing-page .primary-action:hover,
  .landing-page .secondary-action:hover,
  .landing-page .trust-links a:hover {
    transform: none;
  }
}
