/*
 * 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: #58ade5;
  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;
}

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

/* The sky photo sits behind the hero and bleeds under the section
   below, so its rounded top corners reveal a sliver of sky. Width is
   fluid (fills the column at any screen size); the height stays fixed
   at 900px so the framing is consistent and `cover` crops the sides.
   From the frame breakpoint up the section goes full-bleed (see the
   media query at the bottom). The mask fades the hard bottom edge into
   the page colour. */
.above-fold::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 900px;
  background: url("../images/blue-sky-wide.png") center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
  z-index: -1;
  pointer-events: none;
}

/* Soft blur over the lower portion of the sky so it blends into the
   section below. Sits behind the hero content (z-index: -1) but above
   the sky layer, so only the sky gets blurred — not the hero content. */
.above-fold::after {
  content: "";
  position: absolute;
  left: 0;
  top: 460px;
  width: 100%;
  height: 440px;
  z-index: -1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%);
  mask-image: linear-gradient(to bottom, transparent, #000 45%);
}

.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: 24px;
  padding: 0 20px;
  width: 100%;
}

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

.hero__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;
}

/* ---------- 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 is a touch larger. */
.cta--closing .cta__legal {
  font-size: 10px;
  letter-spacing: -0.1px;
}

/* =========================================================
   Works with (logo strip)
   ========================================================= */
.works-with {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 20px;
  width: 390px;
  max-width: 100%;
  background: linear-gradient(to bottom, #e3f3ff, #abddff);
  border-radius: 40px;
  box-shadow: inset 0 0 4px 0 #fff;
  overflow: hidden;
}

.works-with__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  background: #000;
  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;
}

.works-with__track:hover {
  animation-play-state: paused;
}

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

@media (prefers-reduced-motion: reduce) {
  .works-with__track {
    animation: none;
  }
}

.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;
}

/* =========================================================
   Features section
   ========================================================= */
.features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 32px 0 19px;
  margin-top: 24px;
  width: 390px;
  max-width: 100%;
  background: #c0e6ff;
  border-radius: 40px;
  box-shadow: inset 0 0 4px 0 #fff;
  overflow: hidden;
}

.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: #000;
}

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

/* =========================================================
   Feature card component
   ========================================================= */
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 350px;
  max-width: calc(100% - 40px);
  padding: 30px 30px 0;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
}

.feature-card__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 270px;
  max-width: 100%;
}

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

.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(0, 0, 0, 0.5);
}

.feature-card__image {
  position: relative;
  width: 270px;
  max-width: 100%;
  /* keep the figma crop window (≈270×400) at any card width */
  aspect-ratio: 270 / 400;
  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;
}

/* =========================================================
   Closing CTA
   ========================================================= */
.closing-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
  padding: 32px 20px;
  margin-top: 24px;
  width: 390px;
  max-width: 100%;
  background: #fff;
  border-radius: 40px 40px 0 0;
}

.closing-cta__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.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: #000;
}

.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: #000;
}

/* ---------- Site footer (inside the closing card) ---------- */
.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(0, 0, 0, 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(0, 0, 0, 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: #000;
  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;
  }
}
