/* ComparePayerRates.com - sibling of medicarefeeschedule.com's design,
   its own identity: deep teal accent. Self-contained, system fonts. */

:root {
  --ink: #16262b;
  --muted: #5b6d72;
  --accent: #0d6b63;      /* deep teal */
  --accent-dark: #0a4f49;
  --ok: #1e7d46;
  --ok-bg: #e8f5ee;
  --warn: #8a5a00;
  --warn-bg: #fdf3e0;
  --up: #1e7d46;
  --down: #b3382c;
  --canvas: #f6f9f8;
  --card: #ffffff;
  --border: #dde7e4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
  font-size: 16px;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

.site-header { background: var(--card); border-bottom: 1px solid var(--border); }
.header-row { display: flex; justify-content: space-between; align-items: center;
              padding-top: 14px; padding-bottom: 14px; }
.wordmark { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.wordmark span { color: var(--accent); }
.header-tag { font-size: 13px; color: var(--muted); }

.hero { padding: 44px 0 28px; text-align: center; }
.hero h1 { font-size: clamp(26px, 4.5vw, 38px); letter-spacing: -0.02em;
           line-height: 1.15; margin-bottom: 12px; }
.hero .sub { color: var(--muted); max-width: 640px; margin: 0 auto 26px; }

.lookup-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 2px 10px rgba(22, 38, 43, 0.05);
  max-width: 520px; margin: 0 auto; padding: 22px 24px 18px; text-align: left;
}
.selects { display: flex; gap: 14px; }
.selects > div { flex: 1; }
.selects label { display: block; font-size: 13px; font-weight: 600;
                 color: var(--muted); margin-bottom: 6px; }
.selects select {
  width: 100%; font-size: 17px; font-weight: 600; padding: 10px 12px;
  border: 2px solid var(--border); border-radius: 8px; color: var(--ink);
  background: #fff; outline: none;
}
.selects select:focus { border-color: var(--accent); }
.combo-status { min-height: 22px; font-size: 14px; color: var(--muted); margin-top: 10px; }
.combo-status.ok { color: var(--ok); font-weight: 600; }
.combo-status.warn { color: var(--warn); font-weight: 600; }

.results { padding-bottom: 8px; }
.locality-chip {
  display: inline-block; background: var(--ok-bg); color: var(--ok);
  font-weight: 600; font-size: 15px; border-radius: 8px;
  padding: 8px 14px; margin: 6px 0 14px;
}
.table-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--border);
                border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
