/* ===== HOMEPAGE PASS =====
   Tighter rhythm for the homepage and the status page, plus the few
   components the merged sections need. Tokens only; loaded after
   responsive.css so equal-specificity rules here win. */

/* ---- Rhythm ---- */
body.home section:not(.hero) { padding: 56px 0; }
body.home .section-header { margin-bottom: 28px; }
body.home .section-subtitle { max-width: 680px; }

/* ---- Heading levels: h3 where the shared CSS styles h4 ---- */
.trust-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--cream);
}
.trust-card-warn h3 { color: var(--amber-light); }

.qs-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 10px;
}

.install-alt h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bark);
  margin: 20px 0 10px;
}

.proof-item h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  margin-bottom: 10px;
}

/* ---- How work runs: three steps, then a row of facts ---- */
.how-steps .how-card { padding: 20px 24px 22px; }
.how-steps .how-card .step-num { font-size: 2rem; margin-bottom: 10px; }

.home-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--cream-dark);
}
.home-fact h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--bark);
}
.home-fact p {
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--bark-light);
}

/* ---- Capabilities summary ---- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cap-group {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 12px;
  padding: 20px 20px 22px;
}
.cap-group h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cap-group h3::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cap-dot, var(--moss));
}
.cap-group.cap-shipped { --cap-dot: var(--forest-light); }
.cap-group.cap-experimental { --cap-dot: var(--amber); }
.cap-group.cap-review { --cap-dot: var(--fawn); }
.cap-group.cap-planned { --cap-dot: var(--bark-light); }
.cap-group ul { list-style: none; margin: 0; padding: 0; }
.cap-group li {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--bark-light);
  padding: 4px 0;
  border-top: 1px solid var(--cream-dark);
}
.cap-group li:first-child { border-top: none; }
.cap-link {
  text-align: center;
  margin-top: 24px;
  font-size: 0.95rem;
}
.cap-link a { font-weight: 600; }

/* ---- Compact network status ---- */
body.home section.stats-section { padding: 48px 0; }
body.home .stats-section .section-header { margin-bottom: 24px; }
body.home .stats-section .section-title { font-size: 1.7rem; }
body.home .stats-counters {
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 0;
}
body.home .stat-card { padding: 16px 10px; border-radius: 10px; }
body.home .stat-value { font-size: 1.7rem; margin-bottom: 6px; }
body.home .stat-label { font-size: 0.66rem; letter-spacing: 0.06em; }
body.home .stat-sublabel { font-size: 0.74rem; margin-top: 2px; }
body.home .proof-strip { margin-top: 24px; padding-top: 20px; gap: 20px; }

/* ---- Install: tighter prerequisites ---- */
body.home .install-section .section-header { margin-bottom: 28px; }

/* ---- Status page ---- */
.status-page .how-section { padding: 56px 0; }
.status-page .compare-table-wrap { max-width: 860px; margin-top: 0; }
.status-page .section-header { margin-bottom: 32px; }
.status-intro { max-width: 680px; margin: 0 auto; text-align: center; }

@media (max-width: 960px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  body.home .stats-counters { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  body.home section:not(.hero) { padding: 48px 0; }
  body.home .section-header { margin-bottom: 28px; }
  .home-facts { grid-template-columns: 1fr; gap: 20px; }
  body.home .stats-counters { grid-template-columns: repeat(2, 1fr); }
  body.home .stat-value { font-size: 1.6rem; }
  .status-page .how-section { padding: 40px 0; }
}

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

/* ---- Fixes found in review ---- */
.path-card a { color: var(--amber-light); text-decoration: underline; text-underline-offset: 2px; }
.trust-grid.trust-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
  .trust-grid.trust-grid-2 { grid-template-columns: 1fr; }
}
.section-footnote {
  max-width: 680px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--bark-light);
}

/* ---- Finishing pass ---- */
/* Hero: sit closer to the nav, hand over to the next section sooner. */
body.home .hero { min-height: min(70vh, 760px); padding: 64px 0 24px; }
body.home .hero .container { gap: 56px; }
@media (max-width: 900px) {
  body.home .hero { min-height: 0; padding: 64px 0 16px; }
  body.home .hero .container { gap: 28px; }
}

/* Deer: natural aspect at a size that fits the shorter hero */
body.home .doe-scene { height: 525px; }
body.home .doe-scene img { max-width: 240px !important; height: auto !important; display: block; margin: 0 auto; }
@media (max-width: 900px) {
  body.home .doe-scene { height: 330px; }
  body.home .doe-scene img { max-width: 150px !important; }
}

/* How a request is handled + one example */
.home-coord {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--cream-dark);
}
.coord-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--bark);
}
.coord-step { padding: 10px 0 10px 16px; border-left: 3px solid var(--sage-light); margin-bottom: 4px; }
.coord-step h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--bark);
}
.coord-step p {
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--bark-light);
}
.coord-example { margin: 0; }
.coord-example pre { font-size: 0.78rem; line-height: 1.65; }
.coord-example .code-block-header .coord-note { color: var(--cream-dark); }
.coord-side .home-facts { grid-template-columns: 1fr; gap: 16px; margin-top: 20px; padding-top: 0; border-top: 0; }
@media (max-width: 900px) {
  .home-coord { grid-template-columns: 1fr; gap: 24px; }
}

.paths-section .section-footnote { margin-top: 20px; }

.home-coord > * { min-width: 0; }

/* Which modes can reach each routing step */
.how-card .mode-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
  margin: -4px 0 10px;
}

.how-card .roadmap-note {
  font-size: 0.88rem;
  color: var(--bark-light);
  margin: 0 0 10px;
}

ol.source-plans { display: block; padding-left: 1.4em; line-height: 1.7; color: var(--bark-light); }
ol.source-plans li { margin-bottom: 8px; }
