/* Legacy Life Insurance Brokerage: Direction B "Plain Answers" */
:root {
  --ink: #14233C;          /* navy: text, outlines, footer */
  --ink-2: #33415A;        /* secondary text */
  --muted: #4A5872;        /* tertiary text (7:1 on white) */
  --blue: #1D4CC2;         /* primary action, links */
  --blue-deep: #123383;
  --paper: #FFFFFF;
  --tint: #F1F4F9;         /* section bands */
  --line: #C9D2DF;
  --line-soft: #DCE2EA;
  --marigold: #FCE7B8;     /* highlight surface; navy text on it */
  --gold: #F2B33D;         /* logo accent; used on navy backgrounds only */
  --marigold-ink: #4A3A12;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C9D2DF;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 28px);
  --radius: 8px;
  --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--marigold); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: 12px; }
.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; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(40px, 5.6vw, 70px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0; }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { margin-top: 28px; }
.prose h3 { margin-top: 10px; }
.prose ul, .prose ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 18px; font-family: var(--body); line-height: 1.2;
  padding: 14px 24px; min-height: 48px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--blue); color: var(--on-dark); }
.btn-primary:hover { background: var(--blue-deep); color: var(--on-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--tint); color: var(--ink); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: block; line-height: 0; text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
@media (max-width: 480px) { .brand img { height: 38px; } }
.nav-toggle { display: none; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 10px 14px; font: 700 16px var(--body); min-height: 44px; cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 17px; display: inline-block; padding: 10px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; color: var(--ink); }
.site-nav a.btn { color: var(--on-dark); padding: 11px 18px; text-decoration: none; }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; padding-bottom: 8px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-top: 1px solid var(--line-soft); }
  .site-nav a { display: block; padding: 14px 0; font-size: 19px; }
  .site-nav li:last-child { border-top: 0; }
  .site-nav a.btn { margin-top: 14px; text-align: center; }
}

/* Home hero: the need chooser */
.hero { padding-top: clamp(44px, 7vw, 72px); padding-bottom: clamp(48px, 7vw, 64px); display: flex; flex-direction: column; gap: 26px; }
.hero h1 { max-width: 22ch; font-size: clamp(34px, 4.2vw, 54px); letter-spacing: -0.015em; }
.hero-lede { font-size: 20px; max-width: 64ch; color: var(--ink-2); }
.needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.need { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; min-height: 96px; border: 2px solid var(--ink); border-radius: var(--radius-lg);
  color: var(--ink); text-decoration: none; background: var(--paper); }
.need strong { font-size: 20px; }
.need span { font-size: 16px; color: var(--muted); }
.need:hover { background: var(--tint); color: var(--ink); }
.need-unsure { background: var(--marigold); border-color: var(--marigold); }
.need-unsure span { color: var(--marigold-ink); }
.need-unsure:hover { background: #F8DC9C; }

/* Inner page intro */
.page-intro-band { background: var(--tint); border-bottom: 1px solid var(--line-soft); }
.page-intro { padding-top: clamp(40px, 6vw, 60px); padding-bottom: clamp(40px, 6vw, 60px); display: flex; flex-direction: column; gap: 16px; }
.page-intro h1 { max-width: 20ch; font-size: clamp(36px, 4.8vw, 56px); }
.page-intro p { font-size: 20px; max-width: 64ch; color: var(--ink-2); }
.crumbs { font-size: 16px; }
/* Optional page photo beside the intro (set "image" and "image_alt" in a page's meta) */
.intro-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; }
.intro-grid > .page-intro { flex: 1 1 420px; min-width: 0; }
.intro-photo { flex: 1 1 320px; max-width: 460px; margin: 0; padding-block: 32px; }
@media (max-width: 860px) {
  .intro-grid { gap: 0; }
  .intro-grid > .page-intro { padding-bottom: 24px; }
  .intro-photo { padding-block: 0 36px; }
}
.split-lead { display: flex; flex-direction: column; gap: 24px; }
.split-photo img { width: 100%; max-width: 440px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.intro-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); display: block; }

/* Sections */
.section { padding-top: clamp(56px, 7vw, 76px); padding-bottom: clamp(56px, 7vw, 76px); }
.section-tint { background: var(--tint); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; max-width: 64ch; }
.section-head p { color: var(--ink-2); }

.split { display: flex; flex-wrap: wrap; gap: 28px 64px; }
.split > :first-child { flex: 1 1 280px; }
.split > :last-child { flex: 2 1 500px; min-width: 0; }
.steps { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 20px; }
.steps li { padding-left: 8px; }