thead th {
  text-align: right; font-size: 12.5px; color: var(--muted); font-weight: 600;
  padding: 12px 14px 10px; border-bottom: 2px solid var(--border);
  white-space: nowrap; background: #fafdfc;
}
thead .col-cpt, thead .col-svc { text-align: left; }
tbody td { padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
tbody tr:last-child td { border-bottom: none; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.cpt { font-weight: 600; color: var(--accent-dark); white-space: nowrap; }
td.delta-up { color: var(--up); font-weight: 600; }
td.delta-down { color: var(--down); font-weight: 600; }
tr.group-row td {
  background: #f0f6f4; font-weight: 700; font-size: 13px; color: var(--accent-dark);
  text-transform: uppercase; letter-spacing: 0.04em; padding-top: 10px; padding-bottom: 8px;
}
tr.locked td { filter: blur(5px); user-select: none; pointer-events: none; }
tr.locked td.cpt, tr.locked.group-row td { filter: blur(0); color: var(--muted); }

.gate { position: relative; margin-top: -6px; }
.gate-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(22, 38, 43, 0.12);
  max-width: 470px; margin: -30px auto 0; padding: 24px 26px; position: relative;
  text-align: center;
}
.request .gate-card { margin-top: 6px; box-shadow: 0 2px 10px rgba(22,38,43,0.06); }
.gate-card h2 { font-size: 20px; margin-bottom: 8px; }
.gate-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.form-row { display: flex; gap: 10px; margin-bottom: 10px; }
.form-row input {
  flex: 1; min-width: 0; padding: 10px 12px; font-size: 15px;
  border: 1.5px solid var(--border); border-radius: 8px; outline: none;
}
.form-row input:focus { border-color: var(--accent); }
.gate-card button, .tier2-card button {
  width: 100%; padding: 12px; font-size: 16px; font-weight: 700; color: #fff;
  background: var(--accent); border: none; border-radius: 8px; cursor: pointer;
  margin-top: 4px;
}
.gate-card button:hover, .tier2-card button:hover { background: var(--accent-dark); }
.fine { font-size: 12px; color: var(--muted); margin-top: 10px; }
.gate-error { color: #b3382c; font-size: 13.5px; margin-top: 8px; min-height: 18px; }
.s-status { font-size: 14px; color: var(--ok); font-weight: 600; display: block; margin-top: 8px; }

.band-note {
  margin: 14px 0 4px; padding: 10px 14px; border-radius: 8px;
  background: var(--warn-bg); color: var(--warn); font-size: 13.5px;
}
.band-note[hidden] { display: none; }

.tier2 { padding: 34px 0 4px; }
.tier2-card {
  background: linear-gradient(135deg, #0d6b63, #0a4f49);
  color: #fff; border-radius: 14px; padding: 26px 28px; text-align: center;
}
.tier2-card h2 { font-size: 21px; margin-bottom: 8px; }
.tier2-card p { color: #cfe5e1; font-size: 14.5px; max-width: 560px; margin: 0 auto 16px; }
.tier2-card form { max-width: 380px; margin: 0 auto; }
.tier2-card input { border: none; }
.tier2-card button { background: #fff; color: var(--accent-dark); }
.tier2-card button:hover { background: #e8f2f0; }
.tier2-card .s-status { color: #d9f2e6; }

/* Tier-2 teaser: practice-level view, identities redacted */
.tier2-intro { text-align: center; margin-bottom: 16px; }
.tier2-intro h2 { font-size: 22px; margin-bottom: 6px; }
.tier2-intro p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 14.5px; }
.teaser { margin-bottom: 22px; }
.example + .example { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border); }
.ex-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ex-title { font-weight: 700; font-size: 17px; color: var(--ink); }
.ex-sub { font-size: 14px; color: var(--muted); }
.teaser-chip {
  display: inline-block; background: var(--ok-bg); color: var(--ok);
  font-weight: 600; font-size: 14px; border-radius: 8px; padding: 7px 13px; margin: 2px 0 12px;
}
.teaser-table thead .th-sub {
  display: block; font-weight: 500; font-size: 11px; color: var(--muted);
  text-transform: none; letter-spacing: 0;
}
.teaser-table tr.bench td { background: #fafdfc; color: var(--muted); font-weight: 600; }
.teaser-table td.lead { font-weight: 700; color: var(--accent-dark); }
.redact-cell { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.redact {
  display: block; height: 13px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, #c4d2ce 0, #c4d2ce 7px, #b4c4bf 7px, #b4c4bf 14px);
  filter: blur(1.6px);
}
.redact.w0 { width: 128px; } .redact.w1 { width: 158px; } .redact.w2 { width: 104px; }
.size { font-size: 12px; color: var(--muted); }
.teaser-note { color: var(--muted); font-size: 13.5px; margin: 14px 2px 0; line-height: 1.5; }
.teaser-note strong { color: var(--ink); }

/* Demo mode: hide the consumer lead-capture, keep the capability view */
body.demo #tier2-cta { display: none; }
body.demo #request .gate-card form { display: none; }

.faq { padding: 26px 0 40px; }
.faq h2 { font-size: 20px; margin-bottom: 6px; }
.faq details { background: var(--card); border: 1px solid var(--border);
               border-radius: 10px; padding: 12px 16px; margin-top: 10px; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 15px; }
.faq details p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

.site-footer { background: var(--ink); color: #b6c6c3; padding: 26px 0 30px;
               font-size: 13px; }
.site-footer p + p { margin-top: 8px; }

@media (max-width: 640px) {
  .selects { flex-direction: column; }
  .form-row { flex-direction: column; }
  .hero { padding-top: 30px; }
  .header-row { flex-direction: column; gap: 2px; align-items: flex-start; }
}
