:root {
  --ink: #0a2540;
  --ink-2: #213b5c;
  --muted: #5b6b80;
  --line: #e4ebf3;
  --line-strong: #cfd9e5;
  --bg: #ffffff;
  --bg-soft: #f6f9fd;
  --black: #0b0f17;
  --blue-700: #0f57ba;
  --blue-600: #1667d6;
  --blue-500: #2f86f6;
  --blue-300: #8cc2ff;
  --blue-50: #eef5ff;
  --sun: #f7a21b;
  --sun-50: #fff4e2;
  --green: #22c55e;
  --red: #e5484d;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow: 0 1px 2px rgba(10, 37, 64, 0.05), 0 10px 30px rgba(10, 37, 64, 0.07);
  --shadow-lg: 0 2px 6px rgba(10, 37, 64, 0.05), 0 30px 70px -10px rgba(10, 37, 64, 0.2);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

svg {
  display: block;
}

section[id],
.stage-anchor {
  scroll-margin-top: var(--nav-h);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
}

.container-narrow {
  max-width: 780px;
}

/* Line icons share one style. */
.icon-box svg,
.streak-flame svg,
.tech-chip svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.icon-box {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
}

.icon-box svg {
  width: 20px;
  height: 20px;
}

.icon-box-sun {
  background: var(--sun-50);
  color: var(--sun);
}

.live-dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  70%,
  100% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-dark,
.store-btn:first-child {
  background: var(--black);
  color: #fff;
  box-shadow: 0 1px 2px rgba(10, 15, 23, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-dark:hover,
.store-btn:first-child:hover {
  background: #1d2533;
}

.store-btn {
  border-color: rgba(10, 37, 64, 0.14);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.store-btn:hover {
  border-color: rgba(10, 37, 64, 0.3);
}

.store-btn[aria-disabled="true"] {
  cursor: default;
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.store-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Navigation */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(10, 37, 64, 0.06);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-h);
}

/* Logo "Horizonte": the accent of the í is the first ray over the horizon. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}

.logo-mark {
  width: 26px;
  height: 26px;
}

.wordmark {
  font-family: "Manrope", var(--font);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.wordmark-i {
  position: relative;
  display: inline-block;
}

.wordmark-i svg {
  position: absolute;
  bottom: 0.7em;
  left: 50%;
  width: 0.28em;
  height: 0.28em;
  margin-left: -0.11em;
  overflow: visible;
}

.wordmark-i line {
  stroke: var(--sun);
  stroke-linecap: round;
  stroke-width: 22;
}

.nav-links {
  display: none;
  gap: 30px;
  margin-right: auto;
  margin-left: 28px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--blue-600);
}

/* Stage: hero + story, pinned while the page scrolls through it (stage.js). */

.stage {
  position: relative;
  height: 100vh;
  height: 100svh;
}

.js .stage {
  height: 560vh;
}

.stage-anchor {
  position: absolute;
  top: 12%;
  left: 0;
}

.stage-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* Sky: dawn at the top of the page, bright morning at the end of the story (--sky from stage.js). */
.sky {
  --sky: 0;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #cfe2ff 0%, #e7f0ff 42%, #fbf3ec 100%);
}

.sky-dawn {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(178, 196, 242, 0.55) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 214, 186, 0.55) 80%, rgba(255, 190, 150, 0.75) 100%);
  opacity: calc(1 - var(--sky) * 1.3);
}

.sky-blob {
  position: absolute;
  border-radius: 50%;
  animation: drift 20s ease-in-out infinite alternate;
  will-change: transform;
}

.sky-blob-a {
  top: -22vmax;
  left: -16vmax;
  width: 64vmax;
  height: 64vmax;
  background: radial-gradient(closest-side, rgba(116, 172, 255, 0.5), transparent);
}

.sky-blob-b {
  top: 8vmax;
  right: -14vmax;
  width: 54vmax;
  height: 54vmax;
  background: radial-gradient(closest-side, rgba(255, 196, 150, 0.45), transparent);
  animation-duration: 24s;
  animation-direction: alternate-reverse;
}

@keyframes drift {
  to {
    transform: translate3d(6vmax, 4vmax, 0) scale(1.08);
  }
}

.sun {
  position: absolute;
  top: 0;
  left: 50%;
  width: 96vmin;
  height: 96vmin;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 232, 184, 0.95), rgba(255, 208, 140, 0.5) 42%, rgba(255, 208, 140, 0) 100%);
  opacity: calc(0.95 - var(--sky) * 0.35);
  transform: translate(-50%, calc(100vh - 72vh * var(--sky) - 50%));
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}

