/* getclovi.com: the same cosy forest look as the app (app/src/constants/theme.ts). Light only, like the app. */
:root {
  --cream: #fff5e7;
  --card: #fffbf4;
  --line: #eaddc8;
  --photo: #f3e8d6;
  --sage: #8eaf82;
  --mint: #c8e6c9;
  --forest: #465c35;
  --on-sage: #2f3f22;
  --text: #7a503a;
  --muted: #86603f;
  --good-fill: #e3f0dc;
  --good: #3f5530;
  --care-fill: #f5e3bf;
  --care: #7a5212;
  --avoid-fill: #f3d2ca;
  --avoid: #93402f;
  --radius: 22px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 500 17px/1.6 'Nunito', system-ui, sans-serif;
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; color: var(--forest); line-height: 1.2; font-weight: 600; margin: 0 0 0.4em; }
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: 1.6rem; margin-top: 1.6em; }
h3 { font-size: 1.2rem; margin-top: 1.2em; }
p { margin: 0 0 1em; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--on-sage); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

header.site { padding: 16px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
header.site .brand img { height: 44px; width: auto; display: block; }
nav.site { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 700; font-size: 15px; }
nav.site a { text-decoration: none; }

.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 32px 0 48px; }
.hero .lead { font-size: 1.2rem; }
.hero .mascot { justify-self: center; max-width: 340px; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 8px; }
  .hero .mascot { max-width: 220px; grid-row: 1; }
}

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature h3 { margin-top: 0; }
.chip { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; background: var(--good-fill); color: var(--good); }
.chip.care { background: var(--care-fill); color: var(--care); }
.chip.avoid { background: var(--avoid-fill); color: var(--avoid); }
.chip.plain { background: var(--card); color: var(--text); border: 1px solid var(--line); }

form.waitlist { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
form.waitlist input[type='email'] {
  flex: 1 1 220px;
  min-height: 52px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 0 20px;
  font: inherit;
  color: var(--text);
}
button, .button {
  min-height: 52px;
  border-radius: 26px;
  border: 0;
  background: var(--sage);
  color: var(--on-sage);
  font: 700 16px 'Nunito', system-ui, sans-serif;
  padding: 0 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
button:hover, .button:hover { background: #7fa273; color: var(--on-sage); }
.small { font-size: 14px; color: var(--muted); }
.form-note { min-height: 1.6em; font-weight: 700; margin-top: 8px; }
.checkbox { display: flex; gap: 8px; align-items: flex-start; flex-basis: 100%; font-size: 14px; }

.search { width: 100%; min-height: 50px; border-radius: 26px; border: 1px solid var(--line); background: var(--card); padding: 0 20px; font: inherit; color: var(--text); margin: 8px 0 20px; }
.az { columns: 3 220px; column-gap: 24px; padding: 0; list-style: none; }
.az li { break-inside: avoid; padding: 4px 0; }
.az a { text-decoration: none; font-weight: 700; }
.az .hello { display: block; font-weight: 500; font-size: 14px; color: var(--muted); }

.ingredient .hello { font-family: 'Fraunces', Georgia, serif; font-size: 1.35rem; color: var(--forest); }
.rules { list-style: none; padding: 0; margin: 0; }
.rules li { padding: 10px 0; border-top: 1px solid var(--line); }
.rules li:first-child { border-top: 0; }
.sources li { margin-bottom: 6px; }
.crumbs { font-size: 14px; margin: 8px 0 16px; }

main { padding-bottom: 48px; }
footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; color: var(--muted); }
footer.site .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; font-weight: 700; }
.legal h2 { font-size: 1.3rem; }
.legal li { margin-bottom: 6px; }
