:root {
  --primary-navy: #0a192f;
  --navy-light: #172a45;
  --navy-card: #112240;
  --accent-gold: #d4af37;
  --accent-gold-hover: #b8972b;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.35);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-sans:
    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

/* ==========================================================================
   MOBILE-FIRST GLOBAL RESET & VIEWPORT LOCK
   ========================================================================== */

html {
  box-sizing: border-box;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Base Container (Fluid Mobile First) */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================================
   MOBILE-FIRST HEADER & NAVIGATION
   ========================================================================== */

header {
  background: var(--primary-navy);
  color: var(--text-light);
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--accent-gold);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-block h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-light);
  line-height: 1.1;
}

.brand-block span {
  display: block;
  font-size: 0.68rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  width: 100%;
}

.header-nav a {
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  color: var(--text-light);
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.contact-pill:hover {
  background: var(--accent-gold);
  color: var(--primary-navy);
}

/* ==========================================================================
   MOBILE-FIRST HERO SECTION
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #112240 100%);
  color: var(--text-light);
  padding: 2.25rem 0 2.75rem;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.hero-content {
  width: 100%;
}

.badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  word-break: break-word;
}

.hero h2 span.highlight {
  color: var(--accent-gold);
  background: linear-gradient(
    180deg,
    transparent 70%,
    rgba(212, 175, 55, 0.2) 70%
  );
}

.hero-sub {
  font-size: 0.98rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.trust-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.trust-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.trust-bullets svg {
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #c49a26 100%);
  color: var(--primary-navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-gold);
  transition: all 0.25s ease;
  width: 100%;
  text-align: center;
  min-height: 48px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.45);
}

.book-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.book-img-wrapper {
  margin: 0 auto 1.25rem;
  max-width: 220px;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
}

.book-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.book-caption {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
}

.book-caption strong {
  color: var(--text-light);
}

/* ==========================================================================
   MOBILE-FIRST SECTIONS & CARDS
   ========================================================================== */

.section {
  padding: 2.75rem 0;
  width: 100%;
}

.section-alt {
  background: #ffffff;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem;
  width: 100%;
}

.section-head h2,
.section-head h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-navy);
  margin-bottom: 0.65rem;
  line-height: 1.25;
  word-break: break-word;
}

.section-head p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  width: 100%;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card.highlighted {
  border-top: 4px solid var(--accent-gold);
  background: #fbfdff;
}

.card-icon {
  width: 44px;
  height: 44px;
  background: rgba(212, 175, 55, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.badge-risk {
  background: #fee2e2;
  color: #991b1b;
}

.badge-guarantee {
  background: #ecfdf5;
  color: #065f46;
}

/* ==========================================================================
   MOBILE-FIRST INTERACTIVE SIMULATOR (THE INCOME PLANNER)
   ========================================================================== */

.simulator-wrap {
  background: var(--primary-navy);
  color: var(--text-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.sim-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

.sim-inputs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.slider-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  width: 100%;
}

.slider-val {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 1.05rem;
}

input[type="range"] {
  width: 100%;
  max-width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #334155;
  outline: none;
  margin: 0.4rem 0;
  -webkit-appearance: none;
  box-sizing: border-box;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.sim-output-card {
  background: var(--navy-card);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.output-metric {
  margin-bottom: 1.25rem;
}

.output-metric span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.output-metric .number {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.1;
  word-break: break-word;
}

.ladder-preview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
  border-top: 1px solid #334155;
  padding-top: 1.25rem;
  width: 100%;
}

.ladder-tier {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  width: 100%;
  text-align: left;
}

.ladder-tier strong {
  display: block;
  color: var(--text-light);
  font-size: 0.88rem;
}

/* ==========================================================================
   MOBILE-FIRST AUTHOR SECTION (MARY LEE & RICK LOEK)
   ========================================================================== */

.author-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.author-grid h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
}

.author-photo-wrapper {
  position: relative;
  max-width: 260px;
  width: 100%;
}

.author-photo {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--accent-gold);
}

.author-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--primary-navy);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  border-left: 4px solid var(--accent-gold);
  padding-left: 1rem;
}

