
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --ink: #171813;
  --muted: #77786f;
  --accent: #f5c842;
  --accent-dark: #d99b00;
  --line: #eae9e1;
  --soft: #fff5d6;
  --green: #397a51;
  --radius: 22px;
  --shadow: 0 12px 40px rgba(40, 36, 20, 0.045);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 4px;
}

.wrap {
  width: min(100% - 40px, 1080px);
  margin-inline: auto;
}

/* Navigation */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 249, 245, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(234, 233, 225, 0.8);
}

header .wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #24200f;
  font-size: 19px;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

nav a {
  padding: 9px 13px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease;
}

nav a:hover,
nav a[aria-current="page"] {
  background: #efeee7;
  color: var(--ink);
}

/* Typography */

h1,
h2,
h3 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -1.5px;
  line-height: 1.2;
}

h1 {
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 5rem);
  font-weight: 800;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.5px;
}

p {
  margin: 0 0 18px;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #735700;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-dark);
}

/* Homepage hero */

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 44px;
  margin-top: 34px;
  padding: clamp(30px, 6vw, 76px);
  border: 1px solid #eee6d0;
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 90% 10%, #ffe9a1 0%, transparent 40%),
    linear-gradient(135deg, #fffdf7 0%, #fff6d9 100%);
}

.hero h1 span {
  color: #c58c00;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero .lead {
  margin-top: 22px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 23px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(23, 24, 19, 0.13);
}

.btn-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.hero-note {
  margin-top: 15px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Decorative nutrition card */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
}

.food-orbit {
  position: absolute;
  width: 290px;
  height: 290px;
  border: 1px dashed rgba(197, 140, 0, 0.3);
  border-radius: 50%;
}

.food-orbit::before,
.food-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: var(--accent);
}

.food-orbit::before {
  top: 20px;
  right: 30px;
  width: 13px;
  height: 13px;
}

.food-orbit::after {
  bottom: 35px;
  left: 12px;
  width: 9px;
  height: 9px;
}

.nutrition-card {
  position: relative;
  z-index: 1;
  width: min(100%, 310px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 25px 70px rgba(93, 72, 12, 0.12);
  transform: rotate(-3deg);
}

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

.nutrition-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.score {
  padding: 6px 10px;
  border-radius: 10px;
  background: #e8f5e8;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.meal-emoji {
  display: grid;
  place-items: center;
  min-height: 130px;
  margin: 18px 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff0bd, #f8d879);
  font-size: 76px;
}

.nutrition-card h3 {
  margin: 0 0 5px;
}

.calories {
  font-family: 'Manrope', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.calories small {
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
}

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

.macro {
  padding: 11px 8px;
  border-radius: 12px;
  background: #f7f6f0;
  text-align: center;
}

.macro strong {
  display: block;
  font-size: 0.95rem;
}

.macro span {
  color: var(--muted);
  font-size: 0.72rem;
}

/* Sections */

.section {
  padding: 90px 0 0;
}

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

.section-heading p {
  color: var(--muted);
}

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

.feature-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #e7d28e;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 15px;
  background: var(--soft);
  font-size: 23px;
}

.feature-card h3 {
  margin: 0 0 9px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.disclaimer {
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f4f3ed;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Legal pages */

.page-hero {
  margin-top: 44px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #eee6d0;
  border-radius: 28px;
  background: linear-gradient(135deg, #fffdf7, #fff5d5);
}

.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
}

.page-hero .lead {
  margin-top: 16px;
}

.updated {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  margin-top: 36px;
}

.legal-sidebar {
  position: sticky;
  top: 105px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.legal-sidebar strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.legal-sidebar a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.legal-sidebar a:hover {
  color: var(--accent-dark);
}

.legal-content {
  min-width: 0;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-content section + section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  letter-spacing: -0.6px;
}

.legal-content p,
.legal-content li {
  color: #62635b;
  font-size: 0.96rem;
}

.legal-content a {
  color: #966900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content ol,
.legal-content ul {
  padding-left: 22px;
}

.legal-content li {
  padding-left: 5px;
  margin-bottom: 10px;
}

.card {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #eee1b8;
  border-radius: 18px;
  background: #fffaf0;
}

.card h2 + p {
  margin-bottom: 20px;
}

.card h2:last-of-type + p {
  margin-bottom: 0;
}

/* Footer */

footer {
  margin-top: 100px;
  padding: 35px 0;
  border-top: 1px solid var(--line);
}

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

.footer-brand p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
}

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

/* Responsive */

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 32px, 560px);
  }

  header .wrap {
    min-height: 70px;
    gap: 10px;
  }

  .logo {
    font-size: 1.15rem;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  nav {
    gap: 0;
  }

  nav a {
    padding: 8px;
    font-size: 0.78rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
    padding: 32px 24px 20px;
    border-radius: 26px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 11vw, 4rem);
  }

  .hero-visual {
    min-height: 310px;
  }

  .food-orbit {
    width: 260px;
    height: 260px;
  }

  .nutrition-card {
    max-width: 285px;
  }

  .section {
    padding-top: 64px;
  }

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

  .feature-card {
    padding: 24px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px;
  }

  .legal-sidebar a {
    padding: 5px 0;
  }

  footer {
    margin-top: 65px;
  }

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

@media (max-width: 390px) {
  header .wrap {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  nav a {
    padding-left: 0;
    margin-right: 14px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}