:root {
  --bg: #0F0F14;
  --panel: #1C1C1F;
  --surface: #29292E;
  --border: rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --periwinkle: #949DF8;
  --periwinkle-fill: rgba(148, 157, 248, 0.16);
  --periwinkle-stroke: rgba(148, 157, 248, 0.35);
  --amber: #F5950B;
  --amber-fill: rgba(245, 149, 11, 0.16);
  --amber-stroke: rgba(245, 149, 11, 0.35);
  --rose: #F0659C;
  --rose-fill: rgba(240, 101, 156, 0.12);
  --rose-stroke: rgba(240, 101, 156, 0.28);
  --text: #FFFFFF;
  --dim: rgba(255, 255, 255, 0.68);
  --muted: rgba(255, 255, 255, 0.42);
  --radius-hero: 22px;
  --radius-card: 16px;
  --radius-tile: 14px;
  --max-width: 1240px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin-bottom: 12px;
}

.eyebrow-amber {
  color: var(--amber);
}

.eyebrow-rose {
  color: var(--rose);
}

.section {
  padding: 38px 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.section-subtitle {
  margin: 0;
  color: var(--dim);
  font-size: 17px;
  line-height: 1.6;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Top Coming Soon Bar & Sticky Header
   ========================================================================== */

.coming-soon-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(245, 149, 11, 0.2) 0%, rgba(148, 157, 248, 0.22) 50%, rgba(240, 101, 156, 0.2) 100%);
  border-bottom: 1px solid rgba(245, 149, 11, 0.35);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.35px;
  color: var(--text);
}

.hero-coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--amber-fill);
  border: 1px solid var(--amber-stroke);
  color: var(--amber);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.coming-soon-sep {
  color: var(--muted);
}

