/* ============================================================
 * /patient-verification  —  page-specific styles
 *
 * Loads alongside /brand.css. Shared components (.product-hero,
 * .data-card, .cap-grid/.cap-card, .proof-bar.tight, .faq-list,
 * .section-heading, .cta-options) come from brand.css; this file
 * adds only the page-specific pieces.
 *
 * Brand-canon notes baked in:
 *   - A Medicare result is an answer, never an error. Matched =
 *     Success green; Details differ = Navy (the correction, not a
 *     failure); Couldn't verify = Info slate. Error red is reserved
 *     for our own failures and appears nowhere on this page.
 *     (colour-palette.md §"Eligibility verdicts".)
 *   - Functional UI colour is never marketing decoration.
 *   - Quiet elevation by Mist fill, not shadow, leads the Medicare
 *     card in §3. (layout-grid.md §"Card elevation".)
 *   - Specimen-sheet aesthetic on the §1 and §2 cards: structured
 *     data laid out with print-care. (imagery-direction.md §5.)
 * ============================================================ */


/* ============================================================ */
/* §1  HERO                                                       */
/* ============================================================ */
/* 48px breath between descriptor and CTAs — matches sibling pages. */
.product-hero .cta-row { margin-top: var(--space-48); }

/* — Hero card: a single matched verification (data-card chrome). — */
.pv-card .pv-fields { display: grid; gap: 0; margin: 0; }
.pv-card .pv-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-16);
  align-items: baseline;
  padding: var(--space-12) 0;
}
.pv-card .pv-field + .pv-field { border-top: 1px solid var(--color-stone-20); }
.pv-card .pv-field-label {
  font-family: var(--font-sans);
  font-size: var(--type-label-m);     /* 12 */
  font-weight: 500;
  color: var(--color-stone-60);
}
.pv-card .pv-field-value {
  font-size: var(--type-body-s);
  color: var(--color-midnight);
  text-align: right;
  justify-self: end;
}
.pv-card .pv-field-value .mono { font-size: 13px; letter-spacing: 0.02em; }
.pv-card .pv-irn {
  margin-left: var(--space-8);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-stone-60);
}

/* Matched stamp — the verdict, green-tinted. The "yes" of a verification. */
.pv-card .pv-verdict {
  display: flex; align-items: center; gap: var(--space-12);
  margin-top: var(--space-8);
  padding: var(--space-12) var(--space-16);
  border-radius: var(--radius-default);
  background: color-mix(in srgb, var(--verdict-eligible) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--verdict-eligible) 18%, transparent);
}
.pv-card .pv-verdict-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0;
  color: var(--verdict-eligible);
}
.pv-card .pv-verdict-mark svg { width: 22px; height: 22px; }
.pv-card .pv-verdict-text { display: flex; flex-direction: column; gap: 1px; }
.pv-card .pv-verdict-title {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--verdict-eligible);
}
.pv-card .pv-verdict-reason {
  font-size: var(--type-body-s);
  color: var(--color-midnight);
}


/* ============================================================ */
/* §2  SOURCE OF TRUTH — the new-card correction card             */
/* Heading full width, the correction card centered beneath.      */
/* ============================================================ */
/* Two columns at desktop: heading + lede (left), correction card + stat (right). */
.pv-source .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-48);
  align-items: center;
}
@media (min-width: 960px) {
  .pv-source .container { grid-template-columns: 1fr 1fr; gap: var(--space-64); }
}
.pv-source .section-heading { max-width: 48ch; margin-bottom: 0; }
.pv-source-stage { display: flex; justify-content: center; }

/* Client stat — full-width band below the heading/card row; brand big-number. */
.pv-source-stat {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space-24);
  padding-top: var(--space-32);
  border-top: 1px solid var(--color-stone-20);
}
.pv-source-stat .hero-number { flex-shrink: 0; }
.pv-stat-caption {
  font-size: var(--type-body-s);
  line-height: var(--lh-body-relaxed);
  color: var(--color-stone-60);
  max-width: 56ch;
}

.pv-correction-card {
  background: var(--color-paper);
  border: 1px solid var(--color-stone-20);
  border-radius: var(--radius-soft);
  padding: var(--space-32);
  box-shadow: var(--shadow-card-hero);
  width: 100%;
  max-width: 520px;
}
.pv-correction-card .card-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--color-mist);
  gap: var(--space-12);
}
.pv-correction-card .card-meta .meta-left {
  display: inline-flex; align-items: center; gap: var(--space-12);
  color: var(--color-navy);
}
.pv-correction-card .brand-mark {
  width: 28px; height: 28px;
  color: var(--color-navy);
  display: block; flex-shrink: 0;
}
.pv-correction-card .card-meta .label-s { color: var(--color-navy); }
.pv-tag {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-navy);
  padding: 4px 10px;
  background: color-mix(in srgb, var(--color-navy) 6%, transparent);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pv-correction-body {
  padding: var(--space-32) 0 var(--space-24);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-16);
}
.pv-correction-side {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: var(--space-8); min-width: 0;
}
.pv-correction-value {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
  font-size: 1rem;                    /* 16 — a 12-char card number; bigger overflows narrow cards */
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-midnight);
  white-space: nowrap;
}
.pv-correction-value.field-stale {
  text-decoration: line-through;
  text-decoration-color: var(--color-stone-40);
  text-decoration-thickness: 2px;
  color: var(--color-stone-60);
}
.pv-correction-value.field-corrected { color: var(--color-success-600); }
.pv-correction-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-stone-60);
}
.pv-correction-arrow svg { width: 20px; height: 20px; }

