/* ===========================================================
   RBOI — Residential Builder Opportunity Index
   Shared stylesheet
   =========================================================== */

:root {
  --navy-950: #0a1628;
  --navy-900: #0f1f38;
  --navy-800: #16294a;
  --navy-700: #1f3760;
  --navy-600: #2c4d82;
  --gold-500: #c99a3e;
  --gold-400: #dbb35e;
  --gold-100: #f6ecd6;
  --ink: #1a2233;
  --ink-soft: #4a5568;
  --paper: #fbfaf7;
  --paper-alt: #f1efe8;
  --line: #e3ddce;
  --white: #ffffff;
  --good: #2f7d5e;
  --max-w: 1120px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(10, 22, 40, 0.10);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.eyebrow, nav, .btn, .stat-num, .card h3, .logo {
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
}

h1, h2, h3, h4 { color: var(--navy-950); font-weight: 700; margin: 0 0 0.5em; }
p { margin: 0 0 1.1em; color: var(--ink-soft); }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.logo .mark {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--white);
}
.logo .mark span { color: var(--gold-400); }
.logo .tagline {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: none;
}
@media (min-width: 640px) {
  .logo .tagline { display: inline; }
}

nav.primary ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}
nav.primary a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
nav.primary a:hover { color: var(--white); }
nav.primary a.current { color: var(--gold-400); }
nav.primary a.btn-nav {
  background: var(--gold-500);
  color: var(--navy-950);
  padding: 9px 18px;
  border-radius: 6px;
}
nav.primary a.btn-nav:hover { background: var(--gold-400); color: var(--navy-950); }

/* mobile nav toggle (checkbox hack, no JS) */
#nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 780px) {
  .nav-toggle-label { display: block; }
  nav.primary {
    display: none;
    width: 100%;
    order: 3;
  }
  nav.primary ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
  }
  nav.primary a { padding: 10px 0; width: 100%; }
  nav.primary a.btn-nav { display: inline-block; margin-top: 8px; }
  .nav-row { flex-wrap: wrap; }
  #nav-toggle:checked ~ nav.primary { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(201,154,62,0.18) 0%, rgba(201,154,62,0) 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-400);
  border: 1px solid rgba(219,179,94,0.4);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  max-width: 780px;
  margin-bottom: 20px;
}
.hero .lede {
  font-size: 1.18rem;
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 14px 26px;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--gold-400); }
.btn-ghost { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--navy-950); color: var(--white); }
.btn-dark:hover { background: var(--navy-800); }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.alt { background: var(--paper-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--gold-500); border-color: rgba(201,154,62,0.35); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head .lede { font-size: 1.08rem; color: var(--ink-soft); }

/* ---------- Comparison table ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
@media (max-width: 700px) {
  .compare { grid-template-columns: 1fr; }
}
.compare > div { padding: 30px 28px; }
.compare .col-old { background: var(--paper-alt); }
.compare .col-old h3 { color: var(--ink-soft); }
.compare .col-new { background: var(--white); border-left: 4px solid var(--gold-500); }
@media (max-width: 700px) {
  .compare .col-new { border-left: none; border-top: 4px solid var(--gold-500); }
}
.compare h3 { font-size: 1.05rem; margin-bottom: 16px; }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li { padding: 7px 0; color: var(--ink-soft); font-size: 0.97rem; }
.compare .col-old li::before { content: "—  "; color: #b3ab97; }
.compare .col-new li::before { content: "✓  "; color: var(--good); font-weight: 700; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* stat callouts */
.stat-card {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.stat-card .stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-card p { color: rgba(255,255,255,0.78); font-size: 0.92rem; margin: 0; }

/* pill list (who uses / questions) */
.pill-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
@media (max-width: 600px) { .pill-list { grid-template-columns: 1fr; } }
.pill-list li {
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.96rem;
  color: var(--ink);
  font-weight: 600;
}
.pill-list li small { display: block; font-weight: 400; color: var(--ink-soft); margin-top: 2px; }

.tag-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-grid span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-800);
}
.tag-grid span.future { color: var(--ink-soft); border-style: dashed; }

/* data table */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.data-table th { background: var(--navy-950); color: var(--white); font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: none; }
.data-table td.stars { color: var(--gold-500); letter-spacing: 2px; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.table-scroll .data-table { box-shadow: none; border-radius: 0; border: none; }

/* process flow */
.flow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.flow .step {
  flex: 1 1 140px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 14px;
}
.flow .step .n {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold-500); color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: "Helvetica Neue", Arial, sans-serif;
  margin: 0 auto 12px;
}
.flow .step h4 { font-size: 0.95rem; margin-bottom: 4px; }
.flow .step p { font-size: 0.85rem; margin: 0; }
.flow .arrow { color: var(--gold-500); font-size: 1.3rem; flex: 0 0 auto; }
@media (max-width: 700px) {
  .flow { flex-direction: column; }
  .flow .arrow { transform: rotate(90deg); }
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,0.78); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy-950);
  color: rgba(255,255,255,0.6);
  padding: 40px 0 30px;
  font-size: 0.85rem;
}
footer.site .foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
footer.site a { color: rgba(255,255,255,0.75); text-decoration: none; }
footer.site a:hover { color: var(--white); }
footer.site .foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

.embed-frame-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.embed-frame {
  width: 100%;
  height: 780px;
  border: 0;
  display: block;
}
@media (max-width: 700px) {
  .embed-frame { height: 620px; }
}

.note-callout {
  border-left: 4px solid var(--gold-500);
  background: var(--gold-100);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  color: var(--navy-900);
}
.note-callout strong { color: var(--navy-950); }

/* ===========================================================
   Sept 2026 copy update — home hero + platform card labels
   =========================================================== */
.hero .powered-by {
  margin: -8px 0 22px;
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.hero h1 .h1-sub {
  display: block;
  font-size: 0.52em;
  font-weight: 600;
  line-height: 1.2;
  color: var(--gold-400);
  margin-top: 0.5em;
}
.hero .hero-sub {
  color: var(--white);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.3;
  margin-bottom: 18px;
}
.hero .lede-tight { font-size: 1.05rem; margin-bottom: 14px; }
.hero .lede-lead { color: var(--white); font-weight: 700; }
.hero .lede-close { color: var(--gold-400); font-weight: 700; font-size: 1.15rem; margin: 8px 0 34px; }

.card .card-label {
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 8px;
}

/* keep in-page anchor targets clear of the sticky header */
#how-it-works, #early-family, #leading-indicators { scroll-margin-top: 64px; }

/* home hero: let the headline and body copy run the full content width */
.hero-wide h1,
.hero-wide .lede { max-width: none; }
