/* style.css + landing/content styles, one request. Legal pages keep style.css. */
:root {
  --ink: #2b2320;
  --muted: #6b5f58;
  --accent: #9d4d24;
  --bg: #faf5ee;
  --card: #ffffff;
  --border: #e8ddd0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

header.top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

header.top .leaf { font-size: 22px; }

header.top .brand {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

h1 {
  font-size: 32px;
  margin: 24px 0 4px;
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

h2 {
  font-size: 19px;
  margin-top: 36px;
  margin-bottom: 8px;
}

p, li { color: var(--ink); font-size: 15.5px; }

ul { padding-left: 20px; }

a { color: var(--accent); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 24px 0;
}

.nav-links {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.nav-links a { display: inline-block; padding: 10px 0; margin-right: 20px; }

footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 13px;
}

/* Landing page only; base styles come from style.css. */

.home header.top .logo { border-radius: 8px; }

.hero { padding: 24px 0 8px; }

.hero h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.15;
  margin: 16px 0 12px;
}

.lede { font-size: 18px; color: var(--muted); max-width: 34em; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 168px;
  min-height: 52px;
  padding: 8px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}
.store:hover, .store:focus-visible { background: var(--accent); }
.store .small { font-size: 12px; opacity: 0.85; }
.store .big { font-size: 18px; font-weight: 700; }

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

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 8px;
}
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card);
}
.shots figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }

.steps { padding-left: 22px; }
.steps li { margin-bottom: 10px; }

.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.modes .card { margin: 8px 0; }

h3 { font-size: 17px; margin: 0 0 6px; }

.disclaimer { margin-top: 40px; }
.disclaimer p { color: var(--muted); font-size: 14.5px; }

.copy { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

@media (max-width: 560px) {
  .wrap { padding: 32px 16px 72px; }
  .modes { grid-template-columns: 1fr; }
  .store { flex: 1 1 100%; }
}

/* Content pages (recipes, methodology) — generated by tool/web/build_pages.py */
.home-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.crumbs { font-size: 14px; color: var(--muted); margin: 24px 0 0; }
.crumbs a { display: inline-block; padding: 10px 0; }
.tags { margin: 0 0 16px; }
.tag { display: inline-block; font-size: 13px; padding: 2px 10px; margin: 0 6px 6px 0; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 8px 0 24px; }
.facts div { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 8px; text-align: center; }
.facts .v { display: block; font-size: 20px; font-weight: 700; }
.facts .k { display: block; font-size: 12px; color: var(--muted); }
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rcard { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.rcard:hover, .rcard:focus-visible { border-color: var(--accent); }
.rcard .emoji { font-size: 22px; display: block; }
.rcard .rname { display: block; font-weight: 700; margin: 4px 0 2px; }
.rcard .rmeta { display: block; font-size: 13px; color: var(--muted); }
.weight { font-weight: 400; font-size: 14px; color: var(--muted); }
.cta { margin-top: 40px; }
.cta .stores { margin: 12px 0 0; }
.fineprint { font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rgrid { grid-template-columns: 1fr; }
}

/* Conversion: QR for desktop, trust row, platform-first buttons, sticky mobile CTA, FAQ */
.cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.qr { display: none; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.qr img { border-radius: 10px; border: 1px solid var(--border); background: #fff; }
@media (min-width: 900px) and (hover: hover) { .qr { display: flex; } }
.trust { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.trust li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.stores.platform-ios [data-store="android"], .stores.platform-android [data-store="ios"] { background: var(--card); color: var(--ink); border: 1px solid var(--border); }
.sticky-cta { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; min-height: 52px; border-radius: 14px;
  background: var(--accent); color: #fff; text-align: center; font-weight: 700; font-size: 17px; line-height: 52px; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.sticky-cta.show { display: block; }
@media (min-width: 900px) { .sticky-cta.show { display: none; } }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 4px 16px; margin: 0 0 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 10px 0; min-height: 24px; }
.faq details p { margin: 0 0 12px; }
.explore { padding-left: 20px; }
.explore li { margin: 6px 0; }
.wrap.home { padding-bottom: 104px; }

/* Recipe score breakdown */
.table-wrap { overflow-x: auto; margin: 4px 0 8px; }
.pillars { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.pillars th, .pillars td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.pillars tbody tr:last-child th, .pillars tbody tr:last-child td { border-bottom: 0; }
.pillars thead th { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Worked example under the hero */
.example { display: flex; gap: 14px; align-items: center; margin: 18px 0 0; padding: 14px 16px; background: var(--card);
  border: 1px solid var(--border); border-radius: 16px; text-decoration: none; color: var(--ink); max-width: 560px; }
.example:hover, .example:focus-visible { border-color: var(--accent); }
.ex-score { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 5px solid #d9773a; display: grid; place-items: center;
  font-weight: 800; font-size: 19px; line-height: 1; }
.ex-score small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); }
.ex-body { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ex-title { font-weight: 700; font-size: 15px; }
.ex-pillars { color: var(--muted); }
.ex-link { color: var(--accent); font-weight: 600; }

/* Meal score calculator */
.calc .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 16px; }
.calc label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.calc input[type=number] { font: inherit; font-size: 17px; color: var(--ink); padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); min-height: 44px; }
.calc fieldset { border: 1px solid var(--border); border-radius: 14px; padding: 8px 14px 12px; background: var(--card); }
.calc legend { font-size: 14px; color: var(--muted); padding: 0 4px; }
.calc fieldset label { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; min-height: 40px; }
.calc-out { margin: 18px 0 8px; }
.calc-score { font-size: 48px; font-weight: 800; line-height: 1; margin-bottom: 10px; }
.calc-score small { font-size: 18px; color: var(--muted); font-weight: 600; margin-left: 4px; }
