/* ==================================================================
   RHP DESIGN KIT — canonical reusable content components
   ------------------------------------------------------------------
   Patterns promoted from /get-pre-qualified/ (2026-05-14) so any page
   can compose richer content without inventing new CSS.

   Components:
     .content-section   Section wrapper with eyebrow / title / lede + bg variants
     .compare-table     2-column "this vs that" comparison table
     .step-timeline     Numbered horizontal process infographic (5 step sweet spot)
     .checklist-grid    Icon-card grid for "have these ready" lists
     .data-table        Reference table with dark header (loan types, etc.)
     .callout-grid      Card grid with coral left border (warnings, "don't do this")
     .local-note        Agent-voice insight callout (avatar + eyebrow + body)

   Tokens used: --color-bg-primary / --color-bg-secondary / --color-bg-dark /
                --color-accent-primary / --color-text-primary / --font-heading

   Audit the inventory (docs/design/inventory.md) before authoring new
   content patterns — these classes should be the first reach.
   ================================================================== */

/* ----- Section wrapper ------------------------------------------- */
.content-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.content-section--cream { background: var(--color-bg-primary); }
.content-section--white { background: #ffffff; }
.content-section--gray  { background: var(--color-bg-secondary); }
.content-section__wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.content-section__wrap--wide {
  max-width: 72rem;
}
.content-section__eyebrow {
  display: inline-block;
  color: var(--color-accent-primary);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.content-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}
.content-section__lede {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #44423d;
  margin: 0 0 32px;
  max-width: 48rem;
}

/* ----- Comparison table ------------------------------------------ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(20, 20, 19, 0.06);
}
.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #ece9e0;
  vertical-align: top;
  font-size: 0.95rem;
  line-height: 1.55;
}
.compare-table th {
  background: var(--color-bg-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6f6e69;
}
.compare-table th.compare-table__col {
  color: var(--color-text-primary);
  background: #ece9e0;
}
.compare-table th.compare-table__col--accent {
  background: rgba(217, 119, 87, 0.12);
  color: #b8553a;
}
.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: 0;
}
.compare-table td:first-child {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-bg-primary);
  width: 22%;
}

/* ----- Step timeline --------------------------------------------- */
.step-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 8px;
}
@media (max-width: 760px) {
  .step-timeline {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
.step-timeline__step {
  background: #fff;
  border: 1px solid #ece9e0;
  border-radius: 12px;
  padding: 20px 16px 18px;
  position: relative;
  text-align: center;
}
.step-timeline__step + .step-timeline__step::before {
  content: "→";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent-primary);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}
@media (max-width: 760px) {
  .step-timeline__step + .step-timeline__step::before {
    content: "↓";
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
  }
}
.step-timeline__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-accent-primary);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.step-timeline__icon {
  width: 28px;
  height: 28px;
  color: #44423d;
  margin: 0 auto 8px;
  display: block;
}
.step-timeline__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text-primary);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.step-timeline__meta {
  font-size: 0.78rem;
  color: #6f6e69;
  margin: 0;
}

/* ----- Checklist grid -------------------------------------------- */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.checklist-grid__item {
  background: #fff;
  border: 1px solid #ece9e0;
  border-radius: 10px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checklist-grid__icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent-primary);
  flex-shrink: 0;
}
.checklist-grid__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}
.checklist-grid__note {
  font-size: 0.78rem;
  color: #6f6e69;
  margin: 0;
  line-height: 1.45;
}

/* ----- Data reference table -------------------------------------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(20, 20, 19, 0.06);
}
.data-table thead th {
  background: var(--color-bg-dark);
  color: #faf9f5;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 14px 16px;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #ece9e0;
  font-size: 0.92rem;
  color: #44423d;
  line-height: 1.5;
  vertical-align: top;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table td:first-child {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

/* ----- Callout grid ---------------------------------------------- */
.callout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.callout-grid__item {
  background: #fff;
  border-left: 4px solid var(--color-accent-primary);
  border-radius: 8px;
  padding: 16px 18px 14px;
  box-shadow: 0 1px 6px rgba(20, 20, 19, 0.04);
}
.callout-grid__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-primary);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.callout-grid__title svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent-primary);
  flex-shrink: 0;
}
.callout-grid__copy {
  font-size: 0.85rem;
  color: #44423d;
  line-height: 1.55;
  margin: 0;
}

/* ----- Local note (agent-voice callout) -------------------------- */
.local-note {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--color-bg-primary);
  border: 1px solid #e8d8c2;
  border-left: 4px solid var(--color-accent-primary);
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 28px;
}
.local-note__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.local-note__eyebrow {
  display: block;
  color: var(--color-accent-primary);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.local-note__copy {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #44423d;
  margin: 0;
}
.local-note__copy strong {
  color: var(--color-text-primary);
}
@media (max-width: 600px) {
  .local-note {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 20px;
  }
}
