/* ============================================================
   HERO MORTGAGE GROUP — Playbook Field-Manual Stylesheet
   Shared CSS for every playbook in the series.
   ============================================================ */

.pb {
  background: var(--parchment);
  color: var(--charcoal-d);
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  font-family: var(--f-body);
  line-height: 1.7;
  font-size: 16.5px;
}

.pb-page {
  padding: 72px 60px;
  border-bottom: 1px solid rgba(176,141,87,.25);
  position: relative;
}
.pb-page:last-child { border-bottom: 0; }

/* ---------- Cover ---------- */
.pb-cover {
  background:
    radial-gradient(70% 60% at 30% 30%, rgba(176,141,87,.16), transparent 60%),
    radial-gradient(55% 50% at 80% 80%, rgba(168,32,41,.18), transparent 65%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--parchment);
  text-align: center;
  padding: 96px 60px;
  position: relative;
  overflow: hidden;
  /* Vertically + horizontally center the cover content so it sits balanced
     on the page instead of top-aligned with empty space below. */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 9in;
}
.pb-cover > * { max-width: 100%; }
.pb-cover::before {
  content: "";
  position: absolute; inset: 24px;
  border: 1px solid rgba(176,141,87,.5);
  pointer-events: none;
}
.pb-cover::after {
  content: "";
  position: absolute; inset: 36px;
  border: 1px solid rgba(176,141,87,.2);
  pointer-events: none;
}
.pb-cover__mark {
  width: 86px; height: 86px;
  margin: 0 auto 36px;
  display: block;
}
/* Temporary text masthead — replaces the logo image until the new logo lands */
.pb-cover__wordmark {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 auto 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(176,141,87,.4);
  display: inline-block;
}
.pb-cover__eyebrow {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 32px;
}
.pb-cover h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: .03em;
  color: var(--parchment);
  text-transform: none;
  margin: 0 0 28px;
}
.pb-cover h1 em {
  font-style: italic;
  color: var(--brass);
  font-weight: 400;
}
.pb-cover__sub {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  letter-spacing: .03em;
  color: rgba(247,244,238,.85);
  max-width: 44ch;
  margin: 0 auto 80px;
}
.pb-cover__attribution {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--parchment);
  margin-bottom: 6px;
}
.pb-cover__attribution span { color: var(--brass-soft); font-weight: 500; }
.pb-cover__byline {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: rgba(247,244,238,.65);
  margin-bottom: 60px;
}
.pb-edition {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--brass);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--brass);
  background: rgba(0,0,0,.15);
}

/* ---------- Page headers ---------- */
.pb-page__num {
  position: absolute;
  top: 24px; right: 32px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .26em;
  color: rgba(86,87,86,.55);
  text-transform: uppercase;
}
.pb-page__chapter {
  position: absolute;
  top: 24px; left: 60px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .26em;
  color: rgba(86,87,86,.55);
  text-transform: uppercase;
}

.pb-part-banner {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 28px;
}
.pb-part-banner__num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--brass);
}
.pb-part-banner__label {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass);
  border-top: 1px solid var(--brass);
  padding-top: 8px;
  margin-top: 8px;
}

.pb h2 {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 22px;
}
.pb h2 + .pb-sub {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: var(--charcoal);
  margin: -10px 0 28px;
  line-height: 1.55;
}

.pb h3 {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 32px 0 12px;
}

.pb h4 {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 24px 0 8px;
}

.pb p { margin: 0 0 1.1em; }

.pb-dropcap::first-letter {
  font-family: var(--f-display);
  font-weight: 500;
  float: left;
  font-size: 64px;
  line-height: .85;
  padding: 4px 12px 0 0;
  color: var(--burgundy);
}

.pb-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass) 20%, var(--brass) 80%, transparent);
  margin: 40px 0;
}
.pb-divider--short {
  width: 56px;
  height: 2px;
  background: var(--brass);
  margin: 32px auto;
}

.pb-pullquote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--navy);
  padding: 20px 0 20px 28px;
  border-left: 3px solid var(--brass);
  margin: 32px 0;
}
.pb-pullquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--f-head);
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
}

.pb-callout {
  background: var(--parchment-d);
  border: 1px solid var(--brass);
  padding: 22px 26px;
  margin: 28px 0;
  position: relative;
}
.pb-callout::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--brass);
}
.pb-callout h4 {
  margin-top: 0;
  color: var(--navy);
}
.pb-callout p:last-child { margin-bottom: 0; }

