/* === AMERICAN BILLING ASSOCIATION — Base Styles === */

/* 1. Variables */
:root {
  --primary:      #2C5EAD;
  --primary-dark: #1E3D7A;
  --accent:       #1591DC;
  --accent-light: #EBF5FC;
  --gold:         #1591DC;
  --gold-light:   #D6EEFA;
  --cta:          #1591DC;
  --cta-hover:    #1279BE;
  --bg:           #EBF5FC;
  --bg-warm:      #F4FAFF;
  --bg-white:     #ffffff;
  --text:         #1A3560;
  --text-muted:   #3A6090;
  --border:       #C4E2F5;
  --shadow-sm:    0 1px 4px rgba(44,94,173,0.08), 0 1px 2px rgba(44,94,173,0.05);
  --shadow-md:    0 4px 18px rgba(44,94,173,0.10), 0 2px 6px rgba(44,94,173,0.05);
  --shadow-lg:    0 12px 40px rgba(44,94,173,0.15), 0 4px 12px rgba(44,94,173,0.07);
  --font:         'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --radius:       6px;
  --radius-card:  10px;
  --max-width:    1280px;
  --nav-height:   72px;
}

/* 2. Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary);
  letter-spacing: -0.3px;
  text-wrap: pretty;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.8rem); font-weight: 800; letter-spacing: -1.5px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.5px; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* 4. Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.section      { padding: 5rem 0; }
.section-sm   { padding: 3rem 0; }
.section-dark {
  background: #2C5EAD;
  color: white;
  position: relative;
  overflow: hidden;
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: white; }
.section-dark p  { color: rgba(255,255,255,0.85); }
.section-dark > .container,
.section-dark > * { position: relative; z-index: 1; }
.section-mid {
  background: #1591DC;
  color: white;
  position: relative;
  overflow: hidden;
}
.section-mid h1,
.section-mid h2,
.section-mid h3 { color: white; }
.section-mid p   { color: rgba(255,255,255,0.85); }
.section-mid > * { position: relative; z-index: 1; }

/* 5. Billing Code Watermark */
.has-watermark { position: relative; overflow: hidden; }
.billing-watermark {
  position: absolute;
  inset: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.045);
  overflow: hidden;
  padding: 2rem;
  line-height: 2.9;
  pointer-events: none;
  z-index: 0;
  letter-spacing: 0.07em;
  word-spacing: 0.5em;
  user-select: none;
}

/* 6. Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #1A3560;
  border-bottom: 3px solid rgba(75,184,250,0.4);
  height: var(--nav-height);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; }
.nav-logo { height: 44px; width: 44px; object-fit: contain; border-radius: 50%; background: white; padding: 3px; flex-shrink: 0; }
.nav-wordmark {
  font-size: 0.92rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.2px;
  white-space: nowrap;
  line-height: 1.25;
}
.nav-wordmark .teal { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-link:hover,
.nav-link.active { color: white; background: rgba(255,255,255,0.08); text-decoration: none; }

/* Nav Dropdown */
.nav-dropdown-wrapper { position: relative; }
.nav-dropdown-btn {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}
.nav-dropdown-btn:hover,
.nav-dropdown-btn.open { color: white; background: rgba(255,255,255,0.08); }
.dropdown-arrow { font-size: 0.6rem; transition: transform 0.2s; display: inline-block; }
.nav-dropdown-btn.open .dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  box-shadow: 0 20px 50px rgba(0,0,0,0.14);
  min-width: 580px;
  display: none;
  padding: 0.75rem;
  margin-top: 0;
  padding-top: 1rem;
}
.nav-dropdown-menu.open { display: block; }
.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
}
.dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.12s;
}
.dropdown-item:hover { background: var(--bg); text-decoration: none; }
.dropdown-item strong { font-size: 0.875rem; color: var(--primary); font-weight: 600; }
.dropdown-item span   { font-size: 0.75rem; color: var(--text-muted); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.btn-nav-cta {
  background: var(--cta);
  color: white;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-nav-cta:hover { background: var(--cta-hover); text-decoration: none; color: white; box-shadow: 0 4px 12px rgba(21,145,220,0.4); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.2s;
}

/* 7. Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--cta) 0%, #1279BE 100%);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  font-family: var(--font);
  line-height: 1;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); color: white; text-decoration: none; box-shadow: 0 6px 20px rgba(21,145,220,0.42); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,0.28);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
  font-family: var(--font);
  line-height: 1;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.07); text-decoration: none; color: white; }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 0.9rem 2.25rem; font-size: 1rem; }

/* 8. Forms */
.form-group { margin-bottom: 0.7rem; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 0.28rem;
  color: rgba(255,255,255,0.65);
}
.form-label.on-light { color: var(--text-muted); }
.form-input {
  width: 100%;
  padding: 0.58rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: white;
  font-size: 0.9rem;
  font-family: var(--font);
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.28); }
.form-input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.1); }
.form-input.on-light {
  background: var(--bg-white);
  border-color: var(--border);
  color: var(--text);
}
.form-input.on-light::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-input.on-light:focus { border-color: var(--accent); }
select.form-input { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2rem; cursor: pointer; }
select.form-input.on-light { -webkit-appearance: none; appearance: none; background-color: var(--bg-white); color: var(--text); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; }
.checkbox-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
}
.checkbox-item input[type="checkbox"] { accent-color: var(--accent); width: 14px; height: 14px; cursor: pointer; }
.form-success {
  display: none;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}
