:root {
  --sage: #4F6F52;
  --sage-light: #D5E6D2;
  --porcelain: #F3F5F2;
  --slate: #1F2529;
  --text: #1F2529;
  --text-muted: #55605c;
  --bg: var(--porcelain);
  --surface: #ffffff;
  --border: #dfe6dd;
  --amber: #c9862c;
  --red: #b23a3a;
  --green: #3f7a44;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e7ece7;
    --text-muted: #a9b3ad;
    --bg: var(--slate);
    --surface: #2a3136;
    --border: #3a4349;
    --sage-light: #33432f;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--sage); text-decoration: underline; }
a:hover { text-decoration: none; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}
header.site .brand img { width: 36px; height: 36px; border-radius: 8px; }

nav.site ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.site a { text-decoration: none; color: var(--text); font-weight: 500; }
nav.site a:hover { color: var(--sage); }

main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.hero { text-align: center; padding: 24px 0 8px; }
.hero h1 { font-size: 2rem; margin: 0 0 8px; color: var(--sage); }
.hero p.sub { font-size: 1.1rem; color: var(--text-muted); max-width: 38rem; margin: 0 auto 20px; }

.cta {
  display: inline-block;
  background: var(--sage);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.cta:hover { opacity: 0.92; text-decoration: none; }
p.cta-note { font-size: 0.9rem; color: var(--text-muted); margin-top: 10px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.tile h3 { margin: 0 0 6px; font-size: 1.05rem; }
.tile p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.tile.tile-link { text-decoration: none; color: inherit; display: block; transition: border-color 0.15s; }
.tile.tile-link:hover { border-color: var(--sage); }
.tile.tile-link img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  margin-bottom: 10px;
  display: block;
}

section { margin: 36px 0; }
section h2 { font-size: 1.4rem; color: var(--sage); margin-bottom: 10px; }

.notice {
  background: var(--sage-light);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.95rem;
}
.notice.health { border: 1px solid var(--border); background: var(--surface); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}
.tag {
  background: var(--sage-light);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.85rem;
}

.nutrition {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}
.nutrition .stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.nutrition .stat .value { font-size: 1.3rem; font-weight: 700; }
.nutrition .stat .label { font-size: 0.8rem; color: var(--text-muted); }
.traffic-light.low { color: var(--green); }
.traffic-light.medium { color: var(--amber); }
.traffic-light.high { color: var(--red); }

.screenshot {
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto 8px;
}
figure.app-shot { text-align: center; margin: 24px 0; }
figure.app-shot figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }

.shot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
  margin: 28px 0 8px;
}
.shot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(31, 37, 41, 0.08);
}
.shot-card img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
  margin-bottom: 14px;
}
.shot-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.shot-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

details.faq {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { color: var(--text-muted); margin: 10px 0 0; }

footer.site {
  border-top: 1px solid var(--border);
  padding: 24px 20px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
footer.site .links { margin-bottom: 10px; }
footer.site .links a { margin: 0 8px; color: var(--text-muted); text-decoration: none; }
footer.site .links a:hover { color: var(--sage); text-decoration: underline; }
footer.site .lang a { margin: 0 6px; }
footer.site .lang a[aria-current="true"] { color: var(--sage); font-weight: 700; text-decoration: none; }

.placeholder-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 3px solid var(--border);
  padding-left: 10px;
  margin-top: 6px;
}
