/* CureAdvantage — Who Pays First? (primary vs secondary insurance)
   Scoped to .pvs-page and #pvs. No global styles. v2 visual system. */

.pvs-page {
  --pvs-navy: #001347;
  --pvs-navy-2: #001d66;
  --pvs-navy-3: #0a2585;
  --pvs-ink: #16203a;
  --pvs-muted: #5b6577;
  --pvs-line: #e2e8f2;
  --pvs-line-2: #cbd5e6;
  --pvs-paper: #f6f8fc;
  --pvs-white: #fff;
  --pvs-blue: #1d4ed8;
  --pvs-blue-soft: #eef2ff;
  --pvs-teal: #0f6b63;
  --pvs-teal-soft: #e7f3f1;
  --pvs-amber: #92620a;
  --pvs-amber-soft: #fdf4e3;
  --pvs-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(0, 19, 71, .18);
  --pvs-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 16px -10px rgba(0, 19, 71, .22);
  color: var(--pvs-ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.pvs-page h2,
.pvs-page h3 { scroll-margin-top: 90px; }

/* ---------- hero ---------- */
.pvs-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 88% -10%, rgba(29, 78, 216, .55) 0%, rgba(29, 78, 216, 0) 55%),
    linear-gradient(135deg, var(--pvs-navy) 0%, var(--pvs-navy-2) 52%, var(--pvs-navy-3) 100%);
  border-radius: 20px;
  padding: 42px 40px 34px;
  margin: 8px 0 22px;
  color: #fff;
  box-shadow: 0 20px 44px -24px rgba(0, 19, 71, .55);
}

.pvs-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  pointer-events: none;
}

.pvs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #dbe6ff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 18px;
}

.pvs-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dd3c4;
  box-shadow: 0 0 0 3px rgba(125, 211, 196, .25);
}

.pvs-page .pvs-hero h1 {
  color: #fff;
  font-size: 2.45rem;
  line-height: 1.16;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  font-weight: 800;
  max-width: 21ch;
}

.pvs-page .pvs-hero .pvs-lede {
  color: rgba(255, 255, 255, .88);
  font-size: 1.06rem;
  line-height: 1.68;
  margin: 0 0 24px;
  max-width: 66ch;
}

.pvs-page .pvs-hero .pvs-lede strong { color: #fff; }

.pvs-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pvs-stats li {
  flex: 1 1 150px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0;
}

.pvs-stats b {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 2px;
}

.pvs-stats span {
  display: block;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

/* ---------- verified strip ---------- */
.pvs-page .pvs-meta {
  position: relative;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--pvs-muted);
  background: var(--pvs-paper);
  border: 1px solid var(--pvs-line);
  border-left: 4px solid var(--pvs-teal);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 34px;
}

/* ---------- section headings ---------- */
.pvs-page h2 {
  position: relative;
  font-size: 1.62rem;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--pvs-navy);
  margin: 44px 0 14px;
  padding-top: 18px;
}

.pvs-page h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pvs-navy), var(--pvs-blue));
}

.pvs-page > p { line-height: 1.75; }

.pvs-page ul li,
.pvs-page ol li { line-height: 1.7; }

/* ---------- tool shell ---------- */
#pvs,
.pvs-tool { margin: 26px 0 34px; }

.pvs-tool {
  background: var(--pvs-white);
  border: 1px solid var(--pvs-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--pvs-shadow);
}

.pvs-head {
  position: relative;
  background:
    radial-gradient(100% 160% at 92% 0%, rgba(29, 78, 216, .45) 0%, rgba(29, 78, 216, 0) 60%),
    linear-gradient(135deg, var(--pvs-navy) 0%, var(--pvs-navy-2) 100%);
  color: #fff;
  padding: 26px 28px 24px;
}

.pvs-head .pvs-pill {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.pvs-head h3,
.pvs-head .pvs-h {
  color: #fff;
  font-size: 1.42rem;
  line-height: 1.28;
  letter-spacing: -.01em;
  margin: 0 0 8px;
  font-weight: 700;
}

.pvs-head p {
  color: rgba(255, 255, 255, .82);
  margin: 0;
  font-size: .95rem;
  line-height: 1.65;
  max-width: 70ch;
}

.pvs-body { padding: 26px 28px 28px; }

/* ---------- inputs ---------- */
.pvs-fields {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pvs-fields .pvs-q.pvs-wide { grid-column: 1 / -1; }

.pvs-qs { display: grid; gap: 18px; }

.pvs-q { display: grid; gap: 7px; }

.pvs-q-label {
  font-weight: 650;
  font-size: .95rem;
  color: var(--pvs-navy);
  letter-spacing: -.005em;
}

.pvs-q-hint {
  font-size: .84rem;
  color: var(--pvs-muted);
  line-height: 1.55;
}

.pvs-select,
.pvs-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--pvs-ink);
  background: var(--pvs-white);
  border: 1px solid var(--pvs-line-2);
  border-radius: 11px;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.pvs-select:hover,
.pvs-input:hover { border-color: #9fb0c6; }

.pvs-select:focus,
.pvs-input:focus {
  border-color: var(--pvs-blue);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, .13);
}

.pvs-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .93rem;
  line-height: 1.55;
}

