/* index.html ONLY — outer double-stack + uniform per-card layer morphism */

html[data-index-page] .home-feature-section {
  --home-feature-border-width: 3px;
  --home-feature-stack-radius: 10px;
  --home-feature-image-ratio: 4 / 5;
  --home-feature-text-min: 132px;
  --home-feature-glass-bg:
    linear-gradient(215deg, rgba(0, 0, 0, 0.09) 0%, rgba(0, 0, 0, 0) 48%),
    linear-gradient(145deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.09) 100%);
  --home-feature-glass-border: 1px solid rgba(255, 255, 255, 0.45);
  --home-feature-glass-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  --home-feature-pill-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 -2px 0 rgba(46, 12, 94, 0.07) inset,
    0 16px 32px rgba(46, 12, 94, 0.18),
    0 8px 16px rgba(46, 12, 94, 0.12);
}

html[data-index-page] .home-feature-section .container {
  overflow: visible;
}

/* Outer stack — tray + round cap */
html[data-index-page] .home-feature-section .home-feature-stack {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: visible;
  margin-bottom: 24px;
  padding: 18px 16px 22px;
  border-radius: var(--home-feature-stack-radius);
  background: var(--home-feature-glass-bg);
  border: var(--home-feature-glass-border);
  box-shadow: var(--home-feature-glass-shadow);
}

html[data-index-page] .home-feature-section .home-feature-stack::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: calc(100% - 14px);
  border-radius: calc(var(--home-feature-stack-radius) - 2px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.025), rgba(0, 0, 0, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
  transform: translateY(10px) scale(0.98);
  z-index: 0;
  pointer-events: none;
}

html[data-index-page] .home-feature-section .home-feature-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, transparent 42%, rgba(0, 0, 0, 0.02) 100%);
  pointer-events: none;
  z-index: 1;
}

html[data-index-page] .home-feature-section .home-feature-stack__cap {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: normal;
  border-radius: var(--home-feature-stack-radius);
  background: var(--home-feature-glass-bg);
  border: var(--home-feature-border-width) solid #2c0e53;
  box-shadow: var(--home-feature-glass-shadow);
  transform: translateY(-6px);
  overflow: hidden;
}

html[data-index-page] .home-feature-section .home-feature-stack__cap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 45%);
  pointer-events: none;
  z-index: 1;
}

html[data-index-page] .home-feature-section .feature__wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 16px !important;
  padding-bottom: 20px !important;
  border: none;
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

html[data-index-page] .home-feature-section .home-feature-grid {
  width: 100%;
  margin: 0;
}

html[data-index-page] .home-feature-section .home-feature-grid > [class*="col-"] {
  display: flex;
}

/* Per-card stack — neutralize global promise-card tray chrome */
html[data-index-page] .home-feature-section .home-feature-card-stack.promise-card {
  --stack-tray-radius: 12px;
  --stack-card-radius: 10px;
  --stack-gap: 6px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 6px 4px 8px;
  gap: var(--stack-gap);
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  transform: none;
}

html[data-index-page] .home-feature-section .home-feature-card-stack.promise-card::before,
html[data-index-page] .home-feature-section .home-feature-card-stack.promise-card::after {
  display: none !important;
}

html[data-index-page] .home-feature-section .home-feature-card-stack__image-slab,
html[data-index-page] .home-feature-section .home-feature-card-stack__text-slab {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin: 0;
  padding: 8px;
  line-height: normal;
  border-radius: var(--stack-card-radius);
  background:
    radial-gradient(circle at top right, rgba(250, 248, 255, 0.9), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f8f6fc 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 -2px 0 rgba(46, 12, 94, 0.07) inset,
    0 12px 24px rgba(46, 12, 94, 0.14),
    0 4px 10px rgba(46, 12, 94, 0.08);
  transform: none;
}

html[data-index-page] .home-feature-section .home-feature-card-stack__text-slab {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

html[data-index-page] .home-feature-section .home-feature-card-stack__image-pill,
html[data-index-page] .home-feature-section .home-feature-card-stack__text-pill {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border-radius: 8px;
  background: #ffffff;
  border: 3px solid #2c0e53;
  transform: none;
  box-shadow: var(--home-feature-pill-shadow);
}

html[data-index-page] .home-feature-section .home-feature-card-stack__image-pill {
  padding: 8px;
  line-height: 0;
  aspect-ratio: var(--home-feature-image-ratio);
  overflow: hidden;
}

html[data-index-page] .home-feature-section .home-feature-card-stack__text-pill {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: var(--home-feature-text-min);
  padding: 12px 14px 14px;
}

html[data-index-page] .home-feature-section .home-feature-card-stack__image-pill img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 6px !important;
}

html[data-index-page] .home-feature-section .home-feature-caption__title {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  text-align: center;
  text-transform: capitalize;
}

html[data-index-page] .home-feature-section .home-feature-caption__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #000000;
  text-align: left;
}

