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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f6f9;
  font-family: 'Manrope', system-ui, sans-serif;
  color: #0f1419;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
}

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

@keyframes toastCycle {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  5% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  27% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  33% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

@keyframes barFill {
  from {
    width: 4%;
  }
  to {
    width: 71%;
  }
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(240, 162, 60, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(240, 162, 60, 0);
  }
}

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

.page {
  overflow-x: clip;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* Nav */
.hero {
  position: relative;
  background: radial-gradient(125% 120% at 72% -8%, #18bba1 0%, #0b8b79 44%, #064038 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 26%);
  pointer-events: none;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(4, 40, 36, 0.28);
  flex-shrink: 0;
}

.brand-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

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

.nav-links a {
  font-size: 14.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.nav-cta {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0a8c7c !important;
  background: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(4, 40, 36, 0.22);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 78px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.12);
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ff0d9;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.875rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 22px 0 0;
  text-wrap: balance;
}

.hero-lead {
  max-width: 468px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 500;
  margin: 22px 0 0;
}

.store-row {
  display: flex;
  gap: 14px;
  margin: 34px 0 0;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px 13px 18px;
  border-radius: 15px;
  text-decoration: none;
  flex-shrink: 0;
}

.store-badge.primary {
  background: #fff;
  color: #0f1419;
  box-shadow: 0 10px 26px rgba(4, 40, 36, 0.26);
}

.store-badge.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
  opacity: 0.95;
}

.store-badge-label {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
}

.store-badge-label small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.store-badge-label span {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.store-badge.primary small {
  color: #5b6573;
}

.store-badge.secondary small {
  color: rgba(255, 255, 255, 0.6);
}

.hero-note {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  margin: 18px 0 0;
}

.hero-phone-wrap {
  display: flex;
  justify-content: center;
  animation: floatY 7s ease-in-out infinite;
}

/* Phone frame */
.phone {
  width: 332px;
  max-width: 100%;
  height: 700px;
  border-radius: 48px;
  overflow: hidden;
  position: relative;
  background: #f2f2f7;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.phone.wide {
  width: 340px;
  height: 720px;
}

.phone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  border-radius: 24px;
  background: #000;
  z-index: 50;
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  font-family: 'Manrope', system-ui, sans-serif;
  color: #0f1419;
}

.phone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 139px;
  height: 5px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.25);
  z-index: 60;
  pointer-events: none;
}

/* Scroll demo */
.scroll-section {
  position: relative;
  background: #f4f6f9;
  height: 340vh;
}

.scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.scroll-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.scroll-copy h2 {
  font-size: clamp(2rem, 4vw, 2.875rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 14px 0 8px;
  max-width: 520px;
  text-wrap: balance;
}

.scroll-kicker {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #0a8c7c;
}

.scroll-intro {
  font-size: 16.5px;
  line-height: 1.6;
  color: #5b6573;
  font-weight: 500;
  max-width: 440px;
  margin: 0 0 36px;
}

.caption-stack {
  position: relative;
  height: 118px;
  max-width: 460px;
}

.caption {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s, transform 0.4s;
  opacity: 0;
}

.caption.active {
  opacity: 1;
}

.caption-num {
  font-size: 13px;
  font-weight: 800;
  color: #0fb5a1;
  letter-spacing: 0.4px;
}

.caption-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-top: 7px;
}

.caption p {
  font-size: 15px;
  line-height: 1.55;
  color: #5b6573;
  font-weight: 500;
  margin: 6px 0 0;
}

.demo-rail-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.demo-rail {
  width: 4px;
  height: 420px;
  border-radius: 3px;
  background: #e1e6ec;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.demo-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(180deg, #15b9a3, #0a8c7c);
  border-radius: 3px;
}

.phone-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transition: opacity 0.2s, transform 0.2s;
}

.phone-layer.home-layer {
  opacity: 0;
}

/* Goals section */
.goals-section {
  position: relative;
  background: #f6f4ff;
  border-top: 1px solid #ece8fb;
  height: 230vh;
}

.goals-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.goals-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

.goals-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #7b61ff;
}

.goals-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: #7b61ff;
}

.goals-grid h2 {
  font-size: clamp(2rem, 4vw, 2.875rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 16px 0 0;
  max-width: 520px;
  text-wrap: balance;
}

.goals-lead {
  font-size: 17px;
  line-height: 1.62;
  color: #4a4763;
  font-weight: 500;
  max-width: 460px;
  margin: 20px 0 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e9e4fb;
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 13.5px;
  font-weight: 700;
  color: #3a3556;
  box-shadow: 0 1px 2px rgba(40, 24, 80, 0.04);
  white-space: nowrap;
}

.chip i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #7b61ff;
  font-style: normal;
}

.suggest-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e9e4fb;
  border-radius: 18px;
  padding: 16px 20px;
  margin: 24px 0 0;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(40, 24, 80, 0.06);
}

.goals-phone-wrap {
  display: flex;
  justify-content: center;
  animation: floatY 7.5s ease-in-out infinite;
}

.goals-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.1), rgba(123, 97, 255, 0) 70%);
  pointer-events: none;
}

