:root {
  --ink: #17211d;
  --muted: #5c6762;
  --line: #dfe7e2;
  --paper: #fbfcf8;
  --white: #ffffff;
  --mint: #d9f5e5;
  --green: #2d8a57;
  --blue: #2f6f9f;
  --coral: #ee6b52;
  --yellow: #f4c95d;
  --shadow: 0 24px 70px rgba(23, 33, 29, 0.14);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(223, 231, 226, 0.8);
  border-radius: var(--radius);
  background: rgba(251, 252, 248, 0.86);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(45, 138, 87, 0.18);
  box-shadow: 0 14px 40px rgba(23, 33, 29, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 17px;
}

.nav-links {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--mint);
  color: var(--ink);
}

.header-cta {
  justify-self: end;
  padding: 9px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 760;
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: 62px 0 52px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 21px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 780;
  white-space: nowrap;
}

.button.primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(45, 138, 87, 0.22);
}

.button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.button:hover,
.button:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin: 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.hero-stats dt {
  font-size: 24px;
  font-weight: 840;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to top, rgba(251, 252, 248, 0.55), transparent);
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.floating-score {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  width: min(260px, calc(100% - 40px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(23, 33, 29, 0.14);
  backdrop-filter: blur(16px);
}

.floating-score span,
.floating-score em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.floating-score strong {
  display: block;
  margin: 3px 0;
  font-size: 26px;
}

.method {
  padding: 68px 0 88px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading p,
.feature-intro p,
.waitlist p {
  color: var(--muted);
  font-size: 18px;
}

.section-heading.compact {
  max-width: 680px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.method-grid article,
.feature-grid article,
.phone-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.method-grid article {
  min-height: 248px;
  padding: 22px;
}

.method-grid p,
.feature-grid p,
.phone-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.step {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--coral);
  font-weight: 840;
}

.feature-band {
  padding: 88px 0;
  background: #eef6f0;
  border-block: 1px solid var(--line);
}

.feature-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  align-items: start;
}

.feature-intro {
  position: sticky;
  top: 110px;
}

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

.feature-grid article {
  min-height: 198px;
  padding: 20px;
}

.feature-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.feature-grid article:nth-child(2) .feature-icon {
  background: var(--blue);
}

.feature-grid article:nth-child(3) .feature-icon {
  background: var(--coral);
}

.feature-grid article:nth-child(5) .feature-icon {
  background: #b8860b;
}

.screens {
  padding: 88px 0;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.phone-card {
  padding: 18px;
}

.phone-shell {
  min-height: 520px;
  margin-bottom: 22px;
  border: 10px solid #111915;
  border-radius: 34px;
  background: #f6faf7;
  box-shadow: 0 18px 40px rgba(23, 33, 29, 0.16);
  padding: 18px;
}

.phone-status {
  width: 72px;
  height: 8px;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: #111915;
}

.app-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.app-header span,
.wallet-balance span,
.reward-card span,
.buddy-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.app-header strong {
  font-size: 28px;
}

.habit-list {
  display: grid;
  gap: 10px;
}

.habit-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.habit-row > span {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-radius: 50%;
}

.habit-row.done > span {
  border-color: var(--green);
  background: var(--green);
}

.habit-row strong,
.habit-row em,
.reward-card strong,
.reward-card em,
.buddy-card strong,
.buddy-card em {
  display: block;
}

.habit-row em,
.reward-card em,
.buddy-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.wallet-screen {
  background: #f7f4ec;
}

.wallet-balance {
  margin-bottom: 18px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.wallet-balance span {
  color: rgba(255, 255, 255, 0.66);
}

.wallet-balance strong {
  display: block;
  margin-top: 6px;
  font-size: 42px;
  line-height: 1;
}

.reward-card {
  margin-bottom: 10px;
  padding: 16px;
  border: 1px solid rgba(23, 33, 29, 0.1);
  border-radius: var(--radius);
  background: var(--white);
}

.buddy-screen {
  background: #eef7fb;
}

.week-ring {
  display: grid;
  width: 170px;
  height: 170px;
  place-items: center;
  margin: 10px auto 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #eef7fb 0 54%, transparent 55%),
    conic-gradient(var(--blue) 0 84%, #d6e4eb 84% 100%);
}

.week-ring span {
  font-size: 40px;
  font-weight: 860;
}

.buddy-card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--white);
}

.threshold-bar {
  height: 10px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #d6e4eb;
}

.threshold-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.quote-band {
  padding: 72px 0;
  background: var(--ink);
  color: var(--white);
}

.quote-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 32px;
  align-items: end;
}

blockquote {
  max-width: 850px;
  margin: 0;
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 790;
  line-height: 1.05;
}

.quote-note {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.quote-note strong,
.quote-note span {
  display: block;
}

.quote-note span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
}

.waitlist {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.74fr);
  gap: 42px;
  align-items: center;
  padding: 88px 0;
}

.waitlist-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 22px;
  box-shadow: 0 16px 40px rgba(23, 33, 29, 0.08);
}

.waitlist-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 760;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.input-row input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--ink);
}

.input-row input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(45, 138, 87, 0.15);
}

.form-note {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a:last-child {
  font-weight: 720;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .feature-layout,
  .waitlist,
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-media {
    order: -1;
  }

  .feature-intro {
    position: static;
  }

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

@media (max-width: 680px) {
  .site-header,
  .section-shell,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    margin-top: 10px;
  }

  .header-cta {
    padding-inline: 10px;
  }

  .hero {
    gap: 26px;
    padding: 36px 0 42px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-actions,
  .input-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .method-grid,
  .feature-grid,
  .screen-grid {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    aspect-ratio: 1.06;
  }

  .floating-score {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }

  .method,
  .feature-band,
  .screens,
  .waitlist {
    padding: 58px 0;
  }

  .phone-shell {
    min-height: 468px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
