:root {
  --sage: #8faf8a;
  --sage-light: #c8dcc4;
  --sage-pale: #eef5ec;
  --sage-deep: #5a7a55;
  --cream: #faf6ee;
  --cream-warm: #f5edd8;
  --coral: #e8705a;
  --coral-light: #f5c4b5;
  --coral-pale: #fdf0ec;
  --text-dark: #2c2c28;
  --text-mid: #5a5a52;
  --text-muted: #8a8a80;
  --white: #ffffff;
  --red-brand: #e8342a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

main,
section,
nav,
footer {
  display: block;
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

#top,
#features,
#how-it-works,
#stories,
#cta {
  scroll-margin-top: 96px;
}

.page-width {
  max-width: 1280px;
  margin: 0 auto;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 3rem;
  background: rgba(250, 246, 238, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(143, 175, 138, 0.2);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-drop {
  width: 34px;
  height: 34px;
}

.logo-text {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--red-brand);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-mid);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--sage-deep);
}

.nav-cta {
  background: var(--text-dark);
  color: var(--cream) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
}

.nav-cta:hover {
  background: var(--sage-deep);
  color: var(--white) !important;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid rgba(143, 175, 138, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: transparent;
  color: var(--text-mid);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
}

.lang-btn.is-active {
  background: var(--text-dark);
  color: var(--cream);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 4rem 4rem;
}

.hero-left {
  padding-right: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-pale);
  color: var(--sage-deep);
  border: 1px solid var(--sage-light);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: fade-up 0.6s ease both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  animation: pulse 2s ease infinite;
}

.hero-headline {
  font-family: "Fraunces", serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  animation: fade-up 0.6s 0.1s ease both;
}

.hero-headline em {
  font-style: italic;
  color: var(--coral);
}

.hero-sub {
  max-width: 480px;
  margin-bottom: 2.5rem;
  color: var(--text-mid);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  animation: fade-up 0.6s 0.2s ease both;
}

.hero-actions,
.cta-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-actions {
  animation: fade-up 0.6s 0.3s ease both;
}

.btn-primary,
.btn-secondary,
.btn-cta-white,
.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--text-dark);
  color: var(--cream);
  border: 0;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--sage-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-mid);
  border: 1.5px solid rgba(90, 90, 82, 0.3);
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 400;
}

.btn-secondary:hover {
  border-color: var(--sage);
  color: var(--sage-deep);
}

.play-icon {
  width: 16px;
  height: 16px;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(143, 175, 138, 0.25);
  animation: fade-up 0.6s 0.4s ease both;
}

.stat-num {
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -1px;
}

.stat-label {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.8s 0.2s ease both;
}

.hero-canvas {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero-visual-bg {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, var(--sage-light) 0%, var(--cream-warm) 60%, var(--coral-pale) 100%);
  border-radius: 40% 50% 50% 40% / 40% 40% 50% 50%;
  position: relative;
  overflow: hidden;
}

.hero-illustration {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 100%;
}

.float-card {
  position: absolute;
  min-width: 170px;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(143, 175, 138, 0.2);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(90, 122, 85, 0.18);
  animation: float 4s ease-in-out infinite;
}

.float-card-narrow {
  min-width: 160px;
}

.float-card-compact {
  min-width: 140px;
}

.card-top {
  top: 8%;
  right: -10%;
}

.card-mid {
  bottom: 22%;
  left: -12%;
  animation-delay: -1.5s;
}

.card-bot {
  bottom: 6%;
  right: 5%;
  animation-delay: -2.8s;
}

.fc-label {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fc-value {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.fc-value span {
  font-family: "DM Sans", sans-serif;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.fc-trend {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: var(--sage-deep);
  font-size: 0.75rem;
}

.fc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

.fc-copy {
  margin-top: 4px;
  color: var(--text-mid);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.5;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
  margin-top: 6px;
}

.mini-bar {
  width: 8px;
  border-radius: 3px 3px 0 0;
  background: var(--sage-light);
}

.mini-bar.hi {
  background: var(--sage);
}

.mini-bar.peak {
  background: var(--sage-deep);
}

.h-40 { height: 40%; }
.h-50 { height: 50%; }
.h-55 { height: 55%; }
.h-60 { height: 60%; }
.h-65 { height: 65%; }
.h-70 { height: 70%; }
.h-85 { height: 85%; }
.h-90 { height: 90%; }

.section-tag {
  margin-bottom: 1rem;
  color: var(--sage-deep);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 1.2rem;
  color: var(--text-dark);
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -1px;
}

.section-title em {
  font-style: italic;
  color: var(--coral);
}

.section-sub {
  max-width: 520px;
  color: var(--text-mid);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
}

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

.features-section,
.testi-section {
  padding: 4rem 3rem;
}

.hiw-outer {
  padding: 2rem 3rem 4rem;
}

.features-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 4rem;
  border: 1px solid rgba(143, 175, 138, 0.2);
  border-radius: 32px;
  background: var(--white);
}

.features-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}

.features-grid,
.testi-grid {
  display: grid;
  gap: 1.5rem;
}

.features-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card,
.testi-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s ease;
}

