/* Scallergy landing page — design tokens from Scallergy.dc.html
   (contracts/landing-page.md). Light theme, responsive 360–1440px. */

:root {
  --bg: #F7F6F2;
  --canvas: #EDEBE4;
  --ink: #1C2422;
  --ink-muted: #5B6673;
  --ink-subtle: #8A968F;
  --brand: #0E6B5C;
  --brand-dark: #0A4A40;
  --brand-accent: #7FB6A4;
  --border: #EAE7DE;
  --border-strong: #DDD9CF;
  --avoid: #B42E27;
  --caution: #9A6A00;
  --ok: #1E7A4F;
  --unknown: #5B6673;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

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

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.nav .logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; color: var(--ink); }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.nav-links a { color: var(--ink-muted); }
.nav-links a.cta { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  align-items: center; padding: 72px 0;
}
.badge-independent {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--ok);
  background: #fff; border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.hero .sub { margin-top: 18px; font-size: 19px; color: var(--ink-muted); max-width: 34em; }
.store-badges { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; border-radius: 12px;
  padding: 10px 20px; min-height: 56px;
}
.store-badge:hover { background: #000; color: #fff; }
.store-badge .small { font-size: 11px; opacity: 0.8; display: block; }
.store-badge .big { font-size: 17px; font-weight: 700; line-height: 1.15; }
.hero .account-note { margin-top: 18px; font-size: 14px; color: var(--ink-subtle); }

/* Sample verdict card */
.sample-card {
  background: #fff; border: 1px solid var(--border-strong); border-radius: 20px;
  padding: 24px; box-shadow: 0 16px 40px rgba(28, 36, 34, 0.08);
}
.sample-verdict { display: flex; align-items: center; gap: 14px; }
.sample-verdict .label { font-size: 26px; font-weight: 800; color: var(--avoid); }
.sample-verdict .why { font-size: 14px; color: var(--ink-muted); }
.sample-product { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.sample-product .thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--canvas); }
.sample-product .name { font-weight: 700; font-size: 15px; }
.sample-product .meta { font-size: 13px; color: var(--ink-subtle); }
.sample-ingredients { margin-top: 14px; font-size: 14px; color: var(--ink-muted); line-height: 1.6; }
.sample-ingredients mark { background: #F7E0DE; color: var(--avoid); font-weight: 700; border-radius: 4px; padding: 0 3px; }

/* ---------- Coming soon label (FR-019) ---------- */
.coming-soon {
  display: inline-block; vertical-align: middle;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand); background: #E3EEE9; border-radius: 999px;
  padding: 2px 9px; margin-left: 6px; white-space: nowrap;
}

/* ---------- Verdict strip ---------- */
.verdicts { border-top: 1px solid var(--border); padding: 56px 0; }
.verdicts h2 { font-size: 22px; font-weight: 800; text-align: center; }
.verdict-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.verdict-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.verdict-item .v-label { font-weight: 800; font-size: 17px; }
.verdict-item .v-sub { font-size: 13px; color: var(--ink-muted); }

/* ---------- How it works ---------- */
.how { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 0; }
.how h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 40px; }
.step .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.step h3 { margin-top: 16px; font-size: 18px; font-weight: 800; }
.step p { margin-top: 8px; font-size: 15px; color: var(--ink-muted); }

/* ---------- Trust ---------- */
.trust { padding: 72px 0; display: grid; grid-template-columns: 1fr; gap: 32px; }
.trust h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; max-width: 18em; }
.trust-points { display: grid; gap: 18px; margin-top: 8px; max-width: 46em; }
.trust-point { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-muted); }
.trust-point svg { flex-shrink: 0; margin-top: 3px; }
.trust-point b { color: var(--ink); }
.disclaimer {
  font-size: 14px; color: var(--ink-subtle); border-left: 3px solid var(--border-strong);
  padding-left: 14px; max-width: 46em;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border); padding: 28px 0 40px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer .logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; color: var(--ink-muted); }
.footer-links { display: flex; gap: 22px; font-size: 14px; }
.footer-links a { color: var(--ink-muted); }

/* ---------- Stub pages ---------- */
.stub { max-width: 640px; margin: 0 auto; padding: 72px 24px; }
.stub h1 { font-size: 32px; font-weight: 800; }
.stub p { margin-top: 16px; color: var(--ink-muted); }
.stub a.back { display: inline-block; margin-top: 28px; font-weight: 700; }

/* ---------- Responsive (FR-023): no horizontal scroll 360–1440px ---------- */
img, svg { max-width: 100%; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 48px 0; }
  .verdict-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav-links { gap: 16px; font-size: 13px; }
  .verdict-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}