.pvs-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; }

.pvs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.pvs-btn {
  appearance: none;
  min-height: 50px;
  padding: 13px 26px;
  font-family: inherit;
  font-size: .98rem;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(135deg, var(--pvs-navy), var(--pvs-navy-3));
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  box-shadow: 0 10px 22px -14px rgba(0, 19, 71, .8);
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}

.pvs-btn:hover { filter: brightness(1.08); box-shadow: 0 14px 26px -14px rgba(0, 19, 71, .85); }
.pvs-btn:active { transform: translateY(1px); }

.pvs-btn-quiet {
  color: var(--pvs-navy);
  background: var(--pvs-white);
  border-color: var(--pvs-line-2);
  box-shadow: none;
}

.pvs-btn-quiet:hover { background: var(--pvs-paper); border-color: #9fb0c6; filter: none; }

/* ---------- results ---------- */
.pvs-idle {
  border: 1px dashed var(--pvs-line-2);
  border-radius: 14px;
  padding: 22px;
  color: var(--pvs-muted);
  background: var(--pvs-paper);
  margin-top: 22px;
}

.pvs-idle p { margin: 0; font-size: .95rem; line-height: 1.65; }

.pvs-result-card {
  position: relative;
  border: 1px solid var(--pvs-line);
  border-radius: 16px;
  padding: 24px 24px 10px;
  background: var(--pvs-white);
  margin-top: 22px;
  box-shadow: var(--pvs-shadow-sm);
  overflow: hidden;
}

.pvs-result-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--pvs-blue), #60a5fa);
}

