:root {
  --page: #f6f5f2;
  --surface: #ffffff;
  --ink: #0e0e10;
  --muted: #86857f;
  --border: rgba(0, 0, 0, 0.06);
  --soft: rgba(0, 0, 0, 0.04);
  --accent: #e25c5c;
  --carbs: #e89a4a;
  --fat: #3f8df0;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.05);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p,
li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 10px;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
}

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

.site-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 4px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  background: var(--soft);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: 72px 0 84px;
}

.eyebrow,
.section-kicker,
.meta-label,
.legal-kicker {
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 860px;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 820;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.hero-text {
  max-width: 610px;
  margin-top: 26px;
  font-size: 19px;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 750;
}

.button-primary {
  background: var(--ink);
  color: #ffffff;
}

.button-secondary {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.button-disabled {
  cursor: default;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.note-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.note-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.phone-wrap {
  display: grid;
  place-items: center;
}

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

.phone {
  position: relative;
  overflow: hidden;
  width: 300px;
  height: 620px;
  margin: 0 auto;
  border: 10px solid #0b0b0d;
  border-radius: 54px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(14, 14, 16, 0.18);
}

.phone-island {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 3;
  width: 84px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050506;
}

.phone-screen {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 58px 18px 18px;
  background: var(--page);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.segmented {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border-radius: 14px;
  background: var(--soft);
}

.segmented span {
  display: grid;
  min-height: 30px;
  place-items: center;
  border-radius: 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.segmented span:first-child {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
}

.streak {
  display: inline-flex;
  min-width: 56px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.calorie-card {
  margin-top: 18px;
  padding: 22px;
  border-radius: 24px;
  background: var(--ink);
  color: #ffffff;
}

.calorie-card .meta-label,
.calorie-card p {
  color: rgba(255, 255, 255, 0.58);
}

.calorie-value {
  margin-top: 20px;
  font-size: 64px;
  font-weight: 820;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.macro-strip {
  display: grid;
  grid-template-columns: 44% 34% 22%;
  overflow: hidden;
  height: 7px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.macro-strip span:first-child {
  background: var(--accent);
}

.macro-strip span:nth-child(2) {
  background: var(--carbs);
}

.macro-strip span:last-child {
  background: var(--fat);
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.macro-card {
  min-height: 88px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.macro-card strong {
  display: block;
  margin-top: 16px;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.04em;
}

.macro-card .bar {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: currentColor;
}

.meal-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.meal-art {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: repeating-linear-gradient(135deg, rgba(226, 92, 92, 0.16) 0 8px, rgba(232, 154, 74, 0.18) 8px 16px);
}

.meal-card strong,
.meal-card b {
  color: var(--ink);
  font-size: 14px;
}

.meal-card p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
}

.section {
  padding: 76px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.section-header h2,
.legal-section h2 {
  margin: 10px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 820;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.section-header p {
  max-width: 420px;
}

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

.feature-card,
.legal-card,
.support-card,
.policy-callout {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.feature-card,
.legal-card,
.support-card {
  padding: 24px;
}

.feature-number {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.feature-card h3,
.legal-card h3,
.support-card h2,
.support-card h3 {
  margin: 20px 0 10px;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.dark-band {
  margin: 58px 0 0;
  padding: 36px;
  border-radius: 32px;
  background: var(--ink);
  color: #ffffff;
}

.dark-band p {
  color: rgba(255, 255, 255, 0.64);
}

.dark-band-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

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

.metric {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.metric strong {
  display: block;
  margin-top: 12px;
  font-size: 34px;
  letter-spacing: -0.07em;
}

.legal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 86px;
}

.legal-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.inline-link {
  color: var(--ink);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(14, 14, 16, 0.22);
  text-underline-offset: 4px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.footer-links a,
.footer-inner p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.page-hero {
  padding: 82px 0 46px;
}

.page-hero p {
  max-width: 710px;
  margin-top: 24px;
  font-size: 18px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 54px;
  padding: 22px 0 84px;
}

.toc {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #ffffff;
}

.toc a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--ink);
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-section {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.legal-section h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 44px);
}

.legal-section p + p,
.legal-section p + ul,
.legal-section ul + p {
  margin-top: 16px;
}

.policy-callout {
  margin: 20px 0 0;
  padding: 18px;
  background: var(--page);
  box-shadow: none;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 24px 0 86px;
}

.support-card:first-child {
  grid-column: 1 / -1;
}

.contact-email {
  display: inline-flex;
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 750;
}

@media (max-width: 900px) {
  .hero,
  .dark-band-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
    min-height: auto;
    padding-top: 56px;
  }

  .phone-wrap {
    order: -1;
  }

  .section-header {
    display: block;
  }

  .section-header p {
    margin-top: 16px;
  }

  .card-grid,
  .legal-strip,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    align-items: stretch;
    border-radius: 28px;
  }

  .nav-links a {
    padding: 10px 9px;
    font-size: 13px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .hero-actions {
    display: grid;
  }

  .phone {
    transform: scale(0.88);
    transform-origin: center top;
  }

  .phone-shadow {
    height: 546px;
  }

  .section {
    padding: 58px 0;
  }

  .dark-band,
  .legal-section {
    padding: 24px;
    border-radius: 26px;
  }

  .metric-row,
  .macro-grid {
    grid-template-columns: 1fr;
  }

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