/* ==========================================================================
   Magnolia Assurant Group — Insurance pages
   Page-specific styles only (quote tiles, comparison tables, mailer art,
   small accents). Everything else comes from styles.css — don't duplicate.
   ========================================================================== */

/* ---------- Hero helpers ---------- */
.jump-links { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.jump-links a {
  display: inline-flex; align-items: center; gap: .4em; padding: .5em 1.05em; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: .9rem;
  transition: background-color .2s, border-color .2s;
}
.jump-links a:hover { background: rgba(236, 168, 52, .16); border-color: var(--gold); color: #fff; }
.jump-links .icon { color: var(--gold); }
.page-hero .btn-row { margin-top: 1.75rem; }
.page-hero .hero__points + .btn-row { margin-top: 0; }

/* Long CTA labels wrap instead of stretching cards/columns on small phones */
@media (max-width: 480px) {
  main .btn { white-space: normal; text-align: center; }
  main .btn--lg { padding-inline: 1.4em; }
}

/* Hero quote card */
.hero-card__title { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-bottom: .3rem; }
.hero-card__sub { color: var(--muted); margin-bottom: 1.2rem; }
.hero-card .eyebrow { margin-bottom: .6rem; }
.hero-card__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  margin: 1.1rem 0 0; font-size: .88rem; color: var(--muted);
}
.hero-card__foot > span { display: inline-flex; align-items: center; gap: .45em; }
.hero-card__foot .icon { color: var(--gold-ink); }
.hero-card__foot a { font-weight: 600; }

.quote-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.quote-tiles .quick-tile { padding: 1rem; gap: .8rem; min-height: 78px; }
.quote-tiles .quick-tile small { font-size: .8rem; }
@media (max-width: 480px) {
  .quote-tiles .quick-tile { flex-direction: column; align-items: flex-start; gap: .55rem; padding: .9rem; }
}
@media (max-width: 400px) { .quote-tiles .quick-tile small { display: none; } }

/* "Who gets the check?" list (mortgage hero) */
.payee-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .6rem; }
.payee-list li {
  display: flex; gap: .85rem; align-items: flex-start; padding: .85rem 1rem;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.payee-list li.is-yes { background: var(--gold-50); border-color: var(--gold-200); }
.payee-list strong { display: block; font-family: var(--font-display); font-weight: 600; line-height: 1.3; }
.payee-list li > div > span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.payee-list__icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: .1em; }
.payee-list__icon .icon { width: 16px; height: 16px; }
.is-yes .payee-list__icon { background: var(--low); color: #fff; }
.is-no .payee-list__icon { background: var(--high-bg); color: var(--high); }

/* Stat tiles (dark sections) */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.stat-tile { padding: 1.5rem 1.35rem; border-radius: var(--r); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.stat-tile .stat__num { color: var(--gold); }
@media (max-width: 420px) { .stat-grid { grid-template-columns: 1fr; } }

/* ---------- Card helpers ---------- */
.card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.card__top + h3 { margin-top: 1.1rem; }
.card--stack { display: flex; flex-direction: column; height: 100%; }
.card--stack > :last-child { margin-top: auto; }
.card .checklist { margin-bottom: 1.25rem; }
.best-for { font-size: .94rem; border-top: 1px solid var(--line); padding-top: .9rem; margin-bottom: 1rem; }
.card--teal .best-for { border-top-color: rgba(255, 255, 255, .14); }
.mini-card h3 { font-size: 1.14rem; margin-bottom: .4em; }
.mini-card p { font-size: .96rem; margin-bottom: 0; }
.mini-card .icon-badge + h3 { margin-top: 1rem; }
.big-letter { display: block; font-family: var(--font-display); font-size: 2.8rem; font-weight: 600; line-height: 1; color: var(--gold-ink); margin-bottom: .55rem; }
.example-note { font-size: .8rem; color: var(--muted-c); margin: 0; line-height: 1.5; }
.card--teal .result-rows { margin-top: .25rem; }
.card--teal .result-big { margin: .35rem 0 .8rem; }
.result-row--hl strong { color: var(--gold); }
/* Anchor cards on dark keep readable text on hover (a:hover would recolor them) */
a.card--teal:hover { color: var(--text); }
.card--teal a:not(.btn):hover, .section--teal a:not(.btn):hover, .cta-band a:not(.btn):hover { color: #fff; }

/* Red "x" list for problem statements */
.checklist--x li::before {
  background: var(--high-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B23A2B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center / 60% no-repeat;
}
@media (min-width: 641px) { .checklist--2col { grid-template-columns: 1fr 1fr; gap: .8rem 1.75rem; } }

/* Alternate split direction on desktop */
@media (min-width: 961px) { .split--flip > :first-child { order: 2; } }

/* ---------- Comparison tables ---------- */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.table-wrap:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.compare { width: 100%; min-width: 700px; border-collapse: separate; border-spacing: 0; font-size: .95rem; line-height: 1.5; }
.compare th, .compare td { padding: 1rem 1.2rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th {
  background: var(--teal); color: #fff; vertical-align: bottom;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.25;
}
.compare thead th small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--teal-300); margin-top: .25rem; }
.compare thead th.is-featured { background: var(--gold); color: var(--teal-900); }
.compare thead th.is-featured small { color: var(--teal-800); }
.compare tbody th { font-family: var(--font-display); font-weight: 600; color: var(--ink); background: var(--cream); width: 20%; }
.compare td { color: var(--body); }
.compare td.is-featured { background: var(--gold-50); color: var(--ink); }
.compare tbody tr:last-child > * { border-bottom: 0; }
/* Keep the row labels visible while scrolling sideways on phones */
.compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; }
.compare tbody th { box-shadow: 1px 0 0 var(--line); }
.compare .mark { display: inline-flex; align-items: flex-start; gap: .45em; }
.compare .mark .icon { width: 1.15em; height: 1.15em; margin-top: .15em; }
.compare .mark--yes .icon { color: var(--low); }
.compare .mark--no .icon { color: var(--high); }
.compare .mark--maybe .icon { color: var(--medium); }
.compare .mark strong { color: inherit; }
.table-note { font-size: .82rem; color: var(--muted); margin: .9rem 0 0; line-height: 1.55; }
.table-hint { display: none; align-items: center; gap: .4em; font-size: .82rem; color: var(--muted); margin: 0 0 .6rem; }
@media (max-width: 760px) {
  .table-hint { display: flex; }
  .compare { font-size: .9rem; }
  .compare th, .compare td { padding: .85rem .95rem; }
  .compare tbody th { width: 128px; min-width: 128px; }
}

/* ---------- "Letter in the mail" illustration ---------- */
.mailer-art { position: relative; width: min(420px, calc(100% - 1.5rem)); margin: 1rem auto 2.5rem; }
.mailer {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 1.75rem 1.6rem 2.1rem; transform: rotate(-2.5deg);
}
.mailer__stamp {
  display: inline-block; border: 2px solid var(--high); color: var(--high); border-radius: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .3em .7em; margin-bottom: .9rem; transform: rotate(-3deg);
}
.mailer__title { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.15rem; line-height: 1.25; margin-bottom: 1rem; }
.mailer__line { height: 9px; border-radius: 5px; background: var(--line); margin-bottom: .6rem; }
.mailer__line:nth-child(odd) { width: 92%; }
.mailer__line--short { width: 55% !important; }
.mailer__box { border: 1.5px dashed var(--line-strong); border-radius: 8px; padding: .75rem .9rem; margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.mailer__note {
  position: absolute; right: .5rem; bottom: -1.6rem; max-width: 230px;
  background: var(--gold); color: var(--teal-900); border-radius: 6px; padding: .85rem 1rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; line-height: 1.3;
  transform: rotate(3deg); box-shadow: 0 16px 30px -14px rgba(19, 39, 43, .55);
}
.mailer__note .icon { width: 1.1em; height: 1.1em; vertical-align: -.18em; }

/* ---------- Embedded calculators ---------- */
.calc-block + .calc-block { margin-top: clamp(3rem, 6vw, 4.5rem); }
.calc-block__head { text-align: center; max-width: 720px; margin: 0 auto 1.5rem; }
.calc-block__head h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.calc-block__head p { margin-bottom: 0; }
.calc-after { text-align: center; margin: 1.5rem auto 0; max-width: 720px; }