/* ==========================================================================
   FIDUCIARY-GRADE ACCESSIBLE MODAL & DIALOG SYSTEM (MOBILE-FIRST)
   ========================================================================== */

/* Native <dialog> and custom modal container */
dialog.lead-modal,
.modal-box,
.modal-content {
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(10, 25, 47, 0.35), 0 0 0 1px rgba(212, 175, 55, 0.2);
  padding: 1.75rem 1.35rem;
  width: calc(100% - 1.5rem);
  max-width: 520px;
  margin: auto;
  position: relative;
  box-sizing: border-box;
  overflow: visible;
}

dialog.lead-modal::backdrop {
  background: rgba(10, 25, 47, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-y: auto;
  padding: 1rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 25, 47, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Modal Header Bar */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.95rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  text-align: left;
  width: 100%;
}

.modal-header-content {
  flex: 1;
  padding-right: 0.5rem;
  text-align: left;
}

.modal-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  color: #b45309;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.modal-header h3,
#modalTitle {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.25;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
  text-align: left;
}

.modal-header p,
#modalSubtitle,
#modalDesc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

/* Modern Accessible Circular Close Button */
.btn-close,
.modal-close {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-close:hover,
.modal-close:hover {
  background: #e2e8f0;
  color: var(--primary-navy);
  transform: scale(1.05);
}

.btn-close:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid var(--accent-gold) !important;
  outline-offset: 2px;
}

/* Form Groups & Inputs */
.form-group {
  margin-bottom: 1.1rem;
  width: 100%;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-input {
  width: 100%;
  max-width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: var(--text-dark);
  font-size: 16px !important; /* Invariant: Stop iOS Safari auto-zoom */
  min-height: 48px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-input:focus {
  border-color: var(--accent-gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  outline: none;
}

/* Form Submit Button in Modal */
.form-submit-btn {
  width: 100%;
  min-height: 52px;
  padding: 0.95rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #c49a26 100%);
  color: var(--primary-navy);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all 0.25s ease;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
}

.form-submit-btn:hover {
  background: linear-gradient(135deg, #e5bf42 0%, var(--accent-gold) 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.45);
}

.form-submit-btn:active {
  transform: translateY(0);
}

/* TCPA Disclosure */
.tcpa-disclosure {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.45;
  margin: 1rem 0;
  background: #f8fafc;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  width: 100%;
  text-align: left;
}

/* Modal Security / Privacy Guarantee strip */
.modal-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 1rem;
  text-align: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   MOBILE-FIRST FOOTER & COMPLIANCE
   ========================================================================== */

footer {
  background: #020c1b;
  color: #94a3b8;
  padding: 2.75rem 0 2rem;
  font-size: 0.82rem;
  border-top: 1px solid #1e293b;
  width: 100%;
}

.footer-disclaimer {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #1e293b;
  font-size: 0.8rem;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: underline;
  font-size: 0.82rem;
}

/* Presence Grid */
.presence-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
  width: 100%;
}

.presence-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.presence-links {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-map,
.btn-yelp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  min-height: 44px;
}

.btn-map {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.btn-yelp {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

/* Onesta Callout */
.onesta-callout {
  background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  color: #f8fafc;
  margin-top: 2rem;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.onesta-callout h4 {
  font-size: 1.15rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.onesta-callout p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.onesta-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  min-height: 48px;
}

/* FAQ / AEO */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  margin: 1.5rem auto 0;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-navy);
  background: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
}

.faq-answer {
  padding: 0 1.15rem 1.15rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

.fn-ref {
  color: var(--accent-gold);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85em;
  padding: 0 2px;
}

.compliance-footnotes {
  background: #061121;
  border-left: 3px solid var(--accent-gold);
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #94a3b8;
  word-break: break-word;
}

/* ==========================================================================
   MEDICARE SPECIALIZED STYLES
   ========================================================================== */

.tpmo-disclaimer-box {
  background: #f1f5f9;
  border-left: 4px solid #0284c7;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #334155;
  margin: 1.25rem 0;
}

.tpmo-disclaimer-box.dark {
  background: #0f172a;
  border-left-color: var(--accent-gold);
  color: #cbd5e1;
}

.medicare-paths-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
}

.path-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  padding: 1.5rem 1.15rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.path-card.featured {
  border-color: #0284c7;
  box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.15);
}

.path-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.path-badge.badge-blue {
  background: #e0f2fe;
  color: #0369a1;
}

.path-badge.badge-gold {
  background: #fef3c7;
  color: #b45309;
}

.path-header h3 {
  font-size: 1.35rem;
  color: var(--primary-navy);
  margin-bottom: 0.35rem;
}

.path-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.path-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: #334155;
}

.path-features li {
  line-height: 1.5;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.5rem;
}

.timeline-grid {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 1.5rem;
  width: 100%;
}

.timeline-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.15rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  width: 100%;
}

.timeline-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #d97706;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.5rem;
}