.coming-soon-btn {
  appearance: none;
  background: var(--periwinkle-fill);
  border: 1px solid var(--periwinkle-stroke);
  color: var(--periwinkle);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.coming-soon-btn:hover {
  background: rgba(148, 157, 248, 0.25);
  transform: translateY(-1px);
}

.coming-soon-btn-amber {
  background: var(--amber-fill);
  border-color: var(--amber-stroke);
  color: var(--amber);
}

.coming-soon-btn-amber:hover {
  background: rgba(245, 149, 11, 0.25);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(15, 15, 20, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(148, 157, 248, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  text-decoration: none;
  color: var(--dim);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.pill-btn:hover {
  transform: translateY(-1px);
}

.pill-btn-accent {
  background: var(--periwinkle-fill);
  border: 1px solid var(--periwinkle-stroke);
  color: var(--periwinkle);
}

.pill-btn-accent:hover {
  background: rgba(148, 157, 248, 0.24);
}

.pill-btn-frosted {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.pill-btn-frosted:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pill-btn-appstore {
  background: #FFFFFF;
  border: 1px solid #FFFFFF;
  color: #0F0F14;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.pill-btn-appstore:hover {
  background: #ECEEFF;
  border-color: #ECEEFF;
}

.pill-btn-compact {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 13px;
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(15, 15, 20, 0.96);
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   Hero Section & Breathing Aurora
   ========================================================================== */

.hero {
  position: relative;
  padding: 36px 0 42px;
  overflow: hidden;
}

.hero-aurora {
  position: absolute;
  top: -120px;
  left: 0;
  right: 0;
  width: 100%;
  height: 580px;
  background:
    radial-gradient(ellipse 46% 65% at 28% 42%, rgba(148, 157, 248, 0.18), transparent 72%),
    radial-gradient(ellipse 42% 60% at 54% 52%, rgba(245, 149, 11, 0.11), transparent 70%),
    radial-gradient(ellipse 46% 65% at 78% 40%, rgba(240, 101, 156, 0.14), transparent 72%);
  pointer-events: none;
  z-index: 0;
  animation: auroraBreathe 10s ease-in-out infinite;
}

@keyframes auroraBreathe {
  0%, 100% {
    opacity: 0.78;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  align-items: center;
  gap: 48px;
}

.hero-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.hero-logo-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(148, 157, 248, 0.32));
  flex-shrink: 0;
}

.hero-wordmark {
  display: flex;
  flex-direction: column;
}

.hero-wordmark-name {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-wordmark-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin-top: 3px;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.8vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.hero-title span {
  background: linear-gradient(120deg, var(--periwinkle) 0%, #c6ccff 42%, var(--amber) 74%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  margin: 0 0 26px;
  font-size: 17.5px;
  color: var(--dim);
  max-width: 560px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

/* Quirky Daily Whisper Banner */
.whisper-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 20px;
  border-radius: var(--radius-tile);
  background: rgba(28, 28, 31, 0.85);
  border: 1px solid var(--border);
  max-width: 560px;
}

.whisper-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.whisper-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--periwinkle);
  box-shadow: 0 0 10px var(--periwinkle);
  flex-shrink: 0;
  animation: dotPulse 3.2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.28); opacity: 1; }
}

.whisper-text {
  font-size: 13.5px;
  color: var(--periwinkle);
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.whisper-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.whisper-btn:hover {
  background: var(--periwinkle-fill);
  border-color: var(--periwinkle-stroke);
  color: var(--periwinkle);
  transform: translateY(-1px);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dim);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.dot-periwinkle { background: var(--periwinkle); }
.dot-amber { background: var(--amber); }
.dot-rose { background: var(--rose); }

.hero-phones {
  display: grid;
  grid-template-columns: 0.88fr 1fr 0.88fr;
  align-items: center;
  gap: 16px;
}

.phone-frame {
  position: relative;
  background: #08080b;
  border-radius: 34px;
  padding: 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  cursor: zoom-in;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.phone-frame-float {
  animation: phoneBounceDrop 0.85s 0.05s backwards;
}

.hero-phones .phone-frame:nth-child(1) {
  animation: phoneSideBounceDrop 0.85s 0.16s backwards;
}

.hero-phones .phone-frame:nth-child(3) {
  animation: phoneSideBounceDrop 0.85s 0.27s backwards;
}

@keyframes phoneBounceDrop {
  0% {
    opacity: 0;
    transform: translateY(-30px);
    animation-timing-function: ease-in;
  }
  38% {
    opacity: 1;
    transform: translateY(0);
    animation-timing-function: ease-out;
  }
  58% {
    transform: translateY(-14px);
    animation-timing-function: ease-in;
  }
  76% {
    transform: translateY(0);
    animation-timing-function: ease-out;
  }
  88% {
    transform: translateY(-5px);
    animation-timing-function: ease-in;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes phoneSideBounceDrop {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(-30px);
    animation-timing-function: ease-in;
  }
  38% {
    opacity: 0.92;
    transform: scale(0.95) translateY(0);
    animation-timing-function: ease-out;
  }
  58% {
    transform: scale(0.95) translateY(-14px);
    animation-timing-function: ease-in;
  }
  76% {
    transform: scale(0.95) translateY(0);
    animation-timing-function: ease-out;
  }
  88% {
    transform: scale(0.95) translateY(-5px);
    animation-timing-function: ease-in;
  }
  100% {
    opacity: 0.92;
    transform: scale(0.95) translateY(0);
  }
}

.phone-frame:hover {
  transform: translateY(-4px);
  border-color: var(--periwinkle-stroke);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.72),
    0 0 28px rgba(148, 157, 248, 0.14);
}

.phone-frame img {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 1125 / 2436;
  object-fit: cover;
}

.phone-frame-side {
  opacity: 0.92;
  transform: scale(0.95);
}

.phone-frame-side:hover {
  opacity: 1;
  transform: scale(0.98) translateY(-4px);
}

/* ==========================================================================
   Cards, Pillars & Micro-Delight Animations
   ========================================================================== */

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-hero);
  padding: 26px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-tile);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.pillar-visual-periwinkle {
  background: linear-gradient(90deg, rgba(148, 157, 248, 0.16) 0%, rgba(41, 41, 46, 0.92) 72%);
  border-color: rgba(148, 157, 248, 0.24);
}

.pillar-visual-amber {
  background: linear-gradient(90deg, rgba(245, 149, 11, 0.16) 0%, rgba(41, 41, 46, 0.92) 72%);
  border-color: rgba(245, 149, 11, 0.24);
}

.pillar-visual-rose {
  background: linear-gradient(90deg, rgba(240, 101, 156, 0.15) 0%, rgba(41, 41, 46, 0.92) 72%);
  border-color: rgba(240, 101, 156, 0.24);
}

.pillar-app-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.pillar-app-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: var(--dim);
}

.pillar-app-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.pillar-app-delta {
  font-size: 11px;
  font-weight: 600;
  color: var(--periwinkle);
}

.pillar-app-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.pill-amber {
  background: var(--amber-fill);
  border: 1px solid var(--amber-stroke);
  color: var(--amber);
}

.pill-periwinkle {
  background: var(--periwinkle-fill);
  border: 1px solid var(--periwinkle-stroke);
  color: var(--periwinkle);
}

.pill-rose {
  background: var(--rose-fill);
  border: 1px solid var(--rose-stroke);
  color: var(--rose);
}

.pillar-sparkline {
  width: 82px;
  height: 36px;
  flex-shrink: 0;
}

.score-ring-text small {
  font-size: 9px;
  font-weight: 700;
  opacity: 0.75;
  margin-left: 1px;
}

/* Readiness Halo behind ring */
.pillar-halo {
  position: absolute;
  left: -10px;
  top: 50%;
  width: 96px;
  height: 96px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(148, 157, 248, 0.25), transparent 70%);
  animation: haloPulse 7s ease-in-out infinite;
  pointer-events: none;
}

.score-ring-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.score-ring-svg {
  width: 64px;
  height: 64px;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 6;
}

.ring-progress {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 163.36;
  stroke-dashoffset: 163.36;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.ring-progress.is-drawn {
  stroke-dashoffset: var(--ring-offset);
}

.score-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

/* Sleep twinkling stars + floating Zs */
.sleep-sky {
  position: relative;
  width: 110px;
  height: 54px;
  flex-shrink: 0;
}

.sleep-star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: starTwinkle 2.8s ease-in-out infinite;
}

.sleep-star:nth-child(2) { animation-delay: 0.8s; }
.sleep-star:nth-child(3) { animation-delay: 1.5s; }

@keyframes starTwinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.25); }
}

