/**
 * Homepage visual redesign — finder, plans, quote modal.
 * Scoped to body[data-page="home"]. Floating pill nav lives in styles.css (.site-header--float).
 */

body[data-page="home"] {
  --home-grad: linear-gradient(92deg, #ff6528 0%, #e78600 100%);
}

/* ========== FINDER / EXPLORE ========== */
body[data-page="home"] .finder {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0d2136;
  border-bottom: 0;
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--white);
}
body[data-page="home"] .finder::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(105deg, rgba(8, 22, 38, 0.72) 0%, rgba(8, 22, 38, 0.35) 48%, rgba(8, 22, 38, 0.55) 100%),
    url("../images/demo/opt/demo-trekking.jpg") center 35% / cover no-repeat;
}
body[data-page="home"] .finder > .wrap {
  position: relative;
  z-index: 1;
}
body[data-page="home"] .finder__grid {
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 992px) {
  body[data-page="home"] .finder__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
  }
}
body[data-page="home"] .finder .kicker {
  color: #ff9a55;
}
body[data-page="home"] .finder h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
}
body[data-page="home"] .finder h2 .accent {
  background: var(--home-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body[data-page="home"] .finder__lede {
  color: rgba(255, 255, 255, 0.78);
  max-width: 42ch;
}
body[data-page="home"] .finder__filter-toggle {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}
body[data-page="home"] .finder__form--compact {
  margin-top: 18px;
}
body[data-page="home"] .filter-bar {
  display: grid;
  gap: 16px;
}
body[data-page="home"] .chips--compact legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffcba6;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
body[data-page="home"] .chips--compact legend svg {
  width: 14px;
  height: 14px;
  color: #ff6528;
}
body[data-page="home"] .chips--compact span {
  background: rgba(255, 255, 255, 0.92);
  border-color: transparent;
  color: var(--navy);
  min-height: 36px;
  box-shadow: 0 4px 12px -8px rgba(0, 0, 0, 0.35);
}
body[data-page="home"] .chips--compact input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
body[data-page="home"] .finder__flight {
  display: none;
}
@media (min-width: 992px) {
  body[data-page="home"] .finder__intro {
    position: relative;
  }
  body[data-page="home"] .finder__flight {
    display: block;
    position: absolute;
    right: -8%;
    top: 42%;
    width: 160px;
    height: 80px;
    pointer-events: none;
    opacity: 0.85;
  }
}
body[data-page="home"] .finder__slogan {
  margin-top: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #ff9a55;
  max-width: 16ch;
}
body[data-page="home"] .finder__results {
  background: rgba(255, 255, 255, 0.98);
  border: 0;
  border-radius: 18px;
  padding: 14px 14px 16px;
  box-shadow:
    0 2px 4px rgba(11, 27, 46, 0.05),
    0 20px 40px -22px rgba(11, 27, 46, 0.45);
  max-height: min(560px, 70vh);
  overflow: hidden;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body[data-page="home"] .finder__bar {
  position: relative;
  top: auto;
  z-index: 2;
  background: #fff;
  padding-bottom: 10px;
  flex-shrink: 0;
}
body[data-page="home"] .finder__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  margin-inline: -6px;
  padding-inline: 6px;
}
body[data-page="home"] .finder__foot {
  flex-shrink: 0;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
body[data-page="home"] .match {
  grid-template-columns: 72px minmax(0, 1fr) minmax(108px, auto);
  grid-template-rows: auto auto;
  gap: 4px 12px;
  padding: 12px 8px;
  margin-inline: 0;
  align-items: center;
}
body[data-page="home"] .match > div:not(.match__thumb):not(.match__side) {
  min-width: 0;
}
body[data-page="home"] .match__thumb {
  position: relative;
  grid-row: 1 / span 2;
}
body[data-page="home"] .match__thumb img {
  display: block;
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}
body[data-page="home"] .match__badge {
  position: absolute;
  left: 4px;
  top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--home-grad);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 1.2;
}
body[data-page="home"] .match__name {
  font-size: 0.9375rem;
}
body[data-page="home"] .match__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--ink-3);
  font-size: 0.6875rem;
}
body[data-page="home"] .match__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
body[data-page="home"] .match__meta svg {
  width: 11px;
  height: 11px;
  color: #ff6528;
}
body[data-page="home"] .match__side {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: grid;
  justify-items: end;
  gap: 8px;
  align-content: center;
  min-width: 108px;
}
body[data-page="home"] .match__price {
  grid-column: auto;
  grid-row: auto;
  text-align: right;
  margin: 0;
}
body[data-page="home"] .match__price strong {
  display: block;
  font-size: 1rem;
  background: var(--home-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body[data-page="home"] .match__price small {
  display: block;
  font-size: 0.625rem;
  color: var(--ink-3);
  font-weight: 500;
}
body[data-page="home"] .match__go {
  grid-column: auto;
  margin-top: 0;
  justify-self: end;
  border: 0;
  background: var(--home-grad);
  color: #fff;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.75rem;
  white-space: nowrap;
  box-shadow: 0 6px 14px -8px rgba(255, 101, 40, 0.7);
}
body[data-page="home"] .match__go:hover {
  background: linear-gradient(92deg, #ff7538 0%, #f09510 100%);
  color: #fff;
}
body[data-page="home"] .finder__foot {
  border-top-color: var(--line);
}
body[data-page="home"] .finder__foot .btn--dark {
  background: var(--home-grad);
  border: 0;
  color: #fff;
}
body[data-page="home"] .finder__alt {
  color: var(--ink-2);
}

@media (max-width: 639px) {
  body[data-page="home"] .match {
    grid-template-columns: 64px 1fr;
  }
  body[data-page="home"] .match__side {
    grid-column: 2;
    grid-row: 3;
    justify-items: start;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  body[data-page="home"] .finder__filter-panel.is-open {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
  }
  body[data-page="home"] .finder__filter-panel.is-open .chips--compact span {
    box-shadow: none;
  }
}

/* ========== SPECIAL PACKAGES ========== */
body[data-page="home"] .plans {
  --plans-panel: rgba(255, 255, 255, 0.96);
  --plans-shadow:
    0 1px 2px rgba(11, 27, 46, 0.04),
    0 14px 32px -14px rgba(11, 27, 46, 0.24);
  --plans-shadow-hover:
    0 4px 10px rgba(11, 27, 46, 0.06),
    0 24px 48px -16px rgba(11, 27, 46, 0.3);
  --home-plans-stagger: 120ms;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #e8eef4;
  /* One viewport: header + intro + cards + dots, no page scroll */
  min-height: 0;
  max-height: calc(100svh - var(--header-h, 72px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(0.65rem, 1.6vh, 1.15rem) calc(clamp(0.65rem, 1.6vh, 1.15rem) + var(--tray-h));
  box-sizing: border-box;
  scroll-margin-top: var(--header-h, 72px);
}
/*
 * Scenic wash — peaks visible through a soft frost (like Trusted by light-panel pattern).
 * Content stays on solid white cards so navy type stays sharp.
 */
body[data-page="home"] .plans::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #c5d6e4;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0.16) 20%,
      rgba(255, 255, 255, 0.06) 46%,
      rgba(255, 255, 255, 0.26) 76%,
      rgba(255, 255, 255, 0.9) 100%
    ),
    linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(255, 255, 255, 0.08) 42%,
      rgba(255, 245, 235, 0.18) 100%
    ),
    url("../images/demo/opt/story-peaks.jpg");
  background-repeat: no-repeat;
  background-size: cover, cover, cover;
  background-position: center, center, 48% 34%;
}
body[data-page="home"] .plans::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 50% at 18% 12%, rgba(255, 255, 255, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, transparent 0%, transparent 80%, rgba(255, 255, 255, 0.95) 100%);
}
body[data-page="home"] .plans > .wrap {
  position: relative;
  z-index: 1;
  width: 100%;
}
body[data-page="home"] .plans .kicker {
  color: #ff6528;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}
body[data-page="home"] .plans .sec-head--row > div {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}
body[data-page="home"] .plans .sec-head--row > div > p:not(.kicker) {
  color: #3d4b5c;
  font-size: clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem);
  line-height: 1.35;
  max-width: 46ch;
  margin-top: 4px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}
body[data-page="home"] .plans h2 {
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 28px rgba(255, 255, 255, 0.55);
}
body[data-page="home"] .plans h2 .accent {
  background: var(--home-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
body[data-page="home"] .plans .sec-head--row {
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(10px, 1.5vw, 16px);
  margin-bottom: 4px;
  padding: clamp(8px, 1.2vh, 12px) clamp(10px, 1.5vw, 14px);
  margin-inline: clamp(-6px, -0.4vw, 0px);
  border-radius: 14px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.48) 50%,
    rgba(255, 255, 255, 0.32) 100%
  );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}
body[data-page="home"] .plans .sec-head {
  margin-bottom: 0;
}
body[data-page="home"] .plans .link-arrow {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1.5px solid #ff6528;
  border-radius: 999px;
  color: #ff6528;
  font-weight: 700;
  font-size: clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--plans-shadow);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (pointer: fine) {
  body[data-page="home"] .plans .link-arrow:hover {
    background: #ff6528;
    color: #fff;
    box-shadow: var(--plans-shadow-hover);
    transform: translateY(-1px);
  }
}
body[data-page="home"] .plans .link-arrow::after {
  background: #ff6528;
}
body[data-page="home"] .plans__meta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3d4b5c;
  margin: 4px 0 8px;
  font-size: 0.6875rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}
body[data-page="home"] .plans__meta-ico {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  color: #ff6528;
}
body[data-page="home"] .plans .pkg__region {
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  border: 0;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(11, 27, 46, 0.14);
  font-size: clamp(0.625rem, 0.58rem + 0.12vw, 0.6875rem);
}
body[data-page="home"] .plans .pkg__region-name {
  color: var(--navy);
}
/* Compact modern cards — float on scenic wash */
body[data-page="home"] .plans .pkg--compact,
body[data-page="home"] #plans .pkg--compact {
  border: 1px solid rgba(11, 27, 46, 0.09);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--plans-shadow);
  background: var(--plans-panel);
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition:
    border-color 0.5s ease,
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
body[data-page="home"] .plans .pkg--compact .pkg__body,
body[data-page="home"] #plans .pkg--compact .pkg__body {
  padding: 8px 10px 10px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body[data-page="home"] .plans .pkg__actions--home {
  position: relative;
  z-index: 3;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
body[data-page="home"] .plans .pkg--compact .pkg__media,
body[data-page="home"] #plans .pkg--compact .pkg__media,
body[data-page="home"] .plans .pkg__media {
  aspect-ratio: 16 / 9;
  max-height: clamp(84px, 13vh, 112px);
  position: relative;
  overflow: hidden;
  border-radius: 0;
  flex-shrink: 0;
}
body[data-page="home"] .plans .pkg__media > img {
  transition: transform 0.65s var(--motion-ease-media, cubic-bezier(0.4, 0, 0.2, 1));
}
/* Stronger photo hierarchy — bottom wash for badge/heart contrast */
body[data-page="home"] .plans .pkg__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 27, 46, 0.18) 0%, transparent 36%),
    linear-gradient(0deg, rgba(11, 27, 46, 0.28) 0%, transparent 42%);
  z-index: 1;
}
body[data-page="home"] .plans .pkg__region,
body[data-page="home"] .plans .pkg__fav {
  z-index: 2;
}
body[data-page="home"] .plans .pkg__fav {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(11, 27, 46, 0.5);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: default;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(11, 27, 46, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
body[data-page="home"] .plans .pkg__name {
  font-size: clamp(0.875rem, 0.8rem + 0.25vw, 0.9875rem);
  line-height: 1.2;
  font-weight: 700;
}
body[data-page="home"] .plans .pkg__blurb {
  margin: 3px 0 0;
  font-size: 0.6875rem;
  color: var(--ink-2);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body[data-page="home"] .plans .pkg__facts {
  margin-top: 6px;
  padding-block: 6px;
  border-block: 1px solid rgba(11, 27, 46, 0.08);
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body[data-page="home"] .plans .pkg__facts > div {
  padding: 0 6px 0 0;
  min-width: 0;
  border: 0 !important;
}
body[data-page="home"] .plans .pkg__facts > div + div {
  padding-left: 10px;
  border-left: 1px solid rgba(11, 27, 46, 0.08) !important;
}
body[data-page="home"] .plans .pkg__facts dt {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  color: #ff6528;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  line-height: 1.15;
}
body[data-page="home"] .plans .pkg__facts dt .pkg__fact-ico {
  display: block;
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: #ff6528;
}
body[data-page="home"] .plans .pkg__fact-label {
  display: inline;
}
body[data-page="home"] .plans .pkg__facts dd {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 2px;
  line-height: 1.2;
  word-break: break-word;
}
body[data-page="home"] .plans .pkg__facts dd.is-na {
  font-weight: 500;
  color: var(--ink-3);
  font-size: clamp(0.625rem, 0.58rem + 0.12vw, 0.6875rem);
}
body[data-page="home"] .plans .pkg__facts > div:nth-child(2) dd:not(.is-na)::before {
  content: none;
}
body[data-page="home"] .plans .pkg__benefits {
  margin-top: 5px;
}
body[data-page="home"] .plans .pkg__benefits > p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  font-size: 0.6875rem;
}
body[data-page="home"] .plans .pkg__more-link {
  color: #ff6528;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.625rem;
}
body[data-page="home"] .plans .pkg__more a {
  color: #ff6528;
}
body[data-page="home"] .plans .pkg__highlight {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 4px;
  font-size: 0.6875rem;
  color: var(--ink-2);
  line-height: 1.3;
}
body[data-page="home"] .plans .pkg__highlight-ico {
  display: inline-grid;
  place-items: center;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background: #22a06b;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1;
}
/* Price upfront (after title/blurb) — compact single row to save card height */
body[data-page="home"] .plans .pkg__price {
  margin-top: 6px;
  margin-bottom: 0;
  padding-top: 0;
  border-top: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
}
body[data-page="home"] .plans .pkg__price small {
  font-size: 0.625rem;
  color: var(--ink-3);
  font-weight: 500;
}
body[data-page="home"] .plans .pkg__price strong {
  font-family: var(--f-head);
  font-size: clamp(1rem, 0.9rem + 0.35vw, 1.1875rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
body[data-page="home"] .plans .pkg__price > span {
  font-size: 0.6875rem;
  color: var(--ink-3);
}
body[data-page="home"] .plans .pkg__cta {
  background: var(--home-grad);
  border: 0;
  color: #fff;
  min-height: 34px;
  font-size: 0.6875rem;
  font-weight: 700;
  padding-inline: 10px;
  border-radius: 999px;
  box-shadow: 0 8px 18px -10px rgba(255, 101, 40, 0.45);
}
body[data-page="home"] .plans .pkg__actions--home .btn--line {
  border-color: rgba(255, 101, 40, 0.5);
  color: var(--navy);
  min-height: 34px;
  font-size: 0.6875rem;
  font-weight: 600;
  padding-inline: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}
/* Exactly 3 cards — track a bit narrower so each card is slightly less wide */
body[data-page="home"] #plans .plans-slider {
  position: relative;
  overflow: visible;
  max-width: min(980px, 100%);
  margin-inline: auto;
  padding-inline: 0;
  width: 100%;
}
body[data-page="home"] #plans .plans-slider__track.pkg-grid {
  gap: clamp(12px, 1.5vw, 16px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: 2px 4px;
}
body[data-page="home"] #plans .plans-slider__track .pkg {
  flex: 0 0 calc((100% - (2 * clamp(12px, 1.5vw, 16px))) / 3);
  width: calc((100% - (2 * clamp(12px, 1.5vw, 16px))) / 3);
  max-width: calc((100% - (2 * clamp(12px, 1.5vw, 16px))) / 3);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
body[data-page="home"] #plans .plans-slider.is-slider .plans-slider__nav {
  display: contents;
}
body[data-page="home"] #plans .plans-slider__btn {
  position: absolute;
  top: 44%;
  z-index: 4;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(11, 27, 46, 0.1);
  box-shadow: var(--plans-shadow);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
body[data-page="home"] #plans .plans-slider__btn:hover:not(:disabled) {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--plans-shadow-hover);
  transform: translateY(-50%) scale(1.04);
}
body[data-page="home"] #plans .plans-slider__btn:focus-visible {
  outline: 2px solid #ff6528;
  outline-offset: 2px;
}
body[data-page="home"] #plans #plans-slider-prev {
  left: -8px;
}
body[data-page="home"] #plans #plans-slider-next {
  right: -8px;
}
@media (min-width: 1100px) {
  body[data-page="home"] #plans #plans-slider-prev {
    left: -20px;
  }
  body[data-page="home"] #plans #plans-slider-next {
    right: -20px;
  }
}
@media (max-width: 1099px) {
  body[data-page="home"] #plans .plans-slider__track .pkg {
    flex-basis: calc((100% - clamp(12px, 1.5vw, 16px)) / 2);
    width: calc((100% - clamp(12px, 1.5vw, 16px)) / 2);
    max-width: calc((100% - clamp(12px, 1.5vw, 16px)) / 2);
  }
  body[data-page="home"] .plans {
    max-height: none;
  }
}
@media (max-width: 639px) {
  body[data-page="home"] #plans .plans-slider__track .pkg {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
  }
  body[data-page="home"] .plans .pkg--compact .pkg__media,
  body[data-page="home"] #plans .pkg--compact .pkg__media {
    max-height: clamp(96px, 28vw, 120px);
  }
  body[data-page="home"] #plans #plans-slider-prev {
    left: 4px;
  }
  body[data-page="home"] #plans #plans-slider-next {
    right: 4px;
  }
  body[data-page="home"] .plans .sec-head--row {
    flex-direction: column;
    align-items: stretch;
  }
  body[data-page="home"] .plans .link-arrow {
    align-self: flex-start;
  }
}
@media (max-width: 359px) {
  body[data-page="home"] .plans .pkg__actions--home {
    flex-direction: column;
  }
  body[data-page="home"] .plans .pkg__actions--home .pkg__cta,
  body[data-page="home"] .plans .pkg__actions--home .btn--line {
    flex: 1 1 auto;
    width: 100%;
  }
}
body[data-page="home"] .plans-slider__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  list-style: none;
  padding: 0;
}
body[data-page="home"] .plans-slider__dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: #cfd6de;
  padding: 0;
  cursor: pointer;
  transition:
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease;
}
body[data-page="home"] .plans-slider__dots button.is-active {
  background: #ff6528;
  width: 20px;
}
body[data-page="home"] .plans-slider__dots button:focus-visible {
  outline: 2px solid #ff6528;
  outline-offset: 3px;
}

