:root {
  --ink: #15161c;
  --paper: #f8f7f4;
  --surface: #eceef1;
  --purple: #5b2aa8;
  --lime: #c7ff31;
  --amazon: #ff5b1a;
  --line: #d5d6da;
  --muted: #5f626b;
  --white: #ffffff;
  --page: min(100% - 2rem, 78rem);
  --header-height: 3.75rem;
  --step-1: clamp(0.82rem, 0.78rem + 0.15vw, 0.92rem);
  --step-2: clamp(1rem, 0.95rem + 0.2vw, 1.12rem);
  --step-3: clamp(1.18rem, 1.04rem + 0.55vw, 1.55rem);
  --step-4: clamp(1.65rem, 1.32rem + 1.3vw, 2.6rem);
  --step-5: clamp(2.35rem, 1.55rem + 4vw, 5.8rem);
  --section-space: clamp(5rem, 10vw, 9.5rem);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  font-synthesis: none;
}

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

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  padding-bottom: 5.75rem;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--step-2);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1.25rem;
  font-size: var(--step-5);
}

h2 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.25rem, 1.7rem + 2.3vw, 4.8rem);
}

h3 {
  margin-bottom: 0.55rem;
  font-size: var(--step-3);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

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

.site-header {
  width: var(--page);
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.8rem;
  text-decoration: none;
}

.brand__name {
  color: var(--purple);
  font-size: 1.2rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.brand__product {
  color: var(--muted);
  font-size: var(--step-1);
}

.section {
  position: relative;
}

.hero {
  width: var(--page);
  min-height: calc(100svh - var(--header-height));
  margin-inline: auto;
  padding-block: clamp(2rem, 7vw, 6.5rem);
  display: grid;
  align-items: center;
  gap: clamp(1.5rem, 7vw, 6rem);
}

.hero__copy {
  position: relative;
  z-index: 2;
  animation: settle 640ms ease-out both;
}

.eyebrow,
.section-number {
  margin-bottom: 1rem;
  color: var(--purple);
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::after,
.section-number::after {
  content: "";
  display: inline-block;
  width: 3rem;
  height: 2px;
  margin-left: 0.85rem;
  vertical-align: middle;
  background: var(--lime);
}

.hero__lead,
.section-lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: var(--step-3);
  line-height: 1.45;
}

.hero__lead {
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.button {
  min-height: 3.25rem;
  padding: 0.9rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.28rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.button--amazon {
  background: var(--amazon);
  color: var(--ink);
  box-shadow: 0 0.65rem 1.4rem rgba(255, 91, 26, 0.18);
}

.button--amazon:hover {
  transform: translateY(-2px);
  background: #e94c0c;
  box-shadow: 0 0.8rem 1.8rem rgba(255, 91, 26, 0.24);
}

.button--amazon:active {
  transform: translateY(0);
}

.purchase-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--step-1);
}

.media-frame {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #dcd9e2;
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--hero {
  min-height: 0;
  aspect-ratio: 4 / 5;
  animation: settle 720ms 90ms ease-out both;
}

.media-frame--hero > video,
.media-frame--hero > img {
  position: absolute;
  inset: 0;
}

.media-frame--hero::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 0.38rem;
  height: 38%;
  background: var(--lime);
}

.media-toggle {
  position: absolute;
  z-index: 4;
  right: 0.75rem;
  bottom: 0.75rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0.25rem;
  background: rgba(21, 22, 28, 0.88);
  color: var(--white);
  font-size: var(--step-1);
  font-weight: 750;
  cursor: pointer;
}

.difference {
  padding-block: var(--section-space);
  display: grid;
  gap: clamp(2.5rem, 7vw, 6.5rem);
  background: var(--white);
}

.difference > * {
  width: min(100% - 2rem, 36rem);
  margin-inline: auto;
}

.difference__media {
  min-height: 25rem;
  aspect-ratio: 4 / 5;
}

.difference__copy {
  align-self: center;
}

.feature-rail {
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-rail li {
  min-height: 8rem;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.35rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-rail strong {
  color: var(--purple);
  font-size: var(--step-3);
  line-height: 1;
}

.feature-rail span {
  color: var(--muted);
  font-size: var(--step-1);
  font-weight: 750;
}

.contrast-line {
  margin: 2rem 0 0;
  font-size: var(--step-2);
}

.contrast-line strong {
  color: var(--purple);
}

.method {
  width: var(--page);
  margin-inline: auto;
  padding-block: var(--section-space);
}

.method__heading {
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.cycle {
  margin: 0;
  padding: 0;
  display: grid;
  list-style: none;
  border-top: 1px solid var(--line);
}

.cycle__step {
  position: relative;
  min-height: 18rem;
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto auto;
  column-gap: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.cycle__number {
  grid-row: 1 / -1;
  color: var(--purple);
  font-size: var(--step-4);
  font-weight: 760;
  line-height: 1;
}

.cycle__pulse {
  position: relative;
  align-self: center;
  width: 7.5rem;
  height: 7.5rem;
  border: 1px solid var(--purple);
  border-radius: 50%;
}

.cycle__pulse::before,
.cycle__pulse::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid var(--purple);
  border-radius: inherit;
}

.cycle__pulse::after {
  inset: 34%;
  background: var(--lime);
  border-color: var(--lime);
}

.cycle__pulse--hold::before {
  inset: 26%;
  border-width: 2px;
}

.cycle__pulse--hold::after {
  inset: 38%;
}

.cycle__pulse--release::before {
  inset: -10%;
  border-color: var(--line);
}

.cycle__pulse--release::after {
  inset: 42%;
}

.cycle__step h3,
.cycle__step p {
  grid-column: 2;
}

.cycle__step p {
  max-width: 21rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--step-1);
}

.method__close {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.method__close p {
  margin: 0;
  font-size: var(--step-3);
  font-weight: 720;
  letter-spacing: -0.025em;
}

.riders {
  display: grid;
  background: var(--surface);
}

.riders__copy {
  width: min(100% - 2rem, 38rem);
  margin-inline: auto;
  padding-block: var(--section-space);
  align-self: center;
}

.riders__close {
  max-width: 20ch;
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  border-top: 3px solid var(--lime);
  font-size: var(--step-3);
  font-weight: 760;
  line-height: 1.25;
}

.riders__media {
  min-height: 0;
  aspect-ratio: 1 / 1;
  background: var(--paper);
}

.riders__media img {
  position: absolute;
  inset: 0;
  object-fit: contain;
}

.routine {
  width: var(--page);
  margin-inline: auto;
  padding-block: var(--section-space);
}

.routine__heading {
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
  text-align: left;
}

.routine__heading h2,
.routine__heading .section-lead {
  max-width: 45rem;
}

.scenes {
  display: grid;
  border-top: 1px solid var(--line);
}

.scene {
  position: relative;
  min-height: 26rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.scene::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 18, 0.88) 0%, rgba(10, 8, 18, 0.1) 62%);
  pointer-events: none;
}

.scene__media {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene > :not(.scene__media) {
  position: relative;
  z-index: 2;
}

.scene__index {
  color: var(--purple);
  font-size: var(--step-4);
  font-weight: 760;
  line-height: 1;
  text-shadow: 0 1px 1rem rgba(255, 255, 255, 0.72);
}

.scene:nth-child(3) .scene__index {
  color: var(--lime);
}

.scene p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.final-cta {
  min-height: 46rem;
  display: grid;
  background: var(--ink);
  color: var(--white);
}

.final-cta__copy {
  width: min(100% - 2rem, 38rem);
  margin-inline: auto;
  padding-block: var(--section-space);
  align-self: center;
}

.final-cta__copy h2 {
  max-width: 12ch;
}

.section-number--light {
  color: #a985e2;
}

.purchase-note--light {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.final-cta__media {
  min-height: 27rem;
}

.site-footer {
  padding: 2rem max(1rem, calc((100% - 78rem) / 2));
  display: grid;
  gap: 1rem;
  border-top: 1px solid #33353d;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  color: var(--white);
  letter-spacing: 0.16em;
}

.mobile-cta {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 4.8rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--amazon);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 -0.5rem 1.5rem rgba(21, 22, 28, 0.18);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.mobile-cta span {
  font-weight: 850;
}

.mobile-cta small {
  max-width: 10rem;
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: right;
}

.mobile-cta.is-hidden {
  pointer-events: none;
  transform: translateY(110%);
  opacity: 0;
}

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--purple);
}

@keyframes settle {
  from {
    transform: translateY(1.25rem);
    opacity: 0;
  }

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

@media (min-width: 48rem) {
  :root {
    --header-height: 4.5rem;
  }

  body {
    padding-bottom: 0;
  }

  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .media-frame--hero {
    min-height: min(47rem, calc(100svh - 7rem));
    aspect-ratio: auto;
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
  }

  .difference {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    padding-inline: max(1rem, calc((100% - 78rem) / 2));
  }

  .difference > * {
    width: 100%;
    margin: 0;
  }

  .difference__media {
    min-height: 42rem;
  }

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

  .feature-rail li {
    min-height: 10rem;
  }

  .cycle {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
  }

  .cycle__step {
    min-height: 24rem;
    padding: 1.5rem;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .cycle__step:last-child {
    border-right: 0;
  }

  .riders {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }

  .riders__copy {
    padding-inline: clamp(2rem, 6vw, 6rem);
  }

  .routine__heading {
    text-align: center;
  }

  .routine__heading h2,
  .routine__heading .section-lead {
    margin-inline: auto;
  }

  .scenes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
  }

  .scene {
    min-height: 30rem;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .scene:last-child {
    border-right: 0;
  }

  .final-cta {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .final-cta__copy {
    padding-inline: clamp(2rem, 6vw, 6rem);
  }

  .final-cta__media {
    min-height: 48rem;
  }

  .site-footer {
    grid-template-columns: 0.7fr 1.3fr;
    align-items: start;
  }

  .mobile-cta {
    display: none;
  }
}

@media (min-width: 72rem) {
  .hero {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  }

  .cycle__step {
    grid-template-columns: auto 1fr;
    column-gap: 2rem;
  }

  .cycle__pulse {
    width: 9rem;
    height: 9rem;
  }
}

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

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