.sleep-z {
  position: absolute;
  font-weight: 800;
  color: var(--amber);
  opacity: 0;
  animation: floatZ 3.6s ease-in-out infinite;
}

.sleep-z-2 {
  animation-delay: 1.8s;
}

@keyframes floatZ {
  0% { transform: translate(0, 10px) scale(0.8); opacity: 0; }
  30% { opacity: 0.9; }
  100% { transform: translate(12px, -18px) scale(1.1); opacity: 0; }
}

/* Activity ECG Pulse Spark */
.ecg-svg {
  width: 116px;
  height: 44px;
  flex-shrink: 0;
}

.ecg-line {
  fill: none;
  stroke: rgba(240, 101, 156, 0.35);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ecg-spark {
  fill: none;
  stroke: var(--rose);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 28 140;
  animation: ecgFlow 2.6s linear infinite;
}

@keyframes ecgFlow {
  from { stroke-dashoffset: 168; }
  to { stroke-dashoffset: 0; }
}

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

.pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.badge-periwinkle {
  background: var(--periwinkle-fill);
  border: 1px solid var(--periwinkle-stroke);
  color: var(--periwinkle);
}

.badge-amber {
  background: var(--amber-fill);
  border: 1px solid var(--amber-stroke);
  color: var(--amber);
}

.badge-rose {
  background: var(--rose-fill);
  border: 1px solid var(--rose-stroke);
  color: var(--rose);
}

.pillar-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pillar-card p {
  margin: 0;
  color: var(--dim);
  font-size: 14.5px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: auto;
}

.metric-tile {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-tile);
  padding: 12px 14px;
}

.metric-tile-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}

.metric-tile-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* ==========================================================================
   Experience Modes Side-by-Side
   ========================================================================== */

.modes-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.mode-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-hero);
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 215px;
  gap: 22px;
  align-items: center;
}

.mode-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mode-card p {
  margin: 0;
  color: var(--dim);
  font-size: 14.5px;
}

.mode-feature-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.mode-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--dim);
}

.mode-feature-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--periwinkle);
  margin-top: 7px;
  flex-shrink: 0;
}

.mode-list-amber li::before {
  background: var(--amber);
}

/* ==========================================================================
   Feature Deep-Dive Tabs
   ========================================================================== */

