/* Public informational heroes only; authenticated dashboards keep their hierarchy. */
h1.public-hero-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: #0f172a;
  margin: 0 auto;
  max-width: 54rem;
  overflow-wrap: anywhere;
}

p.public-hero-description {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: normal;
  color: #475569;
  max-width: 46rem;
  margin: 1rem auto 0;
  overflow-wrap: anywhere;
}

.public-hero-title--home .pd-headline-main {
  display: block;
  font-size: inherit;
}

.public-hero-title--home .pd-headline-next {
  display: block;
  font-size: clamp(1.75rem, 3.6vw, 2.25rem);
}

/* The homepage's guest header behavior belongs on every public page. */
@media (max-width: 768px) {
  .role-guest .site-header .site-wrap { flex-wrap: wrap; gap: 8px; }
  .role-guest .site-header .header-right { margin-left: auto; }
  .role-guest .site-header .auth .btn { white-space: nowrap; min-height: 44px; }
  .role-guest .site-header .nav-toggle { min-width: 44px; min-height: 44px; }
}

@media (max-width: 920px) {
  .role-guest footer.footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .role-guest footer.footer > .site-container > * { min-width: 0; }
}

/* Free consultation offer headline (signup page, and the homepage hero while the offer is open). */
.offer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.offer-head h1.offer-headline {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #0f172a;
}
.offer-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.offer-pcm { margin: 6px 0 0; color: #475569; font-size: .95rem; }
.offer-hero .offer-head { justify-content: center; }
/* The headline stays on one line on small phones: only the font size shrinks, never the text. */
@media (max-width: 520px) {
  .offer-head h1.offer-headline { font-size: clamp(1rem, 5.2vw, 1.75rem); }
}