.timeline-card h4 {
  font-size: 1.15rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.timeline-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.drug-cap-callout {
  background: linear-gradient(135deg, #0a192f 0%, #1e3a5f 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.15rem;
  margin-top: 2rem;
  border: 1px solid var(--accent-gold);
  width: 100%;
}

.drug-cap-callout h3 {
  font-size: 1.25rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.drug-cap-callout p {
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.medicare-guide-card {
  background: var(--primary-navy);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
  width: 100%;
}

.guide-cover-col img {
  max-width: 180px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-gold);
  margin: 0 auto;
}

.term-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  width: 100%;
}

.modal-name-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.table-scroll-hint {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 0.5rem;
  font-style: italic;
}

/* ==========================================================================
   STAN THE ANNUITY MAN / iXRAY ANNUITY PORTAL STYLES (MOBILE FIRST)
   ========================================================================== */

.pill-grid {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 1.5rem;
  width: 100%;
}

.pill-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.15rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.pill-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-navy);
  color: var(--accent-gold);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  border: 2px solid var(--accent-gold);
}

.pill-card h3 {
  font-size: 1.15rem;
  color: var(--primary-navy);
  margin-bottom: 0.35rem;
}

.pill-card p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
}

.diagnostic-container {
  background: #ffffff;
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.15rem;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
  width: 100%;
}

.diagnostic-q-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
}

.diagnostic-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.diag-btn {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 48px;
  width: 100%;
  text-align: left;
  line-height: 1.4;
}

.diag-btn.active {
  background: var(--primary-navy);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: 0 2px 8px rgba(10, 25, 47, 0.25);
}

.diag-result-box {
  background: #f8fafc;
  border-left: 4px solid var(--accent-gold);
  padding: 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1.25rem;
}

.ixray-calculator {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.35rem 1.15rem;
  margin: 1.75rem 0;
  width: 100%;
}

.calc-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

.calc-control-group {
  margin-bottom: 1.25rem;
  width: 100%;
}

.calc-control-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.45rem;
}

.calc-output-panel {
  background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.15rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  width: 100%;
}

.calc-metric {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-metric:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.calc-metric-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.calc-metric-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.15;
}

.calc-metric-sub {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-top: 0.25rem;
  line-height: 1.45;
}

/* Responsive Truth Audit Table (Card Layout on Mobile) */
.truth-table-container {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.truth-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.truth-table th {
  padding: 1rem 1.15rem;
  font-weight: 700;
}

.truth-table th.col-feature {
  background: #f1f5f9;
  color: var(--primary-navy);
  width: 25%;
}

.truth-table th.col-might {
  background: #fee2e2;
  color: #991b1b;
  width: 37.5%;
}

.truth-table th.col-will {
  background: #ecfdf5;
  color: #065f46;
  width: 37.5%;
}

.truth-table td {
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--border-color);
  vertical-align: top;
  line-height: 1.5;
}