html[data-index-page] .home-feature-section .home-feature-stack:hover .home-feature-stack__cap {
  transform: translateY(-8px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(255, 255, 255, 0.14);
}

@media (min-width: 1200px) {
  html[data-index-page] .home-feature-section {
    --home-feature-image-ratio: 5 / 6;
    --home-feature-text-min: 148px;
  }

  html[data-index-page] .home-feature-section .feature__wrapper {
    padding: 18px !important;
    padding-bottom: 22px !important;
  }

  html[data-index-page] .home-feature-section .home-feature-card-stack.promise-card {
    padding: 8px 6px 10px;
  }
}

/* 2026-06-12 home feature combined glass cleanup */
html[data-index-page] .home-feature-section {
  background:
    radial-gradient(circle at 88% 8%, rgba(72, 27, 130, 0.08), transparent 30%),
    radial-gradient(circle at 12% 14%, rgba(46, 12, 94, 0.05), transparent 26%),
    #ffffff !important;
  padding-top: clamp(64px, 7vw, 96px) !important;
  padding-bottom: clamp(64px, 7vw, 96px) !important;
}

html[data-index-page] .home-feature-section .home-feature-stack,
html[data-index-page] .home-feature-section .home-feature-stack__cap {
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at top right, rgba(72, 27, 130, 0.14), transparent 34%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(250, 248, 255, 0.72) 52%, rgba(245, 240, 252, 0.62)),
    rgba(255, 255, 255, 0.44) !important;
  box-shadow:
    0 34px 70px rgba(72, 27, 130, 0.2),
    0 14px 30px rgba(72, 27, 130, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -2px 0 rgba(72, 27, 130, 0.1) !important;
}

html[data-index-page] .home-feature-section .feature__wrapper {
  background: rgba(255, 255, 255, 0.42) !important;
  border-radius: 20px;
}

html[data-index-page] .home-feature-section .home-feature-card-stack__image-slab,
html[data-index-page] .home-feature-section .home-feature-card-stack__text-slab,
html[data-index-page] .home-feature-section .home-feature-card-stack__image-pill,
html[data-index-page] .home-feature-section .home-feature-card-stack__text-pill {
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(245, 240, 252, 0.46)),
    rgba(255, 255, 255, 0.38) !important;
  box-shadow:
    0 18px 36px rgba(72, 27, 130, 0.12),
    0 8px 18px rgba(72, 27, 130, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -1px 0 rgba(72, 27, 130, 0.08) !important;
  backdrop-filter: blur(18px) saturate(142%);
  -webkit-backdrop-filter: blur(18px) saturate(142%);
}

html[data-index-page] .home-feature-section .home-feature-card-stack__image-pill img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.32s ease;
}

html[data-index-page] .home-feature-section .home-feature-card-stack:hover .home-feature-card-stack__image-pill img {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.03);
}

/* 2026-06-18 caption spacing repair: keep existing feature-card design, remove oversized caption gaps */
html[data-index-page] .home-feature-section {
  --home-feature-text-min: auto;
}

html[data-index-page] .home-feature-section .home-feature-card-stack__text-slab {
  flex: 0 0 auto !important;
  padding: 6px !important;
}

html[data-index-page] .home-feature-section .home-feature-card-stack__text-pill {
  min-height: 0 !important;
  padding: 9px 10px 10px !important;
  justify-content: center !important;
}

html[data-index-page] .home-feature-section .home-feature-caption__title {
  margin: 0 0 4px !important;
  font-size: clamp(1.22rem, 1.35vw, 1.42rem) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
}

html[data-index-page] .home-feature-section .home-feature-caption__text {
  margin: 0 !important;
  font-size: clamp(0.8rem, 0.86vw, 0.9rem) !important;
  line-height: 1.28 !important;
  text-align: center !important;
}

@media (min-width: 1200px) {
  html[data-index-page] .home-feature-section {
    --home-feature-text-min: auto;
  }
}