/* Hero copy */

.hero-copy {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  padding-top: calc(var(--nav-h) + clamp(24px, 7vh, 80px));
  will-change: transform, opacity;
}

.hero-copy-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}





.hero-title {
  margin-top: 22px;
  font-size: clamp(54px, 12.5vw, 124px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-sub {
  max-width: 30em;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.hero-copy .store-buttons {
  margin-top: 28px;
}

/* Intro animation: words of the title rise in, then the rest follows (motion.js splits the title). */
.js .hero-title .word {
  display: inline-block;
  animation: word-in 1.1s var(--ease-out) both;
  animation-delay: calc(120ms + var(--i) * 90ms);
}

.js [data-intro] {
  animation: fade-up 1s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}

@keyframes word-in {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(0.35em);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(16px);
  }
}

/* Story beats (text next to the phone) */

.beats {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.beats-inner {
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-h) + 16px);
}

.story-segments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  max-width: 340px;
  margin-bottom: 18px;
}

.story-segments > span {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(10, 37, 64, 0.12);
}

.story-segments > span > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

/* stage.js sets the height to the tallest beat so the phone never jumps. */
.beat-texts {
  position: relative;
}

.beat {
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
}

.beat.is-active {
  opacity: 1;
  filter: none;
  transform: none;
}

