:root {
  --primary-navy: #0a192f;
  --navy-light: #172a45;
  --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;
}

* {
  box-sizing: border-box;
  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;
}

/* Header */
header {
  background: var(--primary-navy);
  color: var(--text-light);
  padding: 1.25rem 2rem;
  border-bottom: 2px solid var(--accent-gold);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

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

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

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #112240 100%);
  color: var(--text-light);
  padding: 4.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(
    circle at 80% 30%,
    rgba(212, 175, 55, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}

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

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

.hero h2 {
  font-size: 2.65rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.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: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.6;
}

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

.trust-bullets li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #e2e8f0;
}

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

.btn-primary {
  display: inline-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: 1.05rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-gold);
  transition: all 0.25s ease;
}

.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-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.book-img-wrapper {
  margin: 0 auto 1.5rem;
  max-width: 290px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.book-img-wrapper:hover {
  transform: scale(1.03) rotate(-1deg);
}

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

.book-caption {
  font-size: 0.85rem;
  color: #94a3b8;
}

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

/* Framework Section */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: #ffffff;
}

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

.section-head h3 {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

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

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

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

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

.card-icon {
  width: 52px;
  height: 52px;
  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: 1.25rem;
}

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

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

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

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

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

/* Interactive Simulator Section */
.simulator-wrap {
  background: var(--primary-navy);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
}

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

.sim-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
}

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

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

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

.sim-output-card {
  background: #112240;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
}

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

.output-metric span {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.output-metric .number {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.ladder-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
}

.ladder-tier {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

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

/* Meet Mary Lee Section */
.author-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}

.author-photo-wrapper {
  position: relative;
}

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

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

/* Modal Dialog */
dialog.lead-modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  background: #ffffff;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  margin: auto;
}

dialog::backdrop {
  background: rgba(10, 25, 47, 0.75);
  backdrop-filter: blur(4px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.5rem;
  color: var(--primary-navy);
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #94a3b8;
  cursor: pointer;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 16px !important; /* Non-negotiable Swain Mobile-First Standard: stops iOS Safari auto-zoom */
  min-height: 48px; /* Thumb tap target */
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: 2px solid var(--accent-gold);
  border-color: transparent;
}

.form-submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--accent-gold);
  color: var(--primary-navy);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-submit-btn:hover {
  background: var(--accent-gold-hover);
}

/* Footer & Compliance */
footer {
  background: #020c1b;
  color: #94a3b8;
  padding: 4rem 0 2.5rem;
  font-size: 0.8rem;
  border-top: 1px solid #1e293b;
}

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

.footer-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Local Presence & Service Area Grid */
.presence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.presence-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.presence-card.featured {
  border-color: var(--accent-gold);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.15);
  position: relative;
}

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

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

.presence-badge.virtual {
  background: #eff6ff;
  color: #1e40af;
}

.presence-badge.nationwide {
  background: #fef3c7;
  color: #92400e;
}

.presence-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.btn-map,
.btn-yelp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.btn-map:hover {
  background: #e2e8f0;
  color: #0f172a;
}

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

.btn-yelp:hover {
  background: #ffe4e6;
  color: #9f1239;
}

/* Onesta Wealth Management Demarcation Card */
.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: 2rem;
  color: #f8fafc;
  margin-top: 3rem;
  box-shadow: var(--shadow-md);
}

.onesta-callout h4 {
  font-size: 1.3rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.onesta-callout p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.onesta-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.onesta-link-btn:hover {
  background: var(--accent-gold);
  color: var(--primary-navy);
}

/* FAQ / AEO Section */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 2rem auto 0;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent-gold);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid #f1f5f9;
  margin-top: -0.25rem;
  padding-top: 1rem;
}

/* Compliance Asterisk & Footnotes */
.fn-ref {
  color: var(--accent-gold);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85em;
  vertical-align: super;
  padding: 0 2px;
}

.fn-ref:hover {
  text-decoration: underline;
}

.compliance-footnotes {
  background: #061121;
  border-left: 3px solid var(--accent-gold);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  font-size: 0.8rem;
  line-height: 1.65;
  color: #94a3b8;
}

.compliance-footnotes:target {
  animation: highlightFootnote 2s ease;
}

@keyframes highlightFootnote {
  0% {
    background: #1a2a44;
  }
  100% {
    background: #061121;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .cards-grid,
  .sim-grid,
  .author-grid {
    grid-template-columns: 1fr;
  }
  .hero h2 {
    font-size: 2.15rem;
  }
  .hero {
    padding: 3rem 0 4rem;
  }
  .footer-copy {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero h2 {
    font-size: 1.85rem;
  }
  .container {
    padding: 0 1rem;
  }
  .modal-box {
    width: 100%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
}


/* ==========================================================================
   MEDICARE SPECIALIZED STYLES (Mary Lee Medicare Hub)
   ========================================================================== */

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

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

.medicare-paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.path-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.path-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

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

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

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

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

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

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

.path-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.path-features li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.5;
}

.path-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

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

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

.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.2rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.timeline-card p {
  font-size: 0.9rem;
  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: 2.25rem;
  margin-top: 2.5rem;
  border: 1px solid var(--accent-gold);
}

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

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