.pvs-result-card.pvs-ok::before { background: linear-gradient(90deg, var(--pvs-teal), #4bb3a4); }
.pvs-result-card.pvs-warn::before { background: linear-gradient(90deg, var(--pvs-amber), #e0a94a); }

.pvs-band {
  display: inline-block;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 13px;
  margin-bottom: 16px;
  background: var(--pvs-blue-soft);
  color: var(--pvs-blue);
}

.pvs-ok .pvs-band { background: var(--pvs-teal-soft); color: var(--pvs-teal); }
.pvs-warn .pvs-band { background: var(--pvs-amber-soft); color: var(--pvs-amber); }

.pvs-head-line {
  margin: 0 0 14px;
  font-size: 1.14rem;
  line-height: 1.4;
  color: var(--pvs-navy);
  font-weight: 700;
  letter-spacing: -.01em;
}

.pvs-lead { font-size: 1rem; line-height: 1.68; margin: 0 0 14px; }

.pvs-big {
  display: grid;
  gap: 6px;
  margin: 0 0 20px;
  padding: 20px 22px;
  background: linear-gradient(135deg, var(--pvs-paper), #eef2f9);
  border: 1px solid var(--pvs-line);
  border-radius: 14px;
}

.pvs-big-v {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--pvs-navy);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.pvs-big-k { font-size: .9rem; color: var(--pvs-muted); line-height: 1.55; }

.pvs-blk { margin: 0 0 18px; }

.pvs-blk h3,
.pvs-blk h4 {
  margin: 0 0 8px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--pvs-muted);
  padding: 0;
}

.pvs-blk h3::before { display: none; }

.pvs-blk p { margin: 0 0 8px; font-size: .96rem; line-height: 1.68; }

.pvs-list { margin: 0; padding-left: 20px; }
.pvs-list li { margin: 0 0 7px; font-size: .95rem; line-height: 1.65; }

.pvs-src { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }

.pvs-src li { margin: 0; font-size: .9rem; line-height: 1.5; }

.pvs-src a {
  display: inline-block;
  color: var(--pvs-blue);
  background: var(--pvs-blue-soft);
  border-radius: 8px;
  padding: 5px 10px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.pvs-src a:hover { text-decoration: underline; }

.pvs-page .pvs-sources a { color: var(--pvs-blue); overflow-wrap: anywhere; }

.pvs-fine {
  font-size: .85rem;
  color: var(--pvs-muted);
  line-height: 1.65;
  margin: 0 0 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--pvs-line);
}

.pvs-kv {
  border: 1px solid var(--pvs-line);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 18px;
}

.pvs-kv-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: space-between;
  align-items: baseline;
  padding: 13px 16px;
  border-bottom: 1px solid var(--pvs-line);
  background: var(--pvs-white);
}

.pvs-kv-row:last-child { border-bottom: 0; background: var(--pvs-paper); }

.pvs-kv-k { font-size: .9rem; color: var(--pvs-muted); }
.pvs-kv-v { font-size: 1rem; font-weight: 700; color: var(--pvs-navy); }

/* ---------- reference cards ---------- */
.pvs-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0 30px;
}

.pvs-card {
  position: relative;
  border: 1px solid var(--pvs-line);
  border-radius: 16px;
  padding: 22px 22px 20px;
  background: var(--pvs-white);
  box-shadow: var(--pvs-shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.pvs-card:hover {
  transform: translateY(-2px);
  border-color: var(--pvs-line-2);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 18px 34px -18px rgba(0, 19, 71, .38);
}

.pvs-card h3 {
  margin: 0 0 12px;
  font-size: 1.06rem;
  line-height: 1.38;
  color: var(--pvs-navy);
  font-weight: 700;
  letter-spacing: -.01em;
}

.pvs-card p { margin: 0 0 9px; font-size: .94rem; line-height: 1.68; }
.pvs-card p:last-child { margin-bottom: 0; }

.pvs-card strong { color: var(--pvs-navy); }

.pvs-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 11px;
  background: var(--pvs-teal-soft);
  color: var(--pvs-teal);
}

.pvs-tag-alt { background: var(--pvs-amber-soft); color: var(--pvs-amber); }
.pvs-tag-info { background: var(--pvs-blue-soft); color: var(--pvs-blue); }

.pvs-card-src {
  font-size: .85rem !important;
  color: var(--pvs-muted);
  padding-top: 12px;
  margin-top: 4px !important;
  border-top: 1px solid var(--pvs-line);
}

/* ---------- steps ---------- */
.pvs-steps {
  counter-reset: padstep;
  list-style: none;
  margin: 24px 0 30px;
  padding: 0;
}

.pvs-steps li {
  counter-increment: padstep;
  position: relative;
  padding: 0 0 18px 52px;
  font-size: .99rem;
  line-height: 1.7;
}

.pvs-steps li::before {
  content: counter(padstep);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pvs-navy), var(--pvs-navy-3));
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -10px rgba(0, 19, 71, .8);
}

.pvs-steps li strong { color: var(--pvs-navy); }

/* ---------- troubleshooting ---------- */
.pvs-tr { display: grid; gap: 14px; margin: 24px 0 30px; }

.pvs-tr-item {
  border: 1px solid var(--pvs-line);
  border-left: 4px solid var(--pvs-blue);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--pvs-white);
  box-shadow: var(--pvs-shadow-sm);
}

.pvs-tr-item h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  color: var(--pvs-navy);
  font-weight: 700;
}

.pvs-tr-item p { margin: 0 0 7px; font-size: .95rem; line-height: 1.68; }
.pvs-tr-item p:last-child { margin-bottom: 0; }
.pvs-tr-item strong { color: var(--pvs-navy); }