.beat-kicker {
  margin-bottom: 8px;
  color: var(--blue-600);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.beat h2 {
  max-width: 14ch;
  font-size: clamp(28px, 7.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.beat h2 + p {
  max-width: 34ch;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.5;
}

/* Device: a 300×620 iPhone, positioned and rotated in 3D by stage.js. */

.device-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 0;
  height: 0;
  perspective: 1600px;
}

.device,
.float-layer {
  position: absolute;
  top: -310px;
  left: -150px;
  width: 300px;
  height: 620px;
  will-change: transform;
}

.device {
  transform-style: preserve-3d;
}

.device-body {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

/* The phone rings in the hero and in the first beat. */
.stage[data-beat="-1"] .device-body,
.stage[data-beat="0"] .device-body {
  animation: ring 2.6s ease-in-out infinite;
}

@keyframes ring {
  0%,
  34%,
  100% {
    transform: none;
  }
  4%,
  12%,
  20% {
    transform: rotate(-2deg);
  }
  8%,
  16%,
  24% {
    transform: rotate(2deg);
  }
  28% {
    transform: rotate(-0.8deg);
  }
}

.device-ripples span {
  position: absolute;
  inset: -2px;
  border: 1.5px solid rgba(22, 103, 214, 0.35);
  border-radius: 60px;
  opacity: 0;
}

.stage[data-beat="-1"] .device-ripples span,
.stage[data-beat="0"] .device-ripples span {
  animation: ripple 2.6s var(--ease-out) infinite;
}

.stage[data-beat="-1"] .device-ripples span + span,
.stage[data-beat="0"] .device-ripples span + span {
  animation-delay: 1.3s;
}

@keyframes ripple {
  from {
    opacity: 0.9;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.18);
  }
}

/* Thickness: a darker layer behind the frame that shows when the phone turns. */
.device-edge {
  position: absolute;
  inset: 0;
  border-radius: 58px;
  background: linear-gradient(90deg, #15181d, #3c424b 50%, #15181d);
  transform: translateZ(-14px);
}

.device-frame {
  position: absolute;
  inset: 0;
  padding: 11px;
  border-radius: 58px;
  background: #06080b;
  box-shadow:
    0 0 0 2px #4b525c,
    0 0 0 3.5px #1d2025,
    0 0 0 4px rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 60px 100px -30px rgba(10, 37, 64, 0.5),
    0 30px 60px -30px rgba(10, 37, 64, 0.45);
}

.device-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 47px;
  background: #fff;
}

.island {
  position: absolute;
  top: 11px;
  left: 50%;
  z-index: 10;
  width: 102px;
  height: 30px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
}

.glare {
  position: absolute;
  inset: 0 -40%;
  z-index: 11;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 64%, rgba(255, 255, 255, 0.07) 100%);
  pointer-events: none;
}

.hw {
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2a2e34, #5f6671);
}

.hw-action {
  top: 116px;
  left: -6px;
  height: 30px;
}

.hw-vol-up {
  top: 168px;
  left: -6px;
  height: 56px;
}

.hw-vol-down {
  top: 236px;
  left: -6px;
  height: 56px;
}

.hw-power {
  top: 192px;
  right: -6px;
  height: 88px;
  background: linear-gradient(90deg, #5f6671, #2a2e34);
}

/* Floating cards next to the phone in the hero. */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  animation: float 6s ease-in-out infinite;
}

.fc-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.fc-value {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fc-mission {
  top: 176px;
  left: -196px;
}

.fc-streak {
  top: 104px;
  right: -168px;
  animation-delay: -2s;
}

.fc-silent {
  top: 32px;
  left: -236px;
  animation-delay: -4s;
}

@keyframes float {
  50% {
    transform: translateY(-9px);
  }
}

/* Phone screens */

.status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 2px 24px 0 34px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.stage[data-beat="1"] .status {
  color: #fff;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-icons svg {
  height: 11px;
  fill: currentColor;
}

.status-icons svg:nth-child(1) {
  width: 17px;
}

.status-icons svg:nth-child(2) {
  width: 15px;
}

.status-icons svg:nth-child(3) {
  width: 25px;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 66px 20px 26px;
  opacity: 0;
  text-align: center;
  transform: scale(0.96);
  transition: opacity 0.45s ease, transform 0.6s var(--ease-out);
}

.screen.is-active {
  opacity: 1;
  transform: none;
}

.screen-alarm {
  background: radial-gradient(120% 55% at 50% 0%, #d6e8ff 0%, #ffffff 62%);
}

.alarm-day {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.alarm-time {
  font-size: 84px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.alarm-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.alarm-orb {
  width: 112px;
  height: 112px;
  margin: auto 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #ffe6b0 0%, #ffc56e 38%, rgba(255, 197, 110, 0) 72%);
  animation: orb 2.6s ease-in-out infinite;
}

@keyframes orb {
  50% {
    transform: scale(1.12);
  }
}

.alarm-mission {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.alarm-mission-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.alarm-mission-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.alarm-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

/* stage.js crosses out "Soneca" with --strike (0 → 1). */
.alarm-snooze {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.alarm-snooze span {
  position: relative;
}

.alarm-snooze span::after {
  content: "";
  position: absolute;
  top: 52%;
  right: -4px;
  left: -4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(var(--strike, 0));
  transform-origin: left;
}

.alarm-snooze-note {
  margin-top: 2px;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  opacity: var(--strike-note, 0);
}

.screen-camera {
  padding: 60px 18px 22px;
  background:
    radial-gradient(120% 55% at 50% 100%, rgba(124, 192, 255, 0.16), transparent 70%),
    linear-gradient(180deg, #1c2b45 0%, #0e1829 100%);
  color: #fff;
}

.cam-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
}

.cam-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.cam-live span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.cam-label {
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cam-count {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cam-count strong {
  color: #fff;
  font-size: 68px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.cam-frame {
  position: relative;
  width: 100%;
  margin-block: auto;
  padding: 16px 8px;
}

.cam-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid rgba(255, 255, 255, 0.5);
}

.cam-corner:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
  border-top-left-radius: 6px;
}

.cam-corner:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
  border-top-right-radius: 6px;
}

.cam-corner:nth-child(3) {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
  border-bottom-left-radius: 6px;
}

.cam-corner:nth-child(4) {
  right: 0;
  bottom: 0;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: 6px;
}

.skeleton,
.m-skeleton {
  width: 100%;
  overflow: visible;
}

.floor {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-dasharray: 4 6;
  stroke-width: 1.5;
}

.bone,
.bone-glow {
  fill: none;
  stroke: #7cc0ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}

/* A wide translucent stroke under the skeleton gives the body some volume. */
.bone-glow {
  stroke: rgba(124, 192, 255, 0.2);
  stroke-width: 16;
}

.head-glow {
  fill: rgba(124, 192, 255, 0.2);
}

/* Filled with the camera background so the neck line stops at the edge of the head. */
.head {
  fill: #16233a;
  stroke: #7cc0ff;
  stroke-width: 3;
}

.joint {
  fill: #fff;
  stroke: var(--blue-500);
  stroke-width: 2;
}

.cam-bar {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.cam-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-500), #7cc0ff);
  transform: scaleX(0);
  transform-origin: left;
}

.cam-caption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.screen-done {
  justify-content: center;
  background: radial-gradient(120% 60% at 50% 0%, #d6e8ff 0%, #ffffff 62%);
}

.done-check {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  box-shadow: 0 16px 36px rgba(22, 103, 214, 0.35);
  transform: scale(0.6);
  transition: transform 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) 0.1s;
}

.done-check svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: #fff;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  transition: stroke-dashoffset 0.5s ease 0.35s;
}

.screen-done.is-active .done-check {
  transform: none;
}

.screen-done.is-active .done-check svg {
  stroke-dashoffset: 0;
}

.done-title {
  margin-top: 26px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.done-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

.done-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 28px;
}

.done-stats div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.done-stats strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.done-stats span {
  color: var(--muted);
  font-size: 12px;
}

.done-morning {
  margin-top: 26px;
  color: var(--sun);
  font-size: 17px;
  font-weight: 700;
}

.screen-streak {
  justify-content: center;
  background: radial-gradient(120% 60% at 50% 0%, #fff0d9 0%, #ffffff 62%);
}

.streak-flame {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--sun-50);
  color: var(--sun);
}

.streak-flame svg {
  width: 36px;
  height: 36px;
}

.streak-number {
  margin-top: 16px;
  font-size: 76px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
  line-height: 1;
}

.screen-streak.is-today .streak-number {
  animation: bump 0.5s ease;
}

@keyframes bump {
  40% {
    transform: scale(1.15);
  }
}

.streak-label {
  color: var(--muted);
  font-weight: 500;
}

.streak-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 24px;
}

.streak-day {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.streak-check {
  width: 100%;
  max-width: 30px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 56% no-repeat;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Today stays empty until stage.js marks the streak screen with .is-today. */
.screen-streak:not(.is-today) .streak-today {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--line-strong);
}

.streak-sub {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.streak-share {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* Reveal on scroll (motion.js adds .is-visible). */

.js [data-reveal] {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

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

/* Statement: words light up as the page scrolls (motion.js). */

.statement {
  padding: clamp(96px, 16vh, 180px) 0;
  background: var(--bg);
}

.statement-text {
  max-width: 22ch;
  font-size: clamp(30px, 5.2vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.js .statement-text span {
  color: rgba(10, 37, 64, 0.16);
  transition: color 0.35s ease;
}

.js .statement-text span.is-lit {
  color: var(--ink);
}

/* Sections */

.section {
  padding: clamp(88px, 14vh, 150px) 0;
  background: var(--bg);
}

.section-head {
  max-width: 720px;
}

.eyebrow-text {
  margin-bottom: 14px;
  color: var(--blue-600);
  font-size: 15px;
  font-weight: 600;
}

.section h2,
.tech h2 {
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-lead {
  max-width: 34em;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.5;
}

/* Missions: the section pins while vertical scroll slides the cards sideways (motion.js). */

.missions {
  position: relative;
  background: var(--bg-soft);
}

.missions-pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 24px) 0 28px;
  overflow: hidden;
}

.js .missions:not(.is-static) .missions-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}

.gallery {
  margin-top: clamp(24px, 5vh, 48px);
}

.gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 8px max(20px, calc((100vw - 1160px) / 2 + 20px)) 16px;
  will-change: transform;
}

/* No JS or reduced motion: a plain row you can swipe. */
html:not(.js) .gallery,
.missions.is-static .gallery {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.m-card {
  display: flex;
  flex: none;
  flex-direction: column;
  width: min(320px, 76vw);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.m-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(180px, 29vh, 280px);
  padding: 24px;
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(124, 192, 255, 0.2), transparent 70%),
    linear-gradient(180deg, #1c2b45, #0e1829);
}

.m-visual-light {
  background: radial-gradient(120% 90% at 50% 0%, #dcebff 0%, #f6f9fd 70%);
}

.m-skeleton-tall {
  width: auto;
  height: 100%;
  max-height: 220px;
}

.surprise-orb {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  box-shadow: 0 18px 40px rgba(22, 103, 214, 0.35);
  color: #fff;
}

.surprise-orb svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.surprise-chip {
  position: absolute;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
  animation: float 5s ease-in-out infinite;
}

.surprise-chip-a {
  top: 16%;
  left: 10%;
}

.surprise-chip-b {
  top: 24%;
  right: 8%;
  animation-delay: -1.6s;
}

.surprise-chip-c {
  bottom: 14%;
  left: 20%;
  animation-delay: -3.2s;
}

.m-hud {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.m-body {
  padding: 22px 24px 26px;
}

.m-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 600;
}

.m-tag-light {
  background: var(--bg-soft);
  color: var(--muted);
}

.m-body h3 {
  margin-top: 12px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.m-body p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Privacy / tech (dark) */

.tech {
  padding: clamp(96px, 15vh, 160px) 0;
  background: radial-gradient(90% 70% at 80% 30%, rgba(47, 134, 246, 0.2), transparent 70%), #0a1424;
  color: #fff;
}

.tech-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.eyebrow-on-dark {
  color: var(--blue-300);
}

.tech .section-lead {
  color: rgba(255, 255, 255, 0.68);
}

.tech-facts {
  display: grid;
  gap: 18px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.tech-facts li {
  display: grid;
  gap: 2px;
  padding-left: 16px;
  border-left: 2px solid rgba(124, 192, 255, 0.5);
}

.tech-facts strong {
  font-size: 17px;
}

.tech-facts span {
  color: rgba(255, 255, 255, 0.62);
}

.tech-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 12% 8%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(124, 192, 255, 0.18), transparent 70%),
    linear-gradient(180deg, #16233a, #0b1426);
}

.tech-visual .cam-corner {
  width: 28px;
  height: 28px;
}

.tech-visual .cam-corner:nth-child(1) {
  top: 24px;
  left: 24px;
}

.tech-visual .cam-corner:nth-child(2) {
  top: 24px;
  right: 24px;
}

.tech-visual .cam-corner:nth-child(3) {
  bottom: 24px;
  left: 24px;
}

.tech-visual .cam-corner:nth-child(4) {
  right: 24px;
  bottom: 24px;
}

.tech-chip {
  position: absolute;
  top: 24px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}

.tech-chip svg {
  width: 14px;
  height: 14px;
}

.tech-scan {
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(124, 192, 255, 0), rgba(124, 192, 255, 0.12) 90%, rgba(124, 192, 255, 0.5));
  animation: sweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sweep {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(340%);
  }
}

/* Pricing */

.pricing {
  background: var(--bg);
}


.plans {
  display: grid;
  gap: 16px;
}

.plan {
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.plan-featured {
  border-color: transparent;
  background: #fff;
  box-shadow: 0 0 0 2px var(--blue-600), var(--shadow-lg);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.plan-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 600;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px;
  margin-top: 16px;
}

.price strong {
  font-size: clamp(40px, 11vw, 64px);
  font-weight: 700;
  letter-spacing: -0.05em;
}


.price span {
  color: var(--muted);
  font-weight: 500;
}

.plan-equiv {
  margin-top: 2px;
  color: var(--blue-600);
  font-size: 15px;
  font-weight: 600;
}

.plan-after {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.plan-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.fine-print {
  max-width: 70ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

/* FAQ */

.faq-section {
  background: var(--bg-soft);
}

.faq {
  margin-top: 40px;
  border-top: 1px solid var(--line-strong);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 20px no-repeat;
  transition: transform 0.3s var(--ease-out);
}

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

.faq details p {
  max-width: 62ch;
  padding-bottom: 22px;
  color: var(--muted);
  font-size: 16px;
}

/* Final call to action */

.final {
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 20vh, 220px) 0 clamp(96px, 14vh, 150px);
  text-align: center;
}

.final-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #e4f0ff 55%, #ffe9d4 100%);
}

.final-sun {
  position: absolute;
  bottom: -40vmin;
  left: 50%;
  width: 90vmin;
  height: 90vmin;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 140, 0.95), rgba(255, 196, 120, 0.45) 45%, rgba(255, 196, 120, 0) 100%);
  transform: translateX(-50%);
  animation: rise 6s ease-in-out infinite alternate;
}

@keyframes rise {
  to {
    transform: translate(-50%, -6vmin) scale(1.05);
  }
}

.final-inner {
  position: relative;
}

.final h2 {
  font-size: clamp(72px, 16vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.final p[data-show] {
  max-width: 30em;
  margin: 24px auto 0;
  color: var(--ink-2);
  font-size: clamp(17px, 2vw, 21px);
}

.final .store-buttons {
  margin-top: 32px;
}

.footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer .wordmark {
  font-size: 18px;
}

.footer .logo-mark {
  width: 22px;
  height: 22px;
}

/* Phones */

@media (max-width: 480px) {
  .hero-copy .store-buttons,
  .final .store-buttons {
    width: 100%;
  }

  .store-btn {
    flex: 1 1 100%;
  }
}

/* Phones and tablets: the floating cards hug the phone instead of sitting beside it. */
@media (max-width: 899px) {
  .fc-mission {
    top: 110px;
    left: -46px;
  }

  .fc-streak {
    top: 36px;
    right: -40px;
  }

  .fc-silent {
    display: none;
  }
}

/* Short phones: keep the story text to the headline so the phone stays big. */
@media (max-width: 899px) and (max-height: 700px) {
  .beat h2 + p {
    display: none;
  }
}

@media (min-width: 760px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Desktop: the price boxes read centered. */
  .plan {
    text-align: center;
  }

  .plan-head {
    flex-direction: column;
    gap: 10px;
  }

  .price {
    justify-content: center;
  }
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .beats-inner {
    justify-content: center;
    height: 100%;
    padding-top: var(--nav-h);
  }

  .beat-texts {
    width: 44%;
  }

  .tech-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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