/* ==========================================================================
   Insurance explorer – pick a type, pick a cover, read the overview
   ========================================================================== */
.explorer {
  position: relative; isolation: isolate; padding: 96px 0 112px; overflow-x: clip; overflow-y: visible;
  background: #fff;
}
.explorer > .container { position: relative; z-index: 1; }
.explorer__shapes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.explorer__shapes i { position: absolute; display: block; }
.explorer__shapes .ring { border: 3px solid rgba(9,104,201,.40); border-radius: 50%; }
.explorer__shapes .ring--a { width: 420px; height: 420px; left: -40px; top: 6px; box-shadow: 0 0 0 30px rgba(9,104,201,.10), 0 0 0 60px rgba(9,104,201,.07); animation: ex-drift 18s ease-in-out infinite alternate; }
.explorer__shapes .ring--b { width: 440px; height: 440px; right: -90px; bottom: 20px; border-color: rgba(255,174,27,.75); box-shadow: 0 0 0 30px rgba(255,174,27,.16), 0 0 0 60px rgba(255,174,27,.10); animation: ex-drift 22s ease-in-out infinite alternate-reverse; }
@keyframes ex-float { 50% { translate: 0 -18px; } }
@keyframes ex-drift { to { transform: translate(40px, 30px) rotate(6deg); } }
.explorer__head { position: relative; text-align: center; max-width: 720px; margin: 0 auto 44px; }
.explorer__eyebrow { color: #f59e0b; font-weight: 700; font-size: 16px; }
.explorer__title { margin-top: 6px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -1px; font-weight: 800; color: var(--navy-800); }
.explorer__sub { margin-top: 14px; color: var(--text-500); font-size: 16px; line-height: 26px; }

.explorer__card {
  position: relative; display: grid; grid-template-columns: 290px 270px minmax(0, 1fr);
  border-radius: 36px; overflow: hidden; background: #f7f9fd;
  box-shadow: 0 30px 70px -20px rgba(0,35,75,.28); min-height: 560px;
}

/* 1 · insurance types */
.ex-types { background: linear-gradient(170deg, #003c88 0%, #00234b 100%); padding: 30px 0; color: #fff; position: relative; }
.ex-label { display: flex; align-items: center; gap: 10px; padding: 0 26px 18px; font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.ex-label b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--amber-500); color: var(--navy-800); font-size: 13px; letter-spacing: 0; }
.ex-types__list { display: grid; }
.ex-type {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 15px 26px; color: #cfe0fb; font-size: 16px; font-weight: 600;
  transition: background .5s var(--reveal-ease), color .4s, padding .5s var(--reveal-ease);
}
.ex-type .ic { width: 22px; height: 22px; flex-shrink: 0; transition: transform .5s var(--reveal-ease); }
.ex-type:hover { background: rgba(255,255,255,.07); color: #fff; }
.ex-type.is-active { background: var(--amber-500); color: var(--navy-800); padding-left: 32px; }
.ex-type.is-active .ic { transform: scale(1.15); }
.ex-type.is-active::after { content: ""; position: absolute; right: -1px; top: 50%; margin-top: -10px; border: 10px solid transparent; border-right-color: #fff; }
.ex-type:focus-visible, .ex-cat:focus-visible { outline: 3px solid #0968c9; outline-offset: -3px; }

/* 2 · covers */
.ex-cats { background: #fff; padding: 30px 0; border-right: 1px solid var(--line); }
.ex-cats .ex-label { color: var(--navy-700); }
.ex-cats__list { display: grid; }
.ex-cat {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 26px;
  font-size: 15px; font-weight: 600; color: var(--text-600); border-bottom: 1px solid #f0f2f6;
  transition: background .4s, color .4s, padding .5s var(--reveal-ease), opacity .6s var(--reveal-ease), transform .6s var(--reveal-ease);
}
.ex-cat .ic { width: 14px; height: 14px; color: var(--amber-500); flex-shrink: 0; transition: transform .4s; }
.ex-cat:hover { background: #f5f8fe; color: var(--navy-700); }
.ex-cat.is-active { background: #eef4fd; color: var(--blue-700); padding-left: 32px; box-shadow: inset 4px 0 0 var(--blue-700); }
.ex-cat.is-active .ic { transform: translateX(3px); }
.ex-cats.is-swapping .ex-cat { opacity: 0; transform: translateX(-14px); }

/* 3 · overview */
.ex-detail { position: relative; display: flex; flex-direction: column; background: #fff; }
.ex-detail__media { position: relative; height: 190px; overflow: hidden; }
.ex-detail__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--reveal-ease), opacity .6s; }
.ex-detail__media::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 64px; background: var(--amber-500); z-index: 1; }
.ex-detail__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,35,75,0) 40%, rgba(0,35,75,.55)); }
.ex-detail__tag { position: absolute; z-index: 2; left: 88px; bottom: 16px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.ex-detail__body { padding: 30px 40px 34px; flex: 1; display: flex; flex-direction: column; transition: opacity .45s var(--reveal-ease), transform .6s var(--reveal-ease), filter .45s; }
.ex-detail.is-swapping .ex-detail__body { opacity: 0; transform: translateY(18px); filter: blur(4px); }
.ex-detail.is-swapping .ex-detail__media img { transform: scale(1.08); opacity: .4; }
.ex-detail h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.8px; color: #1f2f6b; text-transform: uppercase; }
.ex-detail p { margin-top: 12px; color: var(--text-600); font-size: 16px; line-height: 28px; max-width: 640px; }
.ex-detail p.ex-lead { margin-top: 6px; font-weight: 700; color: var(--blue-700); }
.ex-points { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 22px; max-width: 640px; }
.ex-points li { position: relative; padding-left: 28px; font-size: 14px; line-height: 22px; font-weight: 600; color: var(--navy-700); }
.ex-points li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--amber-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.4 2.4 4.6-4.8' fill='none' stroke='%2300234b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.ex-actions { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ex-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 24px; font-weight: 700; font-size: 14px; transition: transform .3s, box-shadow .3s, background .3s; }
.ex-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(0,35,75,.45); }
.ex-btn--blue { background: var(--blue-700); color: #fff; }
.ex-btn--ghost { border: 1.5px solid #b4bcc5; color: var(--navy-700); background: #fff; }
.ex-btn .ic { width: 16px; height: 16px; }
.ex-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, #ffae1b, #ffd044); }
.explorer.is-auto .ex-progress { animation: ex-progress var(--ex-interval, 7s) linear forwards; }
@keyframes ex-progress { to { width: 100%; } }

@media (max-width: 1100px) {
  .explorer__card { grid-template-columns: 250px minmax(0,1fr); }
  .ex-types { grid-row: 1 / span 2; }
  .ex-cats { grid-column: 2; border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0 8px; }
  .ex-cats__list { grid-template-columns: repeat(2, 1fr); }
  .ex-detail { grid-column: 2; }
}
@media (max-width: 760px) {
  .explorer { padding: 56px 0 64px; }
  .explorer__card { grid-template-columns: 1fr; border-radius: 26px; }
  .ex-types { grid-row: auto; padding: 20px 0 14px; }
  .ex-types__list { display: flex; overflow-x: auto; padding: 0 16px 6px; gap: 8px; scrollbar-width: none; }
  .ex-types__list::-webkit-scrollbar { display: none; }
  .ex-label { padding: 0 16px 14px; }
  .ex-type { width: auto; flex: 0 0 auto; padding: 10px 16px; border-radius: 22px; background: rgba(255,255,255,.08); font-size: 14px; }
  .ex-type.is-active { padding-left: 16px; }
  .ex-type.is-active::after { display: none; }
  .ex-cats, .ex-detail { grid-column: 1; }
  .ex-cats__list { grid-template-columns: 1fr; }
  .ex-detail__body { padding: 24px 20px 28px; }
  .ex-points { grid-template-columns: 1fr; }
  .ex-detail__media { height: 150px; }
  .ex-detail__media::before { width: 40px; }
  .ex-detail__tag { left: 62px; }
}
@media (prefers-reduced-motion: reduce) { .explorer * { transition: none !important; animation: none !important; } }

/* Photo cut-outs (transparent PNG) that sit inside the two background rings, wide screens only */
.explorer__art { display: none; position: absolute; z-index: 0; pointer-events: none; width: min(330px, calc(50vw - 590px)); }
.explorer__art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 26px rgba(0,35,75,.22)); }
.explorer__art--left { left: -10px; top: 50px; width: min(400px, calc(50vw - 480px)); animation: art-bob 4.5s ease-in-out infinite; }
.explorer__art--right { right: 6px; bottom: 50px; width: min(320px, calc(50vw - 590px)); animation: art-bob 5s ease-in-out infinite reverse; }
@keyframes art-bob { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.2deg); } 50% { transform: translate3d(0, -26px, 0) rotate(1.2deg); } }
@media (min-width: 1540px) { .explorer__art { display: block; } }

/* let the rings spill over the section edge instead of being cut off; the section above stays on top */
.claim-journey { z-index: 1; }