.feature-card.is-visible,
.testi-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card {
  padding: 2rem;
  border: 1px solid rgba(143, 175, 138, 0.15);
  border-radius: 24px;
  background: var(--cream);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(90, 122, 85, 0.12);
}

.feat-icon-wrap {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  border-radius: 16px;
}

.feat-icon-wrap svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fi-sage {
  background: var(--sage-pale);
  color: var(--sage-deep);
}

.fi-coral {
  background: var(--coral-pale);
  color: var(--coral);
}

.fi-cream {
  background: var(--cream-warm);
  border: 1px solid rgba(143, 175, 138, 0.2);
  color: var(--text-dark);
}

.feat-title {
  margin-bottom: 0.6rem;
  color: var(--text-dark);
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 400;
}

.feat-desc {
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.65;
}

.hiw-section {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 4rem;
  border-radius: 32px;
  background: var(--sage-pale);
}

.steps-list {
  margin-top: 2.5rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 2rem;
  border: 0;
  background: transparent;
  opacity: 0.45;
  text-align: left;
  transition: opacity 0.25s ease;
}

.step-item.active {
  opacity: 1;
}

.step-num {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--sage-light);
  border-radius: 50%;
  background: var(--white);
  color: var(--sage-deep);
  font-family: "Fraunces", serif;
  font-size: 1rem;
}

.step-item.active .step-num {
  border-color: var(--sage-deep);
  background: var(--sage-deep);
  color: var(--white);
}

.step-text {
  display: block;
}

.step-title,
.step-desc {
  display: block;
}

.step-title {
  margin-bottom: 0.3rem;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
}

.step-desc {
  color: var(--text-mid);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.6;
}

.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 260px;
  height: 500px;
  padding: 12px;
  border-radius: 40px;
  background: var(--text-dark);
  box-shadow: 0 30px 80px rgba(44, 44, 40, 0.25);
}

.phone-screen {
  width: 100%;
  height: 100%;
  padding: 1rem;
  border-radius: 30px;
  background: var(--cream);
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 70px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
  background: var(--text-dark);
  z-index: 1;
}

.ps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.ps-greeting {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.ps-name {
  color: var(--text-dark);
  font-family: "Fraunces", serif;
  font-size: 1rem;
  font-weight: 400;
}

.ps-avatar {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--coral-light);
  color: var(--coral);
  font-size: 0.65rem;
  font-weight: 500;
}

.ps-glucose-card {
  margin-bottom: 0.8rem;
  padding: 1rem;
  border-radius: 18px;
  background: var(--sage-deep);
  color: var(--white);
}

.ps-gc-label {
  margin-bottom: 4px;
  font-size: 0.65rem;
  opacity: 0.75;
}

.ps-gc-val {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -1px;
}

.ps-gc-val span {
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  opacity: 0.75;
}

.ps-gc-trend {
  margin-top: 4px;
  font-size: 0.65rem;
  opacity: 0.85;
}

.ps-insight {
  margin-bottom: 0.8rem;
  padding: 0.8rem;
  border: 1px solid rgba(232, 112, 90, 0.15);
  border-radius: 14px;
  background: var(--coral-pale);
}