.pv-correction-note {
  font-size: var(--type-body-s);
  line-height: var(--lh-body-relaxed);
  color: var(--color-stone-60);
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-mist);
  max-width: 44ch;
}
.pv-card-footer {
  margin-top: var(--space-16);
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  color: var(--color-stone-60);
  letter-spacing: 0.02em;
  text-align: right;
}

/* Narrow cards: stack the before/after vertically, arrow points down. */
@media (max-width: 479.98px) {
  .pv-correction-body { grid-template-columns: 1fr; gap: var(--space-12); }
  .pv-correction-arrow { transform: rotate(90deg); }
}


/* ============================================================ */
/* §3  WHAT YOU CAN VERIFY — three types, Medicare leading        */
/* cap-grid is 2-col at >=640 (brand.css); 3-col at desktop. The  */
/* Medicare card leads via a quiet Mist fill (elevation, not      */
/* shadow). Icons inherit the brand Royal .cap-icon colour.       */
/* ============================================================ */
@media (min-width: 1024px) {
  .pv-types-grid { grid-template-columns: repeat(3, 1fr); }
}
.pv-type-lead {
  background: var(--color-mist);
  border-color: color-mix(in srgb, var(--color-navy) 12%, var(--color-stone-20));
}
.pv-types .cap-card h3 { color: var(--color-midnight); }
.pv-types .cap-card p { color: var(--color-stone-60); line-height: var(--lh-body-relaxed); }
.pv-types-handoff {
  margin-top: var(--space-48);
  max-width: 60ch;
  color: var(--color-stone-60);
}


/* ============================================================ */
/* §4  WHAT COMES BACK — tri-state outcomes                       */
/* Bare text blocks with a 2px left rule in the verdict colour;   */
/* same vocabulary as the eligibility-check verdict typology.     */
/* ============================================================ */
.pv-outcomes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-32);
  margin-top: var(--space-48);
}
@media (min-width: 720px) {
  .pv-outcomes-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-48); }
}
.pv-outcome {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--space-12);
  padding-left: var(--space-20);
  border-left: 2px solid var(--color-stone-20);
}
.pv-outcome-matched { border-left-color: var(--verdict-eligible); }
.pv-outcome-differ  { border-left-color: var(--verdict-not-eligible); }
.pv-outcome-failed  { border-left-color: var(--verdict-cannot-determine); }
.pv-outcome-icon { display: inline-flex; }
.pv-outcome-icon svg { width: 28px; height: 28px; }
.pv-outcome-matched .pv-outcome-icon { color: var(--verdict-eligible); }
.pv-outcome-differ  .pv-outcome-icon { color: var(--verdict-not-eligible); }
.pv-outcome-failed  .pv-outcome-icon { color: var(--verdict-cannot-determine); }
.pv-outcome-title { margin: 0; letter-spacing: -0.01em; line-height: 1.3; }
.pv-outcome-matched .pv-outcome-title { color: var(--verdict-eligible); }
.pv-outcome-differ  .pv-outcome-title { color: var(--verdict-not-eligible); }
.pv-outcome-failed  .pv-outcome-title { color: var(--verdict-cannot-determine); }
.pv-outcome-desc { margin: 0; color: var(--color-stone-60); line-height: var(--lh-body); }

.pv-outcomes-handoff {
  margin-top: var(--space-48);
  text-align: center;
  max-width: 64ch;
  margin-left: auto; margin-right: auto;
  color: var(--color-stone-60);
}
.pv-outcomes-handoff code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--color-mist);
  color: var(--color-navy);
  padding: 1px 5px;
  border-radius: var(--radius-xs);
}


/* ============================================================ */
/* §6  CONSENT AND CARE                                           */
/* ============================================================ */
.pv-care-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-32);
}
@media (min-width: 768px) {
  .pv-care-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-48); }
}
.pv-care-point h3 {
  color: var(--color-navy);
  margin-bottom: var(--space-12);
  line-height: var(--lh-title-s);
}
.pv-care-point p {
  font-size: var(--type-body-m);
  line-height: var(--lh-body-relaxed);
  color: var(--color-stone-90);
}


/* ============================================================ */
/* §7  IN EVERY PLAN                                              */
/* ============================================================ */
.pv-every-plan { text-align: center; }
.pv-every-plan .label-s {
  display: block;
  color: var(--color-navy);
  margin-bottom: var(--space-12);
}
.pv-every-plan h2 { margin-bottom: var(--space-16); }
.pv-every-plan .lead {
  margin-bottom: var(--space-32);
  max-width: 48ch;
  margin-left: auto; margin-right: auto;
}
.pv-every-plan .action { display: flex; justify-content: center; }


/* ============================================================ */
/* §8  FAQ                                                        */
/* ============================================================ */
.pv-faq .section-heading { margin-left: auto; margin-right: auto; }


/* ============================================================ */
/* §9  CTA                                                        */
/* ============================================================ */
.pv-cta { text-align: center; }
.pv-cta h2 { margin-bottom: var(--space-16); }
