/* ============================================================
   Shrooomz funnel — shared brand system
   Linked by checkout.html, advertorial.html, quiz.html.
   (index.html / optin keeps its own inline styles.)
   Brand navy sampled from the product wordmark: #34446C
   ============================================================ */

:root {
  --brand: #34446C;          /* wordmark navy */
  --brand-hover: #2B3859;
  --brand-soft: rgba(52, 68, 108, 0.12);
  --cta: #2F6FE0;            /* brighter blue for primary CTAs (more pop than navy) */
  --cta-hover: #2459BC;
  --on-brand: #ffffff;

  --bg: #ffffff;
  --surface: #f5f7fb;        /* cards, inputs */
  --surface-2: #eef2f8;
  --border: #dfe4ee;
  --text: #0f1626;
  --muted: #5b6478;
  --faint: #8a93a6;
  --star: #F5A623;
  --green: #1a8f5a;
  --green-soft: rgba(26, 143, 90, 0.10);

  --maxw: 760px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 22, 38, 0.08);
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; }
body { padding-bottom: 44px; }   /* clear the fixed prototype ribbon */

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.01em; }
a { color: var(--brand); }

/* ---- Top bar (scarcity / trust) ---- */
.topbar {
  background: var(--brand);
  color: var(--on-brand);
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px 24px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
  text-decoration: none;
}
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 8px 22px rgba(47, 111, 224, 0.28); }
.btn-cta:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn-lg { padding: 20px 28px; font-size: 19px; }

/* ---- Trust strip ---- */
.trust-strip {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px 14px;
  font-size: 13px; color: var(--muted);
}
.trust-strip strong { color: var(--text); }
.trust-strip .stars { color: var(--star); letter-spacing: 1px; }
.trust-strip .guarantee { color: var(--green); font-weight: 600; white-space: nowrap; }
.trust-strip .sep { color: var(--border); }

/* ---- Badges ---- */
.badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.badge-green { color: var(--green); background: var(--green-soft); }
.badge-brand { color: var(--on-brand); background: var(--brand); }
.badge-save { color: var(--green); background: var(--green-soft); }

/* ---- Form fields ---- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input, .field select {
  width: 100%; padding: 14px 16px; font-size: 16px; font-family: inherit;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  border-radius: 9px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field input::placeholder { color: var(--faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---- Guarantee box ---- */
.guarantee-box {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius); padding: 18px 20px;
}
.guarantee-box .g-icon { font-size: 26px; line-height: 1; }
.guarantee-box h4 { font-size: 16px; margin-bottom: 4px; }
.guarantee-box p { font-size: 14px; color: var(--muted); }

/* ---- Footer ---- */
.site-footer {
  margin-top: 64px; padding: 24px 20px 40px; text-align: center;
  font-size: 13px; color: var(--faint); border-top: 1px solid var(--border);
}
.site-footer a { color: var(--muted); text-decoration: none; margin: 0 8px; }

/* ---- Mock ribbon (so the team knows it's a prototype) ---- */
.mock-ribbon {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--text); color: #fff; text-align: center;
  font-size: 12px; padding: 6px 12px; opacity: .92;
}
.mock-ribbon a { color: #9fc0ff; }

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}
