/* ============================================================
   AllergyHub marketing site — design tokens & shared styles
   ============================================================ */

:root {
  --cream: #faf7f1;
  --cream-deep: #f2ede2;
  --ink: #1b231f;
  --ink-soft: #4a5249;
  --forest: #1d4b3d;
  --forest-dark: #123128;
  --forest-tint: #e3ebe6;
  --sage: #e9ede3;
  --ochre: #c17f2e;
  --ochre-dark: #9c631f;
  --rule: #d8d2c4;
  --white: #fffdf9;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--forest-dark);
}
h1 { font-size: clamp(2.3rem, 4.2vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 38rem; }
p.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34rem; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--forest-dark); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---- Nav ---- */
.site-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
  position: sticky; top: 0; z-index: 50;
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.5rem; }
.brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--forest-dark); display: flex; align-items: center; gap: 0.5rem; }
.brand-mark { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--forest); display: inline-block; position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 0.42rem; border: 2px solid var(--cream); border-radius: 2px; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a { color: var(--ink); font-size: 0.98rem; margin-right: 1.9rem; }
.nav-links a:last-child { margin-right: 0; }
.nav-links a.active { color: var(--forest-dark); font-weight: 600; }
.nav-cta { display: flex; gap: 0.7rem; align-items: center; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: flex-start; padding: 1rem 1.5rem 1.5rem; border-bottom: 1px solid var(--rule); gap: 1rem; display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 0.7rem 1.4rem; border-radius: 7px; border: 1px solid transparent;
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest-dark); }
.btn-outline { background: transparent; color: var(--forest-dark); border-color: var(--forest-dark); }
.btn-outline:hover { background: var(--forest-tint); }
.btn-ochre { background: var(--ochre); color: var(--white); }
.btn-ochre:hover { background: var(--ochre-dark); }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.05rem; }

