/*
 * Drop Albertus Nova .otf files into /app/static/fonts/ and these
 * @font-face blocks will pick them up. Inter is loaded from Google Fonts.
 */
@font-face {
  font-family: "Albertus Nova";
  font-weight: 100;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/albertusnovathin.otf") format("opentype");
}
@font-face {
  font-family: "Albertus Nova";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/albertusnovalight.otf") format("opentype");
}
@font-face {
  font-family: "Albertus Nova";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/albertusnova.otf") format("opentype");
}
@font-face {
  font-family: "Albertus Nova";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/albertusnova_bold.otf") format("opentype");
}
@font-face {
  font-family: "Albertus Nova";
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/albertusnovablack.otf") format("opentype");
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #000;
  color: #000;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* the full-bleed sky on desktop may run a hair past the viewport */
  overflow-x: hidden;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.page > section + section {
  border-top: 1px solid #20222a;
}

/* Until a goal is picked, the post-question sections (testimonial,
   features, closing CTA) stay hidden so the page funnels through the
   goal selector first. JS removes .is-locked on the first goal change. */
body.is-locked .compare,
body.is-locked .features,
body.is-locked .closing-cta {
  display: none;
}

/* =========================================================
   Above the fold (blue sky backdrop)
   ========================================================= */
.above-fold {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 32px;
  width: 100%;
  isolation: isolate;
  overflow: hidden;
}

/* Sparse night-sky particles behind the hero content. Pure CSS — each
   radial-gradient is one star, positions are in %-of-section so they
   adapt to viewport height. A gentle opacity twinkle keeps it alive. */
.above-fold::before,
.above-fold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Layer A — half of the stars on a 7s twinkle, drifting forward. */
.above-fold::before {
  background-image:
    radial-gradient(1.5px 1.5px at 12% 4%,   #fff 50%, transparent 100%),
    radial-gradient(1px   1px   at 35% 2%,   rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1px   1px   at 58% 1%,   rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 72% 3%,   rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 83% 8%,   rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(2px   2px   at 5%  11%,  rgba(255, 255, 255, 0.9) 50%, transparent 100%),
    radial-gradient(1px   1px   at 25% 9%,   rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 42% 13%,  rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1px   1px   at 5%  18%,  rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1px   1px   at 64% 17%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px   1px   at 78% 19%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 12% 23%,  rgba(255, 255, 255, 0.8) 50%, transparent 100%),
    radial-gradient(1px   1px   at 18% 27%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 33% 25%,  rgba(255, 255, 255, 0.9) 50%, transparent 100%),
    radial-gradient(1px   1px   at 51% 31%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 33%,  rgba(255, 255, 255, 0.8) 50%, transparent 100%),
    radial-gradient(1px   1px   at 68% 32%,  rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1px   1px   at 88% 30%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 95% 38%,  rgba(255, 255, 255, 0.8) 50%, transparent 100%),
    radial-gradient(1px   1px   at 13% 41%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 30% 44%,  rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 50% 48%,  #fff 50%, transparent 100%),
    radial-gradient(1px   1px   at 66% 47%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px   1px   at 82% 50%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 18% 56%,  rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1px   1px   at 34% 60%,  rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1px   1px   at 48% 64%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 75% 65%,  rgba(255, 255, 255, 0.8) 50%, transparent 100%),
    radial-gradient(1px   1px   at 92% 67%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 4%  70%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 42% 72%,  rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(2px   2px   at 90% 73%,  rgba(255, 255, 255, 0.9) 50%, transparent 100%),
    radial-gradient(1px   1px   at 22% 78%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 60% 82%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px   1px   at 7%  85%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 43% 87%,  rgba(255, 255, 255, 0.8) 50%, transparent 100%),
    radial-gradient(1px   1px   at 70% 90%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 30% 92%,  rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1px   1px   at 88% 94%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px   1px   at 50% 96%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%);
  animation:
    stars-twinkle 7s ease-in-out infinite,
    stars-drift 18s ease-in-out infinite;
}

/* Layer B — the other half on an 11s twinkle with a 2.5s offset and a
   reverse drift, so the two layers never blink or move in sync. */
.above-fold::after {
  background-image:
    radial-gradient(1px   1px   at 8%  2%,   rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 22% 1%,   rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 47% 5%,   rgba(255, 255, 255, 0.8) 50%, transparent 100%),
    radial-gradient(1px   1px   at 67% 7%,   rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px   1px   at 88% 6%,   rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 16% 10%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px   1px   at 50% 12%,  rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1px   1px   at 28% 14%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 16%,  #fff 50%, transparent 100%),
    radial-gradient(1px   1px   at 73% 14%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 8%  20%,  rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1px   1px   at 38% 22%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(2px   2px   at 92% 22%,  #fff 50%, transparent 100%),
    radial-gradient(1px   1px   at 22% 30%,  rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1px   1px   at 47% 28%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px   1px   at 60% 28%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px   1px   at 80% 34%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 3%  35%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px   1px   at 73% 36%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 26% 39%,  rgba(255, 255, 255, 0.8) 50%, transparent 100%),
    radial-gradient(1px   1px   at 56% 42%,  rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1px   1px   at 22% 45%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px   1px   at 78% 44%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 8%  52%,  rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1px   1px   at 40% 53%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 62% 56%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 97% 55%,  #fff 50%, transparent 100%),
    radial-gradient(1px   1px   at 28% 58%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px   1px   at 12% 62%,  rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1px   1px   at 65% 63%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px   1px   at 84% 68%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 12% 73%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px   1px   at 53% 75%,  rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 25% 76%,  rgba(255, 255, 255, 0.8) 50%, transparent 100%),
    radial-gradient(1px   1px   at 78% 78%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 55% 80%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 17% 83%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 38% 88%,  rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1px   1px   at 60% 86%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 94% 88%,  rgba(255, 255, 255, 0.8) 50%, transparent 100%),
    radial-gradient(1px   1px   at 5%  92%,  rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(1px   1px   at 18% 94%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px   1px   at 38% 97%,  rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1px   1px   at 65% 95%,  rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px   1px   at 82% 97%,  rgba(255, 255, 255, 0.7) 50%, transparent 100%);
  animation:
    stars-twinkle-soft 11s ease-in-out -2.5s infinite,
    stars-drift-reverse 22s ease-in-out infinite;
}

@keyframes stars-twinkle {
  0%, 100% { opacity: 0; }
  50%      { opacity: 0.8; }
}

@keyframes stars-twinkle-soft {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.8; }
}

@keyframes stars-drift {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(3px, -4px); }
  50%      { transform: translate(-2px, -6px); }
  75%      { transform: translate(-3px, 3px); }
}

@keyframes stars-drift-reverse {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(-3px, 4px); }
  50%      { transform: translate(2px, 6px); }
  75%      { transform: translate(3px, -3px); }
}

@media (prefers-reduced-motion: reduce) {
  .above-fold::before,
  .above-fold::after { animation: none; }
}

.testimonial-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 285px;
  max-width: calc(100% - 40px);
  height: 32px;
  padding: 10px;
  background: rgba(0, 11, 25, 0.5);
  border: 0.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 1000px;
  box-sizing: border-box;
}

.testimonial-pill__text {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.3;
  text-align: center;
  color: #fff;
  white-space: nowrap;
  transition: opacity 300ms ease;
}

.testimonial-pill__text.is-fading {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-pill__text {
    transition: none;
  }
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 88px;
  height: 20px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 0 20px;
  width: 100%;
}

.hero__title {
  margin: 0;
  width: 100%;
  max-width: 350px;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.72px;
  text-align: center;
  color: #fff;
}

.hero__title em {
  font-style: italic;
}

.hero__subtext {
  margin: 0;
  width: 100%;
  max-width: 290px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Hero phone screenshot ---------- */
.hero-image {
  position: relative;
  width: 100%;
  max-width: 350px;
  height: 383px;
  overflow: hidden;
}

.hero-image img {
  position: absolute;
  top: 0;
  left: 3.16%;
  width: 93.69%;
  height: 176.23%;
  object-fit: cover;
  object-position: top;
  pointer-events: none;
  user-select: none;
}

/* =========================================================
   CTA (shared between hero + closing)
   ========================================================= */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cta__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #0057c3;
  border-radius: 20px;
  box-shadow: inset 0 0 3px 1px rgba(255, 255, 255, 0.8);
  text-decoration: none;
  color: inherit;
  transition: filter 120ms ease, transform 120ms ease;
}

.cta__button__inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 45px;
  padding: 0 20px;
  border: 1px solid #1174cb;
  border-radius: 10px;
  background: #0057c3;
  box-shadow: inset 0 0 3px 0 rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
}

.cta__button:hover {
  filter: brightness(1.05);
}

.cta__button:active {
  transform: translateY(1px);
}

.cta__icon {
  width: 25px;
  height: 25px;
  object-fit: cover;
  filter: drop-shadow(0 4px 25px rgba(0, 0, 0, 0.2));
  flex-shrink: 0;
}

.cta__label {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.cta__legal {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 9px;
  line-height: 1.1;
  letter-spacing: -0.09px;
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
}

.cta__legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Legal line on the dark hero backdrop. */
.cta--on-dark .cta__legal {
  color: rgba(255, 255, 255, 0.8);
}

/* Legal line under the closing CTA: muted white on dark background. */
.cta--closing .cta__legal {
  font-size: 10px;
  letter-spacing: -0.1px;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   Works with (logo strip)
   ========================================================= */
.works-with {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
  width: 390px;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.works-with__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  background: #2b2b2b;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.14px;
  color: #fff;
  white-space: nowrap;
}

.works-with__logos {
  display: flex;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

/* The track contains two copies of the logo set; translating it by -50%
   lands the second copy exactly where the first started, so the loop is
   seamless. */
.works-with__track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  animation: works-with-scroll 22s linear infinite;
}

@keyframes works-with-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.works-with__logo {
  display: block;
  flex-shrink: 0;
}

.works-with__logo--whoop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 164px;
  height: 80px;
}

.works-with__logo--whoop img {
  display: block;
  width: 100px;
  height: 16px;
}

.works-with__logo--amazfit {
  width: 142px;
  height: 80px;
}

.works-with__logo--oura {
  width: 122px;
  height: 80px;
}

.works-with__logo--garmin {
  width: 169px;
  height: 80px;
}

/* =========================================================
   Goal selector
   ========================================================= */
.goal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 32px 0;
  width: 390px;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.2);
}

.goal__heading {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: center;
}

.goal__title {
  margin: 0;
  width: 100%;
  max-width: 350px;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.32px;
  color: #fff;
}

.goal__subtext {
  margin: 0;
  width: 100%;
  max-width: 300px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
}

.goal__arrow {
  position: absolute;
  top: 88px;
  right: 45px;
  width: 34px;
  height: 44px;
  transform: rotate(66deg);
  pointer-events: none;
}

.goal__options-frame {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 320px;
  max-width: calc(100% - 40px);
}

.goal__options-label {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
}

.goal__options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.goal__option {
  position: relative;
  width: 100%;
}

.goal__option-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.goal__option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  background: #2b2b2b;
  border-radius: 20px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.goal__option-input:hover + .goal__option-label {
  background: #3a3a3a;
}

.goal__option-input:checked + .goal__option-label {
  background: #2496ff;
  color: #000;
}

.goal__option-input:focus-visible + .goal__option-label {
  outline: 2px solid #2496ff;
  outline-offset: 2px;
}

/* =========================================================
   Before / after comparison
   ========================================================= */
.compare {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  width: 390px;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.2);
}

.compare[hidden] {
  display: none;
}

.compare__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: center;
}

.compare__title {
  margin: 0;
  width: 100%;
  max-width: 350px;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.32px;
  color: #fff;
}

.compare__title em {
  font-style: italic;
}

.compare__subtext {
  margin: 0;
  width: 100%;
  max-width: 300px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
}

/* Transition only while the auto-tease animation runs. JS removes the
   class on the first user interaction so dragging stays instant. */
.compare__slider.is-teasing .compare__after,
.compare__slider.is-teasing .compare__divider {
  transition: clip-path 600ms ease-in-out, left 600ms ease-in-out;
}

.compare__slider {
  --pos: 50%;
  position: relative;
  width: 350px;
  max-width: calc(100% - 40px);
  height: 500px;
  border-radius: 23px;
  overflow: hidden;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
}

.compare__slider:focus-visible {
  outline: 2px solid #2496ff;
  outline-offset: 2px;
}

.compare__before,
.compare__after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.compare__after {
  clip-path: inset(0 0 0 var(--pos));
}

.compare__badge {
  position: absolute;
  top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  padding: 8px 10px;
  border-radius: 16px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.compare__badge.is-hidden {
  opacity: 0;
}

.compare__badge--before {
  left: 15px;
  background: #4d0000;
  border: 1px solid #ff0004;
  color: #ff0004;
}

.compare__badge--after {
  right: 15px;
  background: #113313;
  border: 1px solid #55fe5e;
  color: #55fe5e;
}

.compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  transform: translateX(-50%);
  background-image: linear-gradient(to bottom, #fff 50%, transparent 50%);
  background-size: 2px 8px;
  background-repeat: repeat-y;
  pointer-events: none;
}

.compare__divider-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  /* Only the grip is the drag target — the rest of the card stays
     scrollable. touch-action: none disables browser pan on this handle
     so a touch-drag actually moves the slider. */
  pointer-events: auto;
  cursor: ew-resize;
  touch-action: none;
}

.compare__divider-grip::before,
.compare__divider-grip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  transform: translateY(-50%);
}

.compare__divider-grip::before {
  left: 6px;
  border-right-color: #000;
}

.compare__divider-grip::after {
  right: 6px;
  border-left-color: #000;
}

/* =========================================================
   Features section
   ========================================================= */
.features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 32px 0;
  width: 390px;
  max-width: 100%;
}

