/* Baby Food & Allergy Tracker — "Fresh & Warm" web brand (matches the app) */
:root {
  --cream: #FBF8F2;
  --sand: #F1EDE4;
  --mint: #CDE9D2;
  --mint-soft: #EAF4EC;
  --green: #3F7D58;
  --green-d: #2E5E41;
  --ink: #2C2A26;
  --soft: #6B665D;
  --coral: #E8825E;
  --line: #E4DDCE;
  --white: #FFFFFF;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-d); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 248, 242, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--green-d); text-decoration: none; font-size: 1.05rem; }
.brand img { width: 34px; height: 34px; border-radius: 22%; }
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.topnav a:hover { color: var(--green); }
@media (max-width: 640px) { .topnav .hide-sm { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 10px 24px -12px rgba(46,94,65,.6);
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { background: var(--green-d); transform: translateY(-1px); }
.btn small { font-weight: 700; opacity: .85; }

/* eyebrow / headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
h1 { font-weight: 800; font-size: clamp(2.2rem, 5.5vw, 3.4rem); line-height: 1.06; letter-spacing: -.01em; color: var(--green-d); margin: 0; }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--green-d); letter-spacing: -.01em; margin: 0 0 12px; }
.lede { color: var(--soft); font-size: 1.15rem; max-width: 40ch; }

/* hero */
.hero { padding: 56px 0 40px; }
.hero .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero .phone { justify-self: center; max-width: 300px; width: 100%; }

/* clean-screenshot phone frame */
.phone-frame { background: #201f1d; padding: 8px; border-radius: 40px; box-shadow: 0 30px 60px -28px rgba(46,94,65,.5), 0 8px 20px -12px rgba(0,0,0,.3); }
.phone-frame img { border-radius: 32px; display: block; width: 100%; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { background: var(--mint); color: var(--green-d); font-weight: 800; font-size: .82rem; border-radius: 999px; padding: 7px 14px; }
@media (max-width: 820px) {
  .hero .grid { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-inline: auto; }
  .trust { justify-content: center; }
  .hero .phone { max-width: 260px; }
}

/* sections */
section { padding: 48px 0; }
.band { background: var(--mint-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.card .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--mint); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .ic img { width: 26px; height: 26px; }
.card h3 { margin: 0 0 6px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.card p { margin: 0; color: var(--soft); }

/* screenshot showcase */
.shots { display: flex; gap: 28px; overflow-x: auto; padding: 12px 4px 24px; scroll-snap-type: x mandatory; justify-content: flex-start; }
.shots figure { margin: 0; flex: none; width: 232px; scroll-snap-align: center; text-align: center; }
.shots .phone-frame { padding: 6px; border-radius: 32px; }
.shots .phone-frame img { border-radius: 26px; }
.shots figcaption { margin-top: 14px; font-weight: 800; color: var(--green-d); font-size: .95rem; }
@media (min-width: 900px) { .shots { justify-content: center; } }

/* pricing */
.price { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 40px; text-align: center; max-width: 560px; margin: 28px auto 0; }
.price .amount { font-weight: 800; font-size: 3rem; color: var(--green-d); line-height: 1; }
.price ul { list-style: none; padding: 0; margin: 20px 0 26px; display: inline-grid; gap: 10px; text-align: left; }
.price li { display: flex; gap: 10px; color: var(--ink); }
.price li::before { content: "✓"; color: var(--green); font-weight: 800; }

/* content pages (support / privacy) */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 24px 60px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.doc h3 { color: var(--green-d); margin-top: 28px; }
.doc .qa { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 14px; }
.doc .qa h4 { margin: 0 0 6px; color: var(--green-d); }
.doc .qa p { margin: 0; color: var(--soft); }
.doc .muted { color: var(--soft); }

/* footer */
footer { background: var(--sand); border-top: 1px solid var(--line); padding: 32px 0; margin-top: 40px; }
footer .row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
footer .links { display: flex; gap: 20px; }
footer a { color: var(--soft); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--green); }
footer .copy { color: var(--soft); font-size: .9rem; }

/* ── guides & long-form content ───────────────────────────────────────── */
.article { max-width: 720px; margin: 0 auto; padding: 40px 24px 20px; }
.article h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); margin-bottom: 10px; }
.article h2 { font-size: clamp(1.3rem, 2.8vw, 1.65rem); margin: 40px 0 10px; }
.article h3 { color: var(--green-d); font-size: 1.1rem; margin: 26px 0 6px; }
.article p, .article li { color: var(--ink); }
.article .standfirst { color: var(--soft); font-size: 1.12rem; margin-bottom: 4px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .96rem; }
.article th, .article td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { color: var(--green-d); font-weight: 800; background: var(--mint-soft); }
.article td:first-child { font-weight: 700; white-space: nowrap; }

/* callouts */
.note { background: var(--mint-soft); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; padding: 16px 18px; margin: 22px 0; }
.note p { margin: 0; color: var(--soft); font-size: .96rem; }
.note strong { color: var(--green-d); }
.warn { border-left-color: var(--coral); background: #FDF1EC; }

/* in-article call to action */
.cta { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 26px; margin: 34px 0; text-align: center; }
.cta h3 { margin-top: 0; }
.cta p { color: var(--soft); margin: 0 0 18px; }

/* guide index cards */
.guide-list { display: grid; gap: 16px; margin-top: 26px; }
.guide-list a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; text-decoration: none; transition: transform .15s ease, border-color .2s ease; }
.guide-list a:hover { transform: translateY(-2px); border-color: var(--green); }
.guide-list h3 { margin: 0 0 6px; color: var(--green-d); }
.guide-list p { margin: 0; color: var(--soft); font-size: .96rem; }

/* ── printable checklist ──────────────────────────────────────────────── */
.sheet { max-width: 900px; margin: 0 auto; padding: 30px 24px 60px; }
.print-btn { border: 0; cursor: pointer; font-family: inherit; }
.groups { columns: 2; column-gap: 34px; margin-top: 10px; }
@media (max-width: 640px) { .groups { columns: 1; } }
.grp { break-inside: avoid; margin-bottom: 22px; }
.grp h3 { margin: 0 0 8px; color: var(--green-d); font-size: 1.02rem; border-bottom: 2px solid var(--mint); padding-bottom: 5px; }
.grp ul { list-style: none; margin: 0; padding: 0; }
.grp li { display: flex; align-items: center; gap: 9px; padding: 2.5px 0; font-size: .9rem; }
.grp li::before { content: ""; flex: none; width: 13px; height: 13px; border: 1.5px solid var(--green); border-radius: 3px; }
.allergen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
@media (max-width: 640px) { .allergen-grid { grid-template-columns: repeat(2, 1fr); } }
.allergen-grid div { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: .88rem; font-weight: 700; color: var(--green-d); }
.allergen-grid span { display: block; font-weight: 400; color: var(--soft); font-size: .78rem; margin-top: 3px; }

@media print {
  .topbar, footer, .no-print { display: none !important; }
  body { background: #fff; font-size: 10.5pt; }
  .sheet { padding: 0; max-width: none; }
  .groups { columns: 3; column-gap: 20px; }
  .grp li::before { border-color: #444; }
  .grp h3 { border-bottom-color: #ccc; }
  a { text-decoration: none; color: #000; }
  .note { background: #fff; border: 1px solid #ccc; }
  @page { margin: 12mm; }
}