/* Coverage index */
.coverage { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 44px; }
.coverage a { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.coverage a strong { font-size: 20px; color: var(--blue); }
.coverage a span { font-size: 16px; color: var(--muted); }
.coverage a:hover strong { text-decoration: underline; }

/* FAQ */
.faq { display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 20px; padding: 8px 0; list-style-position: outside; }
.faq details p { margin-top: 8px; color: var(--ink-2); max-width: 64ch; }

/* Comparison table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
thead th { background: var(--ink); color: var(--on-dark); font-weight: 700; }
tbody th { font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.disclosure { background: var(--tint); border-radius: var(--radius); padding: 18px 22px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 80ch; }
.note { font-size: 15px; color: var(--muted); }


/* CTA band */
.cta-band { background: var(--ink); color: var(--on-dark); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { color: var(--on-dark); max-width: 22ch; }
.cta-band p { color: var(--on-dark-muted); margin-top: 10px; }
.cta-band .btn-primary { background: var(--marigold); color: var(--ink); }
.cta-band .btn-primary:hover { background: #F8DC9C; color: var(--ink); }
.cta-band :focus-visible { outline-color: var(--marigold); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 20px; max-width: 640px; background: var(--paper); padding: clamp(20px, 4vw, 32px); border-radius: var(--radius-lg); border: 2px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: 17px; }
.field .hint { font-size: 15px; color: var(--muted); }
.field input, .field select, .field textarea { font: 18px var(--body); color: var(--ink); padding: 12px 14px; min-height: 48px; border: 2px solid #8A96A8; border-radius: var(--radius); background: var(--paper); width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; font-weight: 400; padding: 6px 0; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; flex: 0 0 auto; accent-color: var(--blue); }
.consent { font-size: 15px; line-height: 1.55; }
.form-notice { background: var(--marigold); color: var(--ink); padding: 14px 16px; border-radius: var(--radius); font-size: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.req { color: #9B2C0F; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 15px; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 24px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 28px 64px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-cols h2 { font-family: var(--body); font-size: 16px; font-weight: 700; color: var(--on-dark); margin-bottom: 8px; letter-spacing: 0; }
.footer-brand { margin-bottom: 10px; line-height: 0; }
.footer-brand img { height: 48px; width: auto; display: block; }
.site-footer a { color: var(--on-dark); }
.site-footer :focus-visible { outline-color: var(--marigold); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; max-width: 95ch; line-height: 1.6; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Long-form pages: align body copy with the page title; keep a readable line length */
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 68ch; }
.wrap.prose > .table-scroll { max-width: 100%; }

/* Medicare Supplement comparison grid */
.table-scroll { position: relative; }  /* keeps absolutely positioned screen-reader text inside the scroll box */
.medigap table { min-width: 860px; font-size: 15px; }
.medigap caption { text-align: left; padding: 12px 16px; font-weight: 700; color: var(--ink); caption-side: top; }
.medigap thead th { text-align: center; white-space: nowrap; }
.medigap thead th:first-child { text-align: left; }
.medigap tbody th { font-weight: 400; min-width: 220px; position: sticky; left: 0; background: var(--paper); z-index: 1; box-shadow: 1px 0 0 var(--line); }
.medigap thead th:first-child { position: sticky; left: 0; z-index: 2; }
.medigap td { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.medigap .mg-yes { font-weight: 700; color: var(--ink); }
.medigap .mg-no, .medigap .mg-na { color: var(--muted); }
.medigap tbody tr:nth-child(even) th, .medigap tbody tr:nth-child(even) td { background: var(--tint); }
.mg-notes { font-size: 15px; color: var(--ink-2); }
@media (max-width: 640px) {
  .medigap table { font-size: 14px; min-width: 760px; }
  .medigap tbody th { min-width: 132px; max-width: 150px; padding: 10px 10px; }
  .medigap td, .medigap thead th { padding: 10px 8px; }
}

/* Photo beside the "Schedule a call" button in the closing band */
.cta-action { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--marigold); background: var(--ink-2); flex: 0 0 auto; }
@media (max-width: 640px) { .cta-photo { width: 72px; height: 72px; } }

/* UnitedHealthOne page: self-service vs. help panel, product lists */
.quote-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.quote-option { border: 2px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; background: var(--paper); }
.quote-option h3 { font-size: 22px; }
.quote-option:first-child { border-color: var(--ink); }
.quote-embed { display: inline-block; line-height: 0; }
.quote-embed img { max-width: 100%; height: auto; }
.product-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 40px; }
.product { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.product h3 { font-size: 20px; color: var(--blue); }
.product p { font-size: 17px; color: var(--ink-2); }