.form-microcopy {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-top: 0.65rem;
  line-height: 1.5;
}
.form-microcopy.on-light { color: var(--text-muted); opacity: 0.7; }

/* 9. Hero */
.hero-section {
  padding: 5.5rem 0 4.5rem;
  background: linear-gradient(145deg, #1A3560 0%, #2C5EAD 50%, #1E4A80 100%) !important;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  top: -15%;
  right: -5%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(43,127,212,0.15) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-section .hero-grid { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}
.teal-rule {
  display: inline-block;
  width: 36px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.teal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero-h1 { color: white; margin-bottom: 1.25rem; }
.hero-h1 .teal { color: var(--accent); }
.hero-sub {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.72;
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.badge-glow-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-glow-wrapper::before {
  content: '';
  position: absolute;
  inset: -50px;
  background: radial-gradient(ellipse, rgba(43,127,212,0.22) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.badge-img { width: 260px; height: 260px; object-fit: contain; position: relative; filter: drop-shadow(0 8px 32px rgba(43,127,212,0.25)); }
.trust-badges { display: flex; gap: 0.65rem; justify-content: center; flex-wrap: wrap; }
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 0.38rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.trust-badge svg { width: 13px; height: 13px; flex-shrink: 0; }

/* 10. Stats Bar */
.stats-bar {
  padding: 2.5rem 0;
  background: #1591DC;
  border-top: 1px solid rgba(75,184,250,0.25);
  border-bottom: 1px solid rgba(75,184,250,0.25);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.75); letter-spacing: 0.02em; }

/* 11. Trust Band */
.trust-band {
  background: var(--bg-white);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-band-label {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.trust-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 1.75rem;
}
.trust-metric {
  text-align: center;
  padding: 0 1.5rem;
  border-right: 1px solid var(--border);
}
.trust-metric:last-child { border-right: none; }
.trust-metric-value {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.trust-metric-label { font-size: 0.76rem; color: var(--text-muted); }
.trust-pills { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.trust-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--accent-light);
  border: 1px solid rgba(43,127,212,0.25);
  padding: 0.32rem 0.85rem;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

/* 12. Intro Section */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}
.intro-content p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.75; }
.lead-form-card {
  background: var(--primary-dark);
  border-radius: var(--radius-card);
  padding: 2rem;
}
.lead-form-card .form-title { color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.35rem; }
.lead-form-card .form-sub { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-bottom: 1.25rem; line-height: 1.5; }

/* 13. Section Labels */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* 14. Pain-Point Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pain-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.6rem;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.pain-card:hover { box-shadow: 0 8px 32px rgba(44,94,173,0.12); border-color: rgba(43,127,212,0.4); transform: translateY(-2px); }
.card-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.card-icon svg { width: 18px; height: 18px; color: var(--accent); }
.pain-card h3 { font-size: 0.975rem; font-weight: 700; color: var(--primary); margin-bottom: 0.45rem; }
.pain-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.9rem; }
.card-link { font-size: 0.82rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* 15. Blog Cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.blog-card {
  background: var(--bg-white);
  border: none;
  border-radius: var(--radius-card);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s, transform 0.18s;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-tag {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.blog-card h3 { font-size: 0.975rem; color: var(--primary); line-height: 1.4; margin: 0; }
.blog-card p  { font-size: 0.855rem; color: var(--text-muted); margin: 0; flex: 1; line-height: 1.6; }
.blog-meta    { display: flex; align-items: center; justify-content: space-between; font-size: 0.76rem; color: var(--text-muted); }
.blog-read-link { font-size: 0.82rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.blog-read-link:hover { text-decoration: underline; }
.blog-featured {
  background: var(--bg-white);
  border: none;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s;
}
.blog-featured:hover { box-shadow: var(--shadow-md); }
.blog-featured-top { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.blog-featured-label { font-size: 0.67rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.featured-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--accent-light);
  border: 1px solid var(--accent);
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
}
.blog-featured h2 { font-size: 1.5rem; margin-bottom: 0.65rem; line-height: 1.3; }
.blog-featured p  { color: var(--text-muted); font-size: 0.925rem; margin-bottom: 1rem; }
.blog-featured-footer { display: flex; align-items: center; justify-content: space-between; }
.blog-featured-meta { font-size: 0.8rem; color: var(--text-muted); }
.filter-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.filter-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.38rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
  font-family: var(--font);
}
.filter-pill.active,
.filter-pill:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* 16. Guide Page Layout */
.guide-layout {
  display: grid;
  grid-template-columns: 1fr 348px;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0 5rem;
}
.guide-main { min-width: 0; }
.guide-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 1.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.guide-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
  display: block;
}
.guide-byline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.75rem 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  line-height: 1.4;
}
.byline-sep { color: var(--border); }
.practitioner-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--accent-light);
  border: 1.5px solid rgba(43,127,212,0.35);
  border-radius: var(--radius-card);
  padding: 0.6rem 1rem;
  margin-bottom: 1.5rem;
}
.seal-text strong { font-size: 0.72rem; font-weight: 700; color: var(--primary); letter-spacing: 0.06em; display: block; }
.seal-text span { font-size: 0.65rem; color: var(--text-muted); }

/* Direct Answer Box */
.direct-answer {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
}
.answer-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
  display: block;
}
.direct-answer p { color: var(--text); font-size: 0.955rem; line-height: 1.65; margin: 0; }

/* TOC */
.toc-box {
  background: var(--bg-warm);
  border: none;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}
.toc-box h4 { font-size: 0.68rem; letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: 0.75rem; }
.toc-list { display: flex; flex-direction: column; gap: 0.3rem; }
.toc-list a { font-size: 0.865rem; color: var(--text-muted); text-decoration: none; display: flex; gap: 0.5rem; transition: color 0.15s; }
.toc-list a:hover { color: var(--accent); }
.toc-num { color: var(--accent); font-weight: 600; font-size: 0.78rem; min-width: 1.1rem; flex-shrink: 0; }

/* Article body */
.article-body h2 {
  margin: 2.5rem 0 0.85rem;
  font-size: 1.4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}
.article-body > h2:first-child { border-top: none; padding-top: 0; margin-top: 0.5rem; }
.article-body p { color: var(--text); font-size: 0.97rem; margin-bottom: 0.9rem; line-height: 1.72; }
.article-body ol,
.article-body ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.article-body li { font-size: 0.97rem; color: var(--text); margin-bottom: 0.45rem; line-height: 1.65; }
.article-body ol { list-style: decimal; }
.article-body ul { list-style: disc; }
.article-body strong { color: var(--primary); font-weight: 600; }
.article-body em { font-style: italic; color: var(--text-muted); }

/* FAQ Accordion */
.faq-section { margin: 2.5rem 0; }
.faq-section h2 { margin-bottom: 1.25rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  font-size: 0.955rem;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  gap: 1rem;
  font-family: var(--font);
  transition: color 0.15s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon { font-size: 1.1rem; color: var(--accent); flex-shrink: 0; transition: transform 0.2s; }
.faq-answer {
  display: none;
  padding: 0 1rem 1rem 0;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.72;
}
.faq-answer.open { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* 17. Sidebar Components */
.sidebar-form { background: var(--primary-dark); border-radius: var(--radius-card); padding: 1.6rem; }
.sidebar-form .resource-label { font-size: 0.67rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; display: block; }
.sidebar-form h3 { color: white; font-size: 1rem; margin-bottom: 0.3rem; }
.sidebar-form p { color: rgba(255,255,255,0.55); font-size: 0.82rem; margin-bottom: 1rem; line-height: 1.55; }
.related-guides { background: var(--bg-white); border: none; border-radius: var(--radius-card); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.related-guides h4 { font-size: 0.68rem; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 0.9rem; }
.related-guide-link { display: block; font-size: 0.86rem; color: var(--primary); text-decoration: none; padding: 0.45rem 0; border-bottom: 1px solid var(--border); transition: color 0.15s; }
.related-guide-link:last-child { border-bottom: none; }
.related-guide-link:hover { color: var(--accent); }
.sidebar-cta { background: var(--primary-dark); border-radius: var(--radius-card); padding: 1.4rem; text-align: center; }
.sidebar-cta p { color: rgba(255,255,255,0.85) !important; }
.sidebar-cta p { font-size: 0.875rem; color: rgba(255,255,255,0.85); margin-bottom: 0.9rem; line-height: 1.5; }

/* Author Bio */
.author-bio { display: flex; gap: 1rem; align-items: flex-start; padding: 2rem 0; border-top: 1px solid var(--border); margin-top: 2.5rem; }
.author-avatar { width: 50px; height: 50px; border-radius: 50%; border: 2px dashed var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; color: var(--text-muted); text-align: center; background: var(--bg); line-height: 1.3; }
.author-info strong { font-size: 0.9rem; color: var(--primary); display: block; margin-bottom: 0.1rem; }
.author-info .author-title { font-size: 0.76rem; color: var(--text-muted); display: block; margin-bottom: 0.5rem; }
.author-info p { font-size: 0.845rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* 18. Breadcrumb */
.breadcrumb-bar { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 0.6rem 0; }
.breadcrumb { font-size: 0.78rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { margin: 0 0.35rem; }

/* 19. Resources Page */
.resource-row { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; align-items: center; padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.resource-row:last-child { border-bottom: none; }
.resource-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); background: var(--accent-light); padding: 0.28rem 0.65rem; border-radius: 4px; margin-bottom: 0.65rem; }
.resource-info h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.resource-info p { color: var(--text-muted); font-size: 0.91rem; line-height: 1.6; }
.resource-for { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.35rem; }
.resource-for strong { color: var(--text); }
.resource-form { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.5rem; }
.resource-form h4 { font-size: 0.875rem; color: var(--primary); margin-bottom: 1rem; font-weight: 600; text-transform: none; letter-spacing: 0; }

/* 20. About Page */
.about-hero { text-align: center; padding: 5rem 0; }
.about-content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 4rem; align-items: start; }
.editorial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.standard-card { background: var(--bg-white); border: none; border-radius: var(--radius-card); padding: 1.25rem; box-shadow: var(--shadow-sm); border-top: 2px solid var(--accent-light); }
.standard-card h4 { font-size: 0.875rem; font-weight: 700; color: var(--primary); text-transform: none; letter-spacing: 0; margin-bottom: 0.35rem; }
.standard-card p { font-size: 0.84rem; color: var(--text-muted); margin: 0; line-height: 1.55; }
.check-prefix { color: var(--accent); margin-right: 0.3rem; }
.disclaimer-box { border-left: 4px solid var(--primary); background: #F0F4FA; border-radius: 0 var(--radius-card) var(--radius-card) 0; padding: 1.4rem; margin: 2rem 0; }
.disclaimer-box h4 { color: var(--primary); font-size: 0.7rem; letter-spacing: 0.14em; margin-bottom: 0.7rem; }
.disclaimer-box p { color: var(--text); font-size: 0.875rem; margin: 0; line-height: 1.65; }
.sidebar-card { background: var(--bg-white); border: none; border-radius: var(--radius-card); padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.sidebar-card h4 { font-size: 0.68rem; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 1rem; }
.specialty-list { display: flex; flex-direction: column; gap: 0.35rem; }
.specialty-item { font-size: 0.875rem; color: var(--primary); padding: 0.35rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.45rem; }
.specialty-item:last-child { border-bottom: none; }
.specialty-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.perf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.perf-item { text-align: center; }
.perf-value { font-size: 1.45rem; font-weight: 800; color: var(--primary); display: block; letter-spacing: -0.5px; margin-bottom: 0.15rem; }
.perf-label { font-size: 0.71rem; color: var(--text-muted); }

/* 21. Audit Form Page */
.audit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.audit-form-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 2.25rem; }
.audit-what-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin: 1.25rem 0; }
.audit-what-list li { display: flex; gap: 0.65rem; font-size: 0.935rem; color: var(--text); line-height: 1.5; }
.audit-check { color: var(--accent); font-size: 1rem; flex-shrink: 0; margin-top: 0.05rem; }
.not-a-pitch { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.25rem; margin-top: 2rem; }
.not-a-pitch h4 { font-size: 0.7rem; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 0.5rem; }
.not-a-pitch p { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.65; }

/* === RCM Dashboard Card (Hero Visual) === */
.rcm-dashboard-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.08) inset;
  width: 100%;
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.dash-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.dash-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.dash-badge--green {
  background: rgba(21,145,220,0.18);
  color: #34d399;
  border: 1px solid rgba(21,145,220,0.3);
}
.dash-badge--green::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  margin-right: 5px;
  vertical-align: middle;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.dash-metric {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.dash-metric-label {
  font-size: 0.63rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  line-height: 1.3;
}
.dash-metric-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  line-height: 1;
  font-family: var(--font);
}
.dash-metric-delta {
  font-size: 0.65rem;
  font-weight: 600;
}
.dash-metric-delta.up { color: #34d399; }
.dash-chart {
  margin-bottom: 1.25rem;
}
.dash-chart-label {
  font-size: 0.63rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.dash-sparkline { width: 100%; height: 56px; display: block; }
.dash-claims {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dash-claim-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
}
.dash-claim-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-claim-dot.green { background: #34d399; }
.dash-claim-dot.yellow { background: #fbbf24; }
.dash-claim-text {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  flex: 1;
  font-family: var(--font-mono);
}
.dash-claim-amt {
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  font-family: var(--font-mono);
}

/* === UI Overhaul: Enhanced Cards === */
.pain-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 3px solid transparent;
}
.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--accent);
}
.blog-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* === Section Label Contrast Fix === */
.section-label {
  color: var(--primary);
  background: var(--accent-light);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  border: 1px solid rgba(43,127,212,0.2);
  font-size: 0.65rem;
}
.section-label::before { display: none; }
.section-dark .section-label,
.section-mid .section-label {
  background: rgba(255,255,255,0.12);
  color: #D9ECFF !important; /* overrides inline color:var(--accent) on hero labels */
  border-color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
}

/* === Sticky Mobile CTA Bar === */
.sticky-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--primary-dark);
  border-top: 2px solid var(--accent);
  padding: 0.85rem 1.25rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.sticky-cta-bar a {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--cta), #3B8FE0);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
}
.sticky-cta-bar a:hover { filter: brightness(1.08); text-decoration: none; color: white; }
@media (max-width: 768px) {
  .sticky-cta-bar { display: block; }
  body { padding-bottom: 72px; }
}

/* 22. CTA Section */
.cta-section { padding: 5rem 0; text-align: center; }
.cta-section h2 { margin-bottom: 0.85rem; }
.cta-section p { font-size: 1rem; color: rgba(255,255,255,0.7); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* 23. Footer */
.site-footer { background: #1A3560; color: white; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; margin-bottom: 3rem; }
.footer-col h4 { font-size: 0.67rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col a { font-size: 0.86rem; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 2rem; display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
.footer-brand-wrap { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-logo { height: 40px; width: 40px; object-fit: contain; border-radius: 50%; background: white; padding: 2px; opacity: 0.9; }
.footer-brand-text { font-size: 0.8rem; color: rgba(255,255,255,0.4); line-height: 1.65; }
.footer-legal { }
.footer-disclaimer { font-size: 0.76rem; color: rgba(255,255,255,0.3); line-height: 1.65; margin-bottom: 0.65rem; }
.footer-copyright { font-size: 0.72rem; color: rgba(255,255,255,0.22); }

/* 24. Utilities */
.teal { color: var(--accent); }
.text-center { text-align: center; }
.text-white { color: white; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.gap-1 { gap: 1rem; }
.section-heading { margin-bottom: 2.5rem; }
.section-heading p { color: var(--text-muted); font-size: 1.02rem; margin-top: 0.65rem; max-width: 580px; }
.section-heading.center { text-align: center; }
.section-heading.center p { margin-left: auto; margin-right: auto; }

/* 25. Responsive */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 340px; gap: 2.5rem; }
  .guide-layout { grid-template-columns: 1fr 310px; }
  .intro-grid { grid-template-columns: 1fr 340px; }
  .about-content-grid { grid-template-columns: 1fr 290px; }
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.08); }
  .trust-metrics { grid-template-columns: repeat(2, 1fr); }
  .trust-metric:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .audit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.2rem;
    overflow-y: auto;
    z-index: 999;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-dropdown-menu { position: static; transform: none; min-width: auto; box-shadow: none; border: none; background: rgba(255,255,255,0.04); border-radius: 6px; margin-top: 0.25rem; }
  .dropdown-grid { grid-template-columns: 1fr; gap: 0; }
  .dropdown-item strong { color: rgba(255,255,255,0.8); }
  .dropdown-item span { color: rgba(255,255,255,0.45); }
  .dropdown-item:hover { background: rgba(255,255,255,0.06); }
  .nav-link, .nav-dropdown-btn { color: rgba(255,255,255,0.8); width: 100%; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-badge-col { order: -1; }
  .badge-img { width: 160px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary, .hero-ctas .btn-ghost { justify-content: center; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; }
  .intro-grid { grid-template-columns: 1fr; }
  .resource-row { grid-template-columns: 1fr; }
  .footer-bottom { grid-template-columns: 1fr; }
  .editorial-grid { grid-template-columns: 1fr; }
  .about-content-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}
@media (max-width: 520px) {
  .container { padding: 0 1.1rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(3) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons a { text-align: center; justify-content: center; }
  .trust-badges { flex-direction: row; }
}

/* Guide Illustrations */
.guide-illustration {
  width: 100%;
  border-radius: var(--radius-card);
  margin: 1.75rem 0 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: block;
}
/* ===== Phase 2: Accessibility + Footer Newsletter ===== */
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 2000;
  background: var(--primary); color: #fff; font-weight: 600;
  padding: .75rem 1.25rem; border-radius: 0 0 8px 8px;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; text-decoration: none; outline: 3px solid var(--accent); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.footer-newsletter {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap; padding: 1.75rem 0; margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-newsletter-text h4 { color: #fff; margin: 0 0 .3rem; font-size: 1rem; text-transform: none; letter-spacing: 0; }
.footer-newsletter-text p { color: rgba(255,255,255,.68); font-size: .85rem; margin: 0; max-width: 420px; line-height: 1.55; }
.footer-newsletter-form { display: flex; gap: .625rem; flex-wrap: wrap; align-items: center; }
.footer-newsletter-form .form-input {
  min-width: 240px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 8px; padding: .7rem .9rem;
}
.footer-newsletter-form .form-input::placeholder { color: rgba(255,255,255,.45); }
.footer-newsletter-form .btn-primary { padding: .7rem 1.25rem; }
@media (max-width: 640px) { .footer-newsletter { flex-direction: column; align-items: flex-start; } }