/* ---------- callout + examples ---------- */
.pvs-note {
  border: 1px solid #ecdfc2;
  background: linear-gradient(135deg, var(--pvs-amber-soft), #fffaf0);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0 30px;
}

.pvs-note p { margin: 0 0 8px; font-size: .96rem; line-height: 1.68; }
.pvs-note p:last-child { margin-bottom: 0; }
.pvs-note strong { color: var(--pvs-amber); }

.pvs-example {
  border: 1px solid var(--pvs-line);
  border-radius: 16px;
  padding: 20px 22px;
  background: linear-gradient(135deg, var(--pvs-paper), #fff);
  margin: 0 0 16px;
  box-shadow: var(--pvs-shadow-sm);
}

.pvs-example h3 {
  margin: 0 0 10px;
  font-size: 1.04rem;
  color: var(--pvs-navy);
  font-weight: 700;
}

.pvs-example p { margin: 0 0 8px; font-size: .95rem; line-height: 1.68; }
.pvs-example p:last-child { margin-bottom: 0; }
.pvs-example strong { color: var(--pvs-navy); }

/* ---------- faq + sources ---------- */
.pvs-page .pvs-faq { margin: 24px 0 30px; }

.pvs-page .pvs-faq h3 {
  font-size: 1.06rem;
  margin: 0;
  padding: 20px 0 8px;
  color: var(--pvs-navy);
  font-weight: 700;
  border-top: 1px solid var(--pvs-line);
}

.pvs-page .pvs-faq h3:first-child { border-top: 0; padding-top: 0; }

.pvs-page .pvs-faq p { margin: 0 0 18px; line-height: 1.75; }

.pvs-page .pvs-sources { padding-left: 20px; }
.pvs-page .pvs-sources li { margin-bottom: 10px; line-height: 1.68; }

/* ---------- focus ---------- */
.pvs-page a:focus-visible,
#pvs a:focus-visible,
.pvs-select:focus-visible,
.pvs-input:focus-visible,
.pvs-btn:focus-visible,
.pvs-check input:focus-visible {
  outline: 3px solid var(--pvs-blue);
  outline-offset: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pvs-cards { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .pvs-hero { padding: 30px 22px 26px; border-radius: 16px; }
  .pvs-page .pvs-hero h1 { font-size: 1.86rem; }
  .pvs-page .pvs-hero .pvs-lede { font-size: 1rem; }
  .pvs-stats li { flex: 1 1 100%; }
  .pvs-head { padding: 22px 18px 20px; }
  .pvs-body { padding: 20px 18px 22px; }
  .pvs-fields { grid-template-columns: 1fr; }
  .pvs-page h2 { font-size: 1.38rem; }
  .pvs-result-card { padding: 20px 18px 6px; }
  .pvs-big { padding: 16px 18px; }
  .pvs-big-v { font-size: 1.72rem; }
  .pvs-steps li { padding-left: 46px; }
}

@media (max-width: 400px) {
  .pvs-page .pvs-hero h1 { font-size: 1.66rem; }
  .pvs-head h3, .pvs-head .pvs-h { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pvs-page *,
  #pvs * { animation: none !important; transition: none !important; }
  .pvs-card:hover { transform: none; }
}

/* ---------- COB-specific components ---------- */
.pvs-page .pvs-hero h1 { max-width: 19ch; }

.pvs-card dl { margin: 0; }

.pvs-card dt {
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pvs-muted);
  margin: 14px 0 4px;
}

.pvs-card dt:first-of-type { margin-top: 0; }

.pvs-card dd {
  margin: 0;
  font-size: .94rem;
  line-height: 1.68;
}

.pvs-card dd strong { color: var(--pvs-navy); }

.pvs-card dd.pvs-card-src {
  font-size: .85rem !important;
  padding-top: 12px;
  margin-top: 12px !important;
  border-top: 1px solid var(--pvs-line);
}

/* payer-order result pair */
.pvs-pair {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.pvs-slot {
  position: relative;
  background: linear-gradient(135deg, var(--pvs-paper), #fff);
  border: 1px solid var(--pvs-line);
  border-radius: 14px;
  padding: 16px 16px 15px;
  display: grid;
  gap: 6px;
}

.pvs-slot:first-child { border-left: 4px solid var(--pvs-teal); }
.pvs-slot:last-child { border-left: 4px solid var(--pvs-line-2); }

.pvs-slot-k {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pvs-muted);
}

.pvs-slot-v {
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--pvs-navy);
  letter-spacing: -.01em;
}

/* birthday selects */
.pvs-bday { display: flex; gap: 10px; }
.pvs-bday .pvs-select { flex: 1 1 auto; }
.pvs-bday .pvs-select-day { flex: 0 0 34%; }

/* 411.33 calculation rows */
.pvs-calcs { display: grid; gap: 10px; margin: 0 0 14px; }

.pvs-calc {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 13px 14px;
  border: 1px solid var(--pvs-line);
  border-radius: 12px;
  background: var(--pvs-white);
}

.pvs-calc-win {
  border-color: #b9ddd7;
  background: linear-gradient(135deg, var(--pvs-teal-soft), #f3fbf9);
  box-shadow: inset 0 0 0 1px rgba(15, 107, 99, .12);
}

.pvs-calc-n {
  font-weight: 800;
  color: var(--pvs-muted);
  font-size: .85rem;
}

.pvs-calc-win .pvs-calc-n { color: var(--pvs-teal); }

.pvs-calc-l { font-size: .92rem; line-height: 1.6; }

.pvs-calc-v {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--pvs-navy);
}

@media (max-width: 760px) {
  .pvs-pair { grid-template-columns: 1fr; }
  .pvs-calc { grid-template-columns: 26px 1fr; }
  .pvs-calc-v { grid-column: 2; }
  .pvs-bday { flex-direction: column; }
  .pvs-bday .pvs-select-day { flex: 1 1 auto; }
}
