/* Heebo, self-hosted (same files as styles.css). */
@font-face {
  font-family: Heebo;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/heebo-hebrew-400.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: Heebo;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/heebo-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Heebo;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/heebo-hebrew-500.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: Heebo;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/heebo-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Heebo;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/heebo-hebrew-600.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: Heebo;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/heebo-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Heebo;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/heebo-hebrew-700.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: Heebo;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/heebo-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Heebo;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/heebo-hebrew-800.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: Heebo;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/heebo-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Home page only. The other pages (blog, legal, landing pages) keep styles.css.
   The page runs from night at the top to sunrise at the bottom, in the app's own colors:
   its night sky (#0A0C22 → #1E2146), its cream type and its gold. */

:root {
  color-scheme: dark;
  --bg: #0b0b14;
  --bg-2: #0f0f1a;
  --night-1: #0a0c22;
  --night-2: #14173a;
  --night-3: #1e2146;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3ede4;
  --cream: #f4ebdc;
  --muted: #b1a99d;
  --muted-2: #8a8378;
  --gold: #dab67a;
  --gold-hi: #fad07c;
  --amber: #f1cd7f;
  --late: #e8846b;
  --green: #5c8a62;
  --app-canvas: #101012;
  --app-card: #1e1e22;
  --radius: 22px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: Heebo, "SF Hebrew", "Arial Hebrew", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  background: var(--gold);
  color: #141210;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* The hero is on screen from the first paint, so it rises on load rather than waiting
   for the observer: the headline never depends on script timing. */
.js .hero [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
  animation: rise 0.9s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

/* ---------- Buttons and badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}

.btn-gold {
  background: linear-gradient(180deg, #ecd09a, var(--gold));
  color: #141210;
  box-shadow: 0 6px 24px -8px rgba(218, 182, 122, 0.6);
}

.btn-gold:hover {
  box-shadow: 0 8px 32px -6px rgba(250, 208, 124, 0.75);
}

.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 24px 0 26px;
  border-radius: 16px;
  background: var(--cream);
  color: #0b0b14;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 18px 40px -16px rgba(250, 208, 124, 0.55);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 24px 48px -16px rgba(250, 208, 124, 0.75);
}

.badge-lines {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: start;
}

.badge-small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.75;
}

.badge-big {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ---------- Header ---------- */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition:
    background 0.3s,
    border-color 0.3s,
    backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(11, 11, 20, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line);
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition:
    color 0.2s,
    background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 132px 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 70% at 70% 0%, rgba(74, 60, 110, 0.45), transparent 60%),
    linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 55%, var(--bg) 100%);
}

/* Fades the sky into the page below, so the hero has no edge. */
.sky::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.sky-glow {
  position: absolute;
  inset-inline-start: -10%;
  bottom: 0;
  width: 70%;
  height: 60%;
  background: radial-gradient(closest-side, rgba(218, 182, 122, 0.16), transparent);
  filter: blur(20px);
}

.stars {
  position: absolute;
  inset: 0;
}

.star {
  position: absolute;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  background: #fff;
  opacity: 0.2;
  animation: twinkle var(--d, 4s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: var(--o, 0.85);
  }
}

.moon {
  position: absolute;
  top: 120px;
  inset-inline-start: 7%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8ea, #e9dcc3 60%, #cdbb98);
  box-shadow:
    0 0 60px 18px rgba(244, 235, 220, 0.16),
    0 0 140px 40px rgba(244, 235, 220, 0.08);
}

.moon::after {
  content: "";
  position: absolute;
  inset: -2px -2px -2px 14px;
  border-radius: 50%;
  background: var(--night-1);
  opacity: 0.92;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 0 0 rgba(250, 208, 124, 0.6);
  animation: ping 2.4s infinite;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(250, 208, 124, 0.6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(250, 208, 124, 0);
  }
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--cream);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ffe1a3 0%, var(--gold-hi) 40%, #e9a65f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-facts svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
}

/* ---------- The phone ---------- */