/* Features */
.features {
  background: #fff;
  border-top: 1px solid #eaedf1;
  padding: 88px 0;
}

.features-head {
  text-align: center;
  margin-bottom: 52px;
}

.features-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
}

.features-head p {
  font-size: 17px;
  line-height: 1.6;
  color: #5b6573;
  font-weight: 500;
  max-width: 560px;
  margin: 14px auto 0;
}

.feature-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: #f7f9fb;
  border: 1px solid #edf0f4;
  border-radius: 22px;
  padding: 28px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #e5f8f4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0;
}

.feature-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #5b6573;
  font-weight: 500;
  margin: 9px 0 0;
}

/* CTA */
.cta {
  position: relative;
  background: radial-gradient(120% 130% at 30% 0%, #18bba1 0%, #0b8b79 46%, #053f38 100%);
  color: #fff;
  overflow: hidden;
  padding: 96px 0;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 30%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cta h2 {
  font-size: clamp(2rem, 4.5vw, 3.125rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}

.cta p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  max-width: 480px;
  margin: 20px auto 0;
}

.cta .store-row {
  justify-content: center;
  margin-top: 34px;
}

/* Footer */
.footer {
  background: #0b1014;
  color: rgba(255, 255, 255, 0.5);
  padding: 34px 40px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-brand .brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.footer-brand .brand-mark img {
  width: 18px;
  height: 18px;
}

.footer-brand .brand-name {
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.3px;
}

.footer-copy {
  font-size: 13.5px;
  font-weight: 600;
}

@media (max-width: 960px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero-grid,
  .scroll-grid,
  .goals-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-grid {
    padding-bottom: 48px;
  }

  .scroll-section {
    height: auto;
  }

  .scroll-sticky {
    position: relative;
    height: auto;
    padding: 64px 0;
  }

  .demo-rail-wrap {
    flex-direction: column;
  }

  .demo-rail {
    width: 100%;
    height: 4px;
  }

  .demo-rail-fill {
    width: 0% !important;
    height: 100% !important;
  }

  .goals-section {
    height: auto;
  }

  .goals-sticky {
    position: relative;
    height: auto;
    padding: 64px 0;
  }

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

  .caption-stack {
    height: auto;
  }

  .caption {
    position: relative;
    opacity: 1 !important;
    transform: none !important;
    margin-bottom: 24px;
  }
}

/* Phone mockup internals */
.ps-content {
  flex: 1;
  overflow: hidden;
  padding: 0 16px;
}

.ps-tabbar {
  display: flex;
  justify-content: space-around;
  padding: 9px 6px 22px;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid #eaecf0;
  backdrop-filter: blur(18px);
}

.ps-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #9aa3ae;
  font-size: 9.5px;
  font-weight: 700;
}

.ps-tab.active {
  color: #0fb5a1;
}

.ps-tab.goals-active {
  color: #7b61ff;
}

.ps-card {
  background: #fff;
  border: 1px solid #eef1f4;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 18px rgba(16, 24, 40, 0.05);
  border-radius: 18px;
}

.ps-hero-card {
  position: relative;
  border-radius: 24px;
  padding: 18px;
  overflow: hidden;
  background: radial-gradient(135% 130% at 86% -12%, #1ac4ab 0%, #0b8b79 44%, #064a41 100%);
  box-shadow: 0 16px 32px rgba(8, 86, 76, 0.32);
  color: #fff;
}

.ps-toast-wrap {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 102px;
  pointer-events: none;
  height: 46px;
}

.ps-toast {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 13px;
  padding: 9px 13px;
  box-shadow: 0 10px 24px rgba(8, 40, 36, 0.16);
  animation: toastCycle 9s ease-in-out infinite;
}

.ps-toast:nth-child(2) {
  animation-delay: -3s;
  border: 1px solid rgba(123, 97, 255, 0.25);
}

.ps-toast:nth-child(3) {
  animation-delay: -6s;
  border: 1px solid rgba(79, 147, 230, 0.25);
}

.ps-toast:first-child {
  border: 1px solid rgba(15, 181, 161, 0.25);
}

.banner-swap {
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 15px;
  padding: 12px 14px;
  margin-bottom: 13px;
  position: relative;
  min-height: 52px;
}

.banner-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 15px;
  padding: 12px 14px;
}

.banner-pending {
  background: #fff6ea;
  border: 1px solid #fbe6c8;
}

.banner-done {
  background: #ecfbf6;
  border: 1px solid #ccefe6;
  opacity: 0;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f0a23c;
  flex-shrink: 0;
  animation: softPulse 1.8s ease-in-out infinite;
}

.accept-btn-wrap {
  position: relative;
  min-width: 96px;
  height: 36px;
}

.accept-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 11px;
}

.accept-label {
  background: #0fb5a1;
  color: #fff;
}

.accept-done {
  background: #e5f8f4;
  color: #0a8c7c;
  opacity: 0;
}

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

.goal-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#7b61ff 0deg, #edeff3 0);
}

.goal-ring-inner {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.play-icon svg {
  flex-shrink: 0;
}