.truth-table td.col-might {
  background: #fff5f5;
  color: #7f1d1d;
}

.truth-table td.col-will {
  background: #f0fdf4;
  color: #14532d;
}

.triage-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.75rem 0;
  width: 100%;
}

.triage-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.15rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.triage-card.highlight {
  border-color: var(--accent-gold);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15);
}

.triage-tier-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   DIGITAL ACCESSIBILITY (ADA Title III & WCAG 2.2 AA)
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--accent-gold);
  color: var(--primary-navy);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: top 0.15s ease-in;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 3px solid #ffffff !important;
  outline-offset: 2px !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-gold) !important;
  outline-offset: 3px !important;
}

.tcpa-disclosure {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 1rem;
  background: #f8fafc;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  width: 100%;
}

/* ==========================================================================
   PROGRESSIVE ENHANCEMENT: TABLETS (min-width: 768px)
   ========================================================================== */

@media (min-width: 768px) {
  header {
    padding: 1rem 1.5rem;
  }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

  .header-nav {
    width: auto;
    justify-content: flex-end;
  }

  .hero {
    padding: 4.5rem 0 5rem;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
  }

  .hero h2 {
    font-size: 2.65rem;
  }

  .hero-sub {
    font-size: 1.15rem;
  }

  .btn-primary {
    width: auto;
    display: inline-flex;
  }

  .section {
    padding: 4.5rem 0;
  }

  .section-head h3 {
    font-size: 2.15rem;
  }

  .cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .card {
    padding: 2.25rem 2rem;
  }

  /* Simulator Tablet */
  .simulator-wrap {
    padding: 2.75rem 2.25rem;
    border-radius: var(--radius-lg);
  }

  .sim-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
    align-items: center;
  }

  .sim-output-card {
    padding: 2.25rem 1.75rem;
    border-radius: var(--radius-md);
  }

  .output-metric .number {
    font-size: 2.65rem;
  }

  .ladder-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .ladder-tier {
    text-align: center;
  }

  /* Author Tablet */
  .author-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3.5rem;
  }

  .author-grid h3 {
    font-size: 2.15rem;
  }

  .presence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .medicare-paths-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .path-card {
    padding: 2rem;
  }

  .timeline-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .timeline-card {
    padding: 1.75rem;
  }

  .drug-cap-callout {
    padding: 2.25rem;
  }

  .medicare-guide-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding: 3rem;
    text-align: left;
    align-items: center;
  }

  .term-btn-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .modal-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  dialog.lead-modal,
  .modal-box,
  .modal-content {
    padding: 2.25rem 2rem;
    border-radius: var(--radius-lg);
  }

  .modal-header h3,
  #modalTitle {
    font-size: 1.55rem;
  }

  .table-scroll-hint {
    display: none;
  }

  /* iXray & PILL Tablet */
  .pill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .diagnostic-container {
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    margin: 3rem auto;
  }

  .diagnostic-options {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .diag-btn {
    width: auto;
  }

  .ixray-calculator {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
  }

  .calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .calc-output-panel {
    padding: 2rem;
    border-radius: var(--radius-md);
  }

  .calc-metric-val {
    font-size: 1.9rem;
  }

  .triage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

  .footer-copy {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* ==========================================================================
   PROGRESSIVE ENHANCEMENT: DESKTOP (min-width: 1024px)
   ========================================================================== */

@media (min-width: 1024px) {
  .container {
    max-width: 1140px;
    padding: 0 1.5rem;
  }

  .simulator-wrap {
    padding: 3.5rem;
  }

  .pill-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .timeline-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .output-metric .number {
    font-size: 2.85rem;
  }
}
