:root {
  color-scheme: light;
  --green-900: #1b2a22;
  --green-800: #234334;
  --green-700: #2e7d5b;
  --green-600: #338a64;
  --mint-300: #7fd89c;
  --mint-200: #b7efc8;
  --mint-100: #e4f7e9;
  --cream: #f5faf6;
  --white: #ffffff;
  --amber: #f5b85f;
  --blue: #6fb7c9;
  --muted: #5d7065;
  --border: rgba(46, 125, 91, 0.18);
  --shadow: 0 22px 60px rgba(27, 42, 34, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-heading: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(127, 216, 156, 0.22), transparent 32rem),
    var(--cream);
  color: var(--green-900);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--green-900);
  color: var(--white);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(46, 125, 91, 0.12);
  background: rgba(245, 250, 246, 0.86);
  backdrop-filter: blur(16px);
}

.nav,
.hero-shell,
.section,
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

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

.brand-mark,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--green-900);
  font-weight: 850;
  text-decoration: none;
}

.brand-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint-300), var(--green-700));
  box-shadow: 0 0 0 5px rgba(127, 216, 156, 0.22);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--green-700);
}

.hero {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(46, 125, 91, 0.14), rgba(127, 216, 156, 0.36) 52%, rgba(111, 183, 201, 0.16)),
    var(--cream);
}

.hero-shell {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(2.25rem, 7vw, 5rem);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--green-900);
  font-family: var(--font-heading);
  line-height: 1.03;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(4.8rem, 18vw, 11.5rem);
  font-weight: 900;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 7vw, 5rem);
  font-weight: 880;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
  font-weight: 850;
}

.hero-tagline {
  max-width: 38rem;
  color: var(--green-800);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
}

.hero-actions,
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.45rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  font-weight: 850;
  text-decoration: none;
}

.button-primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(46, 125, 91, 0.22);
}

.button-primary:hover {
  background: var(--green-800);
}

.button-secondary {
  border-color: rgba(46, 125, 91, 0.24);
  background: rgba(255, 255, 255, 0.68);
  color: var(--green-900);
}

.hero-visual {
  display: grid;
  max-height: 245px;
  overflow: hidden;
  justify-items: center;
}

.phone-frame {
  width: min(100%, 280px);
  border: 10px solid var(--green-900);
  border-radius: 2.4rem;
  background: var(--green-900);
  box-shadow: var(--shadow);
}

.phone-top {
  width: 32%;
  height: 0.42rem;
  margin: 0.7rem auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.app-screen {
  overflow: hidden;
  min-height: 420px;
  border-radius: 1.75rem;
  background:
    linear-gradient(180deg, rgba(127, 216, 156, 0.9), rgba(245, 250, 246, 0.96) 34%),
    var(--white);
  padding: 1rem;
}

.screen-header,
.metric-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.screen-header {
  font-size: 0.9rem;
  font-weight: 850;
}

.status-pill {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  padding: 0.3rem 0.65rem;
  color: var(--green-700);
  font-size: 0.72rem;
}

.progress-ring {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  margin: 2rem auto 1.5rem;
  border-radius: 999px;
  background:
    radial-gradient(circle, var(--white) 56%, transparent 58%),
    conic-gradient(var(--green-700) 0 74%, rgba(46, 125, 91, 0.13) 74% 100%);
  color: var(--green-900);
  font-size: 2rem;
  font-weight: 900;
}

.metric-grid {
  align-items: stretch;
}

.metric-grid div {
  flex: 1;
  border: 1px solid rgba(46, 125, 91, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  padding: 1rem;
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.85rem;
}

.routine-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.routine-list span {
  height: 4rem;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(46, 125, 91, 0.13), rgba(127, 216, 156, 0.26));
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.about-section {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.section-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.profile-card,
.feature-card,
.download-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 45px rgba(27, 42, 34, 0.08);
}

.profile-card {
  padding: 1rem;
}

.profile-card img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 10px);
}

.section-copy p,
.section-heading p,
.download-panel p,
.site-footer p {
  color: var(--muted);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

.feature-card {
  padding: 1.2rem;
}

.feature-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: var(--mint-100);
  color: var(--green-700);
}

.feature-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mockup-row {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.5rem;
}

.mockup-row img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.download-panel {
  padding: 1.3rem;
}

.store-buttons:empty {
  display: none;
}

.site-footer {
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.site-footer ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a,
.site-footer span {
  font-weight: 750;
}

.copyright {
  margin: 0;
}

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

  .hero-shell,
  .section-grid,
  .mockup-row,
  .site-footer {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero-shell {
    min-height: min(780px, calc(100svh - 150px));
  }

  .hero-copy {
    padding-bottom: 5vh;
  }

  .hero-actions,
  .store-buttons {
    gap: 0.8rem;
    margin-top: 2rem;
  }

  .hero-visual {
    max-height: none;
    overflow: visible;
    justify-items: end;
  }

  .phone-frame {
    width: min(100%, 330px);
  }

  .app-screen {
    min-height: 500px;
  }

  .progress-ring {
    width: 190px;
    height: 190px;
    margin: 3rem auto 2rem;
    font-size: 2.35rem;
  }

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

  .site-footer {
    align-items: end;
  }

  .copyright {
    justify-self: end;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
