/* ============================================================
   Homeowner Dossier — public no-login page (mobile-first).
   Equal-weight trust cards (pick haloed gold), the "Why we
   recommend them" reason box, price + choose CTA. Masthead lives
   in dossier_header.css; confirm reward + expired in
   dossier_reward.css. All color via --ha-* tokens; no raw hex.
   ============================================================ */

.dossier-main { background: var(--ha-surface-subtle); min-height: 100vh; }
.flash { display: none; } /* warm flow is self-explanatory; no raw flashes */

.dossier-page { max-width: 460px; margin: 0 auto; padding: 0 18px 40px; }
@media (min-width: 800px) {
  .dossier-page { max-width: 1040px; }
}

.dossier-section-label {
  margin: 26px 2px 12px; font-size: var(--ha-fs-caption);
  font-weight: var(--ha-weight-medium); color: var(--ha-ink-muted);
}

/* Trust cards — equal weight; pick haloed gold. */
.dossier-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 800px) {
  .dossier-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: start;
  }
}

.trust-card {
  background: var(--ha-surface); border: 1px solid var(--ha-border);
  border-radius: var(--ha-radius-md); box-shadow: var(--ha-shadow-card);
  overflow: hidden; position: relative;
}
.trust-card.is-pick {
  border-color: var(--ha-gold-lighter);
  box-shadow: 0 0 0 2px var(--ha-ourpick-halo), var(--ha-shadow-card);
}

.pick-label {
  display: inline-flex; align-items: center; gap: 6px; position: absolute;
  top: 14px; left: 14px; z-index: 2; margin: 0;
  background: var(--ha-ourpick-tint); color: var(--ha-blue-primary-alt);
  font-size: var(--ha-fs-caption); font-weight: var(--ha-weight-bold);
  padding: 4px 11px; border-radius: var(--ha-radius-pill);
}
.pick-label svg { width: 13px; height: 13px; }

/* Provider hero photo + warm fallback tile (full-bleed, above the body). */
.card-photo {
  height: 170px; position: relative; display: grid; place-items: center;
  background: var(--ha-surface-subtle);
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo .photo-fallback {
  width: 64px; height: 64px; border-radius: var(--ha-radius-pill);
  background: var(--ha-blue-primary); color: var(--ha-surface);
  display: grid; place-items: center; font-size: 22px;
  font-weight: var(--ha-weight-bold); letter-spacing: 0.02em;
}

/* Composed interior: one consistent gap rhythm, no per-child margins. */
.card-body {
  padding: var(--ha-space-6); display: flex; flex-direction: column;
  gap: var(--ha-space-4);
}
.provider-name {
  font-size: 20px; font-weight: var(--ha-weight-bold); margin: 0;
  color: var(--ha-ink);
}

.signals {
  display: flex; flex-wrap: wrap; gap: var(--ha-space-2);
  margin: 0; padding: 0; list-style: none;
}
.signal-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--ha-fs-caption); color: var(--ha-success);
  background: var(--ha-trust-tint); padding: 3px 9px;
  border-radius: var(--ha-radius-pill); font-weight: var(--ha-weight-medium);
}
.signal-badge svg { width: 13px; height: 13px; }
.signal-rating {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--ha-fs-caption); color: var(--ha-ink-muted);
  background: var(--ha-border-strong); padding: 3px 9px;
  border-radius: var(--ha-radius-pill);
}
.signal-rating svg { width: 13px; height: 13px; color: var(--ha-gold-base); }

/* Hero differentiator: track-record jobs in market */
.track-record {
  background: var(--ha-surface-subtle);
  border: 1px solid var(--ha-border-strong);
  border-radius: var(--ha-radius-md); padding: 12px 14px;
  display: flex; align-items: center; gap: 11px;
}
.track-record .ico {
  width: 34px; height: 34px; border-radius: var(--ha-radius-pill);
  background: var(--ha-blue-primary); color: var(--ha-surface);
  display: grid; place-items: center; flex: none;
}
.track-record .ico svg { width: 18px; height: 18px; }
.track-record .n {
  font-size: 18px; font-weight: var(--ha-weight-bold);
  line-height: 1.2; color: var(--ha-ink);
}
.track-record .t { font-size: 12px; color: var(--ha-ink-muted); }

/* Before/after gallery */
.card-gallery { display: flex; gap: 7px; }
.card-gallery .thumb {
  flex: 1; height: 56px; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--ha-border-strong); background: var(--ha-surface-subtle);
}
.card-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* "Why we recommend them" — labeled reason box, pick card only.
   Gold seasoning as a soft tint surface; navy ink, no gold fill/button. */
.reason-box {
  background: var(--ha-reason-surface);
  border: 1px solid var(--ha-reason-edge);
  border-radius: var(--ha-radius-md); padding: var(--ha-space-4);
}
.reason-box .reason-heading {
  margin: 0 0 6px; font-size: var(--ha-fs-small);
  font-weight: var(--ha-weight-medium); color: var(--ha-ink);
}
.reason-box .reason-text {
  margin: 0; font-size: 15px; line-height: 22px; color: var(--ha-ink);
}

.timing-match {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--ha-fs-caption); color: var(--ha-success);
  font-weight: var(--ha-weight-medium);
}
.timing-match svg { width: 14px; height: 14px; }

.price-row {
  display: flex; align-items: baseline; justify-content: space-between;
}
.price {
  font-size: 30px; font-weight: var(--ha-weight-bold);
  font-variant-numeric: tabular-nums; margin: 0; color: var(--ha-ink);
}
.price-label { font-size: 12px; color: var(--ha-ink-muted); }

/* Free in-person estimate: a phrase, not a figure, so it reads calmly and
   wraps instead of overflowing the card on a narrow phone. */
.price-row.is-estimate { display: block; }
.price-row.is-estimate .price {
  font-size: var(--ha-fs-body); font-weight: var(--ha-weight-medium);
  color: var(--ha-ink-muted);
}

/* Choose button (button_to renders a form > button) */
.choose-form { margin: 0; }
.choose {
  width: 100%; border: 0; border-radius: var(--ha-radius-pill);
  padding: 14px 20px; font: inherit; font-size: var(--ha-fs-body);
  font-weight: var(--ha-weight-medium); cursor: pointer; min-height: 48px;
  background: var(--ha-blue-primary); color: var(--ha-surface);
  transition: background-color 120ms ease;
}
.choose:hover { background: var(--ha-blue-primary-alt); }
.trust-card:not(.is-pick) .choose {
  background: var(--ha-surface); color: var(--ha-blue-primary);
  border: 2px solid var(--ha-blue-primary); padding: 12px 18px;
}
.choose:focus-visible { outline: none; box-shadow: var(--ha-dossier-focus); }

/* Persistent help line */
.dossier-help {
  margin: 22px 2px 0; text-align: center; font-size: var(--ha-fs-small);
  color: var(--ha-ink-muted);
}
.dossier-help a {
  color: var(--ha-blue-text); text-decoration: none;
  font-weight: var(--ha-weight-medium);
}
