/* /insurance (insurance.php). Loads before modern.css, so every rule that adjusts a shared component is scoped with the
   body class .ins-page; the ins-* blocks are this page's own. Colors, radii, shadows and easing are the modern.css
   tokens only (the SVG art uses the illustration palette of the service animations, brief section 6). */

.ins-page [id] { scroll-margin-top: 104px; }

/* ---------- 1. Page header: the member card illustration on its stage, plan names floating round it ---------- */
.ins-page .ins-head { padding-bottom: 120px; }
.ins-head__visual { max-width: 500px; width: 100%; margin-inline: auto; }
.ins-page .ins-stage { max-width: 460px; overflow: visible; }
.ins-page .ins-stage .anim { width: 80%; }
.ins-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-float);
  font-size: 0.8125rem; font-weight: 650; line-height: 1.2; color: var(--ink); white-space: nowrap;
}
.ins-chip .icon { width: 16px; height: 16px; color: var(--accent); }
.ins-chip--1 { top: 5%; right: 6%; }
.ins-chip--2 { top: 40%; right: -3%; }
.ins-chip--3 { bottom: 22%; left: -2%; }
.ins-chip--4 { bottom: 5%; right: 12%; }
.ins-page .ins-head__count { top: 9%; left: 0; bottom: auto; right: auto; }
@media (max-width: 639.98px) {
  .ins-chip { font-size: 0.75rem; padding: 6px 11px 6px 8px; }
  .ins-chip--2 { right: 0; }
  .ins-chip--3 { left: 0; }
  .ins-chip--4 { display: none; }
  .ins-page .ins-head__count { top: 4%; left: 0; padding: 9px 14px 9px 9px; }
  .ins-page .ins-head__count .float-card__icon { width: 38px; height: 38px; }
}
@media (min-width: 1024px) {
  .ins-page .ins-head { padding-bottom: 176px; }
  .ins-page .ins-head__count { top: 12%; left: -44px; }
  .ins-chip--2 { right: -9%; }
  .ins-chip--3 { left: -8%; }
}

/* ---------- 2. The numbers: a glass stats panel over the header's bottom edge ---------- */
.ins-stats-wrap { position: relative; z-index: 2; margin-top: -72px; margin-bottom: 8px; }
.ins-page .ins-stats {
  --stats: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 18px 8px;
  border-radius: var(--r-card); background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow);
}
.ins-page .ins-stats .stat, .ins-page .ins-stats .stat:nth-child(2n + 1) { border-left: 1px solid var(--rule); padding: 6px 12px; }
.ins-page .ins-stats .stat:first-child { border-left: 0; }
.ins-page .ins-stats .stat__num { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 4rem); }
.ins-page .ins-stats .stat__label { font-size: 0.8125rem; }
@media (min-width: 768px) {
  .ins-page .ins-stats { padding: 26px 16px; }
  .ins-page .ins-stats .stat, .ins-page .ins-stats .stat:nth-child(2n + 1) { padding: 8px 28px; }
  .ins-page .ins-stats .stat__label { font-size: 0.9375rem; }
}
@media (min-width: 1024px) {
  .ins-stats-wrap { margin-top: -124px; margin-bottom: 0; }
  .ins-page .ins-stats { padding: 34px 24px; }
  .ins-page .ins-stats .stat, .ins-page .ins-stats .stat:nth-child(2n + 1) { padding: 6px 40px; }
  .ins-page .ins-stats .stat:first-child { padding-left: 40px; }
}

