:root {
  color-scheme: dark;
  --ink: #f4f7f5;
  --muted: #a7b1ac;
  --canvas: #07110d;
  --surface: #101915;
  --surface-raised: #17211d;
  --line: #2a3630;
  --daily: #33bf73;
  --weekly: #f2bf33;
  --monthly: #e65959;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(calc(100% - 40px), var(--content));
  min-height: 76px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

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

.brand img {
  width: 34px;
  height: 34px;
}

nav {
  display: flex;
  gap: 28px;
}

nav a,
.footer-links a {
  color: #e8ecea;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
.footer-links a:hover,
.legal-nav a:hover {
  color: var(--daily);
}

.hero {
  position: relative;
  min-height: min(760px, 82vh);
  display: flex;
  align-items: flex-end;
  background: url("/assets/daily-berries.jpg") center 54% / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 6, 0.65);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 150px 0 84px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(64px, 10vw, 126px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-line {
  margin: 24px 0 0;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 750;
}

.hero-copy {
  max-width: 610px;
  margin: 14px 0 30px;
  color: #d4dbd7;
  font-size: 18px;
}

.primary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--daily);
  border-radius: 6px;
  background: var(--daily);
  color: #04110a;
  font-weight: 800;
  text-decoration: none;
}

.rhythm-section,
.product-band,
.availability,
footer,
.legal-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.rhythm-section {
  padding: 96px 0;
}

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

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

.section-heading > p:last-child,
.product-copy > p,
.availability > p {
  color: var(--muted);
  font-size: 18px;
}

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

.food-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.food-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.food-card-copy {
  min-height: 238px;
  padding: 24px;
  border-top: 4px solid var(--daily);
}

.weekly .food-card-copy {
  border-color: var(--weekly);
}

.monthly .food-card-copy {
  border-color: var(--monthly);
}

.food-card-copy span {
  color: var(--daily);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.weekly .food-card-copy span {
  color: var(--weekly);
}

.monthly .food-card-copy span {
  color: var(--monthly);
}

.food-card h3 {
  margin: 10px 0 8px;
  font-size: 25px;
  line-height: 1.12;
}

.food-card p {
  margin: 0;
  color: var(--muted);
}

.product-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
  padding: 96px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.medical-note {
  padding-left: 16px;
  border-left: 3px solid var(--weekly);
  font-size: 14px !important;
}

.coach-sample {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.message {
  width: fit-content;
  max-width: 88%;
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
}

.user-message {
  margin-left: auto;
  background: var(--daily);
  color: #031008;
  font-weight: 700;
}

.coach-message {
  margin-top: 14px;
  background: var(--surface-raised);
  color: #dce2df;
}

.availability {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 60px;
  align-items: end;
  padding: 92px 0;
}

footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 24px 0;
}

footer > p {
  margin: 0;
  color: #77827c;
  font-size: 13px;
}

.legal-header {
  position: static;
  width: min(calc(100% - 40px), var(--content));
  transform: none;
  margin: 0 auto;
}

.legal-nav {
  display: flex;
  gap: 22px;
}

.legal-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.legal-shell {
  max-width: 820px;
  padding: 84px 0 110px;
}

.legal-shell h1 {
  font-size: clamp(48px, 8vw, 78px);
  line-height: 0.98;
}

.legal-shell h2 {
  margin-top: 46px;
  font-size: 28px;
  line-height: 1.15;
}

.legal-shell p,
.legal-shell li {
  color: #c2cac6;
  font-size: 16px;
}

.legal-shell a {
  color: var(--daily);
}

.effective-date {
  margin: 20px 0 52px;
  color: var(--muted) !important;
}

.support-panel {
  margin-top: 40px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.support-panel h2 {
  margin-top: 0;
}

@media (max-width: 820px) {
  nav a:not(:last-child) {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-bottom: 66px;
  }

  .rhythm-grid,
  .product-band,
  .availability {
    grid-template-columns: 1fr;
  }

  .food-card-copy {
    min-height: 0;
  }

  .product-band {
    gap: 42px;
  }

  .availability {
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .rhythm-section,
  .product-band,
  .availability,
  footer,
  .legal-header,
  .legal-shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .hero-content {
    width: calc(100% - 28px);
  }

  .hero-copy,
  .section-heading > p:last-child,
  .product-copy > p,
  .availability > p {
    font-size: 16px;
  }

  .rhythm-section,
  .product-band,
  .availability {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .coach-sample {
    padding: 18px;
  }

  .legal-nav a:not(:last-child) {
    display: none;
  }
}