.hero-device {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.device-halo {
  position: absolute;
  top: 6%;
  width: 120%;
  aspect-ratio: 1;
  max-width: 560px;
  background: radial-gradient(closest-side, rgba(218, 182, 122, 0.22), rgba(90, 68, 120, 0.18) 55%, transparent 75%);
  filter: blur(10px);
  pointer-events: none;
}

.phone {
  --pw: clamp(248px, 25vw, 318px);
  position: relative;
  width: var(--pw);
  aspect-ratio: 402 / 874;
  padding: calc(var(--pw) * 0.035);
  border-radius: calc(var(--pw) * 0.16);
  background: linear-gradient(145deg, #3a3a42, #121216 40%, #2a2a30);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.12) inset,
    0 50px 90px -30px rgba(0, 0, 0, 0.85),
    0 30px 60px -40px rgba(218, 182, 122, 0.35);
  font-size: calc(var(--pw) / 25);
}

.phone-island {
  position: absolute;
  z-index: 5;
  top: calc(var(--pw) * 0.058);
  left: 50%;
  width: 30%;
  height: calc(var(--pw) * 0.085);
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--pw) * 0.13);
  background: var(--app-canvas);
  color: var(--cream);
}

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition:
    opacity 0.6s var(--ease),
    transform 0.8s var(--ease),
    visibility 0s 0.6s;
}

.scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.6s var(--ease),
    transform 0.8s var(--ease),
    visibility 0s;
}

/* Home scene */