/* ---- Sections ---- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-sage { background: var(--sage); }
.section-forest { background: var(--forest-dark); color: var(--cream); }
.section-forest h2, .section-forest h3 { color: var(--white); }
.section-forest p { color: #cfe0d7; }
.eyebrow-plain { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.5rem; }

.rule { border: none; border-top: 1px solid var(--rule); margin: 3rem 0; }

/* ---- Grid helpers ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Cards & badges (used sparingly, tied to meaning not decoration) ---- */
.feature-item { padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.feature-item:first-child { border-top: none; }
.feature-item h3 { margin-bottom: 0.35rem; }
.feature-item .fi-num { font-family: var(--serif); font-size: 0.95rem; color: var(--ochre-dark); font-weight: 600; margin-right: 0.6rem; }

.pill {
  display: inline-block; padding: 0.25rem 0.7rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
}
.pill-ok { background: #dcecdf; color: #1e6b3e; }
.pill-warn { background: #f6e6cf; color: var(--ochre-dark); }
.pill-danger { background: #f3d9d7; color: #9a3327; }

/* ---- Hero document stack (concrete illustration of "one record, three views") ---- */
.doc-stack { position: relative; height: 460px; }
.doc-card {
  position: absolute; width: 280px; background: var(--white);
  border: 1px solid var(--rule); border-radius: 10px; padding: 1.1rem 1.2rem;
  box-shadow: 0 14px 30px rgba(27, 35, 31, 0.10);
}
.doc-card h4 { font-family: var(--sans); font-size: 0.8rem; text-transform: none; color: var(--ink-soft); margin: 0 0 0.7rem; font-weight: 600; }
.doc-card .doc-name { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--forest-dark); }
.doc-card .doc-row { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.35rem; display: flex; justify-content: space-between; gap: 0.6rem; }
.doc-card.parent { top: 0; left: 0; transform: rotate(-4deg); z-index: 1; }
.doc-card.school { top: 130px; left: 190px; transform: rotate(2deg); z-index: 2; }
.doc-card.trust { top: 280px; left: 60px; transform: rotate(-1.5deg); z-index: 3; }

/* ---- Benedict's Law notice (the one bold moment) ---- */
.notice {
  background: var(--white); border: 2px solid var(--ochre);
  border-radius: 10px; padding: 2.2rem 2.4rem; position: relative;
}
.notice .notice-tag {
  position: absolute; top: -0.85rem; left: 2rem; background: var(--ochre); color: var(--white);
  padding: 0.3rem 0.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
}

/* ---- Screenshot / browser frame mockups ---- */
.browser-frame {
  border: 1px solid var(--rule); border-radius: 12px; overflow: hidden;
  background: var(--white); box-shadow: 0 18px 40px rgba(27, 35, 31, 0.09);
}
.browser-bar { background: var(--cream-deep); padding: 0.55rem 0.9rem; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--rule); }
.browser-dots span { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--rule); margin-right: 4px; }
.browser-url { flex: 1; background: var(--white); border: 1px solid var(--rule); border-radius: 5px; font-size: 0.78rem; color: var(--ink-soft); padding: 0.2rem 0.7rem; }
.browser-body { padding: 1.3rem 1.4rem; font-size: 0.85rem; }
.browser-body .mock-h { font-family: var(--serif); font-size: 1.15rem; color: var(--forest-dark); margin-bottom: 0.9rem; }
.mock-badge-row { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mock-stat { border: 1px solid var(--rule); border-radius: 8px; padding: 0.7rem 0.9rem; min-width: 130px; }
.mock-stat .lbl { font-size: 0.72rem; color: var(--ink-soft); margin-bottom: 0.3rem; }
.mock-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.mock-table th { text-align: left; color: var(--ink-soft); font-weight: 600; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--rule); }
.mock-table td { padding: 0.5rem 0.5rem; border-bottom: 1px solid var(--cream-deep); }
.mock-badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.mock-badge.mild { background: #dcecdf; color: #1e6b3e; }
.mock-badge.moderate { background: #f6e6cf; color: var(--ochre-dark); }
.mock-badge.severe { background: #f3d9d7; color: #9a3327; }
.mock-badge.threat { background: #f0c9c6; color: #7d211a; }
.phone-frame { width: 240px; border: 8px solid var(--forest-dark); border-radius: 30px; overflow: hidden; margin: 0 auto; background: var(--white); }
.phone-screen { padding: 1rem 0.9rem; font-size: 0.78rem; }

/* ---- Steps (genuine sequence) ---- */
.steps { display: flex; gap: 0; position: relative; margin-top: 3.2rem; }
.step { flex: 1; padding: 0 1.2rem; position: relative; }
.step::before { content: attr(data-n); position: absolute; top: -2.6rem; left: 1.2rem; font-family: var(--serif); font-size: 1.6rem; color: var(--ochre-dark); font-weight: 600; }
.steps-rule { height: 2px; background: var(--rule); margin: 2rem 1.2rem 3.6rem; position: relative; }
@media (max-width: 860px) { .steps { flex-direction: column; gap: 2.4rem; } .steps-rule { display: none; } .step::before { top: -2.2rem; } }

/* ---- Pricing ---- */
.price-group { margin-bottom: 3.2rem; }
.price-group h3 { margin-bottom: 1.1rem; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th { text-align: left; font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; padding: 0.5rem 0.8rem; border-bottom: 1px solid var(--rule); }
.price-table td { padding: 0.75rem 0.8rem; border-bottom: 1px solid var(--cream-deep); }
.price-table td.num { font-variant-numeric: tabular-nums; }
.price-table tr.highlight td { background: var(--forest-tint); }
.price-table td:first-child, .price-table th:first-child { padding-left: 0; }

.faq-item { border-top: 1px solid var(--rule); padding: 1.3rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-family: var(--serif); font-size: 1.08rem; color: var(--forest-dark); }
.faq-item p { margin-top: 0.7rem; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--rule); padding: 3rem 0 2.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-links { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-links > div { margin-right: 2.5rem; }
.footer-links > div:last-child { margin-right: 0; }
.footer-links a { color: var(--ink-soft); }
.footer-links h4 { font-family: var(--sans); font-size: 0.85rem; text-transform: none; color: var(--ink); margin-bottom: 0.6rem; font-weight: 700; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }

/* ---- Utility ---- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