@keyframes home-plans-pkg-enter {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
body[data-page="home"] #plans #pkg-grid:not(.is-home-grid-entered) .pkg {
  opacity: 0;
  transform: translateY(26px) scale(0.97);
}
body[data-page="home"] #plans #pkg-grid.is-home-grid-entered .pkg {
  animation: home-plans-pkg-enter 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--home-i, 0) * var(--home-plans-stagger, 110ms));
}
/* Image settle inside plan cards after card lands — no opacity trap on CTAs */
body[data-page="home"] #plans #pkg-grid.is-home-grid-entered .pkg .pkg__media > img {
  /* backwards only — so hover scale works after settle */
  animation: home-plans-img-settle 900ms var(--motion-ease-media, cubic-bezier(0.4, 0, 0.2, 1)) backwards;
  animation-delay: calc(var(--home-i, 0) * var(--home-plans-stagger, 110ms) + 80ms);
}
@keyframes home-plans-img-settle {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}
@media (hover: hover) and (pointer: fine) {
  body[data-page="home"] #plans #pkg-grid .pkg {
    transition:
      transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.45s ease,
      box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
  body[data-page="home"] #plans #pkg-grid .pkg:hover {
    transform: translateY(-6px);
    border-color: rgba(11, 27, 46, 0.14);
    box-shadow: var(--plans-shadow-hover);
  }
  body[data-page="home"] #plans #pkg-grid .pkg:hover .pkg__media > img {
    transform: scale(1.04);
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] #plans #pkg-grid:not(.is-home-grid-entered) .pkg,
  body[data-page="home"] #plans #pkg-grid.is-home-grid-entered .pkg,
  body[data-page="home"] #plans #pkg-grid.is-home-grid-entered .pkg .pkg__media > img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  body[data-page="home"] #plans #pkg-grid .pkg,
  body[data-page="home"] #plans #pkg-grid .pkg .pkg__media > img {
    transition: none !important;
  }
}