.app-sky {
  position: absolute;
  inset: 0 0 auto;
  height: 58%;
  background: linear-gradient(180deg, #0a0c22 0%, #14173a 60%, #1e2146 100%);
}

.app-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 70% 18%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 84% 44%, #fff, transparent),
    radial-gradient(1px 1px at 40% 12%, #fff, transparent),
    radial-gradient(1px 1px at 12% 58%, #fff, transparent),
    radial-gradient(1px 1px at 58% 52%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 30% 70%, #fff, transparent);
  opacity: 0.7;
  animation: twinkle 5s ease-in-out infinite;
  --o: 0.9;
}

.app-moon {
  position: absolute;
  top: 14%;
  inset-inline-end: 12%;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: #f4ebdc;
  box-shadow: 0 0 2em 0.6em rgba(244, 235, 220, 0.18);
}

.app-clouds {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3em;
}

.app-header {
  position: absolute;
  top: 4.4em;
  inset-inline: 1.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-wordmark {
  width: 7.4em;
  height: auto;
}

.app-streak {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  font-weight: 800;
  font-size: 1.3em;
  color: var(--gold-hi);
}

.app-streak svg {
  width: 0.9em;
  height: 0.9em;
  fill: var(--gold-hi);
}

.app-week {
  position: absolute;
  top: 7.2em;
  inset-inline: 1.2em;
  display: flex;
  justify-content: space-between;
  padding: 0.55em 0.7em;
  border-radius: 1.2em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.wd {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  font-size: 0.85em;
  font-weight: 700;
  color: rgba(244, 235, 220, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
}

.wd.hit {
  background: var(--gold);
  border-color: var(--gold);
  color: #141210;
}

.wd.today {
  border-color: var(--gold-hi);
  color: var(--cream);
}

.wd.today.hit {
  color: #141210;
  animation: pop 0.5s var(--ease);
}

.wd.rest {
  border-style: dashed;
}

@keyframes pop {
  0% {
    transform: scale(0.6);
  }
  60% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

.app-next {
  position: absolute;
  top: 11.6em;
  inset-inline: 0;
  text-align: center;
}

.app-kicker {
  font-size: 0.95em;
  font-weight: 600;
  color: rgba(244, 235, 220, 0.72);
}

.app-time {
  margin-top: -0.05em;
  font-size: 5.6em;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.app-time span {
  color: var(--gold-hi);
  animation: blink 2s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

.app-chips {
  display: flex;
  justify-content: center;
  gap: 0.45em;
  margin-top: 0.3em;
  padding-inline: 1em;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  height: 2.3em;
  padding: 0 0.85em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82em;
  font-weight: 600;
  white-space: nowrap;
}

.app-chip svg {
  width: 1em;
  height: 1em;
  fill: var(--gold-hi);
}

.app-chip.soft {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 235, 220, 0.72);
  font-weight: 500;
}

.app-list {
  position: absolute;
  top: 61%;
  inset-inline: 1.3em;
}

.app-list-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.8em;
  font-weight: 700;
  color: #98989d;
  margin-bottom: 0.6em;
}

.app-list-head b {
  color: var(--gold-hi);
  font-size: 1.05em;
}

.app-alarm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75em 1em;
  margin-bottom: 0.6em;
  border-radius: 1.3em;
  background: var(--app-card);
}

.app-alarm p {
  font-size: 1.9em;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.app-alarm small {
  font-size: 0.75em;
  color: #98989d;
}

.app-alarm.dim p {
  color: rgba(244, 235, 220, 0.45);
}

.toggle {
  position: relative;
  width: 3.1em;
  height: 1.85em;
  border-radius: 999px;
  background: #3a3a3c;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 0.15em;
  inset-inline-end: 0.15em;
  width: 1.55em;
  height: 1.55em;
  border-radius: 50%;
  background: #fff;
}

.toggle.on {
  background: var(--green);
}

.toggle.on::after {
  inset-inline-end: auto;
  inset-inline-start: 0.15em;
}

.app-tabs {
  position: absolute;
  bottom: 1.6em;
  inset-inline: 2.2em;
  display: flex;
  justify-content: space-around;
  padding: 0.55em;
  border-radius: 999px;
  background: rgba(30, 30, 34, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8em;
  color: #98989d;
}

.app-tabs span {
  padding: 0.35em 1em;
  border-radius: 999px;
}

.app-tabs .on {
  background: #3a3a3c;
  color: var(--cream);
  font-weight: 700;
}

/* Ring scene */

.scene-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6.4em;
  text-align: center;
}

.ring-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 50% at 50% 38%, rgba(250, 208, 124, 0.28), transparent 70%),
    linear-gradient(180deg, #25285a 0%, #4a3c6e 55%, #1a1630 100%);
}

.ring-label {
  font-size: 0.85em;
  font-weight: 600;
  color: rgba(244, 235, 220, 0.7);
}

.ring-time {
  font-size: 5.4em;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.ring-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 6em;
  height: 6em;
  margin-top: 1.6em;
}

.ring-bell svg {
  position: relative;
  width: 3em;
  height: 3em;
  fill: var(--gold-hi);
  filter: drop-shadow(0 0 0.8em rgba(250, 208, 124, 0.6));
}

.scene-ring.is-active .ring-bell svg {
  animation: shake 0.55s ease-in-out infinite;
}

@keyframes shake {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-14deg);
  }
  75% {
    transform: rotate(14deg);
  }
}

.wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(250, 208, 124, 0.55);
  opacity: 0;
}

.scene-ring.is-active .wave {
  animation: wave 1.8s ease-out infinite;
}

.scene-ring.is-active .wave.w2 {
  animation-delay: 0.6s;
}

.scene-ring.is-active .wave.w3 {
  animation-delay: 1.2s;
}

@keyframes wave {
  0% {
    transform: scale(0.5);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.ring-title {
  margin-top: 1.6em;
  font-size: 1.35em;
  font-weight: 800;
}

.ring-actions {
  position: absolute;
  bottom: 3.4em;
  inset-inline: 1.6em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7em;
}

.ring-actions span {
  display: grid;
  place-items: center;
  height: 3.6em;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95em;
}

.ring-snooze {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 235, 220, 0.35);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.ring-go {
  background: var(--cream);
  color: #141210;
  box-shadow: 0 0 0 0 rgba(244, 235, 220, 0.5);
}

.scene-ring.is-active .ring-go {
  animation: ping-cream 1.6s infinite;
}

@keyframes ping-cream {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 235, 220, 0.55);
  }
  80%,
  100% {
    box-shadow: 0 0 0 0.9em rgba(244, 235, 220, 0);
  }
}

/* Mission scene */

.scene-mission {
  background: radial-gradient(120% 80% at 50% 20%, #2b2a36, #0d0d12 70%);
}

.cam {
  position: absolute;
  top: 18%;
  inset-inline: 1.4em;
  height: 42%;
  border-radius: 1.4em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.corner {
  position: absolute;
  width: 1.6em;
  height: 1.6em;
  border: 0.22em solid var(--gold-hi);
  opacity: 0.85;
}

.corner.c1 {
  top: 0.8em;
  left: 0.8em;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0.5em 0 0 0;
}

.corner.c2 {
  top: 0.8em;
  right: 0.8em;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 0.5em 0 0;
}

.corner.c3 {
  bottom: 0.8em;
  left: 0.8em;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 0.5em;
}

.corner.c4 {
  bottom: 0.8em;
  right: 0.8em;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 0.5em 0;
}

.pushup {
  position: absolute;
  inset: 12% 6% 6%;
  width: 88%;
  height: 82%;
}

.floor {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2;
}

.limb {
  stroke: var(--gold-hi);
  stroke-width: 5;
  stroke-linecap: round;
}

.joint {
  fill: var(--cream);
}

.joint.head {
  fill: var(--gold-hi);
}

.mission-banner {
  position: absolute;
  top: 6.3em;
  inset-inline: 1.4em;
  padding: 0.6em 0.8em;
  border-radius: 1em;
  background: rgba(20, 18, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9em;
  font-weight: 700;
}

.reps {
  position: absolute;
  top: 65%;
  inset-inline: 2em;
  display: flex;
  gap: 0.4em;
}

.reps i {
  flex: 1;
  height: 0.5em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition:
    background 0.35s,
    box-shadow 0.35s;
}

.reps i.on {
  background: var(--gold-hi);
  box-shadow: 0 0 0.8em rgba(250, 208, 124, 0.6);
}

.rep-count {
  position: absolute;
  top: 70%;
  inset-inline: 0;
  text-align: center;
  font-size: 2.6em;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(244, 235, 220, 0.5);
}

.rep-count b {
  color: var(--cream);
}

/* Win scene */

.scene-win {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8em;
  background: linear-gradient(180deg, #2f4a86 0%, #9c7aa0 45%, #f7c483 100%);
  color: #fff;
}

.win-rays {
  position: absolute;
  top: 14%;
  left: 50%;
  width: 26em;
  height: 26em;
  margin-left: -13em;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.12) 0 8deg, transparent 8deg 20deg);
  mask: radial-gradient(closest-side, #000, transparent);
  -webkit-mask: radial-gradient(closest-side, #000, transparent);
}

.scene-win.is-active .win-rays {
  animation: spin 18s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.win-flame {
  position: relative;
  width: 5.4em;
  height: 5.4em;
  fill: #fff4da;
  filter: drop-shadow(0 0.4em 1.4em rgba(255, 196, 120, 0.8));
}

.scene-win.is-active .win-flame {
  animation: pop 0.7s var(--ease);
}

.win-title {
  position: relative;
  margin-top: 0.6em;
  font-size: 1.85em;
  font-weight: 800;
  text-shadow: 0 0.2em 1em rgba(90, 40, 60, 0.35);
}

.win-facts {
  position: relative;
  width: calc(100% - 2.8em);
  margin-top: 1.8em;
  border-radius: 1.3em;
  background: rgba(20, 18, 16, 0.55);
  backdrop-filter: blur(8px);
}

.win-facts p {
  display: flex;
  justify-content: space-between;
  padding: 0.9em 1.1em;
  font-size: 0.95em;
}

.win-facts p + p {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.win-facts span {
  color: rgba(255, 255, 255, 0.7);
}

.win-close {
  position: absolute;
  bottom: 3.2em;
  inset-inline: 1.4em;
  display: grid;
  place-items: center;
  height: 3.4em;
  border-radius: 999px;
  background: #141210;
  color: var(--cream);
  font-weight: 800;
}

/* Story steps under the phone */

.story-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 440px);
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.story-steps button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  min-height: 56px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted-2);
  font: inherit;
  font-size: 13px;
  text-align: start;
  cursor: pointer;
  transition: color 0.3s;
}

.story-steps b {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.3s;
}

.story-steps .bar {
  position: relative;
  width: 100%;
  height: 3px;
  margin-bottom: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.story-steps .bar i {
  position: absolute;
  inset: 0;
  background: var(--gold-hi);
  transform: scaleX(0);
  transform-origin: right;
}

.story-steps .done .bar i {
  transform: scaleX(1);
}

.story-steps .current .bar i {
  animation: fill var(--dur, 4s) linear forwards;
}

.story-steps .current button,
.story-steps .current b {
  color: var(--cream);
}

.story-steps.paused .current .bar i {
  animation-play-state: paused;
}

@keyframes fill {
  to {
    transform: scaleX(1);
  }
}

/* ---------- Sections ---------- */

section {
  position: relative;
}

.kicker {
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

h2 {
  margin-top: 10px;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.section-head {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-head.row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

/* Snooze */

.snooze {
  padding: 110px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.snooze-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.snooze-copy > p:last-child {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  max-width: 32em;
}

.snooze-stack {
  position: relative;
  display: grid;
  gap: 12px;
  max-width: 440px;
  justify-self: center;
  width: 100%;
}

.notif {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.notif div {
  flex: 1;
  min-width: 0;
}

.notif b {
  font-size: 14px;
  color: var(--muted);
}

.notif p {
  font-size: 16px;
  font-weight: 600;
}

.notif s {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(232, 132, 107, 0.14);
  color: var(--late);
  font-size: 13px;
  font-weight: 700;
}

.notif-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(180deg, #ff9f43, #f26b38);
  position: relative;
}

.notif-icon::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 3px solid #fff;
}

.notif.n1 {
  opacity: 0.45;
  transform: scale(0.94);
}

.notif.n2 {
  opacity: 0.65;
  transform: scale(0.97);
}

.notif.n3 {
  opacity: 0.85;
}

.hero-notif {
  margin-top: 12px;
  background: linear-gradient(135deg, rgba(218, 182, 122, 0.2), rgba(218, 182, 122, 0.06));
  border-color: rgba(250, 208, 124, 0.4);
  box-shadow: 0 20px 50px -20px rgba(250, 208, 124, 0.45);
}

.hero-notif img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.hero-notif b {
  color: var(--gold-hi);
}

/* How */

.how {
  padding: 110px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.step-num {
  position: absolute;
  z-index: 1;
  top: 36px;
  inset-inline-end: 42px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
}

.step-art {
  display: grid;
  place-items: center;
  height: 120px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 23, 58, 0.9), rgba(30, 33, 70, 0.6));
  border: 1px solid var(--line);
}

.art-time span {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--cream);
}

.art-time i {
  font-style: normal;
  color: var(--gold-hi);
  animation: blink 2s steps(1) infinite;
}

.art-pick {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
}

.art-pick span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.art-pick .on {
  background: var(--gold);
  border-color: var(--gold);
  color: #141210;
}

.art-done svg {
  width: 62px;
  height: 62px;
  padding: 12px;
  border-radius: 50%;
  background: var(--gold);
  fill: none;
  stroke: #141210;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  transition: stroke-dashoffset 0.8s var(--ease) 0.4s;
}

.step.in .art-done svg {
  stroke-dashoffset: 0;
}

.step h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--cream);
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

/* Missions */

.missions {
  padding: 110px 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(90, 68, 120, 0.25), transparent 70%),
    var(--bg-2);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.mission {
  padding: 18px 18px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s,
    background 0.3s;
}

.mission:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 208, 124, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.mission > h3 {
  margin-top: 18px;
  padding-inline: 6px;
  font-size: 21px;
  font-weight: 800;
  color: var(--cream);
}

.mission > p {
  margin-top: 6px;
  padding-inline: 6px;
  color: var(--muted);
  font-size: 16px;
}

.m-screen {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-radius: 16px;
  background: radial-gradient(120% 90% at 50% 10%, #26253a, #0e0e14 75%);
  border: 1px solid var(--line);
  font-size: 10px;
}

.paused .m-screen *,
.paused .m-screen {
  animation-play-state: paused !important;
}

/* push-ups */

.m-pushup svg {
  position: absolute;
  inset: 16% 10% 12%;
  width: 80%;
  height: 72%;
}

.m-counter {
  position: absolute;
  top: 12px;
  inset-inline-start: 14px;
  font-size: 22px;
  font-weight: 800;
  color: rgba(244, 235, 220, 0.5);
}

.m-counter b {
  color: var(--gold-hi);
}

/* math */

.m-math {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.m-problem {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.m-answer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
  font-size: 30px;
  font-weight: 800;
  color: var(--gold-hi);
  animation: answer-box 4.2s infinite;
}

.m-answer span {
  opacity: 0;
}

.m-answer .d1 {
  animation: digit-1 4.2s infinite;
}

.m-answer .d2 {
  animation: digit-2 4.2s infinite;
}

.caret {
  width: 2px;
  height: 28px;
  margin-inline-start: 2px;
  background: var(--gold-hi);
  animation: blink 1s steps(1) infinite;
}

@keyframes digit-1 {
  0%,
  24% {
    opacity: 0;
  }
  26%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes digit-2 {
  0%,
  40% {
    opacity: 0;
  }
  42%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes answer-box {
  0%,
  55% {
    border-color: rgba(255, 255, 255, 0.16);
  }
  60%,
  90% {
    border-color: var(--gold-hi);
    box-shadow: 0 0 24px rgba(250, 208, 124, 0.3);
  }
}

.m-ok {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: scale(0.5);
  animation: ok 4.2s var(--ease) infinite;
}

.m-ok svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #141210;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes ok {
  0%,
  56% {
    opacity: 0;
    transform: scale(0.5);
  }
  62%,
  90% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* verse */

.m-verse {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 18px;
  text-align: center;
}

.m-words {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
}

.m-words span {
  color: rgba(244, 235, 220, 0.28);
  animation: word 6s infinite;
}

.m-words span:nth-child(2) {
  animation-delay: 0.6s;
}

.m-words span:nth-child(3) {
  animation-delay: 1.2s;
}

.m-words span:nth-child(4) {
  animation-delay: 1.8s;
}

.m-words span:nth-child(5) {
  animation-delay: 2.4s;
}

.m-words span:nth-child(6) {
  animation-delay: 3s;
}

@keyframes word {
  0%,
  4% {
    color: rgba(244, 235, 220, 0.28);
  }
  8%,
  70% {
    color: var(--gold-hi);
  }
  85%,
  100% {
    color: rgba(244, 235, 220, 0.28);
  }
}

.m-wave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
}

.m-wave i {
  width: 5px;
  height: 100%;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleY(0.25);
  animation: eq 1.1s ease-in-out infinite;
}

.m-wave i:nth-child(2n) {
  animation-delay: -0.4s;
}

.m-wave i:nth-child(3n) {
  animation-delay: -0.7s;
}

.m-wave i:nth-child(5n) {
  animation-delay: -0.2s;
}

@keyframes eq {
  0%,
  100% {
    transform: scaleY(0.25);
  }
  50% {
    transform: scaleY(1);
  }
}

/* photo missions */

.m-photo .corner {
  font-size: 10px;
}

.m-subject {
  position: absolute;
  inset: 26% 20%;
  width: 60%;
  height: 48%;
  fill: rgba(244, 235, 220, 0.82);
}

.m-subject .bristles {
  fill: #9ec7e8;
}

.m-subject .pillow {
  fill: #fff8ea;
}

.m-bed .m-subject rect:first-child {
  fill: #b9a3d8;
}

.m-skyshot {
  background: linear-gradient(180deg, #2f4a86 0%, #9c7aa0 55%, #f7c483 100%);
}

.m-sun {
  position: absolute;
  bottom: -26px;
  left: 50%;
  width: 90px;
  height: 90px;
  margin-left: -45px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff4da, #ffd98f 50%, #f4ae64);
  box-shadow: 0 0 60px 20px rgba(255, 200, 120, 0.45);
  animation: sunrise 4.2s var(--ease) infinite;
}

@keyframes sunrise {
  0% {
    transform: translateY(40px);
  }
  50%,
  100% {
    transform: translateY(0);
  }
}

.scan {
  position: absolute;
  inset-inline: 10px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-hi), transparent);
  box-shadow: 0 0 16px 3px rgba(250, 208, 124, 0.5);
  opacity: 0;
  animation: scan 4.2s ease-in-out infinite;
}

@keyframes scan {
  0% {
    top: 10%;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  50% {
    top: 88%;
    opacity: 1;
  }
  56%,
  100% {
    top: 88%;
    opacity: 0;
  }
}

.m-brush .scan,
.m-brush .m-ok {
  animation-delay: 0.7s;
}

.m-bed .scan,
.m-bed .m-ok {
  animation-delay: 1.4s;
}

.m-skyshot .scan,
.m-skyshot .m-ok,
.m-skyshot .m-sun {
  animation-delay: 2.1s;
}

.mission-note {
  margin-top: 30px;
  color: var(--muted);
  font-size: 17px;
  text-align: center;
}

.mission-note b {
  color: var(--cream);
}

/* Insights */

.insights {
  padding: 120px 0 110px;
}

.insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.insights-copy > p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  max-width: 30em;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-inline-start: 34px;
  font-weight: 500;
}

.checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141210' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
      center / 14px no-repeat,
    var(--gold);
}

.insights-card {
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, #17171f, #111116);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.ic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ic-head b {
  font-size: 22px;
  font-weight: 800;
}

.ic-seg {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.ic-seg i {
  padding: 4px 12px;
  border-radius: 999px;
  font-style: normal;
  color: var(--muted);
}

.ic-seg .on {
  background: #3a3a3c;
  color: var(--cream);
  font-weight: 700;
}

.ic-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.ic-stats div {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--app-card);
}

.ic-stats small {
  display: block;
  color: #98989d;
  font-size: 13px;
}

.ic-stats strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ic-chart {
  width: 100%;
  height: auto;
  margin-top: 20px;
  overflow: visible;
}

.ic-chart .grid {
  stroke: rgba(255, 255, 255, 0.06);
}

.ic-chart .alarm-line {
  stroke: rgba(244, 235, 220, 0.4);
  stroke-dasharray: 5 6;
}

.ic-chart .area {
  fill: rgba(218, 182, 122, 0.1);
  opacity: 0;
  transition: opacity 1s 0.8s;
}

.ic-chart .line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease) 0.2s;
}

.ic-chart .pt {
  fill: var(--gold-hi);
  stroke: #111116;
  stroke-width: 3;
  opacity: 0;
  transition: opacity 0.4s;
}

.ic-chart .pt.late {
  fill: var(--late);
}

.in .ic-chart .line {
  stroke-dashoffset: 0;
}

.in .ic-chart .area,
.in .ic-chart .pt {
  opacity: 1;
}

.ic-chart .pt:nth-of-type(1) {
  transition-delay: 0.3s;
}
.ic-chart .pt:nth-of-type(2) {
  transition-delay: 0.5s;
}
.ic-chart .pt:nth-of-type(3) {
  transition-delay: 0.7s;
}
.ic-chart .pt:nth-of-type(4) {
  transition-delay: 0.9s;
}
.ic-chart .pt:nth-of-type(5) {
  transition-delay: 1.1s;
}
.ic-chart .pt:nth-of-type(6) {
  transition-delay: 1.3s;
}
.ic-chart .pt:nth-of-type(7) {
  transition-delay: 1.5s;
}

.ic-legend {
  display: flex;
  align-items: center;
  gap: 6px 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.ic-legend .sw {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-inline-end: -8px;
  border-radius: 50%;
  background: var(--gold-hi);
}

.ic-legend .sw.late {
  background: var(--late);
}

.ic-legend .sw.dash {
  width: 16px;
  height: 0;
  border-radius: 0;
  border-top: 2px dashed rgba(244, 235, 220, 0.5);
  background: none;
}

.ic-meter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  background: var(--app-card);
}

.ic-meter small {
  display: block;
  color: #98989d;
  font-size: 13px;
}

.ic-meter b {
  font-size: 18px;
}

.ic-meter strong {
  font-size: 30px;
  font-weight: 800;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  width: calc(var(--v) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, #b8935a, var(--gold-hi));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1.4s var(--ease) 0.6s;
}

.in .meter span {
  transform: scaleX(1);
}

/* Bento */

.bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 22px;
  margin-top: 90px;
}

.tile {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.tile h3 {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 800;
  color: var(--cream);
}

.tile p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.tile-streak {
  background:
    radial-gradient(80% 80% at 90% 0%, rgba(250, 208, 124, 0.18), transparent 70%),
    var(--surface);
}

.flame {
  width: 54px;
  height: 54px;
  fill: var(--gold-hi);
  filter: drop-shadow(0 6px 18px rgba(250, 208, 124, 0.5));
  animation: flicker 2.6s ease-in-out infinite;
  transform-origin: 50% 90%;
}

@keyframes flicker {
  0%,
  100% {
    transform: scale(1) rotate(0);
  }
  30% {
    transform: scale(1.06, 0.97) rotate(-2deg);
  }
  60% {
    transform: scale(0.97, 1.05) rotate(2deg);
  }
}

.mini-week {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.mini-week span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.mini-week .hit {
  background: var(--gold);
  border-color: var(--gold);
  color: #141210;
}

.mini-week .rest {
  border-style: dashed;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(218, 182, 122, 0.12);
  border: 1px solid rgba(218, 182, 122, 0.3);
}

.tile-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--gold-hi);
}

/* FAQ */

.faq-section {
  padding: 110px 0;
  background: var(--bg-2);
}

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.faq-wrap .section-head {
  position: sticky;
  top: 110px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 22px 0 22px 40px;
  font-size: 19px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background:
    linear-gradient(var(--gold-hi), var(--gold-hi)) center / 10px 2px no-repeat,
    linear-gradient(var(--gold-hi), var(--gold-hi)) center / 2px 10px no-repeat,
    rgba(218, 182, 122, 0.12);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--gold-hi);
}

.faq details p {
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
  max-width: 40em;
}

/* Reads */

.reads {
  padding: 110px 0;
}

.link-arrow {
  color: var(--gold-hi);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.link-arrow::after {
  content: " ←";
}

.read-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.read {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s;
}

.read:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 208, 124, 0.35);
}

.read-date {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.read h3 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--cream);
}

.read p {
  color: var(--muted);
  font-size: 15px;
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.topic-links a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.topic-links a:hover {
  color: var(--text);
  border-color: var(--line-2);
}

/* Dawn CTA: the sun rises as the section scrolls in (--rise from 0 to 1, set by home.js) */

.dawn {
  --rise: 0;
  position: relative;
  min-height: 640px;
  padding: 140px 0 160px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.dawn-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, #14173a 30%, #5a4478 62%, #d0866e 86%, #f7c483 100%);
}

.dawn-sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, #2f4a86 35%, #9c7aa0 65%, #f7c483 100%);
  opacity: var(--rise);
}

.dawn-sun {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: 260px;
  height: 260px;
  margin-left: -130px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #fff4da, #ffd98f 46%, #f4ae64);
  box-shadow:
    0 0 120px 50px rgba(255, 200, 120, 0.55),
    0 0 260px 120px rgba(255, 196, 120, 0.25);
  transform: translateY(calc(90px + (1 - var(--rise)) * 200px));
}

.dawn-hills {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 160px;
  fill: #0b0b14;
}

.dawn-copy {
  position: relative;
}

.dawn-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
}

.dawn h2 {
  margin-top: 26px;
  font-size: clamp(38px, 5.6vw, 72px);
  text-shadow: 0 4px 30px rgba(20, 18, 40, 0.5);
}

.dawn-copy > p:not(.dawn-note) {
  margin-top: 14px;
  color: rgba(255, 246, 230, 0.86);
  font-size: 19px;
}

.dawn .store-badge {
  margin-top: 34px;
}

.store-light {
  background: #0b0b14;
  color: var(--cream);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
}

.store-light:hover {
  box-shadow: 0 26px 50px -12px rgba(0, 0, 0, 0.7);
}

.dawn-copy > .dawn-note {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(11, 11, 20, 0.45);
  backdrop-filter: blur(6px);
  font-size: 14px;
  color: rgba(255, 246, 230, 0.9);
}

/* Footer */

.footer {
  padding: 60px 0 36px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--cream);
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.footer-col a:hover {
  color: var(--text);
}

.copyright {
  margin-top: 40px;
  color: var(--muted-2);
  font-size: 13px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-grid,
  .snooze-grid,
  .insights-grid,
  .faq-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow,
  .hero-actions,
  .hero-facts {
    justify-content: center;
  }

  .lede {
    margin-inline: auto;
  }

  .faq-wrap .section-head {
    position: static;
    margin-bottom: 0;
  }

  .mission-grid,
  .read-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps,
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding-inline: 18px;
  }

  .nav-row {
    height: 62px;
  }

  .brand {
    font-size: 17px;
  }

  .moon {
    top: 78px;
    inset-inline-start: auto;
    inset-inline-end: 5%;
    width: 38px;
    height: 38px;
  }

  .hero {
    padding: 96px 0 64px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

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

  .hero-actions .store-badge,
  .hero-actions .btn {
    justify-content: center;
  }

  .hero-facts {
    flex-direction: column;
    align-items: center;
  }

  .phone {
    --pw: min(74vw, 290px);
  }

  .story-steps button {
    font-size: 12px;
  }

  .story-steps b {
    font-size: 13px;
  }

  .snooze,
  .how,
  .missions,
  .insights,
  .faq-section,
  .reads {
    padding: 80px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .section-head.row {
    flex-direction: column;
    align-items: flex-start;
  }

  .mission-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .read-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .m-screen {
    height: 170px;
  }

  .insights-card {
    padding: 18px;
    border-radius: 22px;
  }

  .ic-stats strong {
    font-size: 24px;
  }

  .ic-meter {
    gap: 10px;
    padding: 12px;
  }

  .bento {
    margin-top: 60px;
    gap: 16px;
  }

  .tile {
    padding: 24px;
  }

  .faq summary {
    font-size: 17px;
  }

  .dawn {
    min-height: 560px;
    padding: 110px 0 140px;
  }

  .dawn-sun {
    width: 200px;
    height: 200px;
    margin-left: -100px;
  }

  .store-badge {
    min-height: 56px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .dawn {
    --rise: 1 !important;
  }
}