.ps-ins-label {
  margin-bottom: 3px;
  color: var(--coral);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ps-ins-text {
  color: var(--text-dark);
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.5;
}

.ps-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.ps-quick-item {
  padding: 0.7rem;
  border: 1px solid rgba(143, 175, 138, 0.2);
  border-radius: 12px;
  background: var(--white);
}

.pqi-label {
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 0.6rem;
}

.pqi-val {
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 500;
}

.accent-sage {
  color: var(--sage-deep);
}

.accent-coral {
  color: var(--coral);
}

.testi-header {
  margin-bottom: 3rem;
}

.testi-grid {
  max-width: 1280px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
}

.testi-card {
  padding: 2rem;
  border: 1px solid rgba(143, 175, 138, 0.18);
  border-radius: 24px;
  background: var(--white);
}

.testi-card:hover {
  transform: translateY(-3px);
}

.testi-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.star {
  width: 14px;
  height: 14px;
  background: var(--coral);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.testi-quote {
  margin-bottom: 1.5rem;
  color: var(--text-mid);
  font-family: "Fraunces", serif;
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
}

.testi-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testi-avatar {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 500;
}

.av-sage {
  background: var(--sage-pale);
  color: var(--sage-deep);
}

.av-coral {
  background: var(--coral-pale);
  color: var(--coral);
}

.av-cream {
  background: var(--cream-warm);
  color: var(--text-mid);
  border: 1px solid rgba(143, 175, 138, 0.2);
}

.testi-name,
.testi-role {
  display: block;
}

.testi-name {
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 500;
}

.testi-role {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.cta-section {
  position: relative;
  max-width: calc(1280px - 4rem);
  margin: 0 auto 3rem;
  padding: 5rem 4rem;
  border-radius: 32px;
  background: var(--text-dark);
  overflow: hidden;
  text-align: center;
}

.cta-bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  background: var(--sage);
}

.circle-large {
  top: -150px;
  right: -100px;
  width: 400px;
  height: 400px;
}

.circle-small {
  bottom: -80px;
  left: 10%;
  width: 200px;
  height: 200px;
}

.cta-tag {
  color: var(--sage-light);
  text-align: center;
}

.cta-section .section-title {
  color: var(--cream);
}

.cta-sub {
  margin: 0 auto 2.5rem;
  color: rgba(250, 246, 238, 0.65);
}

.btn-cta-white {
  border: 0;
  padding: 0.9rem 2.2rem;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
}

.btn-cta-white:hover {
  background: var(--sage-light);
  transform: translateY(-1px);
}

.btn-cta-outline {
  border: 1.5px solid rgba(250, 246, 238, 0.3);
  padding: 0.9rem 2rem;
  background: transparent;
  color: rgba(250, 246, 238, 0.8);
  font-size: 0.95rem;
  font-weight: 400;
}

.btn-cta-outline:hover {
  border-color: rgba(250, 246, 238, 0.7);
  color: var(--cream);
}

.cta-note {
  margin-top: 1.5rem;
  color: rgba(250, 246, 238, 0.4);
  font-size: 0.78rem;
}

.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(143, 175, 138, 0.2);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .site-nav {
    padding-inline: 1.5rem;
  }

  .hero {
    gap: 2rem;
    padding-inline: 1.5rem;
  }

  .features-section,
  .testi-section,
  .hiw-outer {
    padding-inline: 1.5rem;
  }

  .features-wrap,
  .hiw-section,
  .cta-section,
  .site-footer {
    padding-inline: 2rem;
  }

  .card-top {
    right: -4%;
  }

  .card-mid {
    left: -4%;
  }
}

@media (max-width: 900px) {
  .site-nav {
    align-items: flex-start;
    padding-block: 1rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .hero-left {
    padding-right: 0;
  }

  .hero-right {
    display: none;
  }

  .hero-actions,
  .hero-stats,
  .cta-actions {
    flex-wrap: wrap;
  }

  .features-header,
  .hiw-section,
  .features-grid,
  .testi-grid {
    grid-template-columns: 1fr;
  }

  .features-header {
    gap: 1.5rem;
  }

  .hiw-section {
    gap: 2rem;
  }

  .cta-section {
    max-width: calc(100% - 2rem);
    margin-inline: 1rem;
    padding: 3rem 2rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .site-nav {
    padding-inline: 1rem;
  }

  .hero,
  .features-section,
  .testi-section,
  .hiw-outer {
    padding-inline: 1rem;
  }

  .features-wrap,
  .hiw-section {
    padding: 2.5rem 1.5rem;
  }

  .hero-actions > *,
  .cta-actions > * {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
  }
}

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

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

  .feature-card,
  .testi-card {
    opacity: 1;
    transform: none;
  }
}