.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.feature-tab-btn {
  position: relative;
  overflow: hidden;
  appearance: none;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--dim);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.feature-tab-btn:hover {
  background: var(--surface);
  color: var(--text);
}

.feature-tab-btn.active {
  background: var(--periwinkle-fill);
  border-color: var(--periwinkle-stroke);
  color: var(--periwinkle);
}

.feature-tab-btn.active.is-auto::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--periwinkle);
  transform-origin: left center;
  animation: tabProgress 5s linear forwards;
}

.feature-pause-btn {
  margin-left: auto;
  appearance: none;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.feature-pause-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.feature-pause-btn.is-paused-btn {
  background: var(--amber-fill);
  border-color: var(--amber-stroke);
  color: var(--amber);
}

#features.is-paused .feature-tab-btn.active.is-auto::after {
  animation-play-state: paused;
}

@keyframes tabProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.feature-stage {
  display: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-hero);
  padding: 30px;
}

.feature-stage.active {
  display: block;
  animation: stageFadeIn 0.35s ease;
}

@keyframes stageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-stage-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 26px;
}

.feature-stage-head h3 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-stage-head p {
  margin: 0;
  color: var(--dim);
  max-width: 680px;
  font-size: 15px;
}

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

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.signal-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
}

.signal-card .pillar-badge {
  margin-bottom: 12px;
}

.signal-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.signal-card p {
  margin: 0;
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.55;
}

.gallery-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
}

.shot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.shot-card .phone-frame {
  width: 100%;
  max-width: 310px;
}

.shot-title {
  margin: 14px 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.shot-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--dim);
  max-width: 300px;
}

/* ==========================================================================
   Landscape Spotlight & Quirky Micro-Delights Card
   ========================================================================== */

.landscape-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-hero);
  padding: 28px;
}

.landscape-frame {
  margin-top: 22px;
  background: #08080b;
  border-radius: 26px;
  padding: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  cursor: zoom-in;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.landscape-frame:hover {
  border-color: var(--periwinkle-stroke);
  transform: translateY(-2px);
}

.landscape-frame img {
  width: 100%;
  border-radius: 18px;
}

.delight-card {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(28, 28, 31, 0.98) 0%, rgba(41, 41, 46, 0.72) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-hero);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: center;
}

.jumper-stage {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.jumper-svg {
  width: 130px;
  height: 130px;
}

.jumper-body {
  animation: jumperBounce 0.72s ease-in-out infinite;
  transform-origin: center bottom;
}

.jumper-rope {
  transform-origin: 65px 67px;
  animation: ropeSpin 0.72s linear infinite;
}

.jumper-shadow {
  transform-origin: center;
  animation: shadowSquish 0.72s ease-in-out infinite;
}

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

@keyframes ropeSpin {
  0%, 100% { transform: scaleY(-1); opacity: 0.7; }
  25%, 75% { transform: scaleY(0); opacity: 0.9; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes shadowSquish {
  0%, 100% { transform: scaleX(1); opacity: 0.45; }
  50% { transform: scaleX(0.65); opacity: 0.2; }
}

.delight-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.delight-pill {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--dim);
}

/* ==========================================================================
   Science & Privacy
   ========================================================================== */

.science-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.science-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.science-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.science-card p {
  margin: 0;
  color: var(--dim);
  font-size: 14.5px;
}

.privacy-banner {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(148, 157, 248, 0.14) 0%, rgba(28, 28, 31, 0.96) 55%, rgba(240, 101, 156, 0.1) 100%);
  border: 1px solid var(--periwinkle-stroke);
  border-radius: var(--radius-hero);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.privacy-points {
  display: grid;
  gap: 10px;
}

.privacy-point {
  background: rgba(15, 15, 20, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--dim);
}

.privacy-point strong {
  color: var(--text);
}

/* ==========================================================================
   Comparison Highlight Card
   ========================================================================== */

.compare-highlight {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-hero);
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.compare-bars {
  display: grid;
  gap: 12px;
}

.compare-bar-row {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-tile);
  padding: 12px 14px;
}

.compare-bar-row.is-ours {
  background: linear-gradient(90deg, rgba(148, 157, 248, 0.18), rgba(41, 41, 46, 0.95));
  border-color: var(--periwinkle-stroke);
}

.compare-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 7px;
}

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

