/* MedicareQuotesForYou - shared styles
   Audience is 65+: large type, high contrast, generous tap targets.
   No external fonts or CDN assets - speed and crawlability come first. */

:root {
  --ink: #16202c;
  --ink-soft: #46566b;
  --line: #d8e0e8;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --brand: #12507d;
  --brand-dark: #0d3a5c;
  --accent: #0f7a4f;
  --warn-bg: #fff8e6;
  --warn-line: #e8c96a;
  --maxw: 780px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 19px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.brand {
  font-size: 20px; font-weight: 700; color: var(--brand);
  text-decoration: none; letter-spacing: -0.01em;
}
.brand span { display: block; font-size: 13px; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }
.head-call {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 17px; padding: 11px 18px; border-radius: 8px; white-space: nowrap;
}
.head-call:hover { background: #0c6440; }

/* ---------- nav ---------- */
.site-nav { border-bottom: 1px solid var(--line); background: var(--bg-soft); font-size: 16px; }
.site-nav .wrap { display: flex; gap: 22px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.site-nav a { color: var(--brand); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

/* ---------- typography ---------- */
main { padding: 34px 0 48px; }
h1 { font-size: 34px; line-height: 1.22; margin: 0 0 14px; letter-spacing: -0.02em; }
h2 { font-size: 26px; line-height: 1.28; margin: 40px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 21px; margin: 26px 0 8px; }
p { margin: 0 0 16px; }
a { color: var(--brand); }
ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin-bottom: 8px; }

.byline {
  font-size: 15px; color: var(--ink-soft); margin: 0 0 26px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.byline strong { color: var(--ink); }

/* ---------- BLUF answer card (the block AI engines extract) ---------- */
.answer {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  padding: 20px 22px;
  margin: 0 0 28px;
}
.answer h2 { font-size: 17px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.answer p { margin-bottom: 10px; }
.answer p:last-child { margin-bottom: 0; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; margin: 0 0 22px; }
table { border-collapse: collapse; width: 100%; font-size: 17px; min-width: 520px; }
caption { text-align: left; font-size: 15px; color: var(--ink-soft); padding-bottom: 8px; }
th, td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
thead th { background: var(--bg-soft); font-weight: 700; }
tbody th { background: #fbfcfd; font-weight: 600; }

/* ---------- callouts ---------- */
.note {
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: 8px; padding: 16px 18px; margin: 0 0 22px; font-size: 17px;
}
.note strong { display: block; margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.faq { margin: 0 0 24px; }
.faq details {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 18px; margin-bottom: 10px; background: var(--bg);
}
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; }
.faq details[open] summary { margin-bottom: 10px; }
.faq p:last-child { margin-bottom: 0; }

/* ---------- lead form ---------- */
.lead {
  border: 2px solid var(--brand); border-radius: 12px;
  padding: 24px; margin: 36px 0; background: var(--bg);
}
.lead h2 { margin-top: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 5px; }
.field input, .field select {
  width: 100%; font-size: 18px; padding: 12px 12px;
  border: 1px solid #9fb0c0; border-radius: 7px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 3px solid #a9cdeb; border-color: var(--brand); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.consent {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 14px; line-height: 1.5; color: var(--ink-soft);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 7px; padding: 14px; margin: 16px 0;
}
.consent input[type=checkbox] { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; }

.btn {
  display: block; width: 100%; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 20px; font-weight: 700;
  padding: 16px; cursor: pointer;
}
.btn:hover { background: #0c6440; }
.btn:disabled { background: #8aa0ae; cursor: not-allowed; }
.form-msg { font-size: 16px; margin-top: 12px; }
.form-msg.err { color: #a3231f; }
.success { text-align: center; padding: 18px 0; }
.success h3 { font-size: 24px; margin-top: 0; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  font-size: 15px; color: var(--ink-soft); padding: 30px 0 44px; line-height: 1.6;
}
.site-foot a { color: var(--brand); }
.site-foot .nap { margin-bottom: 16px; }
.disclaimer { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }

/* ================= HOMEPAGE ================= */
/* Design goal: read as a credible publisher, not an insurance landing page.
   No urgency banners, no stock photography, no unverifiable claims. */

.hero {
  background: linear-gradient(180deg, #f7fafc 0%, #eef4f9 100%);
  border-bottom: 1px solid var(--line);
  padding: 46px 0 40px;
}
.hero h1 {
  font-size: 40px; line-height: 1.16; margin: 0 0 16px;
  letter-spacing: -0.025em; max-width: 15ch;
}
.hero .sub {
  font-size: 21px; line-height: 1.55; color: var(--ink-soft);
  margin: 0 0 26px; max-width: 56ch;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-primary, .btn-ghost {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 18px;
  padding: 15px 26px; border-radius: 8px; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0c6440; }
.btn-ghost { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }

/* Trust strip: only factual, verifiable statements belong here. */
.trust {
  border-bottom: 1px solid var(--line); background: var(--bg);
  font-size: 16px; color: var(--ink-soft);
}
.trust .wrap {
  display: flex; flex-wrap: wrap; gap: 10px 30px;
  padding-top: 15px; padding-bottom: 15px;
}
.trust span { display: flex; align-items: baseline; gap: 9px; }
.trust span::before {
  content: ""; flex: 0 0 auto; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent); transform: translateY(-2px);
}

/* Guide cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 12px; }
.card {
  border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px;
  background: var(--bg); display: flex; flex-direction: column;
}
.card:hover { border-color: var(--brand); }
.card .kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px;
}
.card h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.3; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { font-size: 17px; color: var(--ink-soft); margin: 0 0 14px; }
.card .go { margin-top: auto; font-size: 16px; font-weight: 700; text-decoration: none; }

/* Numbered key-fact list */
.keyfacts { list-style: none; padding: 0; margin: 0 0 12px; counter-reset: kf; }
.keyfacts li {
  counter-increment: kf; position: relative;
  padding: 0 0 0 52px; margin-bottom: 22px;
}
.keyfacts li::before {
  content: counter(kf); position: absolute; left: 0; top: 1px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.keyfacts strong { display: block; margin-bottom: 3px; }

.section-intro { font-size: 18px; color: var(--ink-soft); margin: -4px 0 20px; max-width: 62ch; }

@media (max-width: 760px) {
  .hero { padding: 32px 0 30px; }
  .hero h1 { font-size: 30px; max-width: none; }
  .hero .sub { font-size: 19px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { width: 100%; }
  .cards { grid-template-columns: 1fr; }
}

/* ---------- sticky mobile call bar ---------- */
.callbar { display: none; }

@media (max-width: 700px) {
  body { font-size: 18px; }
  h1 { font-size: 28px; }
  h2 { font-size: 23px; }
  .row2 { grid-template-columns: 1fr; }
  .head-call { display: none; }
  main { padding-bottom: 96px; }
  .callbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--accent); border-top: 1px solid #0a5334;
  }
  .callbar a {
    display: block; text-align: center; color: #fff; text-decoration: none;
    font-size: 20px; font-weight: 700; padding: 16px;
  }
}
