/* Shared additions for the Mortgage Accelerator repositioning.
   Loaded after each page's inline styles. */

/* Footer disclaimer */
.site-disclaimer {
  font-size: 0.78rem;
  color: var(--fog-deep);
  line-height: 1.7;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Small print under a section */
.fine-print {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--fog-deep);
  line-height: 1.6;
}

/* FAQ card grid (same card component as before) */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Founder block (moved from the homepage inline style so other pages can share it) */
.founder-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.founder-photo-wrap { position: relative; flex-shrink: 0; }
.founder-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -28px;
  background:
    radial-gradient(ellipse 70% 70% at 28% 28%, rgba(59,156,255,0.28), transparent 62%),
    radial-gradient(ellipse 70% 70% at 75% 78%, rgba(62,228,184,0.18), transparent 62%);
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}
.founder-grid .founder-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 360px;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 22px 60px rgba(0,0,0,0.45);
}
.founder-text { flex: 1; min-width: 0; }
.founder-bullet { display: flex; gap: 0.75rem; align-items: flex-start; }
.founder-bullet > span { color: var(--amber); flex-shrink: 0; margin-top: 0.1rem; }
.founder-bullet p { font-size: 0.95rem; color: var(--fog); line-height: 1.5; }

@media (max-width: 860px) {
  .founder-grid { flex-direction: column; align-items: center; gap: 2.5rem; }
  .founder-grid .founder-photo { width: 300px; }
  .founder-text { width: 100%; }
}

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

/* Mobile fixes */
@media (max-width: 768px) {
  /* Why Ridgewell: keep founder credentials left-aligned under the centered intro */
  #founder-strip [style*="flex-direction:column"] {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
  }
  /* Agents: keep the founder photo portrait-sized once the layout stacks */
  #cred-layout > div:first-child {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  /* Long eyebrows (e.g. hero) stay on one line */
  .eyebrow { letter-spacing: 0.14em; gap: 0.45rem; }
  .eyebrow::before { width: 18px; }
}

@media (max-width: 360px) {
  .eyebrow { font-size: 0.6rem !important; letter-spacing: 0.1em; }
}

/* Webinar step disclosure (/apply, /agents) */
.webinar-disclosure {
  max-width: 520px;
  margin: 1rem auto 0;
  font-size: 0.78rem;
  color: var(--fog-deep);
  line-height: 1.6;
  text-align: center;
}

/* Agents sticky bar: keep the longer webinar label on one line on phones */
@media (max-width: 480px) {
  #sticky-cta .btn { font-size: 0.95rem !important; padding: 1rem 0.75rem !important; }
}
@media (max-width: 370px) {
  #sticky-cta .btn { font-size: 0.85rem !important; }
}

/* /apply overview card heading matches the /agents card on phones */
#apply-overview h2 { font-size: 1.35rem !important; }

/* /agents: old way vs. Ridgewell comparison */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.55;
}
.compare-table th,
.compare-table td {
  padding: 1.1rem 1.5rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.compare-table thead th,
.compare-table thead td { border-top: none; }
.compare-table thead th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fog-deep);
}
.compare-table tbody th {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--stone);
  white-space: nowrap;
}
.compare-table td { color: var(--fog-deep); }
.compare-table .compare-rw {
  color: var(--stone);
  background: rgba(59,156,255,0.07);
  border-left: 1px solid rgba(59,156,255,0.25);
}
.compare-table thead th.compare-rw { color: var(--sky); }

@media (max-width: 768px) {
  #paid-grid, #features-grid { grid-template-columns: 1fr !important; }
  .compare-table, .compare-table tbody, .compare-table tr,
  .compare-table th, .compare-table td { display: block; width: 100%; }
  .compare-table { background: none; border: none; border-radius: 0; overflow: visible; }
  .compare-table thead { display: none; }
  .compare-table tbody tr {
    background: var(--navy-mid);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1rem;
    margin-bottom: 1rem;
  }
  .compare-table tbody th,
  .compare-table td { padding: 0; border: none; white-space: normal; }
  .compare-table tbody th { font-size: 1.05rem; margin-bottom: 0.75rem; }
  .compare-table td { margin-top: 0.6rem; }
  .compare-table .compare-rw {
    background: none;
    border-left: 2px solid var(--sky);
    padding-left: 0.75rem;
  }
  .compare-table td:not(.compare-rw) { border-left: 2px solid rgba(255,255,255,0.12); padding-left: 0.75rem; }
  .compare-table td::before {
    content: attr(data-label);
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--fog-deep);
    margin-bottom: 0.2rem;
  }
  .compare-table td.compare-rw::before { color: var(--sky); }
}

/* /agents hero eyebrow is long: on phones drop the dash and center the wrap */
@media (max-width: 480px) {
  #agents-hero-eyebrow { text-align: center; line-height: 1.6; }
  #agents-hero-eyebrow::before { display: none; }
}

/* Footer muted text: same look, AA contrast (4.7:1) on the footer navy */
footer { --fog-deep: #74839b; }