.compare-fill {
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  width: 0;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.compare-fill.is-grown {
  width: var(--target-width);
}

.compare-bar-row.is-ours .compare-fill {
  background: linear-gradient(90deg, var(--periwinkle), var(--amber), var(--rose));
}

/* ==========================================================================
   Subpages (Privacy, Support, Shared Nav)
   ========================================================================== */

.subpage-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-hero);
  padding: 28px 30px;
  margin-bottom: 18px;
}

.legal-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.legal-card p,
.legal-card li {
  color: var(--dim);
  font-size: 15px;
}

.legal-card ul {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.badge-ios {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--periwinkle-fill);
  border: 1px solid var(--periwinkle-stroke);
  color: var(--periwinkle);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(148, 157, 248, 0.16) 0%, rgba(28, 28, 31, 0.96) 55%, rgba(245, 149, 11, 0.1) 100%);
  border: 1px solid var(--periwinkle-stroke);
  border-radius: var(--radius-hero);
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.appstore-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  z-index: 130;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(28, 28, 31, 0.96);
  border: 1px solid var(--periwinkle-stroke);
  color: var(--periwinkle);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.appstore-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
  color: var(--dim);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--periwinkle);
}

.footer-disclaimer {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
  max-width: 820px;
}

/* ==========================================================================
   Screenshot Lightbox & Confetti Canvas
   ========================================================================== */

#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 120;
}

/* ==========================================================================
   Waitlist & Beta Signup Modal
   ========================================================================== */

.signup-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 8, 12, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.signup-modal.open {
  display: flex;
}

.signup-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-hero);
  padding: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

.signup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.signup-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.signup-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.signup-subtitle {
  margin: 0 0 20px;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.5;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.signup-field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--dim);
  letter-spacing: 0.3px;
}

.signup-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-tile);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

.signup-input:focus {
  outline: none;
  border-color: var(--periwinkle);
}

.signup-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signup-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-tile);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.signup-check input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--periwinkle);
  flex-shrink: 0;
}

.signup-check strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.signup-check small {
  display: block;
  font-size: 12.5px;
  color: var(--dim);
  margin-top: 2px;
}

.signup-device-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.signup-device-wrap[hidden] {
  display: none;
}

.signup-status {
  padding: 10px 14px;
  border-radius: var(--radius-tile);
  font-size: 13.5px;
  font-weight: 600;
}

.signup-status.is-success {
  background: var(--periwinkle-fill);
  border: 1px solid var(--periwinkle-stroke);
  color: var(--periwinkle);
}

.signup-status.is-error {
  background: var(--rose-fill);
  border: 1px solid var(--rose-stroke);
  color: var(--rose);
}

.signup-submit {
  width: 100%;
  margin-top: 4px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: min(92vw, 960px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-img {
  max-height: 78vh;
  max-width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  color: var(--dim);
  font-size: 14px;
  text-align: center;
}

.lightbox-btn {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Reduced Motion & Responsive
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero-aurora,
  .hero-logo-halo,
  .whisper-dot,
  .phone-frame-float,
  .hero-phones .phone-frame,
  .feature-tab-btn.active.is-auto::after,
  .feature-stage.active,
  .pillar-halo,
  .sleep-star,
  .sleep-z,
  .ecg-spark,
  .jumper-body,
  .jumper-rope,
  .jumper-shadow {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .ring-progress {
    stroke-dashoffset: var(--ring-offset) !important;
    transition: none !important;
  }

  .compare-fill {
    width: var(--target-width) !important;
    transition: none !important;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .modes-compare-grid,
  .privacy-banner,
  .compare-highlight,
  .delight-card {
    grid-template-columns: 1fr;
  }

  .pillar-grid,
  .signal-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .nav-links,
  .header-actions .pill-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .section {
    padding: 28px 0;
  }

  .pillar-grid,
  .signal-grid,
  .science-grid,
  .gallery-grid,
  .gallery-grid.two-col,
  .mode-card {
    grid-template-columns: 1fr;
  }

  .mode-card .phone-frame {
    max-width: 260px;
    margin: 0 auto;
  }

  .hero-phones {
    grid-template-columns: 1fr 1fr;
  }

  .hero-phones .phone-frame:nth-child(3) {
    display: none;
  }
}
