/* -------------------------------------------------------------------------
   HOMEPAGE ROUTE EDITORIAL V2

   A visual four-stage buyer route using the shared LIFA surface, typography,
   frame, and motion tokens. This stylesheet loads after the sitewide card
   contract so the homepage route remains intentionally composed.
   ------------------------------------------------------------------------- */

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section {
  --home-route-surface: var(--lifa-white);
  --home-route-canvas: var(--lifa-paper);
  --home-route-ink: var(--lifa-navy);
  --home-route-copy: var(--lifa-muted);
  --home-route-accent: var(--lifa-gold);
  --home-route-accent-soft: var(--lifa-gold-soft);
  --home-route-rule: var(--premium-card-border);
  --home-route-rule-strong: var(--premium-card-border-hover);
  --home-route-radius: var(--premium-card-radius);
  --home-route-shadow: var(--premium-card-shadow);
  --home-route-shadow-hover: var(--premium-card-shadow-hover);
  --home-route-motion: var(--premium-card-motion);
  position: relative;
  overflow: clip;
  padding-block: 88px !important;
  color: var(--home-route-ink);
  background: var(--home-route-canvas) !important;
  border-top: 1px solid var(--home-route-rule) !important;
  border-bottom: 1px solid var(--home-route-rule) !important;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .7fr);
  grid-template-rows: auto auto;
  column-gap: 72px;
  align-items: end;
  width: 100%;
  max-width: none !important;
  margin: 0 0 42px !important;
  text-align: left !important;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-heading::before,
html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-heading::after {
  display: none !important;
  content: none !important;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-heading .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 14px !important;
  color: var(--lifa-gold-deep) !important;
  font-family: var(--font-ui, Montserrat, Arial, sans-serif);
  letter-spacing: 0 !important;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-heading h2 {
  grid-column: 1;
  grid-row: 2;
  max-width: 18ch;
  margin: 0 !important;
  color: var(--home-route-ink) !important;
  font-family: var(--font-editorial, var(--heading-font));
  font-size: 2.8rem !important;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-heading > p {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 44ch !important;
  margin: 0 !important;
  padding-left: 28px;
  color: var(--home-route-copy) !important;
  border-left: 2px solid var(--home-route-accent);
  font-family: var(--font-ui, Montserrat, Arial, sans-serif);
  font-size: 1rem !important;
  line-height: 1.7;
  text-align: left !important;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-columns: auto !important;
  gap: 22px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  scroll-snap-type: none !important;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-step,
html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-step.light {
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: var(--home-route-ink) !important;
  background: var(--home-route-surface) !important;
  border: 1px solid var(--home-route-rule) !important;
  border-top: 3px solid var(--home-route-accent-soft) !important;
  border-radius: var(--home-route-radius) !important;
  box-shadow: var(--home-route-shadow) !important;
  transform: translate3d(0, 0, 0) !important;
  transition:
    transform var(--home-route-motion),
    border-color var(--home-route-motion),
    box-shadow var(--home-route-motion) !important;
  text-decoration: none;
  isolation: isolate;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-step::before,
html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-step::after {
  display: none !important;
  content: none !important;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-media {
  position: relative;
  display: block;
  flex: none;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--lifa-navy);
  border-bottom: 1px solid var(--home-route-rule);
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-media img {
  position: absolute !important;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  filter: none;
  transform: scale(1.001);
  transition: transform 520ms cubic-bezier(.22, 1, .36, 1) !important;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-number {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: grid !important;
  place-items: center;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  margin: 0 !important;
  color: var(--home-route-accent-soft) !important;
  background: var(--lifa-navy) !important;
  border: 1px solid var(--home-route-accent) !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 24px rgba(7, 17, 30, .24) !important;
  font-family: var(--font-editorial, var(--heading-font));
  font-size: 1.55rem !important;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0 !important;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-step .step-topline {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px !important;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--home-route-rule);
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section :is(.home-route-stage, .home-route-step .step-topline > small) {
  color: var(--lifa-gold-deep) !important;
  font-family: var(--font-ui, Montserrat, Arial, sans-serif);
  font-size: .72rem !important;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-stage {
  color: var(--home-route-copy) !important;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-step h3 {
  margin: 0 0 12px !important;
  color: var(--home-route-ink) !important;
  font-family: var(--font-editorial, var(--heading-font));
  font-size: 1.5rem !important;
  font-weight: 600;
  line-height: 1.16 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-step p {
  max-width: 48ch;
  margin: 0 0 22px !important;
  color: var(--home-route-copy) !important;
  font-family: var(--font-ui, Montserrat, Arial, sans-serif);
  font-size: .93rem !important;
  line-height: 1.66 !important;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-checkpoint {
  display: block;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--home-route-rule);
  font-family: var(--font-ui, Montserrat, Arial, sans-serif);
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-checkpoint small {
  display: block;
  margin-bottom: 5px;
  color: var(--lifa-gold-deep) !important;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-checkpoint strong {
  display: block;
  color: var(--home-route-ink) !important;
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.45;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--home-route-ink) !important;
  font-family: var(--font-ui, Montserrat, Arial, sans-serif);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.3;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-link > span {
  color: var(--lifa-gold-deep) !important;
  font-size: 1rem;
  transition: transform 180ms ease;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-step.is-active {
  border-color: var(--home-route-rule-strong) !important;
  box-shadow: var(--home-route-shadow-hover) !important;
  transform: translate3d(0, 0, 0) !important;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-step.is-active .home-route-number {
  color: var(--lifa-navy) !important;
  background: var(--home-route-accent-soft) !important;
}

html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
  main > .home-route-section .home-route-step:focus-visible {
  outline: 3px solid var(--home-route-accent-soft) !important;
  outline-offset: 4px !important;
}

@media (hover: hover) and (pointer: fine) {
  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-step:hover {
    border-color: var(--home-route-rule-strong) !important;
    box-shadow: var(--home-route-shadow-hover) !important;
    transform: translate3d(0, -5px, 0) !important;
  }

  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-step:hover .home-route-media img {
    transform: scale(1.02);
  }

  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-step:hover .home-route-link > span {
    transform: translateX(3px);
  }
}

@media (max-width: 980px) {
  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section {
    padding-block: 72px !important;
  }

  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-heading {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
    column-gap: 44px;
  }

  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-heading h2 {
    font-size: 2.45rem !important;
  }

  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-step,
  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-step.light {
    flex-direction: column;
  }

  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-media {
    flex: none;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--home-route-rule);
  }
}

@media (min-width: 701px) and (max-width: 880px) {
  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

}

@media (max-width: 700px) {
  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section {
    padding-block: 56px !important;
  }

  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-heading {
    display: block !important;
    margin-bottom: 30px !important;
  }

  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-heading h2 {
    max-width: 17ch;
    font-size: 2rem !important;
    line-height: 1.08;
  }

  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-heading > p {
    max-width: 38ch !important;
    margin-top: 20px !important;
    padding-left: 18px;
    font-size: .94rem !important;
  }

  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-content {
    padding: 24px;
  }

  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-step h3 {
    font-size: 1.38rem !important;
  }

  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-step p {
    font-size: .9rem !important;
  }
}

@media (max-width: 420px) {
  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-media {
    aspect-ratio: 16 / 9;
  }

  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-content {
    padding: 22px 20px;
  }

  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-number {
    top: 16px;
    left: 16px;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    font-size: 1.35rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-step,
  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-step *,
  html body.home-page[data-page-family]:not(#home-route-premium-specificity):not(#home-route-premium-override)
    main > .home-route-section .home-route-media img {
    transition: none !important;
    transform: none !important;
  }
}