.features__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0 20px;
  text-align: center;
  width: 100%;
}

.features__title {
  margin: 0;
  width: 100%;
  max-width: 350px;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.32px;
  color: #fff;
}

.features__subtext {
  margin: 0;
  width: 100%;
  max-width: 320px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
}

/* =========================================================
   Feature card component
   ========================================================= */
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 350px;
  max-width: calc(100% - 40px);
  padding: 30px 30px 0;
  background: #000;
  border: 0.5px solid #f5f6f1;
  border-radius: 30px;
  box-shadow: inset 0 2px 10px 0 #989892;
  overflow: hidden;
}

.feature-card__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 290px;
  max-width: 100%;
}

.feature-card__title {
  margin: 0;
  width: 290px;
  max-width: 100%;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: #fff;
}

.feature-card__body {
  margin: 0;
  width: 260px;
  max-width: 100%;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.18px;
  color: rgba(255, 255, 255, 0.5);
}

.feature-card__image {
  position: relative;
  width: 270px;
  max-width: 100%;
  /* keep the figma crop window (270×424) at any card width */
  aspect-ratio: 270 / 424;
  overflow: hidden;
}

.feature-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  user-select: none;
}

/* Schedule card image is 296×424 (figma) — slightly wider than the other
   cards so the calendar widget can sit past the phone's right edge. The
   3px negative side margin lets it bleed into the card's 30px padding. */
