:root {
  --bg: #ffffff;
  --ink: #121417;
  --muted: #6b7280;
  --nav: #3f4651;
  --green: #1ed89a;
  --green-soft: #e8faf3;
  --panel: #f4f5f7;
  --line: #eceef1;
  --cta: #121417;
  --shadow: 0 12px 36px rgba(16, 24, 32, 0.07);
  --shadow-hover: 0 16px 40px rgba(16, 24, 32, 0.1);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

img,
svg {
  display: block;
}

.nav,
.hero,
.features,
.cta,
.footer,
.page-main {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 8px;
}

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

.logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(18, 20, 23, 0.08);
  background: #fff;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-lg {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border-color: transparent;
  margin-inline: auto;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nav);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding: 88px 0 136px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hero h1,
.features h2,
.cta h2 {
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.25rem, 4.2vw, 3.15rem);
  font-weight: 700;
  max-width: 11ch;
}

.lede,
.section-lede {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.65;
}

.lede {
  margin-top: 22px;
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 16px;
  border-radius: 10px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-1px);
}

.store-btn-dark {
  background: var(--ink);
  color: #fff;
}

.store-btn-light {
  background: #fff;
  color: var(--ink);
}

.apple-logo {
  width: 22px;
  height: 22px;
}

.store-copy {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.3em;
  line-height: 1;
  white-space: nowrap;
}

.store-kicker,
.store-name {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-kicker {
  opacity: 0.88;
}

.text-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--nav);
}

.text-link:hover {
  color: var(--ink);
}

.diary-card {
  background: #fff;
  border: 1px solid rgba(18, 20, 23, 0.04);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 24px 14px;
}

.diary-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.diary-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.calorie-panel {
  background: var(--panel);
  border-radius: var(--radius-sm);
  padding: 18px 18px 16px;
}

.panel-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b929c;
}

.calorie-value {
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

.calorie-value .current {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.calorie-value .goal {
  font-size: 1.05rem;
  font-weight: 600;
  color: #8b929c;
}

.progress {
  height: 8px;
  margin-top: 14px;
  background: #e2e5ea;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 84.5%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.panel-note {
  margin-top: 12px;
  font-size: 0.92rem;
  color: #8b929c;
}

.nutrients {
  list-style: none;
  margin-top: 6px;
}

.nutrients li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.nutrients li:last-child {
  border-bottom: 0;
}

.nutrient-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
}

.nutrient-icon svg {
  width: 16px;
  height: 16px;
}

.nutrient-name {
  font-weight: 600;
}

.nutrient-value {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.features {
  text-align: center;
  padding: 48px 0 136px;
}

.features h2 {
  margin-top: 12px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
}

.section-lede {
  margin: 16px auto 40px;
  max-width: 46ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: left;
}

.feature-card {
  background: #fff;
  border: 1px solid rgba(18, 20, 23, 0.04);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin-top: 22px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.feature-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.cta {
  background: var(--cta);
  color: #fff;
  border-radius: 18px;
  text-align: center;
  padding: 64px 24px 56px;
}

.cta h2 {
  margin-top: 16px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
}

.cta p {
  margin: 12px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 80px 0 56px;
  color: #9aa1ab;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer a {
  color: #9aa1ab;
}

.footer a:hover {
  color: var(--ink);
}

.page-main {
  width: min(720px, calc(100% - 48px));
  padding: 72px 0 80px;
}

.page-main h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-main h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 36px 0 10px;
}

.page-main h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 22px 0 8px;
}

.page-main p,
.page-main li {
  color: var(--nav);
}

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

.page-main ul {
  padding-left: 1.2rem;
  margin: 8px 0 4px;
}

.page-main li {
  margin: 6px 0;
}

.page-main a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.page-main a:hover {
  color: var(--green);
}

.page-lead {
  margin-top: 10px;
  color: var(--muted);
}

.page-meta {
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-card {
  background: var(--panel);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 18px 0;
}

.page-card p + p {
  margin-top: 10px;
}

.page-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.join-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.join-page .logo-lg {
  margin-bottom: 18px;
}

.join-page p {
  margin-top: 8px;
  color: var(--muted);
}

.join-page .store-btn {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 56px 0 96px;
  }

  .features {
    padding: 32px 0 96px;
  }

  .hero h1 {
    max-width: none;
  }

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

@media (max-width: 640px) {
  .nav,
  .hero,
  .features,
  .cta,
  .footer,
  .page-main {
    width: min(var(--max), calc(100% - 32px));
  }

  .page-main {
    width: min(720px, calc(100% - 32px));
    padding: 48px 0 64px;
  }

  .nav {
    padding-top: 20px;
  }

  .hero {
    padding: 40px 0 80px;
  }

  .features {
    padding: 24px 0 80px;
  }

  .footer {
    padding-top: 56px;
  }

  .cta {
    border-radius: 16px;
    padding: 48px 20px 44px;
  }

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