:root {
  --green: #2f7d16;
  --green-dark: #1f5f12;
  --green-soft: #ecf6e7;
  --ink: #181a18;
  --muted: #6f756c;
  --line: #e4e8df;
  --paper: #fffdf8;
  --card: #ffffff;
  --blue-soft: #eaf3ff;
  --amber-soft: #fff1df;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: var(--green-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
}

.brand-mark svg {
  width: 32px;
  height: 32px;
}

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

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 56px;
  padding: 34px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--green-dark);
}

h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
  letter-spacing: 0;
}

.lead {
  margin: 22px 0 0;
  max-width: 650px;
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.42;
  color: var(--muted);
}

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

.button {
  min-height: 50px;
  padding: 14px 20px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 24px rgba(47, 125, 22, 0.18);
}

.button.secondary {
  background: var(--green-soft);
  color: var(--green-dark);
}

.phone {
  justify-self: center;
  width: min(360px, 100%);
  padding: 12px;
  border-radius: 34px;
  background: #f7f8f3;
  box-shadow: 0 28px 70px rgba(36, 46, 28, 0.18);
}

.phone-screen {
  min-height: 660px;
  border-radius: 26px;
  padding: 26px 22px;
  background: linear-gradient(180deg, #fffdf8 0%, #f8fbf4 100%);
  border: 1px solid rgba(47, 125, 22, 0.08);
}

.screen-header,
.meal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.screen-header {
  color: var(--muted);
  margin-bottom: 24px;
}

.calorie-card {
  min-height: 160px;
  border-radius: 26px;
  padding: 24px;
  display: grid;
  align-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #1f6614);
}

.calorie-card span,
.calorie-card small {
  opacity: 0.82;
}

.calorie-card strong {
  margin: 8px 0;
  font-size: 40px;
}

.macro-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.macro-row div {
  min-height: 92px;
  padding: 16px 10px;
  border-radius: 18px;
  display: grid;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.macro-row div:nth-child(1) {
  background: var(--blue-soft);
  color: #0f5b8c;
}

.macro-row div:nth-child(2) {
  background: var(--amber-soft);
  color: #86520f;
}

.macro-row div:nth-child(3) {
  background: var(--green-soft);
  color: var(--green-dark);
}

.macro-row span {
  font-size: 13px;
}

.macro-row strong {
  font-size: 24px;
}

.meal-row {
  min-height: 72px;
  margin-top: 12px;
  padding: 0 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(27, 35, 23, 0.06);
}

.meal-row.muted b {
  color: var(--green-dark);
}

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

.section {
  padding: 72px 0;
}

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

.feature-grid article,
.notice {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(36, 46, 28, 0.08);
}

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

.feature-grid p,
.notice p,
.document p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.notice {
  margin-bottom: 72px;
  padding: 32px;
  background: var(--green-soft);
}

.document {
  max-width: 860px;
  padding: 54px 0 72px;
}

.document h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.document section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.document h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.document p + p {
  margin-top: 12px;
}

.nowrap {
  white-space: nowrap;
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 20px;
  }

  .phone {
    width: min(420px, 100%);
  }

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

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
  }

  .nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .hero {
    padding-bottom: 50px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .phone-screen {
    min-height: 580px;
  }

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

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