:root {
  --life-blue: #0a2f63;
  --life-blue-soft: #f2f7ff;
  --life-blue-line: #cbdcf3;
  --health-green: #13784f;
  --health-green-soft: #f1faf5;
  --health-green-line: #c9e9d6;
}

.hero-copy .lead {
  max-width: 520px;
  margin-top: 21px;
  line-height: 1.65;
}

.hero-actions {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: 22px;
}

.hero-insurance-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-insurance-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid;
  border-radius: 999px;
  background: rgb(255 255 255 / 90%);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.hero-insurance-links .life-entry {
  color: var(--life-blue);
  border-color: var(--life-blue-line);
}

.hero-insurance-links .health-entry {
  color: var(--health-green);
  border-color: var(--health-green-line);
}

.hero-insurance-links .life-entry:hover {
  color: #fff;
  border-color: var(--life-blue);
  background: var(--life-blue);
}

.hero-insurance-links .health-entry:hover {
  color: #fff;
  border-color: var(--health-green);
  background: var(--health-green);
}

.hero-insurance-links a:hover {
  transform: translateY(-2px);
}

.hero-copy > .microcopy {
  max-width: 460px;
  margin-top: 12px;
  line-height: 1.5;
}

.hero-protection-draw {
  position: absolute;
  z-index: 1;
  inset: 4% 4% 18%;
  width: 92%;
  height: 78%;
  overflow: visible;
  pointer-events: none;
}

.hero-protection-draw path {
  stroke-width: 2.2;
  opacity: 0.94;
  vector-effect: non-scaling-stroke;
}

.hero-visual .image-caption,
.hero-visual .image-label {
  z-index: 2;
}

.insurance-card.life-card {
  border-color: var(--life-blue-line);
  background: linear-gradient(145deg, #fff 12%, var(--life-blue-soft));
}

.insurance-card.health-card {
  border-color: var(--health-green-line);
  background: linear-gradient(145deg, #fff 12%, var(--health-green-soft));
}

.insurance-card {
  display: flex;
  flex-direction: column;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.insurance-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgb(10 47 99 / 10%);
}

.insurance-card h3 {
  max-width: calc(100% - 54px);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.2;
}

.insurance-card > p {
  line-height: 1.7;
}

.insurance-card .insurance-supporting {
  margin-top: 14px;
  font-weight: 700;
}

.life-card .insurance-supporting,
.life-card .line-icon {
  color: var(--life-blue);
}

.health-card .insurance-supporting,
.health-card .line-icon {
  color: var(--health-green);
}

.insurance-card .line-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
}

.insurance-card .line-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
}

.life-card .check-list li::before,
.life-card .text-button {
  color: var(--life-blue);
}

.life-card .text-button {
  border-color: var(--life-blue-line);
}

.health-card .check-list li::before,
.health-card .text-button {
  color: var(--health-green);
}

.health-card .text-button {
  border-color: var(--health-green-line);
}

.insurance-card .text-button {
  margin-top: auto;
  padding-top: 16px;
  text-decoration: none;
}

.protection-bridge {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 820px;
  margin: 34px auto 10px;
  padding: 18px 24px;
  overflow: hidden;
  border: 1px solid #e4ebf1;
  border-radius: 18px;
  background: linear-gradient(105deg, #f5f8ff 0%, #fff 48%, #f2faf5 100%);
  text-align: center;
}

.protection-connection {
  display: block;
  width: min(100%, 520px);
  height: 78px;
}

.protection-connection path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.protection-blue-line {
  stroke: var(--life-blue);
}

.protection-green-line {
  stroke: var(--health-green);
}

.protection-core {
  fill: #fff;
  stroke: var(--life-blue);
  stroke-width: 3;
}

.protection-bridge > p {
  color: var(--life-blue);
  font-size: 1.05rem;
  font-weight: 750;
}

.connected-logo {
  width: 148px;
  height: auto;
  mix-blend-mode: multiply;
}

.protection-options-link {
  display: flex;
  width: fit-content;
  margin: 18px auto 0;
  color: var(--life-blue);
}

.protection-motion-enabled .hero-visual.is-in-view .hero-image {
  animation: family-image-reveal 800ms ease-out both;
}

.protection-motion-enabled .hero-visual.is-in-view .hero-protection-draw path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation:
    protection-line-draw 1250ms 180ms ease-out forwards,
    hero-shield-glow 4200ms 900ms ease-in-out infinite;
}