/* ---------- 3. The plans: name cards, numbered, A to Z ---------- */
.ins-plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.ins-plan {
  display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 76px; padding: 14px 18px 14px 14px;
  border-radius: 18px; background: var(--offwhite); box-shadow: var(--shadow-sm); border: 1px solid transparent;
  transition: background-color 400ms var(--ease-apex), box-shadow 400ms var(--ease-apex), border-color 400ms var(--ease-apex);
}
.ins-plan:hover { background: #fff; border-color: var(--rule); box-shadow: var(--shadow); }
.ins-plan__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--mint); color: var(--ink); transition: background-color 400ms var(--ease-apex), color 400ms var(--ease-apex); }
.ins-plan__icon .icon { width: 22px; height: 22px; }
.ins-plan:hover .ins-plan__icon { background: var(--ink); color: #fff; }
.ins-plan__name { display: grid; gap: 2px; min-width: 0; font-weight: 650; font-size: 1rem; line-height: 1.3; letter-spacing: -0.005em; color: var(--ink); }
.ins-plan__name small { font-size: 0.8125rem; font-weight: 500; line-height: 1.35; color: var(--muted); letter-spacing: 0; }
.ins-plan__num { margin-left: auto; padding-left: 8px; font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
@media (min-width: 640px) { .ins-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1024px) { .ins-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .ins-plan { min-height: 88px; padding: 18px 22px 18px 18px; } .ins-plan__icon { width: 48px; height: 48px; } }

.ins-missing {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center;
  margin-top: 24px; padding: 26px 24px; border-radius: var(--r-card);
  background: linear-gradient(120deg, var(--tint) 0%, #fff 70%); border: 1px solid var(--tint-2);
}
.ins-missing::after { content: ""; position: absolute; z-index: -1; right: -90px; top: -120px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid var(--rule-ink); opacity: 0.6; }
.ins-missing__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; }
.ins-missing__icon .icon { width: 26px; height: 26px; }
.ins-missing h3 { font-size: 1.25rem; }
.ins-missing p { margin-top: 4px; color: var(--muted); }
@media (min-width: 768px) {
  .ins-missing { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; padding: 28px 32px; }
}

/* ---------- 4. Savings plans: a white panel of chips on the mint panel ---------- */
.ins-page .ins-save .tag { background: #fff; border-color: transparent; }
.ins-save__list { margin-top: 4px; }
.ins-save__panel { position: relative; padding: 24px 20px 26px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lg); }
.ins-save__head {
  display: flex; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1.5px dashed var(--rule);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.ins-save__head span:first-child { color: var(--ink); }
.ins-save__chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.ins-save__chips li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px 12px 12px; border-radius: 14px; background: var(--mint-soft); font-weight: 650; font-size: 0.9875rem; line-height: 1.35; color: var(--ink); }
.ins-save__chips small { font-weight: 500; color: var(--muted); }
.ins-save__tick {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4.5 4.5 8.5-9.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (min-width: 640px) { .ins-save__chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ins-save__panel { padding: 30px 32px 32px; } }

/* ---------- 5. Paying: four cards, each with its own small illustration ---------- */
.ins-pay { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.ins-pay__card { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 24px 24px 28px; border-radius: var(--r-card); background: var(--offwhite); box-shadow: var(--shadow-sm); }
.ins-pay__art { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 12px; border-radius: 22px; background: radial-gradient(120% 90% at 30% 20%, #fff 0%, var(--tint) 60%, var(--tint-2) 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8); }
.ins-pay__art svg { width: 84px; height: 84px; overflow: visible; }
.ins-pay__card h3 { font-size: 1.1875rem; }
.ins-pay__card p { font-size: 0.9875rem; line-height: 1.6; color: var(--muted); }
.ins-page .ins-pay__card--ink { background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate; }
.ins-pay__card--ink::before { content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; right: -160px; top: -180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(1, 171, 238, 0.3), rgba(1, 171, 238, 0)); pointer-events: none; }
.ins-page .ins-pay__card--ink h3 { color: #fff; }
.ins-page .ins-pay__card--ink p { color: var(--on-ink-muted); }
.ins-page .ins-pay__card--ink .link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; padding-top: 6px; color: var(--on-ink-accent); white-space: nowrap; }
.ins-page .ins-pay__card--ink .link-arrow:hover { color: #fff; }
@media (min-width: 640px) { .ins-pay { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .ins-pay { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .ins-pay__card { padding: 28px 26px 32px; } }

/* ---------- 6. Checking your coverage ---------- */
.ins-coverage__note { display: flex; justify-content: center; align-items: flex-start; gap: 8px; margin: 36px auto 0; max-width: 64ch; text-align: center; font-size: 0.9375rem; color: var(--muted); }
.ins-coverage__note .icon { margin-top: 4px; color: var(--accent); }

/* ---------- 7. Insurance questions ---------- */
.ins-faq { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: start; }
.ins-faq__head .link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
@media (min-width: 1024px) { .ins-faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } .ins-faq__head { position: sticky; top: 112px; } }

/* ---------- Motion (html.motion, no reduced-motion preference) ----------
   The member card illustration breathes while it is on screen (.is-playing from site.js): the cards bob out of step,
   the seal's tick draws, the sparkles twinkle. The chips drift. The payment art moves on hover. Under reduced motion
   all of it holds its finished state. */
.anim--ins .ins-art__back, .anim--ins .ins-art__front, .anim--ins .ins-art__seal, .anim--ins .ins-art__spark { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  html.motion .anim--ins.is-playing .ins-art__back { animation: ins-bob 6s cubic-bezier(.65, 0, .35, 1) infinite; }
  html.motion .anim--ins.is-playing .ins-art__front { animation: ins-bob 6s cubic-bezier(.65, 0, .35, 1) -3s infinite; }
  html.motion .anim--ins.is-playing .ins-art__seal { animation: ins-seal 6s cubic-bezier(.22, 1, .36, 1) infinite; }
  html.motion .anim--ins.is-playing .ins-art__tick { stroke-dasharray: 34; animation: ins-tick 6s cubic-bezier(.65, 0, .35, 1) infinite; }
  html.motion .anim--ins.is-playing .ins-art__spark--a { animation: ins-twinkle 3s cubic-bezier(.65, 0, .35, 1) infinite; }
  html.motion .anim--ins.is-playing .ins-art__spark--b { animation: ins-twinkle 3s cubic-bezier(.65, 0, .35, 1) -1.5s infinite; }
  html.motion .ins-chip { animation: pw-scale-in 700ms var(--ease-apex) backwards, pw-float 8s ease-in-out infinite; }
  html.motion .ins-chip--1 { animation-delay: 800ms, 1.5s; }
  html.motion .ins-chip--2 { animation-delay: 950ms, -2s; }
  html.motion .ins-chip--3 { animation-delay: 1100ms, -4s; }
  html.motion .ins-chip--4 { animation-delay: 1250ms, -6s; }
  html.motion .ins-head__visual .float-card { animation: pw-rise 600ms var(--ease-apex) 420ms backwards, pw-float 7s ease-in-out 2s infinite; }

  html.motion .ins-pay__art svg * { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 500ms var(--ease-apex), opacity 500ms var(--ease-apex); }
  html.motion .ins-pay__card:hover .ins-pay__lift { transform: translateY(-4px) rotate(-4deg); }
  html.motion .ins-pay__card:hover .ins-pay__pin circle { animation: ins-pin 900ms var(--ease-apex) both; }
  html.motion .ins-pay__card:hover .ins-pay__pin circle:nth-child(2) { animation-delay: 120ms; }
  html.motion .ins-pay__card:hover .ins-pay__pin circle:nth-child(3) { animation-delay: 240ms; }
  html.motion .ins-pay__card:hover .ins-pay__pin circle:nth-child(4) { animation-delay: 360ms; }
  html.motion .ins-pay__card:hover .ins-pay__waves path { animation: ins-wave 1100ms var(--ease-apex) both; }
  html.motion .ins-pay__card:hover .ins-pay__waves path:nth-child(2) { animation-delay: 150ms; }
  html.motion .ins-pay__card:hover .ins-pay__waves path:nth-child(3) { animation-delay: 300ms; }
  html.motion .ins-pay__card:hover .ins-pay__q { transform: translateY(-3px) scale(1.06); }

  @keyframes ins-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
  @keyframes ins-seal { 0%, 8% { transform: scale(0.6); opacity: 0; } 22%, 100% { transform: scale(1); opacity: 1; } }
  @keyframes ins-tick { 0%, 18% { stroke-dashoffset: 34; } 36%, 100% { stroke-dashoffset: 0; } }
  @keyframes ins-twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.55); opacity: 0.5; } }
  @keyframes ins-pin { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
  @keyframes ins-wave { 0% { opacity: 0.2; } 50% { opacity: 1; } 100% { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .ins-plan, .ins-plan__icon { transition: none; }
}
@media (max-width: 639.98px) {
  .ins-plan { min-height: 64px; padding: 10px 16px 10px 10px; gap: 12px; }
  .ins-plan__icon { width: 38px; height: 38px; }
  .ins-plan__icon .icon { width: 19px; height: 19px; }
}

/* ---------- Review pass fixes ---------- */
/* The phone number in the coverage steps stays whole (the link carries a class, so the global tel rule does not reach it). */
.ins-page .nowrap { white-space: nowrap; }
