/* Shared landing-page CSS for compact ReferralEngine intent sites. */
:root {
  --primary: #102033;
  --primary-deep: #07111f;
  --primary-light: #31506e;
  --accent: #c9a227;
  --accent-deep: #92710f;
  --bg: #f5f6f8;
  --bg-2: #e8ecf0;
  --surface: #ffffff;
  --ink: #182330;
  --ink-soft: #3d4c5c;
  --muted: #647487;
  --border: #cbd3dc;
  --max-w: 820px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  color: var(--primary);
  line-height: 1.22;
  font-weight: 750;
  letter-spacing: 0;
}
h1 { font-size: 2.55rem; margin: 0 0 1rem; }
h2 { font-size: 1.55rem; margin: 2.4rem 0 0.8rem; }
h3 { font-size: 1.12rem; margin: 1.45rem 0 0.45rem; color: var(--primary-light); }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin: 0.4rem 0; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-deep); }
strong { color: var(--ink); }

.re-container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
header.re-site {
  background: var(--primary-deep);
  color: var(--bg);
  border-bottom: 3px solid var(--accent);
  padding: 1rem 0;
}
header.re-site .re-container {
  max-width: 1180px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.re-brand {
  color: var(--bg);
  text-decoration: none;
  font-weight: 760;
  font-size: 1.08rem;
  white-space: nowrap;
}
.re-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: baseline;
}
.re-nav a {
  color: var(--bg-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 560;
  white-space: nowrap;
}
.re-nav a:hover { color: var(--accent); }

main.re-main { padding: 2rem 0 4rem; }
.re-hero { padding: 3rem 0 1.4rem; }
.re-hero .re-tag {
  color: var(--ink-soft);
  font-size: 1.16rem;
  max-width: 720px;
}
.re-eyebrow {
  color: var(--accent-deep);
  font-weight: 750;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}
.re-cta-button, .re-submit {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-deep);
  border: 0;
  border-radius: 6px;
  padding: 0.82rem 1.55rem;
  font: inherit;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}
.re-cta-button:hover, .re-submit:hover { background: var(--accent-deep); color: #fff; }
.re-card, .re-callout, .re-lead-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  margin: 1rem 0;
}
.re-callout {
  background: var(--bg-2);
  border-left: 4px solid var(--accent);
}
.re-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.re-metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
}
.re-metric strong {
  display: block;
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.re-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.re-how-step {
  display: flex;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
}
.re-how-num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--primary-deep);
  font-weight: 800;
}
.re-trust-bar {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}
.re-field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.re-field label { font-weight: 650; margin-bottom: 0.35rem; }
.re-field input, .re-field textarea, .re-field select {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.72rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.re-field input:focus, .re-field textarea:focus, .re-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 32, 51, 0.14);
}
.re-required { color: var(--accent-deep); }
.re-status { margin-top: 1rem; min-height: 1.5rem; }
.re-status-ok { background: var(--bg-2); border-radius: 4px; padding: 0.85rem 1rem; }
.re-matching-note {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 1.25rem;
}
.re-matching-note p { color: var(--ink-soft); font-size: 0.9rem; }
footer.re-footer {
  background: var(--primary-deep);
  color: var(--bg-2);
  margin-top: 4rem;
  padding: 2rem 0;
  font-size: 0.86rem;
}
#disclaimers p { margin-bottom: 0.5rem; color: var(--bg-2); }

@media (max-width: 860px) {
  header.re-site .re-container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .re-container { padding: 0 1rem; }
  .re-hero { padding: 2rem 0 1rem; }
  .re-hero h1, h1 { font-size: 1.85rem; }
  h2 { font-size: 1.3rem; margin-top: 1.8rem; }
  .re-grid, .re-how-grid { grid-template-columns: 1fr; }
  .re-card, .re-callout, .re-lead-form, .re-metric { padding: 1rem; }
}