/* ========== QUOTE MODAL ========== */
body[data-page="home"] #quoteModal .modal__dialog {
  max-width: min(980px, calc(100vw - 24px));
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 64px -24px rgba(7, 19, 31, 0.55);
}
body[data-page="home"] #quoteModal .modal__body {
  padding: 0;
}
body[data-page="home"] .quote-layout {
  display: grid;
}
@media (min-width: 860px) {
  body[data-page="home"] .quote-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.75fr);
    min-height: min(640px, 84vh);
  }
}
body[data-page="home"] .quote-main {
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: min(84vh, 720px);
  overflow: auto;
}
body[data-page="home"] .quote-main__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
body[data-page="home"] .quote-main__head .kicker {
  color: #ff6528;
  margin-bottom: 4px;
}
body[data-page="home"] .quote-main__head h2 {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  margin: 0;
}
body[data-page="home"] .quote-main__head h2 .accent {
  background: var(--home-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body[data-page="home"] .quote-main__lede {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 0.8125rem;
  max-width: 42ch;
}
body[data-page="home"] #quoteModal .modal__head {
  display: none;
}
body[data-page="home"] .quote-close {
  flex-shrink: 0;
}
@media (min-width: 860px) {
  body[data-page="home"] .quote-close {
    display: none;
  }
}
body[data-page="home"] .qsteps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 0 0 18px;
  counter-reset: q;
}
body[data-page="home"] .qsteps li {
  flex: 1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 28px auto auto;
  row-gap: 4px;
  align-content: start;
  border: 0;
  padding: 0 8px 0 0;
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 600;
  counter-increment: q;
  box-shadow: none;
  min-width: 0;
}
body[data-page="home"] .qsteps li::before {
  content: counter(q);
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 50%;
  background: #e8edf2;
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
body[data-page="home"] .qsteps .qsteps__title {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: 1;
  line-height: 1.25;
  padding-top: 2px;
}
body[data-page="home"] .qsteps li::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 0;
  top: 13px;
  height: 2px;
  background: #e8edf2;
  border-radius: 2px;
  z-index: 0;
  pointer-events: none;
}
body[data-page="home"] .qsteps li:last-child::after {
  display: none;
}
body[data-page="home"] .qsteps li.is-current {
  color: var(--navy);
}
body[data-page="home"] .qsteps li.is-current::before {
  background: var(--home-grad);
  color: #fff;
}
body[data-page="home"] .qsteps li.is-current::after {
  background: var(--home-grad);
}
body[data-page="home"] .qsteps li.is-done {
  color: var(--navy);
}
body[data-page="home"] .qsteps li.is-done::before {
  background: var(--navy);
  color: #fff;
}
body[data-page="home"] .qsteps li.is-done::after {
  background: var(--navy);
}
body[data-page="home"] .qsteps .qsteps__sub {
  grid-column: 1;
  grid-row: 3;
  display: block;
  font-weight: 400;
  font-size: 0.6875rem;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}