.protection-motion-enabled .hero-protection-draw .hero-shield-stop-a {
  animation: hero-shield-color-a 4800ms ease-in-out infinite;
}

.protection-motion-enabled .hero-protection-draw .hero-shield-stop-b {
  animation: hero-shield-color-b 4800ms ease-in-out infinite;
}

.protection-motion-enabled .insurance-card :is(svg path, svg circle),
.protection-motion-enabled .protection-connection :is(path, circle) {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.protection-motion-enabled .insurance-card.is-in-view .life-shield-line,
.protection-motion-enabled .insurance-card.is-in-view .life-family-line,
.protection-motion-enabled .insurance-card.is-in-view .health-shield-line,
.protection-motion-enabled .insurance-card.is-in-view .health-pulse-line,
.protection-motion-enabled .protection-bridge.is-in-view .protection-connection path {
  animation: protection-line-draw 1100ms ease-out both;
}

.protection-motion-enabled .insurance-card.is-in-view .life-family-line {
  animation-delay: 180ms;
}

.protection-motion-enabled .insurance-card.is-in-view .health-pulse-line {
  animation-delay: 220ms;
}

.protection-motion-enabled .protection-bridge.is-in-view .protection-green-line {
  animation-delay: 180ms;
}

.protection-motion-enabled .protection-bridge.is-in-view .protection-core {
  animation: protection-core-reveal 400ms 850ms ease-out both;
}

.protection-motion-enabled .protection-bridge:not(.is-in-view) .connected-logo {
  opacity: 0;
  transform: translateY(7px);
}

.protection-motion-enabled .protection-bridge.is-in-view .connected-logo {
  animation: connected-logo-reveal 600ms 480ms ease-out both;
}

.legacy-benefits-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.legacy-benefit-card {
  min-width: 0;
  min-height: 178px;
  padding: 17px;
  border: 1px solid #e5e9ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgb(24 38 56 / 4%);
}

.legacy-benefit-card .benefit-icon {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 11px;
  color: #596677;
  background: #edf0f4;
  font-size: 1.15rem;
  font-weight: 800;
}

.legacy-benefit-card h3 {
  margin-bottom: 6px;
  color: var(--life-blue);
  font-size: 0.96rem;
  line-height: 1.3;
}

.legacy-benefit-card p {
  font-size: 0.82rem;
  line-height: 1.5;
}

.benefits-cta,
.advantage-cta {
  display: flex;
  width: fit-content;
  margin: 16px auto 0;
}

.advantage-section {
  background: #fff;
}

.advantage-section.section {
  padding-block: 72px;
}

.advantage-heading {
  max-width: 820px;
  margin: 0 auto 26px;
  text-align: center;
}

.advantage-heading .eyebrow {
  margin-bottom: 12px;
}

.advantage-heading h2 {
  line-height: 1.18;
}

.advantage-heading > p:last-child {
  margin-top: 14px;
  font-size: 1rem;
}

.advantage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.advantage-card {
  display: flex;
  min-height: 164px;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid #e5e9ee;
  border-radius: 16px;
  background: #fafbfc;
  box-shadow: 0 5px 18px rgb(24 38 56 / 4%);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.advantage-card:hover {
  transform: translateY(-2px);
  border-color: #d6dce4;
  box-shadow: 0 10px 24px rgb(24 38 56 / 8%);
}

.advantage-icon {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 11px;
  color: #596677;
  background: #edf0f4;
}

.advantage-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.advantage-icon.life-indicator {
  color: var(--life-blue);
  background: var(--life-blue-soft);
}

.advantage-icon-pair {
  display: flex;
  width: 58px;
  gap: 1px;
  justify-content: center;
}

.advantage-icon-pair .life-indicator {
  color: var(--life-blue);
}

.advantage-icon-pair .health-indicator {
  color: var(--health-green);
}

.advantage-card h3 {
  margin: 0 0 5px;
  color: var(--life-blue);
  font-size: 1rem;
  line-height: 1.32;
}

.advantage-card p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.advantage-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--life-blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.advantage-card:focus-within {
  border-color: var(--life-blue-line);
  box-shadow: 0 0 0 3px rgb(10 47 99 / 12%);
}

.advantage-card-link:focus-visible {
  outline: 2px solid var(--life-blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.advantage-disclaimer {
  max-width: 900px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.65;
  text-align: center;
}

.advantage-closing {
  margin-top: 24px;
  color: var(--life-blue);
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
}

.advantage-microcopy {
  margin-top: 6px;
  font-size: 0.9rem;
  text-align: center;
}

.protection-motion-enabled .advantage-card {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 420ms ease,
    transform 420ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.protection-motion-enabled .advantage-card.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

.advisor-reassurance {
  margin-top: 10px;
}

.advisor-closing {
  margin-top: 14px;
  color: var(--life-blue);
  font-weight: 750;
}

.closing-inner h2 {
  max-width: 680px;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.closing-inner .section-copy {
  max-width: 610px;
  margin-top: 14px;
}

@keyframes family-image-reveal {
  from {
    opacity: 0.55;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes protection-line-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hero-shield-color-a {
  0%,
  100% {
    stop-color: #0a2f63;
  }
  50% {
    stop-color: #13784f;
  }
}

@keyframes hero-shield-color-b {
  0%,
  100% {
    stop-color: #13784f;
  }
  50% {
    stop-color: #0a2f63;
  }
}

@keyframes hero-shield-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 2px rgb(10 47 99 / 28%));
  }
  50% {
    filter: drop-shadow(0 0 4px rgb(19 120 79 / 36%));
  }
}

@keyframes protection-core-reveal {
  from {
    opacity: 0.25;
    transform: scale(0.65);
    transform-origin: center;
  }
  to {
    opacity: 1;
    transform: scale(1);
    transform-origin: center;
  }
}

@keyframes connected-logo-reveal {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 601px) {
  .advantage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  .legacy-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .hero-copy .lead {
    max-width: 580px;
    margin-top: 18px;
    font-size: 1.05rem;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .insurance-card {
    padding: 28px 26px;
  }

  .insurance-card h3 {
    margin-top: 20px;
    font-size: clamp(1.4rem, 4vw, 1.75rem);
  }

  .closing-inner h2 {
    max-width: 560px;
  }
}

@media (max-width: 600px) {
  .advantage-section.section {
    padding-block: 44px;
  }

  .hero-insurance-links {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-insurance-links a {
    min-height: 48px;
    padding-inline: 9px;
    font-size: 0.78rem;
  }

  .hero-copy > .button,
  .hero-actions {
    width: 100%;
  }

  .hero-actions > .button {
    width: 100%;
    justify-content: center;
  }

  .hero-protection-draw {
    inset: 2% 1% 22%;
    width: 98%;
    height: 76%;
  }

  .insurance-card {
    padding: 25px 21px;
  }

  .insurance-card h3 {
    max-width: calc(100% - 48px);
    font-size: 1.45rem;
  }

  .insurance-card .line-icon {
    top: 26px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

  .protection-bridge {
    padding: 15px 14px;
  }

  .protection-connection {
    height: 62px;
  }

  .protection-bridge > p {
    font-size: 0.95rem;
  }

  .advantage-card {
    min-height: 0;
    padding: 17px;
  }

  .advantage-icon {
    margin-bottom: 10px;
  }

  .legacy-benefits-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefits-cta,
  .advantage-cta {
    width: 100%;
    justify-content: center;
  }

  .closing-inner .button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-insurance-links a,
  .insurance-card,
  .legacy-benefit-card,
  .advantage-card {
    transition: none;
  }

  .protection-motion-enabled .hero-visual.is-in-view .hero-image,
  .protection-motion-enabled .hero-visual.is-in-view .hero-protection-draw path,
  .protection-motion-enabled .hero-protection-draw stop,
  .protection-motion-enabled .insurance-card.is-in-view :is(svg path, svg circle),
  .protection-motion-enabled .protection-bridge.is-in-view .protection-connection :is(path, circle),
  .protection-motion-enabled .protection-bridge.is-in-view .connected-logo {
    animation: none;
  }

  .protection-motion-enabled .hero-protection-draw path,
  .protection-motion-enabled .hero-protection-draw stop,
  .protection-motion-enabled .insurance-card :is(svg path, svg circle),
  .protection-motion-enabled .protection-connection :is(path, circle) {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .protection-motion-enabled .protection-bridge .connected-logo {
    opacity: 1;
    transform: none;
  }

  .protection-motion-enabled .advantage-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
