:root {
  --bg: #ffffff;
  --surface: #fffaf5;
  --surface-strong: #f7efe8;
  --text: #241814;
  --muted: #786d66;
  --line: #eadfd6;
  --orange: #ff8a24;
  --green: #28b463;
  --brown: #2b2420;
  --shadow: 0 18px 45px rgba(36, 24, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 19px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

nav a,
.site-footer a {
  text-decoration: none;
}

nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.hero {
  width: min(1120px, calc(100% - 40px));
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0;
}

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

h1 {
  max-width: 690px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 20px;
  line-height: 1.15;
}

p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-text {
  max-width: 590px;
  font-size: 21px;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  text-decoration: none;
  font-weight: 900;
}

.button.primary {
  background: var(--green);
  color: white;
}

.button.secondary {
  background: var(--surface-strong);
  color: var(--text);
}

.phone-preview {
  justify-self: center;
  width: 360px;
  border-radius: 42px;
  padding: 14px;
  background: #f2ece7;
  box-shadow: var(--shadow);
}

.phone-preview.hero-phone img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  border-radius: 32px;
  background: white;
}

.phone-screen {
  min-height: 690px;
  border-radius: 32px;
  background: white;
  padding: 34px 22px;
  overflow: hidden;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.app-top strong {
  display: block;
  font-size: 26px;
  line-height: 1.05;
}

.app-top span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.avatar {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffd77c;
  border: 5px solid #fff3d8;
  font-weight: 900;
  color: #5b3a22;
  font-size: 22px;
}

.summary-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px;
  border-radius: 24px;
  background: var(--brown);
  color: white;
}

.summary-card span,
.summary-card small {
  color: #d8cbc3;
  font-weight: 900;
}

.summary-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 42px;
  line-height: 1;
}

.summary-card small {
  color: #8fd36c;
  font-size: 14px;
}

.ring {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 12px solid var(--orange);
  box-shadow: inset 0 0 0 14px #211c19;
  font-weight: 900;
  font-size: 22px;
}

.streak-card,
.habit {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
}

.streak-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  margin-bottom: 18px;
}

.streak-card strong,
.habit strong {
  display: block;
  font-size: 22px;
}

.streak-card span,
.habit span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 800;
}

.streak-card b {
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff2e7;
  color: var(--orange);
  font-size: 22px;
}

.habit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  margin-bottom: 14px;
}

.habit.done {
  background: #f5fbf0;
  border-color: #cde9ba;
}

.habit-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  font-size: 30px;
  font-weight: 900;
}

.habit-icon.empty {
  background: white;
  border: 4px solid var(--line);
}

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

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

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

.steps article,
.feature-list article,
.download,
.privacy-band {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: white;
}

.steps article {
  padding: 26px;
}

.steps span {
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  color: var(--orange);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: start;
}

.lead {
  font-size: 20px;
}

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

.feature-list article {
  padding: 24px;
}

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

.shot {
  margin: 0;
  min-height: 0;
  border-radius: 30px;
  padding: 12px;
  background: #f7f1eb;
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(36, 24, 20, 0.09);
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  border-radius: 22px;
  background: white;
}

.shot figcaption {
  padding: 14px 8px 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.privacy-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 36px;
  background: #f6fbf1;
  border-color: #ddefcb;
}

.privacy-band p {
  max-width: 740px;
  margin-bottom: 0;
}

.legal-links {
  display: grid;
  gap: 10px;
  min-width: 250px;
}

.legal-links a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: white;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid #ddefcb;
}

.download {
  padding: 40px;
  text-align: center;
  background: var(--brown);
}

.download h2,
.download p {
  color: white;
}

.download p {
  margin-bottom: 0;
  color: #d8cbc3;
}

.legal-page {
  width: min(820px, calc(100% - 40px));
  margin: 56px auto 90px;
}

.legal-page h1 {
  font-size: clamp(42px, 6vw, 64px);
}

.legal-page section {
  margin-top: 38px;
}

.legal-page h2 {
  font-size: 28px;
}

.legal-page a {
  color: var(--orange);
  font-weight: 900;
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  min-height: 92px;
  margin: 80px auto 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-weight: 800;
}

.site-footer div {
  display: flex;
  gap: 18px;
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .phone-preview {
    width: min(360px, 100%);
  }

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

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

  .privacy-band {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  .section,
  .legal-page,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    margin-top: 24px;
  }

  .section {
    margin-top: 78px;
  }

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

  .phone-screen {
    min-height: 610px;
    padding: 24px 16px;
  }

  .summary-card {
    grid-template-columns: 1fr;
  }

  .ring {
    width: 92px;
    height: 92px;
  }

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