.pb-warning {
  background: rgba(168,32,41,.04);
  border: 1px solid rgba(168,32,41,.4);
  padding: 22px 26px;
  margin: 28px 0;
  position: relative;
}
.pb-warning::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--burgundy);
}
.pb-warning h4 {
  margin-top: 0;
  color: var(--burgundy);
}
.pb-warning p:last-child { margin-bottom: 0; }

.pb-numlist {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  counter-reset: pbn;
}
.pb-numlist li {
  counter-increment: pbn;
  padding: 14px 0 14px 56px;
  position: relative;
  border-bottom: 1px solid rgba(176,141,87,.18);
}
.pb-numlist li:last-child { border-bottom: 0; }
.pb-numlist li::before {
  content: counter(pbn, decimal-leading-zero);
  position: absolute;
  left: 0; top: 14px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1;
  color: var(--brass);
  width: 44px;
  border-right: 1px solid rgba(176,141,87,.45);
}
.pb-numlist li strong {
  display: block;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
}

.pb-checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.pb-checklist li {
  padding: 10px 0 10px 38px;
  position: relative;
  border-bottom: 1px solid rgba(176,141,87,.15);
  font-size: 15.5px;
}
.pb-checklist li:last-child { border-bottom: 0; }
.pb-checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 18px; height: 18px;
  border: 1.5px solid var(--brass);
  background: var(--parchment);
}

/* Brotherhood Spotlight card */
.pb-spotlight {
  background: var(--parchment-d);
  border: 1px solid rgba(176,141,87,.4);
  padding: 28px 30px;
  margin: 28px 0;
  position: relative;
}
.pb-spotlight::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 80px; height: 3px;
  background: var(--burgundy);
}
.pb-spotlight__label {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 6px;
}
.pb-spotlight__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: .02em;
  color: var(--navy);
  margin-bottom: 4px;
}
.pb-spotlight__meta {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 18px;
}
.pb-spotlight__quote {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--navy);
  font-size: 17px;
  border-left: 2px solid var(--brass);
  padding-left: 18px;
  margin: 18px 0 0;
}

/* Back cover */
.pb-back {
  background: var(--navy);
  color: var(--parchment);
  text-align: center;
  padding: 96px 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 9in;
}
.pb-back > * { max-width: 100%; }
.pb-back::before {
  content: "";
  position: absolute; inset: 24px;
  border: 1px solid rgba(176,141,87,.4);
}
.pb-back h2 {
  color: var(--parchment);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: .03em;
  text-transform: none;
  margin-bottom: 32px;
}
.pb-back__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin: 28px 0;
}
.pb-back__contact a { color: var(--brass); }
.pb-back__pledge {
  display: inline-block;
  margin: 28px auto;
  padding: 16px 28px;
  border: 1px solid var(--brass);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  max-width: 520px;
  line-height: 1.8;
  text-align: center;
}
.pb-back__legal {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(247,244,238,.6);
  margin-top: 48px;
  line-height: 1.8;
}
.pb-back__motto {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--brass);
  margin-top: 32px;
}

/* Foreword letter (page 2-3) */
.pb-letter { background: var(--parchment-d); }
.pb-letter h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: .04em;
  color: var(--navy);
  text-transform: none;
  margin-bottom: 24px;
}
.pb-letter p { font-size: 17px; line-height: 1.8; }
.pb-letter__sig {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(176,141,87,.35);
}
.pb-letter__sig-name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 8px;
}
.pb-letter__sig-title {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1.8;
}
.pb-letter__egh {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 16px;
  background: var(--burgundy);
  color: var(--parchment);
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .32em;
}

/* Mobile adjustments */
@media (max-width: 720px) {
  .pb-page, .pb-cover, .pb-back { padding-left: 28px; padding-right: 28px; }
  .pb-page__chapter { left: 28px; }
  .pb-page__num { right: 28px; }
  .pb-cover { padding-top: 80px; padding-bottom: 80px; }
  .pb-cover::before { inset: 14px; }
  .pb-cover::after { inset: 22px; }
  .pb-back::before { inset: 14px; }
  .pb-dropcap::first-letter { font-size: 52px; }
}

/* Print-to-PDF: each major section a separate page */
@media print {
  body { background: var(--parchment); }
  .pb { max-width: none; }
  .pb-cover, .pb-page, .pb-back { page-break-after: always; min-height: 9in; }
  .pb-page__num, .pb-page__chapter { color: rgba(0,0,0,.45); }
  @page { size: letter; margin: 0; }
}

/* ============================================================
   PLAYBOOK GATED LANDING PAGE (download page)
   ============================================================ */
