/* ============================================================
   Referral Sheet – Family-facing 1-pager for print and email
   Designed as a standalone page; no site nav.
   ============================================================ */

/* --- Page shell --- */
.print-page {
  background: #fff;
  color: var(--color-midnight);
  font-family: var(--font-primary);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.ref-sheet {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 2rem 4.5rem;
}

/* --- Header / brand --- */
.ref-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--color-gold);
  margin-bottom: 1.75rem;
}

.ref-sheet-logo {
  height: 32px;
  width: auto;
}

.ref-sheet-referred {
  font-size: 0.88rem;
  color: var(--color-ink-soft);
}

.ref-sheet-prepared {
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  margin-left: auto;
  text-align: right;
}

/* --- Hero --- */
.ref-sheet-hero {
  margin-bottom: 1.75rem;
}

.ref-sheet-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.ref-sheet-empathy {
  font-size: 1.05rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-midnight);
  margin: 0 0 0.75rem;
}

.ref-sheet-lede {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.85);
  max-width: 62ch;
  margin: 0;
}

/* --- Sections --- */
.ref-sheet-section {
  margin-bottom: 1.75rem;
}

.ref-sheet-section h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-drift);
}

.ref-sheet-intro {
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.ref-sheet-navigator-mention p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

/* --- What-you'll-find grid --- */
.ref-sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.5rem;
}

.ref-sheet-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ref-sheet-item strong {
  font-size: 0.92rem;
  font-weight: var(--font-weight-semibold);
}

.ref-sheet-item span {
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.75);
  line-height: 1.5;
}

/* --- Steps --- */
.ref-sheet-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ref-sheet-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.ref-sheet-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-midnight);
  background: #fff;
  color: var(--color-midnight);
  font-size: 0.88rem;
  font-weight: 700;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.ref-sheet-step div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ref-sheet-step strong {
  font-size: 0.92rem;
}

.ref-sheet-step span {
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.75);
  line-height: 1.5;
}

/* --- Success vision line --- */
.ref-sheet-success-line {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-midnight);
  margin: 0 0 1rem;
  padding: 0.6rem 1rem;
  background: rgba(217, 178, 71, 0.08);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.ref-sheet-success-line strong {
  color: var(--color-midnight);
}

/* --- CTA + QR --- */
.ref-sheet-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--color-cloud);
  border: 1px solid var(--color-drift);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.ref-sheet-cta-text {
  flex: 1;
}

.ref-sheet-cta-text h2 {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  border: none;
  padding: 0;
}

.ref-sheet-cta-text p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.85);
  margin: 0 0 0.4rem;
}

.ref-sheet-url {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.78rem !important;
  color: var(--color-gold-text) !important;
  word-break: break-all;
  font-weight: var(--font-weight-medium);
}

.ref-sheet-link {
  color: inherit;
  text-decoration: none;
  border: none;
}
.ref-sheet-link:hover {
  text-decoration: underline;
}

.ref-sheet-phone {
  font-size: 0.85rem !important;
  color: var(--color-ink-soft) !important;
}

.ref-sheet-qr {
  flex-shrink: 0;
}

.ref-sheet-qr img {
  display: block;
  width: 170px;
  height: 170px;
  border-radius: var(--radius-sm);
  border: none;
}

.ref-sheet-qr a {
  display: block;
  border: none;
  text-decoration: none;
  outline: none;
}

/* --- Trust footer --- */
.ref-sheet-footer {
  border-top: 1px solid var(--color-drift);
  padding-top: 1rem;
  text-align: center;
}

.ref-sheet-trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.ref-sheet-trust-pills span {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  background: var(--color-cloud);
  border: 1px solid var(--color-drift);
  border-radius: 999px;
  color: var(--color-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ref-sheet-disclaimer {
  font-size: 0.72rem;
  color: var(--color-ink-soft);
  line-height: 1.55;
  max-width: 56ch;
  margin: 0 auto 0.5rem;
}

.ref-sheet-site {
  font-size: 0.78rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-ink-soft);
  margin: 0;
}

/* --- Sticky action bar (screen only) --- */
.ref-sheet-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: var(--color-white, #fff);
  border-top: 1px solid var(--color-drift);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

.ref-sheet-copy-confirm {
  font-size: 0.85rem;
  color: var(--color-gold-text);
  font-weight: var(--font-weight-medium);
}

/* --- Mobile --- */
@media (max-width: 560px) {
  .ref-sheet {
    padding: 1.25rem 1rem;
  }

  .ref-sheet-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ref-sheet-grid {
    grid-template-columns: 1fr;
  }

  .ref-sheet-cta {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   PRINT STYLES — must fit on ONE letter-size page
   ============================================================ */
@media print {
  .no-print {
    display: none !important;
  }

  .print-page {
    font-size: 10pt;
  }

  .ref-sheet {
    padding-bottom: 0;
  }

  .ref-sheet {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .ref-sheet-header {
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .ref-sheet-logo {
    height: 26px;
  }

  .ref-sheet-hero {
    margin-bottom: 0.75rem;
  }

  .ref-sheet-hero h1 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
  }

  .ref-sheet-lede {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .ref-sheet-section {
    margin-bottom: 0.75rem;
  }

  .ref-sheet-section h2 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.2rem;
  }

  .ref-sheet-grid {
    gap: 0.35rem 1.25rem;
  }

  .ref-sheet-item strong {
    font-size: 0.82rem;
  }

  .ref-sheet-item span {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .ref-sheet-navigator-mention p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .ref-sheet-intro {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .ref-sheet-cta {
    border: 2px solid var(--color-midnight);
    background: #fff;
    padding: 0.75rem 1rem;
    margin-bottom: 0.65rem;
    gap: 1rem;
  }

  .ref-sheet-cta-text h2 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
  }

  .ref-sheet-cta-text p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
  }

  .ref-sheet-url {
    font-size: 0.75rem !important;
  }

  .ref-sheet-link,
  .ref-sheet-link:visited {
    color: inherit !important;
    text-decoration: none !important;
    border: none !important;
  }

  .ref-sheet-phone {
    font-size: 0.8rem !important;
  }

  .ref-sheet-qr img {
    width: 150px;
    height: 150px;
    border: none !important;
  }

  .ref-sheet-qr a {
    border: none !important;
    text-decoration: none !important;
  }

  .ref-sheet-footer {
    padding-top: 0.5rem;
  }

  .ref-sheet-trust-pills {
    gap: 0.3rem;
    margin-bottom: 0.4rem;
  }

  .ref-sheet-trust-pills span {
    border-color: #ccc;
    background: #f5f5f5;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }

  .ref-sheet-disclaimer {
    font-size: 0.65rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
  }

  .ref-sheet-site {
    font-size: 0.7rem;
  }

  .ref-sheet {
    page-break-inside: avoid;
  }

  @page {
    margin: 0.4in 0.5in;
    size: letter;
  }
}
