:root {
  color-scheme: light;
  --bg: #f2f2f7;
  --card: #ffffff;
  --ink: #1c1c1e;
  --body: #3a3a3c;
  --muted: #8e8e93;
  --line: #e5e5ea;
  --track: #e8e8ed;
  --protein: #e23744;
  --carbs: #c9a27a;
  --fat: #4a6cf7;
  --flame: #ff9500;
  --water: #4a90d9;
  --fiber: #8b6cc9;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-lift: 0 12px 32px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 14px; color: var(--body); }

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

/* Header */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(242, 242, 247, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img { width: 36px; height: 36px; border-radius: 10px; }

nav { display: flex; flex-wrap: wrap; gap: 4px; }

nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

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

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  padding: 56px 0 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--body);
  font-size: 14px;
  font-weight: 600;
}

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

h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5.6vw, 66px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.lede { max-width: 34rem; margin: 0; color: var(--body); font-size: 20px; line-height: 1.5; }
.en { max-width: 34rem; margin: 12px 0 0; color: var(--muted); font-size: 15px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.btn.ghost:hover { box-shadow: var(--shadow-lift); }

/* Phone illustration */
.phone-wrap { justify-self: center; width: min(340px, 100%); }

.phone {
  padding: 22px 16px 18px;
  border: 10px solid var(--ink);
  border-radius: 48px;
  background: var(--bg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
}

.phone-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 0 4px; }
.phone-head strong { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }

.streak {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 700;
}

.streak svg { width: 15px; height: 15px; color: var(--flame); }

.p-card { border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }

.p-cal { display: flex; align-items: center; justify-content: space-between; padding: 18px; }
.p-cal b { display: block; font-size: 38px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.p-cal span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }

.p-macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.p-macro { padding: 12px 10px; }
.p-macro b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.p-macro span { display: block; min-height: 26px; margin: 3px 0 8px; color: var(--muted); font-size: 10.5px; font-weight: 600; line-height: 1.2; }

.p-meal { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px; }

.p-thumb {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0842b, #c9a27a 60%, #e8e8ed);
}

.p-meal b { display: block; font-size: 14px; font-weight: 700; }
.p-meal span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }

.dots { display: flex; gap: 10px; margin-top: 4px; }
.dots i { display: inline-flex; align-items: center; gap: 4px; color: var(--body); font-size: 11px; font-style: normal; font-weight: 700; }
.dots i::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dots .pr::before { background: var(--protein); }
.dots .ca::before { background: var(--carbs); }
.dots .fa::before { background: var(--fat); }

.caption { margin: 14px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

.ring-track { stroke: var(--track); }

/* Ticker */
.ticker { overflow: hidden; background: var(--ink); color: #fff; }

.ticker-track {
  display: flex;
  width: max-content;
  padding: 15px 0;
  font-size: 15px;
  font-weight: 700;
  animation: ticker 32s linear infinite;
}

.ticker-track span { display: inline-flex; align-items: center; gap: 12px; padding: 0 20px; }
.ticker-track span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--flame); }
.ticker-track span:nth-child(4n + 2)::before { background: var(--protein); }
.ticker-track span:nth-child(4n + 3)::before { background: var(--carbs); }
.ticker-track span:nth-child(4n + 4)::before { background: var(--fat); }

@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 72px 0 0; }

h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.intro { max-width: 36rem; margin: 0; color: var(--muted); font-size: 18px; }

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

.tile, .post {
  display: block;
  padding: 22px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.post:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.tile strong, .post strong { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.tile span, .post span { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; }

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: color-mix(in srgb, currentColor 12%, #fff);
}

.icon svg { width: 22px; height: 22px; }
.c-protein { color: var(--protein); }
.c-carbs { color: var(--carbs); }
.c-fat { color: var(--fat); }
.c-flame { color: var(--flame); }
.c-water { color: var(--water); }
.c-fiber { color: var(--fiber); }

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

.step { padding: 22px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }

.step b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
}

.step h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.note p { margin: 0; color: var(--muted); font-size: 14px; }

.faq { margin-top: 24px; padding: 6px 22px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.faq details + details { border-top: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 24px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: var(--body); font-size: 16px; }

.site-footer { margin-top: 80px; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0; color: var(--muted); }

/* Articles */
.page-head { padding: 40px 0 0; }
.page-head h1 { font-size: clamp(36px, 5vw, 54px); }

.crumbs, .meta { margin: 0 0 14px; color: var(--muted); font-size: 14px; font-weight: 600; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.article {
  width: min(760px, calc(100% - 40px));
  margin: 32px auto 0;
  padding: 40px 44px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.article h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.08; }
.article h2 { margin: 34px 0 10px; font-size: 24px; letter-spacing: -0.03em; }
.article ul { margin: 0 0 16px; padding-left: 1.2em; }
.article li { color: var(--body); }
.article li + li { margin-top: 8px; }
.article a { color: var(--fat); font-weight: 600; text-decoration: none; }
.article a:hover { text-decoration: underline; }
.article .crumbs a { color: var(--muted); font-weight: 600; }

.article .note { margin: 24px 0 0; padding: 16px 18px; border-radius: 18px; background: var(--bg); }
.article .note p { color: var(--body); font-size: 15px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 36px 0 52px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .section { padding-top: 56px; }
  .article { padding: 28px 22px; }
}

@media (max-width: 600px) {
  .top { padding: 12px 0; }
  nav { margin-left: -10px; gap: 0; }
  nav a { padding: 7px 10px; font-size: 14px; }
  .lede { font-size: 18px; }
}

@media (min-width: 600px) and (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .btn, .tile, .post { transition: none; }
}