.pb-download {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.pb-download > * { min-width: 0; }
@media (max-width: 940px) { .pb-download { grid-template-columns: 1fr; } }

.pb-download__lede h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--parchment);
  text-transform: none;
  margin: 22px 0;
}
.pb-download__lede h1 em {
  color: var(--brass);
  font-style: italic;
}
.pb-download__sub {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--brass-soft);
  line-height: 1.55;
  max-width: 52ch;
  margin-bottom: 32px;
}
.pb-download__bullets {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-direction: column; gap: 14px;
}
.pb-download__bullets li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(247,244,238,.92);
}
.pb-download__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 1px;
  background: var(--brass);
}
.pb-download__author {
  margin-top: 36px;
  padding: 20px 22px;
  border: 1px solid rgba(176,141,87,.5);
  background: rgba(0,0,0,.18);
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--parchment);
  line-height: 1.7;
}
.pb-download__author strong {
  color: var(--brass);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.pb-preview {
  background: var(--parchment-d);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(176,141,87,.35);
  position: relative;
}
.pb-preview::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 80px; height: 3px; background: var(--brass);
}
.pb-preview h3 {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 8px;
}
.pb-preview p.sub {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--charcoal);
  font-size: 15px;
  margin: 0 0 24px;
}
.pb-preview ol {
  list-style: none; padding: 0; margin: 0;
  counter-reset: pp;
}
.pb-preview ol li {
  counter-increment: pp;
  padding: 16px 0 16px 56px;
  position: relative;
  border-bottom: 1px solid rgba(176,141,87,.18);
}
.pb-preview ol li:last-child { border-bottom: 0; }
.pb-preview ol li::before {
  content: counter(pp, decimal-leading-zero);
  position: absolute;
  left: 0; top: 16px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  color: var(--brass);
  width: 44px;
  border-right: 1px solid rgba(176,141,87,.45);
}
.pb-preview ol li strong {
  display: block;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
}
.pb-preview ol li span {
  font-size: 14.5px;
  color: var(--charcoal-d);
  line-height: 1.55;
}

.pb-section--navy {
  background: var(--navy);
  color: var(--parchment);
  padding-block: clamp(60px, 8vw, 120px);
  position: relative;
}
.pb-section--navy h2 { color: var(--parchment); }

.pb-eyebrow {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--brass);
}

.pb-form-section {
  padding-block: clamp(60px, 8vw, 120px);
  background: var(--parchment);
}
.pb-form-card {
  background: var(--parchment);
  border: 1px solid var(--brass);
  padding: clamp(36px, 4vw, 56px);
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}
.pb-form-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100px; height: 3px; background: var(--burgundy);
}
.pb-form-card h2 {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 12px;
}
.pb-form-card .sub {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--charcoal);
  font-size: 16px;
  margin: 0 0 32px;
  line-height: 1.55;
}
.pb-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  text-align: left;
}
.pb-form-grid > * { min-width: 0; }
.pb-form-grid input { width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 540px) { .pb-form-grid { grid-template-columns: 1fr; } }
.pb-form-grid .field--full { grid-column: 1 / -1; }
.pb-form-grid label {
  display: block;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--charcoal-d);
  margin-bottom: 6px;
}
.pb-form-grid input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(176,141,87,.4);
  background: var(--parchment);
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--charcoal-d);
  font-weight: 500;
}
.pb-form-grid input:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(176,141,87,.16);
}
.pb-form-submit {
  width: 100%;
  margin-top: 24px;
  padding: 18px 24px;
  background: var(--burgundy);
  color: var(--parchment);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.pb-form-submit:hover { background: var(--burgundy-d); transform: translateY(-1px); }
.pb-form-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.pb-form-legal {
  font-size: 12px;
  color: var(--charcoal);
  line-height: 1.6;
  margin-top: 18px;
  text-align: left;
}

.pb-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
  max-width: 880px; margin-left: auto; margin-right: auto;
}
.pb-trust > * { min-width: 0; }
.pb-trust__item { text-align: center; padding: 24px 18px; }
.pb-trust__item svg { width: 40px; height: 40px; color: var(--brass); margin: 0 auto 14px; }
.pb-trust__item h4 {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 8px;
}
.pb-trust__item p { font-size: 14px; color: var(--charcoal); margin: 0; line-height: 1.55; }
@media (max-width: 720px) { .pb-trust { grid-template-columns: 1fr; gap: 20px; } }

.pb-error, .pb-success {
  max-width: 640px; margin: 0 auto;
  padding: 24px 28px;
  text-align: center;
}
.pb-error {
  background: rgba(168,32,41,.05);
  border: 1px solid rgba(168,32,41,.4);
}
.pb-success {
  background: rgba(176,141,87,.1);
  border: 1px solid var(--brass);
}