.feature-card[data-card="schedule"] .feature-card__image {
  width: 296px;
  aspect-ratio: 296 / 424;
  margin: 0 -3px;
}

/* =========================================================
   Closing CTA
   ========================================================= */
.closing-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 32px 20px;
  width: 390px;
  max-width: 100%;
}

.closing-cta__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.closing-cta__title {
  margin: 0;
  width: 100%;
  max-width: 350px;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.32px;
  text-align: center;
  color: #fff;
}

.closing-cta__subtext {
  margin: 0;
  width: 100%;
  max-width: 300px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  color: #fff;
}

/* ---------- Footer section ---------- */
.site-footer-section {
  display: flex;
  width: 390px;
  max-width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* ---------- Site footer ---------- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  width: 350px;
  max-width: 100%;
  text-align: left;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.site-footer__logo {
  display: block;
  width: 88px;
  height: 20px;
}

.site-footer__copyright {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: -0.1px;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.site-footer__legal-heading {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__links a {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

/* =========================================================
   Phones get the full viewport width; on tablets and up we fall
   back to the centered mobile-frame look — but the sky behind the
   hero goes full-bleed there (same image, fixed 900px height,
   responsive width).
   ========================================================= */
@media (min-width: 640px) {
  .page {
    max-width: 390px;
  }

  .above-fold {
    width: 100vw;
  }
}
