@font-face {
  font-family: Kalnia;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/kalnia-latin.woff2") format("woff2");
}

@font-face {
  font-family: Mulish;
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("assets/fonts/mulish-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --canvas: #010003;
  --section-fade: clamp(120px, 15vw, 240px);
  --ink: #f5eee0;
  --body: #f5eee0db;
  --gold: #ffc573;
  --accent: #f5ae39;
  --display: Kalnia, Georgia, serif;
  --sans: Mulish, Avenir, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
html { background: var(--canvas); }
body {
  position: relative;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  font-weight: 500;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}
h1, h2 { font-family: var(--display); font-weight: 600; }
.desktop-break { display: none; }

/* Fade only backgrounds; phone images and text retain their full opacity. */
.feature--vault, .feature--sound, .feature--morning {
  background: var(--section-edge-scrim), var(--section-glow);
}

/* Mobile's hero and first feature share one continuous background. */
.intro {
  background: linear-gradient(0deg, var(--canvas), transparent var(--section-fade)), var(--section-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: clip;
  --section-glow: radial-gradient(ellipse 110% 55% at 50% 0% in oklab, #0d2254 0%, #050218 50%, var(--canvas) 100%);
}
.masthead {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 12px 16px 0;
}
.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  padding-inline: 8px;
}
.wordmark {
  color: var(--gold);
  font: 400 24px/28px var(--display);
  text-shadow: 0 0 16px #f5ae3959;
}
.desktop-nav { display: none; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-download { display: none; }
.social-links { display: flex; align-items: center; gap: 16px; color: #f5eee0c7; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 24px; height: 44px; }
.social-links svg { width: 18px; height: 18px; }
.get-app {
  padding: 12px 22px;
  border-radius: 999px;
  color: #05050a;
  background: linear-gradient(180deg in oklab, var(--gold), oklch(65% 0.14 75));
  box-shadow: inset 0 1px 0 oklch(88% 0.12 75 / 90%), 0 0 18px #f5ae3940;
  font-weight: 800;
  line-height: 18px;
}
.mobile-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -11px;
  list-style: none;
  cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav {
  position: absolute;
  top: 56px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 180px;
  padding: 24px;
  border: 1px solid #ffc57340;
  border-radius: 16px;
  background: #050218;
  font-size: 15px;
  font-weight: 600;
}
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg in oklab, #0000, #f5ae39e6, #0000);
  box-shadow: 0 0 8px #f5ae3959;
}
.divider svg { flex-shrink: 0; width: 13px; height: 13px; color: oklch(86% 0.12 75); }
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 64px 8px 0;
  text-align: center;
}
h1 {
  max-width: 740px;
  font-size: 56px;
  line-height: 60px;
  letter-spacing: -0.025em;
}
.hero-copy p {
  max-width: 320px;
  color: var(--body);
  font-size: 18px;
  line-height: 27px;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 30px 0 52px;
}
.app-store { display: block; flex-shrink: 0; width: 180px; height: 60px; }
.app-store img { width: 100%; height: 100%; }
.trial {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}
.sparkle { position: absolute; pointer-events: none; color: var(--accent); }
.hero-sparkle-left { top: 108px; left: 18px; width: 30px; height: 30px; }
.hero-sparkle-right { top: 300px; right: 22px; width: 18px; height: 18px; color: var(--gold); opacity: 0.7; }

.feature {
  --section-edge-scrim: linear-gradient(180deg, var(--canvas), transparent var(--section-fade), transparent calc(100% - var(--section-fade-bottom, var(--section-fade))), var(--canvas));
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 72px 0 96px;
  overflow: clip;
}
.feature-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 0 28px 48px;
  text-align: center;
}
.feature h2 {
  max-width: 520px;
  font-size: 40px;
  line-height: 46px;
  letter-spacing: -0.02em;
}
.accent-line { flex-shrink: 0; width: 48px; height: 3px; border-radius: 2px; background: var(--accent); }
.feature-copy p { max-width: 320px; color: var(--body); font-size: 17px; line-height: 26px; }
.feature--schedule .feature-copy { padding-inline: 18px; }
.feature--vault {
  --section-glow: radial-gradient(ellipse 90% 40% at 100% 18% in oklab, #0d2254 0%, #050218 50%, var(--canvas) 100%);
}
.feature--sound {
  --section-glow: radial-gradient(ellipse 90% 40% at 0% 20% in oklab, #0b2a4a 0%, #050218 50%, var(--canvas) 100%);
}
.feature--morning {
  --section-glow: radial-gradient(ellipse 110% 45% at 50% 30% in oklab, oklab(33% 0.045 0.07) 0%, #11080f 55%, var(--canvas) 100%);
}
.phone-slot { flex-shrink: 0; width: min(300px, calc(100% - 48px)); }
.phone {
  width: 100%;
  padding: 10px;
  border-radius: 48px;
  background: #070709;
  box-shadow: inset 0 0 0 2px #ffffff0d, 0 50px 90px -24px #000000bf, 0 0 0 1.5px #87a1bd2e;
}
.phone img { width: 100%; height: auto; aspect-ratio: 280 / 612; border-radius: 38px; }
.feature--schedule .phone {
  box-shadow: inset 0 0 0 2px #ffffff0d, 0 60px 100px -28px #000000cc, 0 0 0 1.5px #87a1bd33;
}
.feature--morning .phone {
  background: #fbf7f2;
  box-shadow: inset 0 0 0 2px #0000000f, 0 50px 90px -22px #7f413280, 0 0 0 1.5px #ffffffb3;
}

.closing {
  background: linear-gradient(180deg, var(--canvas), transparent var(--section-fade)), var(--section-glow);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  padding: 96px 32px 40px;
  overflow: clip;
  --section-glow: radial-gradient(ellipse 120% 60% at 50% 100% in oklab, oklab(33% 0.045 0.07) 0%, #11080f 55%, var(--canvas) 100%);
}
.closing h2 { position: relative; font-size: 48px; line-height: 54px; letter-spacing: -0.025em; }
.closing p { position: relative; color: var(--body); font-size: 18px; line-height: 27px; }
.closing .app-store, .closing .divider, .footer { position: relative; }
.closing-sparkle-big { right: 28px; bottom: 230px; width: 96px; height: 96px; opacity: 0.85; }
.closing-sparkle-small { top: 64px; right: 40px; width: 22px; height: 22px; color: var(--gold); opacity: 0.7; }
.closing .divider { padding-top: 80px; }
.footer {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding-top: 4px;
}
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
.footer nav a { color: #f5eee0b8; font-size: 14px; font-weight: 600; line-height: 20px; }
.footer .wordmark { color: #ffc573b3; font-size: 16px; line-height: 20px; text-shadow: 0 0 12px #f5ae3940; }

@media (min-width: 600px) and (max-width: 1023px) {
  .hero-copy { max-width: 700px; }
  .hero-copy h1 { max-width: 600px; font-size: 72px; line-height: 78px; }
  .feature-copy { max-width: 500px; }
  .closing { padding-inline: max(32px, calc((100% - 600px) / 2)); }
}

@media (min-width: 1024px) {
  :root {
    --section-inset: max(40px, calc((100% - 1120px) / 2));
    --section-gap: clamp(96px, 10vw, 160px);
    --phone-width: clamp(300px, 26.388889vw, 380px);
  }
  .desktop-break { display: initial; }
  .mobile-break, .mobile-menu { display: none; }
  .intro { background: none; }
  .intro + .feature, .feature + .feature, .feature + .closing {
    margin-top: var(--section-gap);
  }
  .masthead {
    background: linear-gradient(0deg, var(--canvas), transparent var(--section-fade)), var(--section-glow);
    padding: 24px max(64px, calc((100% - 1200px) / 2)) 140px;
    --section-glow: radial-gradient(ellipse 70% 70% at 50% 0% in oklab, #0d2254 0%, #050218 50%, var(--canvas) 100%);
  }
  .nav { height: 64px; padding: 0; }
  .nav .wordmark { font-size: 26px; line-height: 30px; }
  .desktop-nav { display: flex; align-items: center; gap: 32px; color: #f5eee0c7; font-size: 15px; font-weight: 600; line-height: 20px; }
  .nav-actions { gap: 32px; }
  .nav-download { display: block; font-size: 15px; }
  .divider { gap: 14px; }
  .divider svg { width: 15px; height: 15px; }
  .hero-copy { gap: 24px; padding: 150px 0 0; }
  h1 { max-width: none; font-size: clamp(72px, 7.222222vw, 104px); line-height: 1.038462; letter-spacing: -0.03em; }
  .hero-copy p { max-width: 720px; font-size: 22px; line-height: 33px; }
  .hero-cta { gap: 16px; padding: 40px 0 0; }
  .app-store { width: 198px; height: 66px; }
  .trial { font-size: 13px; }
  .hero-sparkle-left { top: 200px; left: calc(50% - 500px); width: 48px; height: 48px; }
  .hero-sparkle-right { top: 440px; right: calc(50% - 480px); width: 26px; height: 26px; }
  .feature {
    background: var(--section-edge-scrim), var(--section-glow);
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    height: 760px;
    padding: 0 var(--section-inset);
    --section-glow: radial-gradient(ellipse 45% 60% at 78% 50% in oklab, #0d2254 0%, #050218 55%, var(--canvas) 100%);
  }
  .feature:not(.feature--morning)::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    height: 180px;
    background: linear-gradient(180deg, transparent, var(--canvas));
    pointer-events: none;
  }
  .feature--vault, .feature--morning { flex-direction: row-reverse; }
  .feature--vault { --section-glow: radial-gradient(ellipse 45% 60% at 22% 50% in oklab, #0d2254 0%, #050218 55%, var(--canvas) 100%); }
  .feature--sound { --section-glow: radial-gradient(ellipse 45% 60% at 78% 50% in oklab, #0b2a4a 0%, #050218 55%, var(--canvas) 100%); }
  .feature--morning {
    height: 1000px;
    --section-fade-bottom: 250px;
    --section-glow: radial-gradient(ellipse 50% 65% at 22% 55% in oklab, oklab(33% 0.045 0.07) 0%, #11080f 55%, var(--canvas) 100%);
  }
  .feature-copy, .feature--schedule .feature-copy {
    flex-shrink: 0;
    align-items: flex-start;
    gap: 28px;
    width: min(520px, 44vw);
    padding: 0;
    text-align: left;
  }
  .feature--schedule .feature-copy { width: min(580px, 44vw); }
  .feature h2 { max-width: none; font-size: clamp(48px, 4.444444vw, 64px); line-height: 1.125; letter-spacing: -0.025em; }
  .accent-line { width: 64px; }
  .feature-copy p { max-width: none; font-size: 21px; line-height: 33px; }
  .phone-slot { position: relative; width: min(560px, 44vw); height: 100%; }
  .phone {
    position: absolute;
    top: 90px;
    left: calc(var(--phone-width) * 150 / 380);
    width: var(--phone-width);
    padding: calc(var(--phone-width) * 12 / 380);
    border-radius: calc(var(--phone-width) * 60 / 380);
    transform: rotate(14deg);
    transform-origin: 0 0;
    box-shadow: inset 0 0 0 2px #ffffff0d, 0 60px 100px -28px #000000cc, 0 0 0 1.5px #87a1bd33;
  }
  .phone img { aspect-ratio: 356 / 778; border-radius: calc(var(--phone-width) * 48 / 380); }
  .feature--vault .phone, .feature--morning .phone { left: calc(var(--phone-width) * 30 / 380); transform: rotate(-14deg); }
  .feature--morning .phone { top: 156px; }
  .closing {
    align-items: center;
    gap: 32px;
    padding: 180px var(--section-inset) 48px;
    text-align: center;
    --section-glow: radial-gradient(ellipse 70% 70% at 50% 100% in oklab, oklab(33% 0.045 0.07) 0%, #11080f 55%, var(--canvas) 100%);
  }
  .closing h2 { font-size: 88px; line-height: 94px; }
  .closing p { max-width: 520px; font-size: 22px; line-height: 33px; }
  .closing-sparkle-big { right: calc(50% - 520px); bottom: 260px; width: 160px; height: 160px; }
  .closing-sparkle-small { top: 180px; right: auto; left: calc(50% - 500px); width: 32px; height: 32px; }
  .footer { flex-direction: row; justify-content: space-between; gap: 24px; }
  .footer nav { gap: 32px; }
  .footer .wordmark { font-size: 20px; line-height: 24px; }
}

@media (max-width: 359px) {
  .nav-actions { gap: 8px; }
  .social-links { gap: 8px; }
  h1 { font-size: 48px; line-height: 54px; }
  .feature h2 { font-size: 36px; line-height: 42px; }
  .closing { padding-inline: 24px; }
  .closing h2 { font-size: 42px; line-height: 48px; }
  .closing-sparkle-big { width: 72px; height: 72px; right: 20px; }
}

/* Original CSS planets sit above section backgrounds and below all content. */
.background-planets {
  position: absolute;
  inset: 0 0 auto;
  height: 100vh;
  z-index: 1;
  overflow: clip;
  pointer-events: none;
  opacity: 0.4;
}
.hero-copy, .hero-cta, .feature-copy, .phone-slot {
  position: relative;
  z-index: 2;
}
.closing h2, .closing p, .closing .app-store, .closing .divider, .footer, .sparkle { z-index: 2; }
.bg-planet-1 {
  position: absolute; top: 40vh; right: 12vw;
  width: 55px; height: 55px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, oklch(0.9 0.08 75), oklch(0.6 0.1 60));
  box-shadow:
    inset -10px -10px 15px rgba(0,0,0,0.7),
    inset 4px 4px 8px rgba(255,255,255,0.2),
    0 0 25px oklch(0.8 0.1 60 / 0.2);
  z-index: 1; animation: float 10s ease-in-out infinite alternate-reverse;
}
.bg-planet-1::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 110px; height: 20px; border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  border: 4px solid oklch(0.85 0.1 70 / 0.3);
  border-bottom-color: oklch(0.85 0.1 70 / 0.9);
  border-left-color: oklch(0.85 0.1 70 / 0.6);
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.bg-planet-2 {
  position: absolute; top: 65vh; left: 8vw;
  width: 130px; height: 130px; border-radius: 50%;
  background: repeating-linear-gradient(
    -15deg,
    oklch(0.8 0.05 240),
    oklch(0.8 0.05 240) 15px,
    oklch(0.7 0.08 250) 15px,
    oklch(0.7 0.08 250) 25px,
    oklch(0.6 0.1 260) 25px,
    oklch(0.6 0.1 260) 45px
  );
  box-shadow:
    inset -25px -25px 35px rgba(0,0,0,0.8),
    inset 10px 10px 20px rgba(255,255,255,0.15),
    0 0 50px oklch(0.7 0.08 250 / 0.15);
  z-index: 1; animation: float 14s ease-in-out infinite alternate;
}
.bg-planet-2::after {
  content: ''; position: absolute; bottom: 30px; right: 40px;
  width: 30px; height: 20px; border-radius: 50%;
  background: oklch(0.5 0.12 260 / 0.4);
  transform: rotate(-15deg);
  filter: blur(4px);
}

.bg-planet-3 {
  position: absolute; top: 75vh; right: 20vw;
  width: 45px; height: 45px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, oklch(0.9 0.04 40), oklch(0.6 0.06 30));
  box-shadow:
    inset -8px -8px 12px rgba(0,0,0,0.8),
    inset 4px 4px 6px rgba(255,255,255,0.15),
    0 0 20px oklch(0.7 0.05 30 / 0.2);
  z-index: 1; animation: float 9s ease-in-out infinite alternate-reverse;
  overflow: hidden;
}
.bg-planet-3::before {
  content: ''; position: absolute; top: 10px; left: 5px;
  width: 25px; height: 15px; border-radius: 50%;
  background: oklch(0.85 0.02 50 / 0.4);
  transform: rotate(20deg);
  filter: blur(3px);
}
.bg-planet-3::after {
  content: ''; position: absolute; bottom: 8px; right: 12px;
  width: 15px; height: 10px; border-radius: 50%;
  background: oklch(0.55 0.04 30 / 0.5);
  transform: rotate(-30deg);
  filter: blur(3px);
}

@keyframes float {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}

@media (max-width: 599px) {
  .background-planets { opacity: 0.3; }
  .background-planets > div { scale: 0.65; }
}
@media (prefers-reduced-motion: reduce) {
  .background-planets > div { animation: none; }
}