body[data-page="home"] #quoteModal .field--span2 {
  grid-column: 1 / -1;
}
body[data-page="home"] #quoteModal .field label {
  font-size: 0.75rem;
}
body[data-page="home"] #quoteModal .field select,
body[data-page="home"] #quoteModal .field input {
  min-height: 42px;
  border-radius: 10px;
  font-size: 0.875rem;
}
body[data-page="home"] #quoteModal .field--icon .field__control {
  position: relative;
}
body[data-page="home"] #quoteModal .field--icon .field__ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #ff6528;
  pointer-events: none;
  z-index: 1;
  display: grid;
  place-items: center;
}
body[data-page="home"] #quoteModal .field--icon .field__ico svg {
  width: 18px;
  height: 18px;
  display: block;
}
body[data-page="home"] #quoteModal .field--icon select,
body[data-page="home"] #quoteModal .field--icon input {
  width: 100%;
  padding-left: 40px;
}
body[data-page="home"] .advisory {
  margin-top: 14px;
  background: #fff4ec;
  border-color: rgba(255, 101, 40, 0.25);
  border-radius: 12px;
}
body[data-page="home"] .advisory summary {
  color: var(--navy);
}
body[data-page="home"] .qnav {
  margin-top: auto;
  padding-top: 14px;
  padding-bottom: 2px;
  border-top: 0;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
  z-index: 2;
}
body[data-page="home"] .qnav .btn--primary {
  background: var(--home-grad);
  border: 0;
  min-width: 160px;
}
body[data-page="home"] .quote-aside {
  display: none;
  position: relative;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(7, 19, 31, 0.18) 0%, rgba(7, 19, 31, 0.45) 42%, rgba(7, 19, 31, 0.78) 100%),
    url("../images/demo/opt/demo-trekking.jpg") center / cover no-repeat;
  padding: 18px 18px 22px;
}
@media (min-width: 860px) {
  body[data-page="home"] .quote-aside {
    display: flex;
    flex-direction: column;
  }
}
body[data-page="home"] .quote-aside__close {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
}
body[data-page="home"] .quote-aside__card {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 16px 14px;
  border-radius: 16px;
  background: rgba(11, 27, 46, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.45);
}
body[data-page="home"] .quote-aside__feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
body[data-page="home"] .quote-aside__feats li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}
body[data-page="home"] .quote-aside__ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #ff6528;
}
body[data-page="home"] .quote-aside__ico svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
}
body[data-page="home"] .quote-aside__feats strong {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 2px;
  color: #fff;
}
body[data-page="home"] .quote-aside__feats li div > span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}
body[data-page="home"] .quote-aside__slogan {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #fff;
}
body[data-page="home"] .quote-aside__slogan em {
  display: block;
  font-style: italic;
  position: relative;
  width: fit-content;
}
body[data-page="home"] .quote-aside__slogan em::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--home-grad);
}

@media (max-width: 859px) {
  body[data-page="home"] #quoteModal .modal__dialog {
    border-radius: 18px 18px 0 0;
  }
}
