@import url("./core/tokens.css");
@import url("./core/color-system.css?v=palette-v17");
@import url("./core/reset.css");
@import url("./core/base.css");
@import url("./layout/page-shell.css");
@import url("./components/cards.css?v=palette-v17");
@import url("./components/buttons.css?v=20260525-rounded-pill-v1");
@import url("./layout/topbar.css?v=20260528-mobile-hero-nav-conflict-v49");
@import url("./components/forms.css");
@import url("./components/summary.css");
@import url("./components/tree.css");
@import url("./components/map.css?v=20260511-location-card-hero-text-v38");
@import url("./components/modal.css?v=20260520-home-tree-single-source-v1");
@import url("./components/page-section-header.css?v=20260521-quick-icon-refresh-v5");
@import url("./pages/home.css?v=20260601-footer-static-button-v88");

.tree-card .person-photo-wrapper { padding: 0; margin-bottom: 6px; }
.tree-card .person-photo { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; display: block; }
.tree-card .person-name { margin-top: 4px; margin-bottom: 2px; padding: 0 6px; font-weight: 600; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: center; }
.tree-card .person-years { margin-top: 4px; margin-bottom: 6px; font-size: 0.8rem; opacity: 0.85; }
.tree-card .person-card { padding: 10px 10px 8px; }

.authenticated-user {
  padding-bottom: 86px;
}


body.landing-page:not(.authenticated-home) .page-shell {
  padding-bottom: clamp(0.28rem, 0.7vw, 0.55rem);
}

body.landing-page:not(.authenticated-home) .site-footer {
  margin-bottom: 0;
}

body.landing-page .scroll-to-top[data-scroll-top-floating] {
  position: fixed;
  right: max(clamp(0.86rem, 2.2vw, 1.28rem), env(safe-area-inset-right));
  bottom: calc(clamp(0.86rem, 2.2vw, 1.28rem) + env(safe-area-inset-bottom));
  z-index: 1250;
  display: inline-grid;
  place-items: center;
  width: clamp(2.85rem, 5vw, 3.35rem);
  height: clamp(2.85rem, 5vw, 3.35rem);
  border: 1px solid rgba(255, 236, 172, 0.64);
  border-radius: 999px;
  color: #fff2bd;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 247, 205, 0.58), transparent 34%),
    linear-gradient(145deg, #d9b247 0%, #8a641d 48%, #3f250e 100%);
  box-shadow:
    0 0.72rem 1.5rem rgba(29, 19, 9, 0.28),
    0 0 0 0.24rem rgba(255, 246, 218, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -0.26rem 0.5rem rgba(55, 32, 10, 0.34);
  opacity: 0;
  transform: translateY(0.45rem) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

body.landing-page .scroll-to-top[data-scroll-top-floating][hidden] {
  display: none;
}

body.landing-page .scroll-to-top[data-scroll-top-floating].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.landing-page .scroll-to-top[data-scroll-top-floating]:hover,
body.landing-page .scroll-to-top[data-scroll-top-floating]:focus-visible {
  transform: translateY(-0.18rem) scale(1.02);
  filter: saturate(1.06) brightness(1.04);
  box-shadow:
    0 0.95rem 1.8rem rgba(29, 19, 9, 0.32),
    0 0 0 0.28rem rgba(255, 246, 218, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -0.24rem 0.48rem rgba(55, 32, 10, 0.32);
  outline: none;
}

body.landing-page .scroll-to-top[data-scroll-top-floating] span {
  position: relative;
  display: grid;
  place-items: center;
  width: 58%;
  height: 58%;
  border: 1px solid rgba(255, 246, 218, 0.5);
  border-radius: 999px;
  background: rgba(255, 250, 230, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
  color: inherit;
  font-size: 0;
  line-height: 0;
}

body.landing-page .scroll-to-top[data-scroll-top-floating] span::before,
body.landing-page .scroll-to-top[data-scroll-top-floating] span::after {
  content: "";
  position: absolute;
  display: block;
  background: currentColor;
  border-radius: 999px;
}

body.landing-page .scroll-to-top[data-scroll-top-floating] span::before {
  width: 0.88rem;
  height: 0.88rem;
  border-top: 0.22rem solid currentColor;
  border-left: 0.22rem solid currentColor;
  background: transparent;
  border-radius: 0.12rem 0 0 0;
  transform: translateY(0.12rem) rotate(45deg);
}

body.landing-page .scroll-to-top[data-scroll-top-floating] span::after {
  width: 0.22rem;
  height: 1.05rem;
  transform: translateY(0.26rem);
}

@media (max-width: 520px) {
  body.landing-page .scroll-to-top[data-scroll-top-floating] {
    right: max(0.74rem, env(safe-area-inset-right));
    width: 2.82rem;
    height: 2.82rem;
  }
}

.signed-in-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 1000;
  width: min(100%, 1040px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #1D1309, #1D1309);
  border: 1px solid rgba(230, 205, 164, 0.55);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 30px rgba(29, 19, 9, 0.28);
}

.bottom-nav-link {
  min-width: 0;
  color: #F2E6D2;
  text-decoration: none;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: clamp(0.54rem, 1.4vw, 0.72rem);
  font-weight: 700;
  line-height: 1.1;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 4px 2px;
  border-radius: 12px;
}

.bottom-nav-link img {
  width: 20px;
  height: 20px;
  display: block;
  opacity: 0.92;
}

.bottom-nav-link.is-current,
.bottom-nav-link:hover {
  background: rgba(255, 244, 221, 0.13);
}

.lm-map {
  position: relative;
}

.map-lazy-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  min-height: 320px;
  padding: clamp(1rem, 4vw, 2rem);
  text-align: center;
  color: #1D1309;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 247, 232, 0.88), rgba(238, 216, 184, 0.62) 54%, rgba(171, 117, 75, 0.20)),
    linear-gradient(135deg, rgba(255, 250, 238, 0.90), rgba(226, 198, 158, 0.62));
  border: 1px solid rgba(29, 19, 9, 0.24);
  border-radius: var(--radius-md);
}

.map-lazy-placeholder__icon {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  color: #1D1309;
  background: rgba(255, 247, 232, 0.72);
  border: 1px solid rgba(29, 19, 9, 0.22);
  box-shadow: 0 10px 24px rgba(29, 19, 9, 0.12);
}

.map-lazy-placeholder__title {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1;
}

.map-lazy-placeholder__copy {
  display: block;
  max-width: 23rem;
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  line-height: 1.35;
  color: rgba(88, 57, 38, 0.82);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   Landing page final polish: conflict-checked landing refinements
   ========================================================= */
body.landing-page {
  --ofc-section-border: rgba(206, 184, 145, 0.9);
  --ofc-section-border-outer: rgba(214, 194, 160, 0.78);
  --ofc-section-border-inner: rgba(214, 194, 160, 0.72);
  --ofc-section-shadow-a: rgba(120, 84, 52, 0.08);
  --ofc-section-shadow-b: rgba(92, 60, 32, 0.10);
  --ofc-section-shadow-c: rgba(84, 55, 29, 0.06);
  --ofc-card-gold-border: rgba(203, 171, 101, 0.78);
  --ofc-card-gold-highlight: rgba(255, 242, 201, 0.36);
  --ofc-card-gold-shadow: rgba(82, 49, 25, 0.13);
  --ofc-route-panel-bg: linear-gradient(180deg, rgba(255, 250, 244, 0.9), rgba(246, 237, 226, 0.94));
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing {
  margin-top: clamp(0.68rem, 1.22vw, 0.95rem) !important;
  margin-bottom: 0 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing + .landing-portrait-row,
body.landing-page .landing-portrait-row {
  margin-top: clamp(0.68rem, 1.22vw, 0.95rem) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy h1,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-ornament {
  transform: translateY(0.42rem) !important;
}


body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack {
  width: min(100%, 11.43rem) !important;
  grid-template-columns: 1fr !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack .btn-primary {
  width: 100% !important;
  min-height: 2.72rem !important;
  padding-top: 0.58rem !important;
  padding-bottom: 0.58rem !important;
  justify-content: center !important;
  gap: 0.48rem !important;
}


body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-ornament {
  position: relative !important;
  width: min(100%, 12rem) !important;
  height: 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: clamp(0.36rem, 0.82vw, 0.52rem) 0 clamp(0.42rem, 0.9vw, 0.58rem) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    linear-gradient(
      90deg,
      rgba(29, 19, 9, 0),
      rgba(29, 19, 9, 0.24) 18%,
      rgba(29, 19, 9, 0.3) calc(50% - 0.78rem),
      rgba(29, 19, 9, 0) calc(50% - 0.56rem),
      rgba(29, 19, 9, 0) calc(50% + 0.56rem),
      rgba(29, 19, 9, 0.3) calc(50% + 0.78rem),
      rgba(29, 19, 9, 0.24) 82%,
      rgba(29, 19, 9, 0)
    ) center / 100% 1px no-repeat !important;
  box-shadow: none !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-ornament::before {
  content: "✦" !important;
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  place-items: center !important;
  width: 1rem !important;
  height: 1rem !important;
  transform: none !important;
  border-radius: 999px !important;
  color: rgba(100, 61, 33, 0.58) !important;
  font-size: 0.62rem !important;
  line-height: 1 !important;
  background: rgba(244, 225, 188, 0.34) !important;
  border: 1px solid rgba(29, 19, 9, 0.12) !important;
  box-shadow: none !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-ornament::after {
  content: none !important;
  display: none !important;
}

body.landing-page .landing-portrait-row .summary-card--capsule {
  background:
    radial-gradient(circle at 50% 0%, rgba(182, 120, 70, 0.28), rgba(182, 120, 70, 0) 38%),
    linear-gradient(135deg, #1D1309 0%, #1D1309 52%, #1D1309 100%) !important;
}

body.landing-page .landing-portrait-row .summary-card--capsule::before,
body.landing-page .landing-portrait-row .summary-card--capsule::after {
  border-color: var(--button-border, rgba(212, 175, 55, 0.72)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 235, 179, 0.1) !important;
}

body.landing-page .tree-card.raised-card.parchment-card,
body.landing-page .timeline-card.raised-card.parchment-card,
body.landing-page .map-card.raised-card.parchment-card {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 36px !important;
  border: 2px solid rgba(206, 184, 145, 0.9) !important;
  box-shadow:
    0 12px 26px rgba(120, 84, 52, 0.08),
    0 28px 52px rgba(92, 60, 32, 0.10),
    0 2px 8px rgba(84, 55, 29, 0.06) !important;
}

body.landing-page .tree-card.raised-card.parchment-card::before,
body.landing-page .timeline-card.raised-card.parchment-card::before,
body.landing-page .map-card.raised-card.parchment-card::before {
  content: none !important;
  display: none !important;
}

body.landing-page .tree-card.raised-card.parchment-card::after,
body.landing-page .timeline-card.raised-card.parchment-card::after,
body.landing-page .map-card.raised-card.parchment-card::after {
  content: none !important;
  display: none !important;
}

body.landing-page .tree-card .person-card,
body.landing-page .timeline-preview-avatar-frame,
body.landing-page .map-sequence-card,
body.landing-page .map-route-stop {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid var(--ofc-card-gold-border) !important;
  outline: 1px solid rgba(255, 241, 199, 0.16) !important;
  box-shadow:
    0 8px 18px var(--ofc-card-gold-shadow),
    0 0 0 1px rgba(255, 241, 199, 0.18),
    inset 0 1px 0 var(--ofc-card-gold-highlight) !important;
}

body.landing-page .timeline-preview-avatar-frame {
  padding: 0 !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

body.landing-page .timeline-preview-avatar {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: inherit !important;
  object-fit: cover !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body.landing-page .tree-card .person-card::after,
body.landing-page .timeline-preview-avatar-frame::after,
body.landing-page .map-sequence-card::after,
body.landing-page .map-route-stop::after {
  content: "" !important;
  position: absolute !important;
  inset: -40% !important;
  z-index: 4 !important;
  pointer-events: none !important;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 224, 140, 0.055) 48%,
    rgba(255, 250, 226, 0.13) 50%,
    rgba(255, 224, 140, 0.055) 53%,
    transparent 60%
  ) !important;
  transform: translateX(-80%) rotate(8deg) !important;
  animation: ofcSubtleGoldShimmer 7s ease-in-out infinite !important;
  mix-blend-mode: screen !important;
}

body.landing-page .timeline-preview-avatar-frame::after {
  border-radius: 999px !important;
}

@keyframes ofcSubtleGoldShimmer {
  0%, 64% { transform: translateX(-80%) rotate(8deg); opacity: 0; }
  74% { opacity: 0.18; }
  92%, 100% { transform: translateX(80%) rotate(8deg); opacity: 0; }
}

body.landing-page .landing-capsule-preview__feature-card::before,
body.landing-page .landing-capsule-preview__feature-card::after,
body.landing-page .capsule-metric-card--hero::before,
body.landing-page .capsule-metric-card--hero::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.map-route-stop-header,
body.landing-page .map-route-stop-header {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  grid-template-columns: none !important;
}

.map-route-stop-count,
body.landing-page .map-route-stop-count {
  display: none !important;
}

.map-route-stop-date,
body.landing-page .map-route-stop-date {
  display: block !important;
  width: 100% !important;
  justify-self: center !important;
  text-align: center !important;
  margin: 0 !important;
}

body.landing-page .map-route-stop-copy {
  background: var(--ofc-route-panel-bg) !important;
}

body.landing-page .map-route-strip {
  justify-content: center !important;
  justify-items: center !important;
  align-items: center !important;
  margin-inline: auto !important;
  gap: clamp(0.22rem, 0.7vw, 0.38rem) !important;
}

body.landing-page .map-sequence-host > .map-route-strip {
  margin-inline: auto !important;
}

body.landing-page .map-route-stop-arrow {
  width: clamp(0.95rem, 2.1vw, 1.35rem) !important;
  min-width: clamp(0.95rem, 2.1vw, 1.35rem) !important;
  height: 1px !important;
  margin-inline: 0 !important;
  color: transparent !important;
  background: linear-gradient(90deg, rgba(151, 100, 42, 0.12), rgba(151, 100, 42, 0.58), rgba(151, 100, 42, 0.12)) !important;
  transform: none !important;
}

body.landing-page .map-route-stop-arrow svg,
body.landing-page .map-route-stop-arrow::before,
body.landing-page .map-route-stop-arrow::after {
  content: none !important;
  display: none !important;
}

body.landing-page .mapboxgl-ctrl-group {
  transform: scale(0.6) !important;
  transform-origin: top right !important;
}

body.landing-page .mapboxgl-ctrl-group button {
  width: 17px !important;
  height: 17px !important;
}

body.landing-page .mapboxgl-ctrl-group button .mapboxgl-ctrl-icon {
  background-size: 12px 12px !important;
}

body.landing-page .page-section-header,
body.landing-page .page-section-header--landing,
body.landing-page:not(.authenticated-home) .landing-flow__header,
body.landing-page .landing-feature-pair--primary .page-section-header,
body.landing-page .landing-keepsakes .page-section-header,
body.landing-page .landing-real-families .page-section-header {
  margin-bottom: clamp(0.18rem, 0.48vw, 0.32rem) !important;
}

body.landing-page .landing-feature-pair--primary,
body.landing-page:not(.authenticated-home) .landing-flow,
body.landing-page:not(.authenticated-home) .landing-keepsakes,
body.landing-page:not(.authenticated-home) .landing-real-families {
  row-gap: clamp(0.48rem, 1vw, 0.78rem) !important;
}

@media (prefers-reduced-motion: reduce) {
  body.landing-page .tree-card .person-card::after,
  body.landing-page .timeline-preview-avatar-frame::after,
  body.landing-page .map-sequence-card::after,
  body.landing-page .map-route-stop::after {
    animation: none !important;
    opacity: 0 !important;
  }
}


/* =========================================================
   Landing page v15 conflict guard
   ========================================================= */
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .subtitle {
  font-size: inherit;
}

body.landing-page .landing-portrait-row .summary-card--capsule {
  background:
    radial-gradient(circle at 50% 0%, rgba(195, 133, 82, 0.3), rgba(195, 133, 82, 0) 38%),
    linear-gradient(135deg, #1D1309 0%, #1D1309 52%, #1D1309 100%) !important;
}

body.landing-page .tree-card.raised-card.parchment-card,
body.landing-page .timeline-card.raised-card.parchment-card,
body.landing-page .map-card.raised-card.parchment-card {
  overflow: hidden !important;
  border-radius: 36px !important;
  border: 2px solid rgba(206, 184, 145, 0.9) !important;
  box-shadow:
    0 12px 26px rgba(120, 84, 52, 0.08),
    0 28px 52px rgba(92, 60, 32, 0.10),
    0 2px 8px rgba(84, 55, 29, 0.06) !important;
  outline: 0 !important;
}

body.landing-page .tree-card.raised-card.parchment-card::before,
body.landing-page .tree-card.raised-card.parchment-card::after,
body.landing-page .timeline-card.raised-card.parchment-card::before,
body.landing-page .timeline-card.raised-card.parchment-card::after,
body.landing-page .map-card.raised-card.parchment-card::before,
body.landing-page .map-card.raised-card.parchment-card::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
}

/* =========================================================
   Landing page v16 summary section cleanup
   ========================================================= */
body.landing-page .landing-portrait-row .summary-card--capsule {
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.985), rgba(243, 233, 218, 0.95)) !important;
  border: 2px solid rgba(206, 184, 145, 0.9) !important;
  outline: 0 !important;
  box-shadow:
    0 12px 26px rgba(120, 84, 52, 0.08),
    0 28px 52px rgba(92, 60, 32, 0.10),
    0 2px 8px rgba(84, 55, 29, 0.06) !important;
}

body.landing-page .landing-portrait-row .summary-card--capsule::before,
body.landing-page .landing-portrait-row .summary-card--capsule::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
}

body.landing-page .summary-card--capsule .capsule-ancestor-name--hero,
body.landing-page .summary-card--capsule .capsule-ancestor-role--hero,
body.landing-page .summary-card--capsule .capsule-earliest-pill--hero {
  color: var(--ofc-brown, #1D1309) !important;
}

body.landing-page .summary-card--capsule .capsule-ancestor-role--hero {
  letter-spacing: 0.16em !important;
}

body.landing-page .summary-card--capsule .capsule-earliest-pill--hero {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-inline: 0 !important;
}

body.landing-page .summary-card--capsule .capsule-overview-card--hero,
body.landing-page .summary-card--capsule .capsule-metric-card--hero {
  border: 0 !important;
  outline: 0 !important;
}

body.landing-page .summary-card--capsule .capsule-overview-card--hero::before,
body.landing-page .summary-card--capsule .capsule-overview-card--hero::after,
body.landing-page .summary-card--capsule .capsule-metric-card--hero::before,
body.landing-page .summary-card--capsule .capsule-metric-card--hero::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
}

/* =========================================================
   Landing page v17 summary card refinement
   ========================================================= */
body.landing-page .landing-portrait-row .summary-card--capsule {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.995), rgba(247, 240, 229, 0.97)) !important;
}

body.landing-page .summary-card--capsule .capsule-family-name-line,
body.landing-page .summary-card--capsule .capsule-ancestor-name--hero,
body.landing-page .summary-card--capsule .capsule-ancestor-role--hero,
body.landing-page .summary-card--capsule .capsule-earliest-pill--hero {
  color: var(--ofc-brown, #1D1309) !important;
}

body.landing-page .summary-card--capsule .capsule-overview-card--hero {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.landing-page .summary-card--capsule .capsule-overview-card--hero::before,
body.landing-page .summary-card--capsule .capsule-overview-card--hero::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
}

body.landing-page .summary-card--capsule .capsule-metric-card--hero {
  border: 1px solid var(--ofc-card-gold-border, rgba(203, 171, 101, 0.78)) !important;
  outline: 0 !important;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.985), rgba(248, 240, 228, 0.95)) !important;
  box-shadow:
    0 7px 16px rgba(82, 49, 25, 0.075),
    0 1px 0 rgba(255, 242, 201, 0.32) inset !important;
}

body.landing-page .summary-card--capsule .capsule-metric-card--hero::before,
body.landing-page .summary-card--capsule .capsule-metric-card--hero::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
}

body.landing-page .summary-card--capsule .capsule-portrait-shell--hero {
  border: 3px solid var(--ofc-brown, #1D1309) !important;
  outline: 1px solid rgba(255, 238, 183, 0.26) !important;
  box-shadow:
    0 13px 25px rgba(58, 33, 21, 0.27),
    0 0 0 3px rgba(58, 33, 21, 0.08),
    inset 0 1px 0 rgba(255, 245, 218, 0.38) !important;
}

/* =========================================================
   Landing page v18 summary identity and hero alignment
   ========================================================= */
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy h1,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-ornament {
  transform: translateY(0.54rem) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack .btn-primary {
  padding-inline: 1.15rem !important;
  justify-content: center !important;
  text-align: center !important;
}

body.landing-page .landing-portrait-row .summary-card--capsule {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 249, 236, 0.42), transparent 54%),
    linear-gradient(180deg, rgba(250, 241, 226, 0.98), rgba(235, 218, 191, 0.96)) !important;
}

body.landing-page .summary-card--capsule .capsule-portrait-shell--hero {
  padding: clamp(0.07rem, 0.24vw, 0.12rem) !important;
  background:
    linear-gradient(180deg, rgba(255, 247, 223, 0.94), rgba(224, 198, 145, 0.8)) !important;
  border: clamp(4px, 0.5vw, 6px) solid var(--ofc-brown, #1D1309) !important;
  outline: 0 !important;
  box-shadow: none !important;
}

body.landing-page .summary-card--capsule .capsule-portrait-photo-wrap {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  border-radius: inherit !important;
  border: 1px solid rgba(255, 246, 214, 0.76) !important;
  box-shadow: none !important;
}

body.landing-page .summary-card--capsule .capsule-portrait-photo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.landing-page .summary-card--capsule .capsule-family-name-block {
  transform: translateY(clamp(0.18rem, 0.46vw, 0.28rem)) !important;
}

body.landing-page .summary-card--capsule .capsule-family-name-line {
  color: #D4AF37 !important;
  -webkit-text-stroke: 0.32px rgba(58, 33, 21, 0.74) !important;
  paint-order: stroke fill !important;
  text-shadow: none !important;
}

body.landing-page .summary-card--capsule .capsule-family-ornament {
  margin-top: clamp(0.28rem, 0.62vw, 0.4rem) !important;
  transform: translateY(clamp(0.08rem, 0.24vw, 0.14rem)) !important;
  background:
    radial-gradient(circle at center, rgba(216, 183, 98, 0.9) 0 1.35px, transparent 1.95px),
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(216, 183, 98, 0) 8%,
      rgba(216, 183, 98, 0.66) calc(50% - 0.56rem),
      transparent calc(50% - 0.54rem),
      transparent calc(50% + 0.54rem),
      rgba(216, 183, 98, 0.66) calc(50% + 0.56rem),
      rgba(216, 183, 98, 0) 92%,
      transparent 100%
    ) !important;
  filter: none !important;
}

body.landing-page .summary-card--capsule .capsule-family-ornament::before,
body.landing-page .summary-card--capsule .capsule-family-ornament::after {
  background: none !important;
  box-shadow: none !important;
}

/* v28: Migration map route-stop date labels */
body.landing-page .map-route-stop {
  grid-template-rows: 1fr !important;
  overflow: visible !important;
  padding-top: clamp(0.34rem, 0.7vw, 0.46rem) !important;
}

body.landing-page .map-route-stop-header,
body.landing-page .map-route-stop-count,
body.landing-page .map-route-stop-date {
  display: none !important;
}

body.landing-page .map-route-stop-date-label {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  z-index: 6 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 3.1rem !important;
  max-width: calc(100% - 1rem) !important;
  padding: 0.1rem 0.48rem 0.12rem !important;
  border: 1px solid rgba(29, 19, 9, 0.22) !important;
  border-radius: 999px !important;
  color: #1D1309 !important;
  background: linear-gradient(180deg, rgba(255, 249, 236, 0.98), rgba(239, 225, 203, 0.95)) !important;
  box-shadow:
    0 3px 8px rgba(74, 42, 25, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  font-family: var(--font-display) !important;
  font-size: clamp(0.76rem, 1vw, 0.88rem) !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  letter-spacing: 0.02em !important;
  text-align: center !important;
  transform: translate(-50%, -52%) !important;
  white-space: nowrap !important;
}

body.landing-page .map-route-stop-copy {
  min-height: clamp(2.55rem, 4.6vw, 3.05rem) !important;
  padding-top: clamp(0.46rem, 0.9vw, 0.62rem) !important;
}


/* v30: Migration map location card spacing and capsule shape */
body.landing-page .map-sequence-host {
  row-gap: clamp(0.34rem, 0.82vw, 0.52rem) !important;
}

body.landing-page .map-route-strip {
  margin-top: clamp(0.34rem, 0.86vw, 0.56rem) !important;
  margin-bottom: clamp(0.34rem, 0.86vw, 0.56rem) !important;
  row-gap: clamp(0.58rem, 1vw, 0.74rem) !important;
  column-gap: clamp(0.46rem, 0.9vw, 0.64rem) !important;
}

body.landing-page .map-route-stop {
  border-radius: 999px !important;
  border: 1.5px solid rgba(203, 171, 101, 0.82) !important;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(246, 236, 219, 0.96)) !important;
  box-shadow:
    0 9px 18px rgba(83, 50, 23, 0.08),
    0 1px 0 rgba(255, 246, 216, 0.56) inset !important;
}

body.landing-page .map-route-stop-date-label {
  border-color: rgba(203, 171, 101, 0.84) !important;
  color: #1D1309 !important;
}

body.landing-page .live-map-frame {
  margin-top: clamp(0.48rem, 1vw, 0.72rem) !important;
}

@media (max-width: 640px) {
  body.landing-page .map-sequence-host {
    row-gap: 0.36rem !important;
  }

  body.landing-page .map-route-strip {
    margin-top: 0.34rem !important;
    margin-bottom: 0.42rem !important;
    row-gap: 0.62rem !important;
    column-gap: 0.42rem !important;
  }

  body.landing-page .live-map-frame {
    margin-top: 0.58rem !important;
  }
}


/* =========================================================
   OFC v33 migration route card conflict guard
   Keep each location card as one clean rectangular pill.
   ========================================================= */
body.landing-page .map-sequence-host,
.landing-page .map-sequence-host {
  row-gap: clamp(0.42rem, 0.9vw, 0.62rem) !important;
}

body.landing-page .map-route-strip,
.landing-page .map-route-strip {
  align-items: center !important;
  justify-content: center !important;
  justify-items: center !important;
  column-gap: 0 !important;
  row-gap: clamp(0.58rem, 1vw, 0.76rem) !important;
  margin-top: clamp(0.42rem, 0.9vw, 0.62rem) !important;
  margin-bottom: clamp(0.42rem, 0.9vw, 0.62rem) !important;
}

body.landing-page .map-route-stop,
.landing-page .map-route-stop {
  position: relative !important;
  z-index: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: clamp(6.6rem, 13.9vw, 8.26rem) !important;
  min-width: clamp(6.6rem, 13.9vw, 8.26rem) !important;
  min-height: clamp(1.78rem, 3.05vw, 2.04rem) !important;
  padding: clamp(0.24rem, 0.4vw, 0.31rem) clamp(0.48rem, 0.76vw, 0.64rem) !important;
  border: 1.5px solid rgba(203, 171, 101, 0.86) !important;
  border-radius: clamp(0.22rem, 0.38vw, 0.32rem) !important;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(248, 239, 224, 0.97)) !important;
  box-shadow:
    0 7px 14px rgba(83, 50, 23, 0.07),
    inset 0 1px 0 rgba(255, 248, 226, 0.72) !important;
  outline: 0 !important;
  overflow: visible !important;
  isolation: isolate !important;
}

body.landing-page .map-route-stop::before,
body.landing-page .map-route-stop::after,
.landing-page .map-route-stop::before,
.landing-page .map-route-stop::after {
  content: none !important;
  display: none !important;
}

body.landing-page .map-route-stop-copy,
.landing-page .map-route-stop-copy {
  display: contents !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.landing-page .map-route-stop-label,
.landing-page .map-route-stop-label {
  display: block !important;
  width: 100% !important;
  max-width: 19ch !important;
  margin: 0 auto !important;
  color: #1D1309 !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(0.7rem, 0.98vw, 0.84rem) !important;
  font-weight: 760 !important;
  line-height: 1.03 !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  text-wrap: balance !important;
  background: transparent !important;
  text-shadow: none !important;
}

body.landing-page .map-route-stop-date-label,
.landing-page .map-route-stop-date-label {
  top: 0 !important;
  left: 50% !important;
  z-index: 3 !important;
  min-width: 2.75rem !important;
  max-width: calc(100% - 0.7rem) !important;
  padding: 0.04rem 0.38rem 0.07rem !important;
  border: 1.35px solid rgba(203, 171, 101, 0.88) !important;
  border-radius: 0.32rem !important;
  color: #1D1309 !important;
  background: linear-gradient(180deg, rgba(255, 250, 238, 0.99), rgba(244, 231, 209, 0.98)) !important;
  box-shadow:
    0 2px 6px rgba(74, 42, 25, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  font-size: clamp(0.72rem, 0.94vw, 0.82rem) !important;
  line-height: 1 !important;
  transform: translate(-50%, -54%) !important;
}

body.landing-page .map-route-stop-arrow,
.landing-page .map-route-stop-arrow {
  position: relative !important;
  z-index: 0 !important;
  align-self: center !important;
  flex: 0 0 clamp(0.9rem, 2.1vw, 1.45rem) !important;
  width: clamp(0.9rem, 2.1vw, 1.45rem) !important;
  min-width: clamp(0.9rem, 2.1vw, 1.45rem) !important;
  height: 1.5px !important;
  margin-inline: -1px !important;
  color: transparent !important;
  background: linear-gradient(90deg, rgba(203, 171, 101, 0.32), rgba(203, 171, 101, 0.86), rgba(203, 171, 101, 0.32)) !important;
  transform: none !important;
}

body.landing-page .map-route-stop-arrow svg,
body.landing-page .map-route-stop-arrow::before,
body.landing-page .map-route-stop-arrow::after,
.landing-page .map-route-stop-arrow svg,
.landing-page .map-route-stop-arrow::before,
.landing-page .map-route-stop-arrow::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 640px) {
  body.landing-page .map-route-stop,
  .landing-page .map-route-stop {
    width: clamp(6.28rem, 29.75vw, 7.55rem) !important;
    min-width: clamp(6.28rem, 29.75vw, 7.55rem) !important;
    min-height: 1.86rem !important;
    padding: 0.26rem 0.42rem !important;
    border-radius: 0.26rem !important;
  }

  body.landing-page .map-route-stop-label,
  .landing-page .map-route-stop-label {
    max-width: 17ch !important;
    font-size: clamp(0.66rem, 2.35vw, 0.78rem) !important;
    line-height: 1.02 !important;
  }

  body.landing-page .map-route-stop-arrow,
  .landing-page .map-route-stop-arrow {
    flex-basis: clamp(0.72rem, 3.35vw, 1rem) !important;
    width: clamp(0.72rem, 3.35vw, 1rem) !important;
    min-width: clamp(0.72rem, 3.35vw, 1rem) !important;
  }
}


/* =========================================================
   OFC v36 migration route card visibility fix
   Final guard against older compact-card rules in landing-app.
   ========================================================= */
body.landing-page .map-card .map-route-strip,
body.landing-page .map-route-strip,
.landing-page .map-card .map-route-strip,
.landing-page .map-route-strip {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  column-gap: clamp(0.18rem, 0.42vw, 0.32rem) !important;
  row-gap: clamp(0.92rem, 1.35vw, 1.16rem) !important;
  margin-top: clamp(0.58rem, 1.05vw, 0.82rem) !important;
  margin-bottom: clamp(0.18rem, 0.45vw, 0.32rem) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
}

body.landing-page .map-card .map-route-stop,
body.landing-page .map-route-strip .map-route-stop,
.landing-page .map-card .map-route-stop,
.landing-page .map-route-strip .map-route-stop {
  position: relative !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: clamp(6.25rem, 13.2vw, 7.85rem) !important;
  min-width: clamp(6.25rem, 13.2vw, 7.85rem) !important;
  min-height: clamp(4rem, 6.85vw, 4.6rem) !important;
  padding: clamp(0.92rem, 1.18vw, 1.06rem) clamp(0.62rem, 0.95vw, 0.82rem) clamp(0.48rem, 0.7vw, 0.58rem) !important;
  border: 1.5px solid rgba(203, 171, 101, 0.9) !important;
  border-radius: clamp(0.34rem, 0.54vw, 0.46rem) !important;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.99), rgba(248, 239, 224, 0.98)) !important;
  box-shadow:
    0 9px 18px rgba(83, 50, 23, 0.07),
    inset 0 1px 0 rgba(255, 248, 226, 0.78) !important;
  overflow: visible !important;
}

body.landing-page .map-card .map-route-stop-copy,
body.landing-page .map-route-strip .map-route-stop-copy,
.landing-page .map-card .map-route-stop-copy,
.landing-page .map-route-strip .map-route-stop-copy {
  display: contents !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.landing-page .map-card .map-route-stop-label,
body.landing-page .map-route-strip .map-route-stop-label,
.landing-page .map-card .map-route-stop-label,
.landing-page .map-route-strip .map-route-stop-label {
  display: block !important;
  width: 100% !important;
  max-width: 20ch !important;
  margin: 0 auto !important;
  color: #1D1309 !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(0.94rem, 1.31vw, 1.12rem) !important;
  font-weight: 780 !important;
  line-height: 1.08 !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  text-wrap: balance !important;
}

body.landing-page .map-card .map-route-stop-date-label,
body.landing-page .map-route-strip .map-route-stop-date-label,
.landing-page .map-card .map-route-stop-date-label,
.landing-page .map-route-strip .map-route-stop-date-label {
  top: 0 !important;
  left: 50% !important;
  z-index: 3 !important;
  min-width: clamp(3.28rem, 5.2vw, 3.8rem) !important;
  max-width: calc(100% - 0.8rem) !important;
  padding: 0.08rem 0.48rem 0.12rem !important;
  border: 1.45px solid rgba(203, 171, 101, 0.92) !important;
  border-radius: 0.4rem !important;
  color: #1D1309 !important;
  background: linear-gradient(180deg, rgba(255, 250, 238, 0.99), rgba(244, 231, 209, 0.98)) !important;
  box-shadow:
    0 2px 6px rgba(74, 42, 25, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(1.04rem, 1.48vw, 1.25rem) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0.012em !important;
  text-align: center !important;
  transform: translate(-50%, -90%) !important;
  white-space: nowrap !important;
}

body.landing-page .map-card .map-route-stop-arrow,
body.landing-page .map-route-strip .map-route-stop-arrow,
.landing-page .map-card .map-route-stop-arrow,
.landing-page .map-route-strip .map-route-stop-arrow {
  flex: 0 0 clamp(1.3rem, 3.05vw, 2.08rem) !important;
  width: clamp(1.3rem, 3.05vw, 2.08rem) !important;
  min-width: clamp(1.3rem, 3.05vw, 2.08rem) !important;
  height: 1.5px !important;
  margin-inline: -1px !important;
  background: linear-gradient(90deg, rgba(203, 171, 101, 0.28), rgba(203, 171, 101, 0.82), rgba(203, 171, 101, 0.28)) !important;
}

body.landing-page .map-card .live-map-frame,
body.landing-page .live-map-frame,
.landing-page .map-card .live-map-frame,
.landing-page .live-map-frame {
  margin-top: 0.02rem !important;
  transform: translateY(-0.18rem) !important;
}

@media (max-width: 640px) {
  body.landing-page .map-card .map-route-strip,
  body.landing-page .map-route-strip,
  .landing-page .map-card .map-route-strip,
  .landing-page .map-route-strip {
    column-gap: clamp(0.08rem, 0.92vw, 0.18rem) !important;
    row-gap: 1rem !important;
    margin-top: 0.72rem !important;
    margin-bottom: 0.2rem !important;
  }

  body.landing-page .map-card .map-route-stop,
  body.landing-page .map-route-strip .map-route-stop,
  .landing-page .map-card .map-route-stop,
  .landing-page .map-route-strip .map-route-stop {
    width: clamp(6.42rem, 29.1vw, 7.6rem) !important;
    min-width: clamp(6.42rem, 29.1vw, 7.6rem) !important;
    min-height: 4.18rem !important;
    padding: 0.96rem 0.58rem 0.5rem !important;
    border-radius: 0.38rem !important;
  }

  body.landing-page .map-card .map-route-stop-label,
  body.landing-page .map-route-strip .map-route-stop-label,
  .landing-page .map-card .map-route-stop-label,
  .landing-page .map-route-strip .map-route-stop-label {
    max-width: 19ch !important;
    font-size: clamp(0.9rem, 3.08vw, 1.04rem) !important;
    line-height: 1.07 !important;
  }

  body.landing-page .map-card .map-route-stop-date-label,
  body.landing-page .map-route-strip .map-route-stop-date-label,
  .landing-page .map-card .map-route-stop-date-label,
  .landing-page .map-route-strip .map-route-stop-date-label {
    font-size: clamp(1rem, 3.75vw, 1.2rem) !important;
    transform: translate(-50%, -90%) !important;
  }

  body.landing-page .map-card .map-route-stop-arrow,
  body.landing-page .map-route-strip .map-route-stop-arrow,
  .landing-page .map-card .map-route-stop-arrow,
  .landing-page .map-route-strip .map-route-stop-arrow {
    flex-basis: clamp(1.04rem, 4.82vw, 1.45rem) !important;
    width: clamp(1.04rem, 4.82vw, 1.45rem) !important;
    min-width: clamp(1.04rem, 4.82vw, 1.45rem) !important;
  }

  body.landing-page .map-card .live-map-frame,
  body.landing-page .live-map-frame,
  .landing-page .map-card .live-map-frame,
  .landing-page .live-map-frame {
    margin-top: 0 !important;
    transform: translateY(-0.24rem) !important;
  }
}

/* =========================================================
   OFC v38 landing hero text + migration location card tune
   ========================================================= */
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .subtitle {
  font-size: 1.01em !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack .btn-primary {
  font-size: 1.05em !important;
}


body.landing-page .map-card .map-route-stop,
body.landing-page .map-route-strip .map-route-stop,
.landing-page .map-card .map-route-stop,
.landing-page .map-route-strip .map-route-stop {
  width: clamp(5.94rem, 12.54vw, 7.46rem) !important;
  min-width: clamp(5.94rem, 12.54vw, 7.46rem) !important;
  min-height: clamp(3.17rem, 5.42vw, 3.64rem) !important;
  padding-top: clamp(0.74rem, 0.93vw, 0.84rem) !important;
  padding-bottom: clamp(0.38rem, 0.55vw, 0.46rem) !important;
}

body.landing-page .map-card .map-route-stop-label,
body.landing-page .map-route-strip .map-route-stop-label,
.landing-page .map-card .map-route-stop-label,
.landing-page .map-route-strip .map-route-stop-label {
  font-size: clamp(0.846rem, 1.18vw, 1.007rem) !important;
}

@media (max-width: 640px) {
  body.landing-page .map-card .map-route-stop,
  body.landing-page .map-route-strip .map-route-stop,
  .landing-page .map-card .map-route-stop,
  .landing-page .map-route-strip .map-route-stop {
    width: clamp(6.1rem, 27.65vw, 7.22rem) !important;
    min-width: clamp(6.1rem, 27.65vw, 7.22rem) !important;
    min-height: 3.31rem !important;
    padding-top: 0.76rem !important;
    padding-bottom: 0.4rem !important;
  }

  body.landing-page .map-card .map-route-stop-label,
  body.landing-page .map-route-strip .map-route-stop-label,
  .landing-page .map-card .map-route-stop-label,
  .landing-page .map-route-strip .map-route-stop-label {
    font-size: clamp(0.817rem, 2.77vw, 0.941rem) !important;
  }
}

/* =========================================================
   OFC v40 hero subbanner size correction
   ========================================================= */
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .subtitle,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle-line,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle > span,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .subtitle > span {
  font-size: clamp(0.86rem, 1.52vw, calc(19.2px * 0.8282)) !important;
  line-height: 1.48 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle-line {
  display: block !important;
  white-space: nowrap !important;
}

/* =========================================================
   OFC v41 hero subbanner center-safe sizing
   ========================================================= */
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy--landing {
  inline-size: min(45.5%, 34.5rem) !important;
  max-inline-size: min(45.5%, 34.5rem) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .subtitle {
  inline-size: 100% !important;
  max-inline-size: 100% !important;
  margin-inline: 0 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .subtitle,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle-line,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle > span,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .subtitle > span {
  font-size: clamp(1.08rem, 2.22vw, 1.64rem) !important;
  line-height: 1.46 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle-line {
  display: block !important;
  max-inline-size: 100% !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy--landing {
    inline-size: min(48%, 21rem) !important;
    max-inline-size: min(48%, 21rem) !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .subtitle,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle-line,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle > span,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .subtitle > span {
    font-size: clamp(0.92rem, 3.05vw, 1.14rem) !important;
    line-height: 1.42 !important;
  }
}


/* =========================================================
   OFC v42 hero subbanner final center-line guard
   ========================================================= */
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy--landing {
  inline-size: min(45%, 33rem) !important;
  max-inline-size: min(45%, 33rem) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .subtitle,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle-line,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle > span,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .subtitle > span {
  font-size: clamp(0.96rem, 1.62vw, 1.34rem) !important;
  line-height: 1.46 !important;
  letter-spacing: 0 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle-line {
  display: block !important;
  max-inline-size: 100% !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy--landing {
    inline-size: min(45%, 19.5rem) !important;
    max-inline-size: min(45%, 19.5rem) !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .subtitle,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle-line,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle > span,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .subtitle > span {
    font-size: clamp(0.78rem, 2.34vw, 0.98rem) !important;
    line-height: 1.42 !important;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .subtitle,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle-line,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle > span,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .subtitle > span {
    font-size: clamp(1rem, 1.5vw, 1.16rem) !important;
  }
}

/* =========================================================
   OFC v43 hero cleanup + responsive banner scale
   ========================================================= */
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy h1,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-title-top,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-title-line {
  font-size: clamp(1.76rem, 3.68vw, 3.44rem) !important;
  line-height: 1.03 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: min(100%, 13.2rem) !important;
  max-width: 13.2rem !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack .btn-primary {
  width: 100% !important;
  white-space: nowrap !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack .btn-primary--hero-secondary,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-proof-points,
body.landing-page:not(.authenticated-home) .demo-family-panel,
body.landing-page:not(.authenticated-home) .demo-family-tabs {
  display: none !important;
}

@media (max-width: 760px) {
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy h1,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-title-top,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-title-line {
    font-size: clamp(1.34rem, 5.2vw, 2.04rem) !important;
    line-height: 1.04 !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack {
    width: min(100%, 11.8rem) !important;
    max-width: 11.8rem !important;
  }
}

/* =========================================================
   Legacy Intelligence landing preview
   ========================================================= */
body.landing-page:not(.authenticated-home) .landing-legacy-intelligence {
  display: grid;
  row-gap: clamp(0.48rem, 1vw, 0.78rem);
  overflow: hidden;
  margin: clamp(1.6rem, 4vw, 3rem) auto;
}

body.landing-page .landing-legacy-intelligence .page-section-header {
  margin-bottom: clamp(0.18rem, 0.48vw, 0.32rem) !important;
}

.landing-legacy-intelligence__showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(0.8rem, 2vw, 1.15rem);
  border: 1px solid rgba(122, 73, 36, 0.28);
  border-radius: clamp(1.35rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 72% 26%, rgba(242, 191, 86, 0.22), transparent 28%),
    radial-gradient(circle at 54% 70%, rgba(255, 236, 174, 0.12), transparent 32%),
    linear-gradient(135deg, #1A1A1A 0%, #1D1309 42%, #1D1309 100%);
  box-shadow: 0 22px 58px rgba(40, 20, 10, 0.24), inset 0 1px 0 rgba(255, 226, 154, 0.24);
  color: #F2E6D2;
}

.landing-legacy-intelligence__showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 22%, transparent 76%, rgba(255, 223, 145, 0.08)),
    repeating-linear-gradient(90deg, rgba(255, 221, 142, 0.035) 0 1px, transparent 1px 94px);
  opacity: 0.58;
}

.landing-legacy-intelligence__shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(20rem, 1.12fr);
  gap: clamp(1.2rem, 4vw, 3.4rem);
  align-items: center;
  min-height: clamp(28rem, 42vw, 36rem);
  padding: clamp(1.2rem, 3.2vw, 3rem);
  border-radius: clamp(1.1rem, 2.4vw, 1.65rem);
  background:
    linear-gradient(90deg, rgba(255, 246, 224, 0.98) 0%, rgba(255, 246, 224, 0.92) 34%, rgba(255, 246, 224, 0.08) 55%, transparent 100%),
    radial-gradient(circle at 78% 48%, rgba(255, 214, 107, 0.22), transparent 34%);
}

.landing-legacy-intelligence__copy {
  max-width: 34rem;
}

.landing-legacy-intelligence__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0 0 0.85rem;
  color: #1D1309;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing-legacy-intelligence__eyebrow span {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(143, 87, 37, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #1D1309;
  letter-spacing: 0.08em;
}

.landing-legacy-intelligence h3 {
  margin: 0;
  color: #1A1A1A;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.55rem, 4.4vw, 4.85rem);
  line-height: 0.9;
  letter-spacing: -0.052em;
}

.landing-legacy-intelligence__lead {
  max-width: 29rem;
  margin: 1.1rem 0 0;
  color: #1D1309;
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.56;
}

.landing-legacy-intelligence__actions {
  margin-top: 1.45rem;
}

.landing-legacy-intelligence__button {
  width: min(100%, 15.5rem);
}

.landing-legacy-intelligence__visual {
  position: relative;
  min-height: clamp(22rem, 33vw, 30rem);
  border-radius: 2rem;
  isolation: isolate;
}

.landing-legacy-intelligence__halo {
  position: absolute;
  inset: 7% 4%;
  border: 1px solid rgba(247, 202, 101, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(235, 177, 67, 0.2), inset 0 0 55px rgba(255, 227, 152, 0.14);
}

.landing-legacy-intelligence__halo::before,
.landing-legacy-intelligence__halo::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(255, 223, 143, 0.18);
  border-radius: 50%;
}

.landing-legacy-intelligence__halo::after {
  inset: 29%;
}

.landing-legacy-intelligence__thread {
  position: absolute;
  left: 15%;
  right: 12%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 229, 154, 0.92), transparent);
  box-shadow: 0 0 16px rgba(248, 202, 101, 0.74);
  transform-origin: center;
}

.landing-legacy-intelligence__thread--one { transform: rotate(19deg); }
.landing-legacy-intelligence__thread--two { transform: rotate(-22deg); }
.landing-legacy-intelligence__thread--three { transform: rotate(92deg); left: 34%; right: 34%; }

.landing-legacy-intelligence__portrait,
.landing-legacy-intelligence__node {
  position: absolute;
  border: 1px solid rgba(246, 202, 105, 0.56);
  background: rgba(39, 20, 12, 0.88);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22), 0 0 28px rgba(239, 186, 80, 0.18);
  backdrop-filter: blur(8px);
}

.landing-legacy-intelligence__portrait {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(5.8rem, 10vw, 8.3rem);
  height: clamp(5.8rem, 10vw, 8.3rem);
  border-radius: 999px;
  color: #F2E6D2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 4.3vw, 4rem);
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.landing-legacy-intelligence__portrait::after {
  content: "";
  position: absolute;
  inset: -0.62rem;
  border: 1px solid rgba(245, 198, 96, 0.42);
  border-radius: inherit;
  box-shadow: 0 0 38px rgba(239, 190, 84, 0.36);
}

.landing-legacy-intelligence__node {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.65rem;
  align-items: center;
  max-width: 14.4rem;
  padding: 0.72rem 0.9rem;
  border-radius: 1.15rem;
  color: #F2E6D2;
}

.landing-legacy-intelligence__node span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.8rem;
  background: rgba(255, 230, 160, 0.12);
  color: #ffe19a;
  font-size: 1.12rem;
}

.landing-legacy-intelligence__node strong {
  font-size: 0.86rem;
  line-height: 1.08;
}

.landing-legacy-intelligence__node small {
  color: #f4d99c;
  font-size: 0.72rem;
  line-height: 1.12;
}

.landing-legacy-intelligence__node--one { left: 3%; top: 14%; }
.landing-legacy-intelligence__node--two { right: 2%; top: 16%; }
.landing-legacy-intelligence__node--three { left: 8%; bottom: 13%; }
.landing-legacy-intelligence__node--four { right: 7%; bottom: 12%; }

.landing-legacy-intelligence__cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.landing-legacy-intelligence__cards article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.75rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(231, 190, 114, 0.28);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 249, 233, 0.96), rgba(245, 228, 193, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.landing-legacy-intelligence__cards article span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #1D1309, #1D1309);
  color: #F2E6D2;
}

.landing-legacy-intelligence__cards article strong {
  color: #1D1309;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.32rem;
  line-height: 1.05;
}

.landing-legacy-intelligence__cards article small {
  color: #1D1309;
  font-size: 0.9rem;
  line-height: 1.42;
}

@media (max-width: 860px) {
  .landing-legacy-intelligence__showcase {
    padding: 0.75rem;
  }

  .landing-legacy-intelligence__shell {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1.15rem;
    background:
      linear-gradient(180deg, rgba(255, 246, 224, 0.98) 0%, rgba(255, 246, 224, 0.92) 46%, rgba(45, 23, 14, 0.98) 100%);
  }

  .landing-legacy-intelligence h3 {
    font-size: clamp(2.35rem, 10vw, 3.5rem);
  }

  .landing-legacy-intelligence__lead {
    font-size: 0.98rem;
  }

  .landing-legacy-intelligence__visual {
    min-height: 24rem;
  }

  .landing-legacy-intelligence__node {
    max-width: 11.4rem;
    padding: 0.62rem 0.72rem;
  }

  .landing-legacy-intelligence__node--one { left: 0; top: 8%; }
  .landing-legacy-intelligence__node--two { right: 0; top: 12%; }
  .landing-legacy-intelligence__node--three { left: 0; bottom: 8%; }
  .landing-legacy-intelligence__node--four { right: 0; bottom: 9%; }

  .landing-legacy-intelligence__cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .landing-legacy-intelligence__visual {
    min-height: 22rem;
  }

  .landing-legacy-intelligence__portrait {
    width: 5rem;
    height: 5rem;
    font-size: 2.4rem;
  }

  .landing-legacy-intelligence__node {
    max-width: 9.8rem;
    gap: 0.12rem 0.48rem;
    padding: 0.54rem 0.58rem;
  }

  .landing-legacy-intelligence__node span {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 0.95rem;
  }

  .landing-legacy-intelligence__node strong {
    font-size: 0.76rem;
  }

  .landing-legacy-intelligence__node small {
    font-size: 0.66rem;
  }
}

/* Authenticated home family glance */
.authenticated-home .home-family-glance {
  width: min(100%, 1040px);
  margin: clamp(18px, 4vw, 34px) auto clamp(18px, 4vw, 38px);
  padding: clamp(18px, 4vw, 34px);
  border-radius: 34px;
}

.authenticated-home .home-family-glance__head {
  margin-bottom: clamp(14px, 3vw, 24px);
}

.authenticated-home .home-family-glance__people {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 16px);
}

.authenticated-home .home-family-glance__person,
.authenticated-home .home-family-glance__empty {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-height: 100%;
  padding: 14px 12px;
  border: 1px solid rgba(139, 91, 47, .18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 252, 242, .88), rgba(238, 217, 176, .46));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62), 0 14px 26px rgba(75, 45, 26, .08);
  text-align: center;
  cursor: pointer;
}

.authenticated-home .home-family-glance__portrait {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  padding: 4px;
  background: linear-gradient(145deg, #F2E6D2, #D4AF37);
  box-shadow: 0 10px 20px rgba(68, 38, 22, .12);
}

.authenticated-home .home-family-glance__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.authenticated-home .home-family-glance__person h3 {
  margin: 0;
  color: #1D1309;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  line-height: .95;
}

.authenticated-home .home-family-glance__person p,
.authenticated-home .home-family-glance__empty {
  margin: 0;
  color: #1D1309;
  font-size: .86rem;
  line-height: 1.25;
}

@media (max-width: 760px) {
  .authenticated-home .home-family-glance__people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .authenticated-home .home-family-glance {
    padding: 16px 12px;
    border-radius: 28px;
  }

  .authenticated-home .home-family-glance__people {
    gap: 10px;
  }

  .authenticated-home .home-family-glance__person {
    padding: 12px 8px;
  }

  .authenticated-home .home-family-glance__portrait {
    width: 64px;
    height: 64px;
    border-radius: 19px;
  }

  .authenticated-home .home-family-glance__portrait img {
    border-radius: 15px;
  }
}

/* Shared person profile modal for landing and signed-in home */
.person-profile-modal[hidden] { display: none; }
.person-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: clamp(24px, 8vh, 72px) 16px 18px;
  background: rgba(28, 18, 12, .48);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}
.authenticated-home .person-profile-modal {
  padding-top: clamp(120px, 18vh, 178px);
  padding-bottom: 18px;
}
.person-profile-card {
  position: relative;
  width: min(94vw, 660px);
  max-height: calc(100dvh - clamp(72px, 14vh, 120px));
  overflow: auto;
  padding: clamp(14px, 2.4vw, 22px);
  border-radius: 28px;
}
.authenticated-home .person-profile-card {
  width: min(92vw, 620px);
  max-height: calc(100dvh - clamp(150px, 24vh, 210px));
  padding: clamp(12px, 2vw, 18px);
}
.person-profile-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #1D1309; background: rgba(255,255,255,.78); font-size: 1.25rem; cursor: pointer; }
.person-profile-hero { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid rgba(134, 86, 47, .18); }
.authenticated-home .person-profile-hero { grid-template-columns: 82px 1fr; gap: 12px; padding-bottom: 12px; }
.person-profile-hero img { width: 96px; height: 96px; object-fit: cover; border-radius: 24px; border: 2px solid rgba(181, 129, 54, .36); box-shadow: 0 12px 24px rgba(63, 39, 21, .16); }
.authenticated-home .person-profile-hero img { width: 82px; height: 82px; border-radius: 21px; }
.person-profile-hero h2 { margin: 0; color: #1D1309; font-family: "Cormorant Garamond", serif; font-size: clamp(2rem, 5vw, 3.2rem); line-height: .94; }
.authenticated-home .person-profile-hero h2 { font-size: clamp(1.75rem, 4.2vw, 2.55rem); }
.person-profile-hero p { margin: 4px 0 0; color: #1D1309; font-size: .92rem; }
.person-profile-section { padding-top: 14px; }
.authenticated-home .person-profile-section { padding-top: 11px; }
.person-profile-section h3 { margin: 0 0 10px; color: #1D1309; font-family: "Cormorant Garamond", serif; font-size: 1.45rem; line-height: 1; }
.authenticated-home .person-profile-section h3 { margin-bottom: 8px; font-size: 1.28rem; }
.person-profile-chip-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.authenticated-home .person-profile-chip-groups { gap: 8px; }
.person-profile-chip-groups strong { display: block; margin-bottom: 6px; color: #1D1309; font-size: .86rem; }
.person-profile-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.person-profile-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(139, 91, 47, .2); background: rgba(255, 250, 238, .86); color: #1D1309; font-size: .78rem; font-weight: 700; }
.authenticated-home .person-profile-chip { min-height: 25px; padding: 4px 8px; font-size: .74rem; }
.person-profile-chip.is-empty { opacity: .65; }
#personProfileStory { color: #1D1309; line-height: 1.45; font-size: .92rem; margin: 0; }
[data-person-profile-id] { cursor: pointer; }
[data-person-profile-id]:focus-visible { outline: 3px solid rgba(177, 121, 44, .55); outline-offset: 4px; }

@media (max-width: 560px) {
  .person-profile-hero { grid-template-columns: 78px 1fr; }
  .person-profile-hero img { width: 78px; height: 78px; border-radius: 20px; }
  .person-profile-card { width: min(92vw, 560px); }
  .person-profile-chip-groups { grid-template-columns: 1fr; }
  .authenticated-home .person-profile-modal { padding-top: clamp(118px, 19vh, 152px); }
  .authenticated-home .person-profile-card { max-height: calc(100dvh - clamp(140px, 25vh, 178px)); }
}

/* Legacy Intelligence family preview cards reuse the tree person-card language without connectors. */
.legacy-family-tree-card-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 3vw, 28px);
  margin-top: clamp(18px, 4vw, 30px);
}

.legacy-family-tree-card {
  position: relative;
  width: 116px;
  min-height: 176px;
  margin: 0;
  padding: 9px 8px 10px;
  border: 1px solid rgba(156, 111, 54, .35);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 251, 238, .94), rgba(239, 220, 181, .78));
  box-shadow: 0 16px 32px rgba(61, 35, 18, .12), inset 0 1px 0 rgba(255, 255, 255, .7);
  cursor: pointer;
  text-align: center;
}

.legacy-family-tree-card .portrait-frame {
  width: 96px;
  height: 106px;
  margin: 0 auto 7px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(183, 137, 64, .38);
  background: #F2E6D2;
  box-shadow: inset 0 0 0 1px rgba(255, 247, 222, .55);
}

.legacy-family-tree-card .portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legacy-family-tree-card .nameplate.compact {
  display: grid;
  gap: 2px;
}

.legacy-family-tree-card .person-name {
  color: #1D1309;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: .98;
}

.legacy-family-tree-card .person-years {
  color: #1D1309;
  font-size: .74rem;
  line-height: 1.05;
}

@media (max-width: 520px) {
  .legacy-family-tree-card-row {
    gap: 12px;
  }

  .legacy-family-tree-card {
    width: 96px;
    min-height: 154px;
    border-radius: 19px;
  }

  .legacy-family-tree-card .portrait-frame {
    width: 78px;
    height: 88px;
    border-radius: 16px;
  }

  .legacy-family-tree-card .person-name {
    font-size: .92rem;
  }
}

/* Person profile read-only card: archive summary layout */
body > .person-profile-modal,
.person-profile-modal {
  background: rgba(27, 19, 14, .58) !important;
  backdrop-filter: blur(6px) !important;
  z-index: 2147483647 !important;
}

.person-profile-card--archive,
body > .person-profile-modal .person-profile-card--archive {
  width: min(92vw, 720px) !important;
  max-height: min(82dvh, 760px) !important;
  overflow-y: auto !important;
  padding: clamp(16px, 2.4vw, 24px) !important;
  border: 1px solid rgba(187, 142, 73, .42) !important;
  border-radius: 28px !important;
  background: radial-gradient(circle at 20% 0%, rgba(255, 249, 229, .98), transparent 52%), linear-gradient(180deg, #FBF6EE 0%, #F2E6D2 100%) !important;
  box-shadow: 0 24px 54px rgba(44, 25, 12, .36), inset 0 0 0 1px rgba(255, 255, 255, .52) !important;
}

.person-profile-hero--archive {
  display: grid !important;
  grid-template-columns: minmax(92px, 148px) 1fr !important;
  gap: clamp(16px, 3vw, 28px) !important;
  align-items: start !important;
  padding: 0 0 clamp(18px, 2.4vw, 24px) !important;
  border-bottom: 1px solid rgba(139, 91, 47, .18) !important;
}

.person-profile-hero--archive img {
  width: clamp(92px, 22vw, 148px) !important;
  height: clamp(92px, 22vw, 148px) !important;
  border-radius: 24px !important;
  border: 3px solid rgba(184, 140, 72, .38) !important;
  background: #FBF6EE !important;
  object-fit: cover !important;
  box-shadow: 0 14px 26px rgba(67, 40, 22, .18) !important;
}

.person-profile-hero--archive h2 { margin: 4px 0 4px !important; color: #1D1309 !important; font-family: "Cormorant Garamond", serif !important; font-size: clamp(2.05rem, 5.4vw, 3.45rem) !important; line-height: .92 !important; }
.person-profile-hero--archive #personProfileYears { margin: 0 0 12px !important; color: #1D1309 !important; font-weight: 700 !important; font-size: clamp(.95rem, 2.5vw, 1.1rem) !important; }
.person-profile-facts { display: grid !important; gap: 8px !important; color: #1D1309 !important; font-weight: 750 !important; }
.person-profile-facts p { position: relative !important; margin: 0 !important; padding-left: 28px !important; color: #1D1309 !important; line-height: 1.25 !important; }
.person-profile-facts p::before { position: absolute; left: 0; top: .02em; width: 20px; color: #956b37; text-align: center; }
#personProfileRelationship::before { content: "♟"; }
#personProfilePlace::before { content: "⌖"; }
#personProfileOccupation::before { content: "▣"; }
.person-profile-card--archive .person-profile-section { padding-top: clamp(16px, 2.2vw, 22px) !important; }
.person-profile-card--archive .person-profile-section h3 { margin: 0 0 12px !important; color: #1D1309 !important; font-family: inherit !important; font-size: clamp(.95rem, 2.4vw, 1.1rem) !important; font-weight: 900 !important; line-height: 1 !important; text-transform: uppercase !important; letter-spacing: .11em !important; }
.person-profile-migrations { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important; gap: 10px !important; }
.person-profile-migration-chip { display: grid !important; gap: 3px !important; min-height: 62px !important; padding: 10px 12px !important; border: 1px solid rgba(148, 99, 48, .24) !important; border-radius: 16px !important; background: rgba(255, 250, 238, .82) !important; color: #1D1309 !important; box-shadow: 0 8px 18px rgba(78, 46, 24, .08) !important; }
.person-profile-migration-chip strong { color: #1D1309 !important; font-family: "Cormorant Garamond", serif !important; font-size: 1.18rem !important; line-height: 1 !important; }
.person-profile-migration-chip span { color: #1D1309 !important; font-size: .82rem !important; line-height: 1.2 !important; }
.person-profile-icon-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)) !important; gap: 10px !important; }
.person-profile-icon-grid--compact { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)) !important; }
.person-profile-icon-chip { display: grid !important; place-items: center !important; gap: 7px !important; min-height: 86px !important; padding: 10px !important; border: 1px solid rgba(139, 91, 47, .16) !important; border-radius: 16px !important; background: rgba(255, 252, 245, .86) !important; color: #1D1309 !important; text-align: center !important; box-shadow: 0 8px 18px rgba(78, 46, 24, .07) !important; }
.person-profile-icon-chip__icon { color: #1D1309 !important; font-size: 1.7rem !important; line-height: 1 !important; }
.person-profile-icon-chip strong { color: #1D1309 !important; font-size: .82rem !important; line-height: 1.1 !important; }
.person-profile-icon-chip--more { font-weight: 900 !important; color: #1D1309 !important; }
.person-profile-chips--values { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
.person-profile-card--archive .person-profile-chip { min-height: 34px !important; padding: 7px 12px !important; border-radius: 999px !important; background: rgba(255, 250, 238, .88) !important; color: #1D1309 !important; font-size: .86rem !important; font-weight: 850 !important; }
.person-profile-card--archive .person-profile-chip.is-empty { opacity: 1 !important; color: #1D1309 !important; }
@media (max-width: 520px) { .person-profile-card--archive, body > .person-profile-modal .person-profile-card--archive { width: min(92vw, 430px) !important; padding: 16px !important; } .person-profile-hero--archive { grid-template-columns: 96px 1fr !important; gap: 14px !important; } .person-profile-icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } .person-profile-icon-chip { min-height: 76px !important; padding: 8px 6px !important; } }

/* =========================================================
   Public KinSight preview
   ========================================================= */
.landing-kinsight-preview {
  --ks-brown: #1d1309;
  --ks-brown-2: #2a180d;
  --ks-gold: #d4af37;
  --ks-parchment: #f2e6d2;
  --ks-cream: #fbf6ee;
  --ks-ink: #1a1a1a;
  position: relative;
  overflow: hidden;
  margin: clamp(1rem, 2vw, 1.5rem) auto;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background:
    radial-gradient(circle at 78% 18%, rgba(212, 175, 55, 0.16), transparent 24rem),
    radial-gradient(circle at 16% 84%, rgba(29, 19, 9, 0.08), transparent 18rem),
    linear-gradient(180deg, rgba(251, 246, 238, 0.98), rgba(242, 230, 210, 0.92));
  box-shadow: 0 20px 44px rgba(29, 19, 9, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.landing-kinsight-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58, 37, 23, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 37, 23, 0.055) 1px, transparent 1px);
  background-size: 3.25rem 3.25rem;
  mask-image: radial-gradient(circle at 74% 38%, #000, transparent 66%);
  pointer-events: none;
}

.landing-kinsight-preview__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(18rem, 1.08fr);
  grid-template-areas: "copy visual" "cards cards";
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: center;
  padding: clamp(1.1rem, 2.6vw, 2.25rem);
}

.landing-kinsight-preview__copy { grid-area: copy; }
.landing-kinsight-preview__visual { grid-area: visual; }
.landing-kinsight-preview__cards { grid-area: cards; }

.landing-kinsight-preview__eyebrow {
  margin: 0 0 0.55rem;
  color: #8a5b20;
  font-size: clamp(0.74rem, 1vw, 0.84rem);
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-kinsight-preview h2 {
  max-width: 13ch;
  margin: 0;
  color: var(--ks-brown);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.landing-kinsight-preview__copy p:not(.landing-kinsight-preview__eyebrow) {
  max-width: 38rem;
  margin: clamp(0.75rem, 1.4vw, 1rem) 0 0;
  color: #4a3021;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  line-height: 1.55;
}

.landing-kinsight-preview__button { margin-top: clamp(1rem, 1.8vw, 1.35rem); }

.landing-kinsight-preview__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(14rem, 22vw, 20rem);
  padding: clamp(0.85rem, 1.5vw, 1.2rem);
}

.landing-kinsight-preview__visual::before,
.landing-kinsight-preview__visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

.landing-kinsight-preview__visual::before {
  width: min(76%, 24rem);
  height: 48%;
  transform: rotate(-8deg);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.18);
}

.landing-kinsight-preview__visual::after {
  width: min(58%, 18rem);
  height: 34%;
  transform: rotate(18deg);
}

.landing-kinsight-preview__photo-pair {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 1vw, 0.9rem);
  isolation: isolate;
}

.landing-kinsight-preview__photo-pair img {
  width: clamp(4.6rem, 8vw, 7.5rem);
  height: clamp(5.6rem, 9.8vw, 9.25rem);
  border: 3px solid #f3dfab;
  border-radius: 0.75rem;
  object-fit: cover;
  box-shadow: 0 16px 26px rgba(29, 19, 9, 0.24);
}

.landing-kinsight-preview__photo-pair img:first-child { transform: rotate(-4deg); }
.landing-kinsight-preview__photo-pair img:last-child { transform: rotate(4deg); }

.landing-kinsight-preview__photo-pair span {
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(3.25rem, 5vw, 4.7rem);
  height: clamp(3.25rem, 5vw, 4.7rem);
  margin-inline: clamp(-1.55rem, -2vw, -0.75rem);
  border: 1px solid rgba(212, 175, 55, 0.72);
  border-radius: 50%;
  color: #2a180d;
  background: radial-gradient(circle at 36% 28%, #fff2bd, #d4af37 70%);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.54), 0 8px 18px rgba(29, 19, 9, 0.24);
  font-weight: 900;
}

.landing-kinsight-preview__constellation {
  position: absolute;
  inset: 14% 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.24), transparent 55%);
  pointer-events: none;
}

.landing-kinsight-preview__constellation span {
  position: absolute;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #d4af37;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.9);
}

.landing-kinsight-preview__constellation span:nth-child(1) { left: 20%; top: 35%; }
.landing-kinsight-preview__constellation span:nth-child(2) { left: 66%; top: 25%; }
.landing-kinsight-preview__constellation span:nth-child(3) { left: 42%; top: 68%; }
.landing-kinsight-preview__constellation span:nth-child(4) { right: 18%; bottom: 26%; }
.landing-kinsight-preview__constellation span:nth-child(5) { left: 50%; top: 18%; }

.landing-kinsight-preview__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: clamp(0.78rem, 1.6vw, 1.15rem);
  width: min(100%, 68rem);
  margin-inline: auto;
}

.landing-kinsight-preview-card {
  position: relative;
  overflow: hidden;
  min-height: clamp(16rem, 20vw, 19rem);
  padding: clamp(0.82rem, 1.35vw, 1.08rem);
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: clamp(0.92rem, 1.2vw, 1.1rem);
  background:
    radial-gradient(circle at 50% 18%, rgba(212, 175, 55, 0.22), transparent 8.5rem),
    linear-gradient(145deg, rgba(29, 19, 9, 0.98), rgba(42, 24, 13, 0.93));
  box-shadow: 0 16px 34px rgba(29, 19, 9, 0.18), inset 0 1px 0 rgba(212, 175, 55, 0.18);
}

.landing-kinsight-preview-card--hero {
  border-color: rgba(212, 175, 55, 0.48);
  box-shadow: 0 16px 32px rgba(29, 19, 9, 0.14), 0 0 0 1px rgba(212, 175, 55, 0.14) inset;
}

.landing-kinsight-preview-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.12));
  pointer-events: none;
}

.landing-kinsight-preview-card__visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: clamp(8.25rem, 10.5vw, 10.25rem);
  margin-bottom: 0.82rem;
  border-radius: 0.82rem;
  background:
    linear-gradient(rgba(242, 230, 210, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 230, 210, 0.065) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(212, 175, 55, 0.38), rgba(58, 37, 23, 0.22) 42%, rgba(19, 10, 5, 0.58) 72%);
  background-size: 1.05rem 1.05rem, 1.05rem 1.05rem, auto;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.landing-kinsight-preview-card strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #f8e8b8;
  font-size: clamp(0.75rem, 0.92vw, 0.88rem);
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.landing-kinsight-preview-card p {
  position: relative;
  z-index: 1;
  margin: 0.42rem 0 0;
  color: rgba(251, 246, 238, 0.84);
  font-size: clamp(0.77rem, 0.95vw, 0.9rem);
  line-height: 1.36;
}

.landing-kinsight-preview-card--photo .landing-kinsight-preview-card__visual {
  display: flex;
  gap: clamp(0.4rem, 1vw, 0.75rem);
  align-items: center;
  justify-content: center;
}

.landing-kinsight-preview-card--photo img {
  width: clamp(4.2rem, 6vw, 5.9rem);
  height: clamp(5rem, 7vw, 6.8rem);
  border: 3px solid #f2e6d2;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(29, 19, 9, 0.2);
}

.landing-kinsight-preview-card--photo b {
  position: absolute;
  right: 50%;
  bottom: 50%;
  transform: translate(50%, 50%);
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  color: #1d1309;
  background: linear-gradient(180deg, #fbf6ee, #d4af37);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.44);
  font-size: 0.9rem;
}

.landing-kinsight-preview-card--personality .landing-kinsight-preview-card__visual::before,
.landing-kinsight-preview-card--personality .landing-kinsight-preview-card__visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(58, 37, 23, 0.34);
  border-radius: 50%;
}

.landing-kinsight-preview-card--personality .landing-kinsight-preview-card__visual::before {
  width: 5rem;
  height: 3rem;
  transform: rotate(23deg);
}

.landing-kinsight-preview-card--personality .landing-kinsight-preview-card__visual::after {
  width: 5.25rem;
  height: 2.8rem;
  transform: rotate(-18deg);
}

.landing-kinsight-preview-card--personality i,
.landing-kinsight-preview-card--signals i {
  position: absolute;
  display: block;
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  background: #d4af37;
  box-shadow: 0 0 13px rgba(212, 175, 55, 0.86);
  animation: landingKinSightPulse 2.8s ease-in-out infinite;
}

.landing-kinsight-preview-card--personality i:nth-child(1) { left: 27%; top: 36%; }
.landing-kinsight-preview-card--personality i:nth-child(2) { left: 44%; top: 22%; animation-delay: .35s; }
.landing-kinsight-preview-card--personality i:nth-child(3) { right: 27%; top: 40%; animation-delay: .7s; }
.landing-kinsight-preview-card--personality i:nth-child(4) { left: 50%; bottom: 25%; animation-delay: 1.05s; }

.landing-kinsight-preview-card--signals .landing-kinsight-preview-card__visual::before {
  content: "";
  position: absolute;
  inset: 22% 12%;
  border-top: 2px solid rgba(212, 175, 55, 0.7);
  border-radius: 50%;
  transform: rotate(-9deg);
}

.landing-kinsight-preview-card--signals .landing-kinsight-preview-card__visual::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 24%;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d1309, #d4af37, rgba(251, 246, 238, 0.9));
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.38);
}

.landing-kinsight-preview-card--signals i:nth-child(1) { left: 18%; top: 28%; }
.landing-kinsight-preview-card--signals i:nth-child(2) { left: 44%; top: 18%; animation-delay: .25s; }
.landing-kinsight-preview-card--signals i:nth-child(3) { right: 19%; top: 35%; animation-delay: .5s; }
.landing-kinsight-preview-card--signals i:nth-child(4) { left: 56%; bottom: 31%; animation-delay: .75s; }

@keyframes landingKinSightPulse {
  0%, 100% { opacity: 0.42; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.28); }
}

@media (max-width: 980px) {
  .landing-kinsight-preview__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "visual" "cards";
  }

  .landing-kinsight-preview h2 { max-width: 14ch; }
  .landing-kinsight-preview__cards { grid-template-columns: 1fr; }
}

@media (min-width: 981px) and (max-width: 1160px) {
  .landing-kinsight-preview__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .landing-kinsight-preview__inner {
    gap: 0.85rem;
    padding: 0.9rem;
  }

  .landing-kinsight-preview__visual { min-height: 12.5rem; }

  .landing-kinsight-preview__photo-pair img {
    width: 3.65rem;
    height: 4.5rem;
  }

  .landing-kinsight-preview__photo-pair span {
    width: 2.85rem;
    height: 2.85rem;
    font-size: 0.86rem;
  }

  .landing-kinsight-preview__cards {
    grid-template-columns: 1fr;
    gap: 0.78rem;
  }

  .landing-kinsight-preview-card {
    min-height: 13.5rem;
    padding: 0.82rem;
    border-radius: 0.92rem;
  }

  .landing-kinsight-preview-card--hero {
    min-height: 15.25rem;
  }

  .landing-kinsight-preview-card__visual {
    min-height: 7.6rem;
    margin-bottom: 0.62rem;
    border-radius: 0.72rem;
  }

  .landing-kinsight-preview-card--photo .landing-kinsight-preview-card__visual {
    min-height: 8.25rem;
  }

  .landing-kinsight-preview-card--photo img {
    width: 4.5rem;
    height: 5.35rem;
    border-radius: 0.82rem;
  }

  .landing-kinsight-preview-card--photo b {
    width: 3rem;
    height: 3rem;
    font-size: 0.82rem;
  }

  .landing-kinsight-preview-card strong {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .landing-kinsight-preview-card p {
    margin-top: 0.34rem;
    font-size: 0.76rem;
    line-height: 1.34;
  }
}


/* =========================================================
   KinSight photo-only landing preview
   ========================================================= */
.landing-kinsight-preview__inner {
  grid-template-columns: minmax(0, 0.88fr) minmax(18rem, 1.12fr);
  grid-template-areas: "copy cards";
  align-items: stretch;
}

.landing-kinsight-preview__visual,
.landing-kinsight-preview__photo-pair,
.landing-kinsight-preview__constellation {
  display: none;
}

.landing-kinsight-preview__cards {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  align-self: stretch;
}

.landing-kinsight-preview-card--photo {
  min-height: clamp(15.5rem, 22vw, 21rem);
  display: grid;
  align-content: center;
}

.landing-kinsight-preview-card--photo .landing-kinsight-preview-card__visual {
  min-height: clamp(9.75rem, 15vw, 14rem);
  gap: clamp(0.65rem, 1.6vw, 1.2rem);
}

.landing-kinsight-preview-card--photo img {
  width: clamp(5.4rem, 9vw, 8.2rem);
  height: clamp(6.8rem, 11vw, 10rem);
  border-radius: 1.05rem;
}

.landing-kinsight-preview-card--photo b {
  position: static;
  transform: none;
  flex: 0 0 auto;
  width: clamp(3.4rem, 5.6vw, 4.6rem);
  height: clamp(3.4rem, 5.6vw, 4.6rem);
}

@media (max-width: 760px) {
  .landing-kinsight-preview__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "cards";
  }
}

/* =========================================================
   KinSight landing preview metrics refinement
   ========================================================= */
.landing-kinsight-preview-card__metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.38rem, 1vw, 0.62rem);
  margin: -0.12rem 0 0.78rem;
}

.landing-kinsight-preview-card__metrics span {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 0.16rem;
  padding: clamp(0.42rem, 0.9vw, 0.56rem) 0.32rem;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 0.78rem;
  background: rgba(251, 246, 238, 0.08);
  box-shadow: inset 0 1px 0 rgba(251, 246, 238, 0.08);
  text-align: center;
}

.landing-kinsight-preview-card__metrics b {
  position: static;
  width: auto;
  height: auto;
  transform: none;
  display: block;
  color: #f8e8b8;
  background: none;
  box-shadow: none;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1;
}

.landing-kinsight-preview-card__metrics small {
  max-width: 100%;
  overflow: hidden;
  color: rgba(251, 246, 238, 0.72);
  font-size: clamp(0.58rem, 0.85vw, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.05;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.landing-kinsight-preview__copy p:not(.landing-kinsight-preview__eyebrow) {
  max-width: 28rem;
}

.landing-kinsight-preview-card--photo {
  min-height: clamp(18rem, 25vw, 23rem);
}

@media (max-width: 560px) {
  .landing-kinsight-preview-card__metrics {
    gap: 0.34rem;
    margin-bottom: 0.66rem;
  }

  .landing-kinsight-preview-card__metrics span {
    border-radius: 0.68rem;
    padding: 0.38rem 0.22rem;
  }

  .landing-kinsight-preview-card__metrics b {
    font-size: 0.95rem;
  }

  .landing-kinsight-preview-card__metrics small {
    font-size: 0.52rem;
  }
}

/* =========================================================
   KinSight family-sync landing refinement
   ========================================================= */
.landing-kinsight-preview__tagline {
  display: block;
  max-width: none !important;
  white-space: nowrap;
}

.landing-kinsight-preview-card--photo > p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .landing-kinsight-preview__tagline {
    font-size: clamp(0.78rem, 3.6vw, 0.94rem) !important;
    letter-spacing: -0.015em;
  }
}

@media (max-width: 390px) {
  .landing-kinsight-preview__tagline {
    font-size: clamp(0.72rem, 3.45vw, 0.84rem) !important;
  }
}

/* =========================================================
   KinSight landing quick-look card
   ========================================================= */
.landing-kinsight-preview-card--quicklook {
  min-height: clamp(15.8rem, 20vw, 19rem);
}

.landing-kinsight-quicklook {
  position: relative;
  z-index: 1;
  min-height: clamp(8.25rem, 10.5vw, 10.25rem);
  margin-bottom: 0.82rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(0.38rem, 1vw, 0.78rem);
  align-items: center;
  justify-items: center;
  border-radius: 0.82rem;
  background:
    linear-gradient(rgba(242, 230, 210, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 230, 210, 0.065) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(212, 175, 55, 0.38), rgba(58, 37, 23, 0.22) 42%, rgba(19, 10, 5, 0.58) 72%);
  background-size: 1.05rem 1.05rem, 1.05rem 1.05rem, auto;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.landing-kinsight-quicklook figure {
  min-width: 0;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
}

.landing-kinsight-quicklook img {
  width: clamp(4.1rem, 6vw, 5.75rem);
  height: clamp(5rem, 7vw, 6.8rem);
  border: 3px solid #f2e6d2;
  border-radius: 0.92rem;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(29, 19, 9, 0.22);
}

.landing-kinsight-quicklook figcaption {
  width: 100%;
  max-width: 7.4rem;
  overflow: hidden;
  color: rgba(251, 246, 238, 0.92);
  font-size: clamp(0.58rem, 0.82vw, 0.72rem);
  font-weight: 850;
  line-height: 1.02;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-kinsight-quicklook__score {
  width: clamp(3.55rem, 5.25vw, 4.75rem);
  height: clamp(3.55rem, 5.25vw, 4.75rem);
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 50%;
  color: #1d1309;
  background: radial-gradient(circle at 40% 30%, #fff8c9, #d4af37 72%, #7c5b1e);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.42), 0 10px 18px rgba(29, 19, 9, 0.24);
  text-align: center;
}

.landing-kinsight-quicklook__score b {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  line-height: 0.95;
}

.landing-kinsight-quicklook__score span {
  max-width: 4.2rem;
  color: rgba(29, 19, 9, 0.78);
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .landing-kinsight-quicklook {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
}

/* =========================================================
   KinSight landing quick look refresh
   ========================================================= */
.landing-kinsight-preview-card--quicklook .landing-kinsight-preview-card__visual--quicklook {
  gap: clamp(0.5rem, 0.9vw, 0.7rem);
}

.landing-kinsight-preview-card--quicklook .landing-kinsight-preview-card__visual--quicklook img {
  width: clamp(4.6rem, 7.8vw, 5.2rem);
  height: clamp(4.6rem, 7.8vw, 5.2rem);
}

.landing-kinsight-preview-card--quicklook .landing-kinsight-preview-card__visual--quicklook b {
  min-width: 4rem;
}

/* =========================================================
   KinSight landing section quick-glance final refinement
   ========================================================= */
.landing-kinsight-preview--quick-glance {
  padding: clamp(1rem, 2vw, 1.45rem);
}

.landing-kinsight-preview__section-header {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.landing-kinsight-preview__subtitle {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: clamp(0.12rem, 0.6vw, 0.32rem) auto clamp(0.9rem, 1.9vw, 1.25rem);
  color: rgba(78, 54, 34, 0.82);
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
  line-height: 1.35;
  text-align: center;
}

.landing-kinsight-preview__inner--quick-glance {
  display: block;
  width: min(100%, 54rem);
  margin-inline: auto;
  padding: 0;
}

.landing-kinsight-preview-card--quick-glance {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(0.72rem, 1.35vw, 0.95rem);
  min-height: 0;
  padding: clamp(0.86rem, 1.7vw, 1.22rem);
  border: 1px solid rgba(206, 178, 117, 0.58);
  border-radius: clamp(1rem, 2vw, 1.45rem);
  background:
    radial-gradient(circle at 50% 22%, rgba(212, 175, 55, 0.18), transparent 16rem),
    linear-gradient(180deg, rgba(255, 251, 241, 0.92), rgba(245, 235, 214, 0.9));
  box-shadow: 0 18px 36px rgba(68, 44, 24, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.landing-kinsight-preview-card--quick-glance::after {
  content: none;
}

.landing-kinsight-preview-card--quick-glance .landing-kinsight-quicklook {
  min-height: 0;
  margin: 0;
  padding: clamp(0.62rem, 1.2vw, 0.85rem);
  border: 1px solid rgba(212, 175, 55, 0.34);
  background:
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.16), transparent 13rem),
    linear-gradient(180deg, rgba(56, 34, 19, 0.96), rgba(28, 17, 9, 0.94));
}

.landing-kinsight-preview-card--quick-glance .landing-kinsight-quicklook img {
  width: clamp(4.4rem, 8vw, 6rem);
  height: clamp(5.35rem, 9.3vw, 7.2rem);
  border-color: rgba(242, 220, 146, 0.78);
}

.landing-kinsight-preview-card--quick-glance .landing-kinsight-quicklook figcaption {
  color: rgba(251, 246, 238, 0.92);
}

.landing-kinsight-preview__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.42rem, 0.9vw, 0.66rem);
}

.landing-kinsight-preview__metric {
  display: grid;
  gap: 0.32rem;
  align-content: center;
  min-height: clamp(4rem, 7vw, 5rem);
  padding: clamp(0.48rem, 1vw, 0.66rem);
  border: 1px solid rgba(206, 178, 117, 0.54);
  border-radius: 0.9rem;
  background: rgba(255, 251, 241, 0.68);
  text-align: center;
}

.landing-kinsight-preview__metric span {
  overflow: hidden;
  color: rgba(70, 46, 28, 0.82);
  font-size: clamp(0.58rem, 0.88vw, 0.7rem);
  font-weight: 850;
  letter-spacing: 0.035em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.landing-kinsight-preview__metric strong {
  color: #5a3516;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 0.95;
}

.landing-kinsight-preview__metric i {
  display: block;
  height: 0.42rem;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(62, 43, 25, 0.16);
}

.landing-kinsight-preview__metric i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2a180d, #d4af37, #fff0a8);
}

.landing-kinsight-preview__button--center {
  justify-self: center;
  width: min(100%, 17rem);
  margin: 0.1rem auto 0;
}

@media (max-width: 620px) {
  .landing-kinsight-preview__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .landing-kinsight-preview--quick-glance {
    padding-inline: 0.74rem;
  }

  .landing-kinsight-preview-card--quick-glance .landing-kinsight-quicklook {
    gap: 0.34rem;
  }

  .landing-kinsight-preview-card--quick-glance .landing-kinsight-quicklook img {
    width: 3.72rem;
    height: 4.72rem;
  }

  .landing-kinsight-quicklook__score {
    width: 3.18rem;
    height: 3.18rem;
  }
}

/* =========================================================
   KinSight landing preview v50 metric sync
   ========================================================= */
.landing-kinsight-preview__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.48rem, 0.95vw, 0.68rem);
}

.landing-kinsight-preview__metric {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.28rem;
  min-height: clamp(9.8rem, 15vw, 11rem);
  padding: clamp(0.68rem, 1.1vw, 0.84rem) clamp(0.46rem, 0.8vw, 0.66rem) clamp(0.72rem, 1.1vw, 0.86rem);
  border: 1px solid rgba(206, 178, 117, 0.54);
  border-radius: 1.05rem;
  background: rgba(255, 251, 241, 0.7);
  text-align: center;
}

.landing-kinsight-preview__metric-icon {
  width: clamp(2.35rem, 4.1vw, 3rem);
  height: clamp(2.35rem, 4.1vw, 3rem);
  display: grid;
  place-items: center;
}

.landing-kinsight-preview__metric-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.landing-kinsight-preview__metric strong {
  color: #2e1a0d;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 0.92;
}

.landing-kinsight-preview__metric-label {
  overflow: hidden;
  color: #1f130a;
  font-size: clamp(0.58rem, 0.84vw, 0.7rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.landing-kinsight-preview__metric i {
  display: block;
  width: 100%;
  height: 0.46rem;
  margin-top: 0.18rem;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(62, 43, 25, 0.16);
}

.landing-kinsight-preview__metric i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2a180d, #d4af37, #fff0a8);
}

@media (max-width: 620px) {
  .landing-kinsight-preview__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   KinSight landing v52: mirror metric row from KinSight page
   ========================================================= */
.landing-kinsight-preview__metrics {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.28rem, 0.8vw, 0.5rem) !important;
}

.landing-kinsight-preview__metric {
  min-width: 0 !important;
  min-height: clamp(5.8rem, 11vw, 7.3rem) !important;
  padding: clamp(0.42rem, 0.85vw, 0.58rem) clamp(0.18rem, 0.55vw, 0.35rem) !important;
  gap: clamp(0.1rem, 0.3vw, 0.18rem) !important;
  align-content: start !important;
  border-radius: clamp(0.78rem, 1.6vw, 1rem) !important;
}

.landing-kinsight-preview__metric-icon {
  width: clamp(1.45rem, 3.2vw, 2.15rem) !important;
  height: clamp(1.45rem, 3.2vw, 2.15rem) !important;
}

.landing-kinsight-preview__metric strong {
  font-size: clamp(1.05rem, 2.6vw, 1.55rem) !important;
  line-height: 0.9 !important;
}

.landing-kinsight-preview__metric-label,
.landing-kinsight-preview__metric span:not(.landing-kinsight-preview__metric-icon) {
  max-width: 100% !important;
  overflow: hidden !important;
  font-size: clamp(0.34rem, 1vw, 0.58rem) !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.landing-kinsight-preview__metric i {
  width: 100% !important;
  height: clamp(0.28rem, 0.7vw, 0.4rem) !important;
  margin-top: 0.14rem !important;
}

@media (max-width: 620px) {
  .landing-kinsight-preview__metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .landing-kinsight-preview__metric {
    min-height: clamp(5.45rem, 22vw, 6.4rem) !important;
    padding: 0.38rem 0.16rem 0.42rem !important;
  }

  .landing-kinsight-preview__metric-icon {
    width: clamp(1.32rem, 5.8vw, 1.72rem) !important;
    height: clamp(1.32rem, 5.8vw, 1.72rem) !important;
  }

  .landing-kinsight-preview__metric strong {
    font-size: clamp(1rem, 4.5vw, 1.34rem) !important;
  }

  .landing-kinsight-preview__metric-label,
  .landing-kinsight-preview__metric span:not(.landing-kinsight-preview__metric-icon) {
    font-size: clamp(0.32rem, 1.7vw, 0.44rem) !important;
  }
}

/* =========================================================
   KinSight landing v53 metric row hard override
   ========================================================= */
.landing-kinsight-preview .landing-kinsight-preview__metrics,
.landing-kinsight-preview__metrics {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.22rem, 0.72vw, 0.42rem) !important;
  width: 100% !important;
}

.landing-kinsight-preview .landing-kinsight-preview__metric,
.landing-kinsight-preview__metric {
  min-width: 0 !important;
  min-height: clamp(5.35rem, 10vw, 6.85rem) !important;
  padding: clamp(0.36rem, 0.75vw, 0.52rem) clamp(0.12rem, 0.42vw, 0.28rem) clamp(0.4rem, 0.75vw, 0.54rem) !important;
  gap: clamp(0.08rem, 0.25vw, 0.15rem) !important;
  border-radius: clamp(0.72rem, 1.5vw, 0.95rem) !important;
}

.landing-kinsight-preview .landing-kinsight-preview__metric-icon,
.landing-kinsight-preview__metric-icon {
  width: clamp(1.22rem, 3vw, 1.85rem) !important;
  height: clamp(1.22rem, 3vw, 1.85rem) !important;
}

.landing-kinsight-preview .landing-kinsight-preview__metric strong,
.landing-kinsight-preview__metric strong {
  font-size: clamp(0.95rem, 2.25vw, 1.38rem) !important;
}

.landing-kinsight-preview .landing-kinsight-preview__metric-label,
.landing-kinsight-preview__metric-label,
.landing-kinsight-preview__metric span:not(.landing-kinsight-preview__metric-icon) {
  font-size: clamp(0.3rem, 0.9vw, 0.5rem) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 720px) {
  .landing-kinsight-preview .landing-kinsight-preview__metrics,
  .landing-kinsight-preview__metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 420px) {
  .landing-kinsight-preview .landing-kinsight-preview__metric,
  .landing-kinsight-preview__metric {
    min-height: 5.2rem !important;
    padding: 0.34rem 0.1rem 0.36rem !important;
  }
}

/* =========================================================
   KinSight landing v54 mirrored analysis component
   ========================================================= */
.landing-kinsight-preview--quick-glance .landing-kinsight-preview-card.landing-kinsight-analysis-card {
  display: grid !important;
  gap: clamp(0.7rem, 1.4vw, 0.95rem) !important;
  padding: clamp(0.78rem, 1.7vw, 1.08rem) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 251, 231, 0.86), transparent 22rem),
    linear-gradient(180deg, rgba(255, 250, 236, 0.96), rgba(241, 226, 199, 0.94)) !important;
}

.landing-kinsight-analysis-card .landing-kinsight-photo-stage,
.landing-kinsight-analysis-card.ks-analysis-card .ks-photo-stage {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(74px, 12vw, 112px) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: clamp(0.5rem, 1.2vw, 0.85rem) !important;
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto !important;
}

.landing-kinsight-analysis-card .ks-photo-slot {
  aspect-ratio: 0.88 !important;
  min-height: 0 !important;
  max-height: clamp(10.4rem, 24vw, 14rem) !important;
  border-radius: clamp(0.9rem, 1.8vw, 1.25rem) !important;
  overflow: hidden !important;
}

.landing-kinsight-analysis-card .ks-photo-slot img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.landing-kinsight-analysis-card .ks-photo-slot strong {
  max-width: calc(100% - 0.9rem) !important;
  overflow: hidden !important;
  font-size: clamp(0.74rem, 1.55vw, 1rem) !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.landing-kinsight-analysis-card .ks-photo-slot small {
  font-size: clamp(0.6rem, 1.2vw, 0.82rem) !important;
}

.landing-kinsight-analysis-card .ks-photo-score {
  justify-self: center !important;
  width: clamp(72px, 11vw, 104px) !important;
  height: clamp(72px, 11vw, 104px) !important;
  padding: clamp(0.26rem, 0.6vw, 0.38rem) !important;
}

.landing-kinsight-analysis-card .ks-photo-score span {
  font-size: clamp(1.18rem, 2.8vw, 1.9rem) !important;
  line-height: 0.9 !important;
}

.landing-kinsight-analysis-card .ks-photo-score small {
  max-width: 8ch !important;
  font-size: clamp(0.34rem, 0.85vw, 0.52rem) !important;
  line-height: 0.94 !important;
  letter-spacing: 0.02em !important;
}

.landing-kinsight-analysis-card .landing-kinsight-feature-bars,
.landing-kinsight-analysis-card .ks-feature-bars {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.22rem, 0.72vw, 0.42rem) !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.landing-kinsight-analysis-card .ks-feature-bars article {
  min-width: 0 !important;
  min-height: clamp(5.35rem, 10vw, 6.85rem) !important;
  padding: clamp(0.36rem, 0.75vw, 0.52rem) clamp(0.12rem, 0.42vw, 0.28rem) clamp(0.4rem, 0.75vw, 0.54rem) !important;
  gap: clamp(0.08rem, 0.25vw, 0.15rem) !important;
  border-radius: clamp(0.72rem, 1.5vw, 0.95rem) !important;
}

.landing-kinsight-analysis-card .ks-feature-bars__icon-shell {
  width: clamp(1.22rem, 3vw, 1.85rem) !important;
  height: clamp(1.22rem, 3vw, 1.85rem) !important;
}

.landing-kinsight-analysis-card .ks-feature-bars b {
  font-size: clamp(0.95rem, 2.25vw, 1.38rem) !important;
}

.landing-kinsight-analysis-card .ks-feature-bars strong {
  max-width: 100% !important;
  overflow: hidden !important;
  font-size: clamp(0.3rem, 0.9vw, 0.5rem) !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.landing-kinsight-analysis-card .ks-feature-bars div {
  width: 100% !important;
  height: clamp(0.28rem, 0.7vw, 0.4rem) !important;
}

@media (max-width: 620px) {
  .landing-kinsight-analysis-card .landing-kinsight-photo-stage,
  .landing-kinsight-analysis-card.ks-analysis-card .ks-photo-stage {
    grid-template-columns: minmax(0, 1fr) clamp(62px, 15vw, 78px) minmax(0, 1fr) !important;
    gap: 0.36rem !important;
  }

  .landing-kinsight-analysis-card .landing-kinsight-feature-bars,
  .landing-kinsight-analysis-card .ks-feature-bars {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* =========================================================
   KinSight landing v56 shared component alignment
   ========================================================= */
.landing-kinsight-analysis-card .ks-photo-stage,
.landing-kinsight-analysis-card .landing-kinsight-photo-stage {
  grid-template-columns: minmax(0, 1fr) clamp(82px, 12.75vw, 124px) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: clamp(0.55rem, 1.25vw, 0.85rem) !important;
}

.landing-kinsight-analysis-card .ks-photo-score {
  width: clamp(82px, 12.75vw, 124px) !important;
  height: clamp(82px, 12.75vw, 124px) !important;
  justify-self: center !important;
  align-self: center !important;
  padding: clamp(0.3rem, 0.72vw, 0.42rem) !important;
}

.landing-kinsight-analysis-card .ks-photo-score span {
  font-size: clamp(1.38rem, 3.25vw, 2.25rem) !important;
  line-height: 0.9 !important;
}

.landing-kinsight-analysis-card .ks-photo-score small {
  max-width: 8.2ch !important;
  font-size: clamp(0.42rem, 0.82vw, 0.58rem) !important;
  line-height: 0.94 !important;
  letter-spacing: 0.02em !important;
}

.landing-kinsight-analysis-card .ks-feature-bars,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.38rem, 0.9vw, 0.62rem) !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.landing-kinsight-analysis-card .ks-feature-bars article,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars article {
  display: grid !important;
  justify-items: center !important;
  align-content: start !important;
  min-width: 0 !important;
  min-height: clamp(7.6rem, 13vw, 9.2rem) !important;
  padding: clamp(0.58rem, 1vw, 0.76rem) clamp(0.28rem, 0.65vw, 0.48rem) clamp(0.58rem, 1vw, 0.76rem) !important;
  gap: clamp(0.12rem, 0.3vw, 0.22rem) !important;
  border-radius: clamp(0.9rem, 1.8vw, 1.18rem) !important;
}

.landing-kinsight-analysis-card .ks-feature-bars__icon-shell {
  width: clamp(1.85rem, 4.2vw, 2.65rem) !important;
  height: clamp(1.85rem, 4.2vw, 2.65rem) !important;
}

.landing-kinsight-analysis-card .ks-feature-bars b {
  font-size: clamp(1.32rem, 3vw, 1.92rem) !important;
  line-height: 0.9 !important;
}

.landing-kinsight-analysis-card .ks-feature-bars strong {
  max-width: 100% !important;
  overflow: hidden !important;
  font-size: clamp(0.46rem, 0.9vw, 0.64rem) !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.landing-kinsight-analysis-card .ks-feature-bars div {
  width: 100% !important;
  height: clamp(0.32rem, 0.72vw, 0.46rem) !important;
  margin-top: 0.12rem !important;
}

@media (max-width: 620px) {
  .landing-kinsight-analysis-card .ks-photo-stage,
  .landing-kinsight-analysis-card .landing-kinsight-photo-stage {
    grid-template-columns: minmax(0, 1fr) clamp(70px, 15vw, 88px) minmax(0, 1fr) !important;
    gap: 0.4rem !important;
  }

  .landing-kinsight-analysis-card .ks-photo-score {
    width: clamp(70px, 15vw, 88px) !important;
    height: clamp(70px, 15vw, 88px) !important;
  }

  .landing-kinsight-analysis-card .ks-feature-bars,
  .landing-kinsight-analysis-card .landing-kinsight-feature-bars {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.28rem !important;
  }

  .landing-kinsight-analysis-card .ks-feature-bars article,
  .landing-kinsight-analysis-card .landing-kinsight-feature-bars article {
    min-height: clamp(6.65rem, 25vw, 7.5rem) !important;
    padding: 0.48rem 0.16rem 0.5rem !important;
  }

  .landing-kinsight-analysis-card .ks-feature-bars__icon-shell {
    width: clamp(1.42rem, 5.6vw, 1.82rem) !important;
    height: clamp(1.42rem, 5.6vw, 1.82rem) !important;
  }

  .landing-kinsight-analysis-card .ks-feature-bars b {
    font-size: clamp(1.05rem, 4.5vw, 1.36rem) !important;
  }

  .landing-kinsight-analysis-card .ks-feature-bars strong {
    font-size: clamp(0.34rem, 1.65vw, 0.46rem) !important;
  }
}

/* =========================================================
   KinSight landing v57 section layout sync
   ========================================================= */
.landing-kinsight-preview--quick-glance {
  padding-block: clamp(1.35rem, 3vw, 2.35rem) !important;
}

.landing-kinsight-preview--quick-glance .landing-kinsight-preview__section-header {
  margin-bottom: clamp(0.2rem, 0.8vw, 0.45rem) !important;
}

.landing-kinsight-preview--quick-glance .landing-kinsight-preview__subtitle {
  margin: 0 auto clamp(1.05rem, 2.5vw, 1.7rem) !important;
  color: rgba(87, 62, 38, 0.88) !important;
  font-size: clamp(1.05rem, 3.4vw, 1.72rem) !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.landing-kinsight-preview--quick-glance .landing-kinsight-preview__inner--quick-glance {
  width: min(100%, 760px) !important;
  margin-inline: auto !important;
}

.landing-kinsight-preview--quick-glance .landing-kinsight-preview-card.landing-kinsight-analysis-card {
  display: grid !important;
  gap: clamp(1.05rem, 2.35vw, 1.45rem) !important;
  padding: clamp(1.05rem, 2.55vw, 1.45rem) clamp(1.05rem, 2.8vw, 1.7rem) !important;
  border: 1px solid rgba(212, 190, 126, 0.68) !important;
  border-radius: clamp(1.15rem, 3vw, 1.75rem) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 247, 207, 0.5), transparent 18rem),
    linear-gradient(180deg, rgba(255, 251, 239, 0.94), rgba(241, 226, 197, 0.88)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 16px 34px rgba(54, 34, 16, 0.08) !important;
}

.landing-kinsight-analysis-card .landing-kinsight-photo-stage,
.landing-kinsight-analysis-card.ks-analysis-card .ks-photo-stage {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(72px, 14vw, 118px) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: clamp(0.6rem, 2vw, 1.2rem) !important;
  width: 100% !important;
  max-width: 700px !important;
  margin: 0 auto !important;
}

.landing-kinsight-analysis-card .ks-photo-slot {
  position: relative !important;
  aspect-ratio: 0.88 !important;
  width: 100% !important;
  max-width: clamp(8.8rem, 26vw, 13.8rem) !important;
  max-height: none !important;
  justify-self: center !important;
  overflow: hidden !important;
  border: 3px solid rgba(197, 177, 119, 0.9) !important;
  border-radius: clamp(0.9rem, 2.4vw, 1.25rem) !important;
  background: rgba(38, 23, 12, 0.9) !important;
  box-shadow: 0 14px 25px rgba(48, 30, 14, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.32) !important;
}

.landing-kinsight-analysis-card .ks-photo-slot::after {
  content: "" !important;
  position: absolute !important;
  inset: 42% 0 0 !important;
  background: linear-gradient(180deg, transparent, rgba(20, 12, 6, 0.78)) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.landing-kinsight-analysis-card .ks-photo-slot img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
  filter: sepia(0.04) contrast(1.02) saturate(0.96) !important;
}

.landing-kinsight-analysis-card .ks-photo-slot strong,
.landing-kinsight-analysis-card .ks-photo-slot small {
  position: absolute !important;
  left: clamp(0.55rem, 1.4vw, 0.78rem) !important;
  right: clamp(0.55rem, 1.4vw, 0.78rem) !important;
  z-index: 2 !important;
  max-width: calc(100% - 1.1rem) !important;
  overflow: hidden !important;
  color: #fffdf5 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.46) !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.landing-kinsight-analysis-card .ks-photo-slot strong {
  bottom: clamp(1.58rem, 3.6vw, 2.05rem) !important;
  font-size: clamp(0.82rem, 2.1vw, 1.18rem) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.landing-kinsight-analysis-card .ks-photo-slot small {
  bottom: clamp(0.52rem, 1.45vw, 0.78rem) !important;
  font-size: clamp(0.64rem, 1.7vw, 0.9rem) !important;
  line-height: 1 !important;
}

.landing-kinsight-analysis-card .ks-photo-score {
  position: relative !important;
  isolation: isolate !important;
  display: grid !important;
  place-items: center !important;
  justify-self: center !important;
  align-self: center !important;
  width: clamp(72px, 14vw, 118px) !important;
  height: clamp(72px, 14vw, 118px) !important;
  padding: clamp(0.3rem, 0.8vw, 0.46rem) !important;
  border: 2px solid rgba(255, 255, 255, 0.64) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 36% 24%, #fff7bc 0 18%, #e6cd76 38%, #b38c42 67%, #7a5230 100%) !important;
  box-shadow:
    0 0 0 clamp(0.4rem, 1.5vw, 0.75rem) rgba(210, 190, 138, 0.23),
    0 0 0 clamp(1.1rem, 3.1vw, 1.8rem) rgba(210, 190, 138, 0.14),
    0 14px 24px rgba(55, 32, 12, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
  color: #1f130a !important;
  text-align: center !important;
}

.landing-kinsight-analysis-card .ks-photo-score span {
  display: block !important;
  font-family: var(--font-display, Georgia, serif) !important;
  font-size: clamp(1.25rem, 3vw, 2.05rem) !important;
  font-weight: 800 !important;
  line-height: 0.88 !important;
}

.landing-kinsight-analysis-card .ks-photo-score small {
  display: block !important;
  max-width: 8.2ch !important;
  margin-top: 0.14rem !important;
  color: #1f130a !important;
  font-size: clamp(0.4rem, 0.95vw, 0.58rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.015em !important;
  line-height: 0.94 !important;
  text-transform: uppercase !important;
  overflow-wrap: anywhere !important;
}

.landing-kinsight-analysis-card .ks-feature-bars,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.38rem, 1.2vw, 0.72rem) !important;
  width: 100% !important;
  max-width: 700px !important;
  margin: 0 auto !important;
}

.landing-kinsight-analysis-card .ks-feature-bars article,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars article {
  display: grid !important;
  min-width: 0 !important;
  min-height: clamp(6.2rem, 14vw, 8.4rem) !important;
  align-content: start !important;
  justify-items: center !important;
  gap: clamp(0.1rem, 0.35vw, 0.18rem) !important;
  padding: clamp(0.48rem, 1.15vw, 0.72rem) clamp(0.18rem, 0.55vw, 0.38rem) clamp(0.52rem, 1.1vw, 0.7rem) !important;
  border: 1px solid rgba(199, 178, 134, 0.72) !important;
  border-radius: clamp(0.75rem, 1.6vw, 1rem) !important;
  background: linear-gradient(180deg, rgba(255, 251, 241, 0.88), rgba(242, 231, 210, 0.82)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72) !important;
}

.landing-kinsight-analysis-card .ks-feature-bars__icon-shell {
  width: clamp(1.35rem, 3.8vw, 2.25rem) !important;
  height: clamp(1.35rem, 3.8vw, 2.25rem) !important;
}

.landing-kinsight-analysis-card .ks-feature-bars b {
  color: #20140a !important;
  font-family: var(--font-display, Georgia, serif) !important;
  font-size: clamp(1.1rem, 3.2vw, 1.78rem) !important;
  font-weight: 800 !important;
  line-height: 0.95 !important;
}

.landing-kinsight-analysis-card .ks-feature-bars strong {
  max-width: 100% !important;
  overflow: hidden !important;
  color: #1f130a !important;
  font-size: clamp(0.36rem, 1vw, 0.58rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.015em !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.landing-kinsight-analysis-card .ks-feature-bars div {
  width: 100% !important;
  height: clamp(0.28rem, 0.7vw, 0.42rem) !important;
  margin-top: 0.1rem !important;
}

.landing-kinsight-analysis-card .ks-feature-bars div i {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #2d1b0f, #d4af37, #fff1a6) !important;
}

@media (max-width: 620px) {
  .landing-kinsight-preview--quick-glance .landing-kinsight-preview-card.landing-kinsight-analysis-card {
    gap: 0.9rem !important;
    padding: 0.88rem !important;
  }

  .landing-kinsight-analysis-card .landing-kinsight-photo-stage,
  .landing-kinsight-analysis-card.ks-analysis-card .ks-photo-stage {
    grid-template-columns: minmax(0, 1fr) clamp(58px, 14vw, 78px) minmax(0, 1fr) !important;
    gap: 0.5rem !important;
  }

  .landing-kinsight-analysis-card .ks-photo-score {
    width: clamp(58px, 14vw, 78px) !important;
    height: clamp(58px, 14vw, 78px) !important;
  }

  .landing-kinsight-analysis-card .ks-photo-score span {
    font-size: clamp(1.08rem, 4vw, 1.45rem) !important;
  }

  .landing-kinsight-analysis-card .ks-photo-score small {
    font-size: clamp(0.32rem, 1.5vw, 0.42rem) !important;
  }

  .landing-kinsight-analysis-card .ks-feature-bars,
  .landing-kinsight-analysis-card .landing-kinsight-feature-bars {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.28rem !important;
  }

  .landing-kinsight-analysis-card .ks-feature-bars article,
  .landing-kinsight-analysis-card .landing-kinsight-feature-bars article {
    min-height: 5.65rem !important;
    padding: 0.42rem 0.1rem 0.46rem !important;
    border-radius: 0.72rem !important;
  }

  .landing-kinsight-analysis-card .ks-feature-bars__icon-shell {
    width: 1.28rem !important;
    height: 1.28rem !important;
  }

  .landing-kinsight-analysis-card .ks-feature-bars b {
    font-size: clamp(0.98rem, 4.2vw, 1.24rem) !important;
  }

  .landing-kinsight-analysis-card .ks-feature-bars strong {
    font-size: clamp(0.3rem, 1.6vw, 0.4rem) !important;
  }
}


/* =========================================================
   KinSight landing v58 score medallion consistency tuning
   ========================================================= */
.landing-kinsight-analysis-card .ks-photo-score {
  width: clamp(80px, 14.8vw, 126px) !important;
  height: clamp(80px, 14.8vw, 126px) !important;
  min-height: clamp(80px, 14.8vw, 126px) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55) !important;
}

.landing-kinsight-analysis-card .ks-photo-score::before,
.landing-kinsight-analysis-card .ks-photo-score::after {
  content: none !important;
  display: none !important;
}

.landing-kinsight-analysis-card .ks-photo-score span {
  font-size: clamp(1.62rem, 3.9vw, 2.7rem) !important;
  line-height: 0.86 !important;
  text-shadow: none !important;
}

.landing-kinsight-analysis-card .ks-photo-score small {
  max-width: 9ch !important;
  font-size: clamp(0.42rem, 0.92vw, 0.6rem) !important;
  line-height: 0.94 !important;
}

.landing-kinsight-analysis-card .ks-feature-bars,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars {
  margin-top: clamp(0.54rem, 1.15vw, 0.74rem) !important;
}

@media (max-width: 620px) {
  .landing-kinsight-analysis-card .ks-photo-score {
    width: clamp(74px, 17vw, 92px) !important;
    height: clamp(74px, 17vw, 92px) !important;
    min-height: clamp(74px, 17vw, 92px) !important;
  }

  .landing-kinsight-analysis-card .ks-photo-score span {
    font-size: clamp(1.28rem, 4.8vw, 1.82rem) !important;
  }
}


/* =========================================================
   KinSight landing v59 metrics and CTA spacing refinement
   ========================================================= */
.landing-kinsight-preview__button,
.landing-kinsight-preview__button--center {
  margin-top: 0 !important;
}

.landing-kinsight-analysis-card .ks-feature-bars,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars {
  margin-top: clamp(0.5rem, 1vw, 0.68rem) !important;
}

.landing-kinsight-analysis-card .ks-feature-bars article,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars article {
  align-content: center !important;
  padding-top: clamp(0.28rem, 0.62vw, 0.42rem) !important;
  padding-bottom: clamp(0.42rem, 0.86vw, 0.58rem) !important;
}

.landing-kinsight-analysis-card .ks-feature-bars__icon-shell {
  width: clamp(2.06rem, 4.8vw, 3.36rem) !important;
  height: clamp(2.06rem, 4.8vw, 3.36rem) !important;
  margin-top: 0 !important;
  margin-bottom: clamp(0.05rem, 0.22vw, 0.14rem) !important;
}

.landing-kinsight-analysis-card .ks-feature-bars__icon-image {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 620px) {
  .landing-kinsight-analysis-card .ks-feature-bars article,
  .landing-kinsight-analysis-card .landing-kinsight-feature-bars article {
    padding-top: 0.28rem !important;
    padding-bottom: 0.44rem !important;
  }

  .landing-kinsight-analysis-card .ks-feature-bars__icon-shell {
    width: 1.54rem !important;
    height: 1.54rem !important;
  }
}


/* =========================================================
   KinSight landing v60 match analysis card layout
   ========================================================= */
.landing-kinsight-analysis-card .landing-kinsight-photo-stage,
.landing-kinsight-analysis-card.ks-analysis-card .ks-photo-stage {
  align-items: center !important;
  justify-items: stretch !important;
  grid-template-columns: minmax(0, 1fr) clamp(84px, 12.9vw, 122px) minmax(0, 1fr) !important;
  gap: clamp(0.8rem, 2.6vw, 1.55rem) !important;
}

.landing-kinsight-analysis-card .ks-photo-slot {
  display: grid !important;
  grid-template-rows: auto auto auto !important;
  align-content: start !important;
  justify-items: center !important;
  gap: 0 !important;
  aspect-ratio: auto !important;
  max-height: none !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center !important;
}

.landing-kinsight-analysis-card .ks-photo-slot::after {
  display: none !important;
}

.landing-kinsight-analysis-card .ks-photo-slot img {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 0.84 !important;
  object-fit: cover !important;
  border: 2px solid rgba(120, 87, 54, 0.9) !important;
  border-radius: clamp(18px, 2.2vw, 26px) !important;
  background: #1d1309 !important;
  box-shadow: 0 16px 30px rgba(29, 19, 9, 0.18) !important;
}

.landing-kinsight-analysis-card .ks-photo-slot strong,
.landing-kinsight-analysis-card .ks-photo-slot small {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: #4a2c18 !important;
  text-align: center !important;
  text-shadow: none !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.landing-kinsight-analysis-card .ks-photo-slot strong {
  margin-top: 0.34rem !important;
  font-size: clamp(0.98rem, 1.86vw, 1.34rem) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.landing-kinsight-analysis-card .ks-photo-slot small {
  margin-top: 0.14rem !important;
  font-size: clamp(0.78rem, 1.28vw, 1rem) !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.landing-kinsight-analysis-card .ks-photo-score {
  justify-self: center !important;
  align-self: center !important;
  width: clamp(84px, 12.9vw, 122px) !important;
  height: clamp(84px, 12.9vw, 122px) !important;
  min-height: clamp(84px, 12.9vw, 122px) !important;
  padding: clamp(0.3rem, 0.72vw, 0.44rem) !important;
  border: 2px solid rgba(255, 255, 255, 0.62) !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 36% 24%, #fff7bc 0 18%, #e6cd76 38%, #b38c42 67%, #7a5230 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.58) !important;
}

.landing-kinsight-analysis-card .ks-photo-score span {
  font-size: clamp(1.8rem, 4.2vw, 2.95rem) !important;
  line-height: 0.86 !important;
}

.landing-kinsight-analysis-card .ks-photo-score small {
  max-width: 9ch !important;
  margin-top: 0.04rem !important;
  font-size: clamp(0.42rem, 0.86vw, 0.58rem) !important;
  line-height: 0.94 !important;
}

.landing-kinsight-analysis-card .ks-feature-bars,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.36rem, 0.85vw, 0.58rem) !important;
  margin-top: clamp(0.54rem, 1.15vw, 0.74rem) !important;
}

.landing-kinsight-analysis-card .ks-feature-bars article,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars article {
  min-height: clamp(5.8rem, 12vw, 7.4rem) !important;
  padding-block: clamp(0.42rem, 0.85vw, 0.58rem) !important;
  padding-inline: clamp(0.18rem, 0.55vw, 0.34rem) !important;
  align-content: center !important;
}

.landing-kinsight-analysis-card .ks-feature-bars__icon-shell {
  width: clamp(2.06rem, 4.8vw, 3.36rem) !important;
  height: clamp(2.06rem, 4.8vw, 3.36rem) !important;
  margin: 0 auto clamp(0.05rem, 0.22vw, 0.14rem) !important;
}

.landing-kinsight-analysis-card .ks-feature-bars b {
  font-size: clamp(1.22rem, 3.2vw, 2.05rem) !important;
  line-height: 0.9 !important;
}

.landing-kinsight-analysis-card .ks-feature-bars strong {
  font-size: clamp(0.42rem, 1.16vw, 0.66rem) !important;
  line-height: 1 !important;
}

.landing-kinsight-preview__button,
.landing-kinsight-preview__button--center {
  margin-top: 0 !important;
}

@media (max-width: 620px) {
  .landing-kinsight-analysis-card .landing-kinsight-photo-stage,
  .landing-kinsight-analysis-card.ks-analysis-card .ks-photo-stage {
    grid-template-columns: minmax(0, 1fr) clamp(74px, 16.2vw, 90px) minmax(0, 1fr) !important;
    gap: 0.5rem !important;
  }

  .landing-kinsight-analysis-card .ks-photo-score {
    width: clamp(74px, 16.2vw, 90px) !important;
    height: clamp(74px, 16.2vw, 90px) !important;
    min-height: clamp(74px, 16.2vw, 90px) !important;
  }

  .landing-kinsight-analysis-card .ks-photo-slot strong {
    font-size: clamp(0.86rem, 3vw, 1.02rem) !important;
  }

  .landing-kinsight-analysis-card .ks-photo-slot small {
    font-size: clamp(0.7rem, 2.4vw, 0.84rem) !important;
  }

  .landing-kinsight-analysis-card .ks-feature-bars,
  .landing-kinsight-analysis-card .landing-kinsight-feature-bars {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.28rem !important;
  }

  .landing-kinsight-analysis-card .ks-feature-bars article,
  .landing-kinsight-analysis-card .landing-kinsight-feature-bars article {
    min-height: 5.65rem !important;
    padding: 0.42rem 0.1rem 0.46rem !important;
  }

  .landing-kinsight-analysis-card .ks-feature-bars__icon-shell {
    width: 1.54rem !important;
    height: 1.54rem !important;
  }

  .landing-kinsight-analysis-card .ks-feature-bars strong {
    font-size: clamp(0.36rem, 2.05vw, 0.5rem) !important;
  }
}

/* =========================================================
   KinSight landing v72 shared component alignment
   ========================================================= */
.landing-kinsight-analysis-card .landing-kinsight-photo-stage,
.landing-kinsight-analysis-card.ks-analysis-card .ks-photo-stage {
  grid-template-columns: minmax(0, 1fr) clamp(112px, 16vw, 150px) minmax(0, 1fr) !important;
  gap: clamp(0.9rem, 3vw, 2.1rem) !important;
  max-width: 940px !important;
  margin-inline: auto !important;
}

.landing-kinsight-analysis-card .ks-photo-slot img {
  border-color: rgba(93, 62, 35, 0.9) !important;
  box-shadow: 0 15px 30px rgba(29, 19, 9, 0.16) !important;
}

.landing-kinsight-analysis-card .ks-photo-slot strong,
.landing-kinsight-analysis-card .ks-photo-slot small {
  color: #2a190f !important;
}

.landing-kinsight-analysis-card .ks-photo-score {
  position: relative !important;
  isolation: isolate !important;
  width: clamp(108px, 15vw, 150px) !important;
  height: clamp(108px, 15vw, 150px) !important;
  min-height: clamp(108px, 15vw, 150px) !important;
  border: 1px solid rgba(219, 177, 74, 0.7) !important;
  background:
    radial-gradient(circle at 38% 24%, rgba(255, 240, 169, 0.95) 0 12%, rgba(90, 58, 25, 0.96) 13% 52%, rgba(24, 14, 8, 0.98) 100%) !important;
  box-shadow: 0 0 0 0.38rem rgba(219, 177, 74, 0.22), 0 0 34px rgba(219, 177, 74, 0.42), inset 0 1px 0 rgba(255, 238, 167, 0.28) !important;
}

.landing-kinsight-analysis-card .ks-photo-score::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -0.68rem !important;
  z-index: -1 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(219, 177, 74, 0.42) !important;
  background: conic-gradient(from 18deg, transparent 0 12%, rgba(244, 207, 102, 0.8) 13% 16%, transparent 17% 48%, rgba(244, 207, 102, 0.72) 50% 53%, transparent 54% 100%) !important;
  opacity: 0.9 !important;
}

.landing-kinsight-analysis-card .ks-photo-score::after {
  content: "AI CALIBRATED" !important;
  display: block !important;
  position: static !important;
  color: rgba(244, 219, 140, 0.72) !important;
  font-size: clamp(0.34rem, 0.68vw, 0.48rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
}

.landing-kinsight-analysis-card .ks-photo-score span {
  color: #f7e59d !important;
  font-size: clamp(1.85rem, 4.2vw, 3.05rem) !important;
}

.landing-kinsight-analysis-card .ks-photo-score small {
  max-width: 11ch !important;
  color: #f3d56e !important;
  font-size: clamp(0.46rem, 0.92vw, 0.66rem) !important;
  letter-spacing: 0.035em !important;
}

.landing-kinsight-analysis-card .ks-feature-bars,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars {
  gap: clamp(0.55rem, 1.2vw, 0.84rem) !important;
  margin-top: clamp(0.9rem, 2vw, 1.25rem) !important;
}

.landing-kinsight-analysis-card .ks-feature-bars article,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars article {
  min-height: clamp(8.4rem, 15vw, 10.4rem) !important;
  align-content: center !important;
  gap: clamp(0.16rem, 0.35vw, 0.24rem) !important;
  padding: clamp(0.62rem, 1.2vw, 0.84rem) clamp(0.34rem, 0.85vw, 0.54rem) clamp(0.58rem, 1vw, 0.74rem) !important;
  border-color: rgba(156, 122, 72, 0.34) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
}

.landing-kinsight-analysis-card .ks-feature-bars article:hover,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars article:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(206, 164, 70, 0.6) !important;
  box-shadow: 0 12px 24px rgba(46, 29, 12, 0.12), 0 0 0 1px rgba(206, 164, 70, 0.12) !important;
}

.landing-kinsight-analysis-card .ks-feature-bars__icon-shell {
  width: clamp(2.36rem, 5vw, 3.5rem) !important;
  height: clamp(2.36rem, 5vw, 3.5rem) !important;
}

.landing-kinsight-analysis-card .ks-feature-bars strong {
  order: 2 !important;
  color: #1f130a !important;
  font-size: clamp(0.54rem, 1.18vw, 0.72rem) !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.landing-kinsight-analysis-card .ks-feature-bars article p {
  order: 3 !important;
  min-height: 2.35em !important;
  max-width: 13.5ch !important;
  margin: 0 auto !important;
  color: rgba(47, 31, 18, 0.72) !important;
  font-size: clamp(0.46rem, 0.95vw, 0.6rem) !important;
  font-weight: 600 !important;
  line-height: 1.16 !important;
  text-align: center !important;
}

.landing-kinsight-analysis-card .ks-feature-bars b {
  order: 4 !important;
  color: #211308 !important;
  font-size: clamp(1.6rem, 3.4vw, 2.35rem) !important;
}

.landing-kinsight-analysis-card .ks-feature-bars div {
  order: 5 !important;
}

.landing-kinsight-analysis-card .ks-feature-bars i {
  transform-origin: left center !important;
  animation: ksMetricLoad 800ms ease both !important;
}

@keyframes ksMetricLoad {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 760px) {
  .landing-kinsight-analysis-card .landing-kinsight-photo-stage,
  .landing-kinsight-analysis-card.ks-analysis-card .ks-photo-stage {
    grid-template-columns: minmax(0, 1fr) clamp(82px, 16vw, 104px) minmax(0, 1fr) !important;
    gap: 0.65rem !important;
  }

  .landing-kinsight-analysis-card .ks-photo-score {
    width: clamp(82px, 16vw, 104px) !important;
    height: clamp(82px, 16vw, 104px) !important;
    min-height: clamp(82px, 16vw, 104px) !important;
  }
}

@media (max-width: 520px) {
  .landing-kinsight-analysis-card .ks-feature-bars article,
  .landing-kinsight-analysis-card .landing-kinsight-feature-bars article {
    min-height: 7.2rem !important;
  }

  .landing-kinsight-analysis-card .ks-feature-bars article p {
    display: none !important;
  }
}


/* =========================================================
   Landing KinSight v73 shared medallion/card polish
   ========================================================= */
.landing-kinsight-analysis-card .ks-photo-score {
  border: 1px solid rgba(213, 174, 75, 0.76) !important;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 238, 159, 0.92) 0 12%, rgba(115, 76, 31, 0.96) 42%, rgba(24, 14, 8, 0.98) 100%) !important;
  box-shadow:
    0 0 0 1px rgba(244, 207, 102, 0.3),
    0 0 18px rgba(213, 174, 75, 0.2),
    inset 0 1px 0 rgba(255, 238, 167, 0.28) !important;
}

.landing-kinsight-analysis-card .ks-photo-score::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -0.36rem !important;
  z-index: -1 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(226, 187, 82, 0.3) !important;
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 234, 160, 0.34), transparent 18%),
    conic-gradient(from 12deg, transparent 0 10%, rgba(244, 210, 113, 0.42) 12% 14%, transparent 16% 48%, rgba(244, 210, 113, 0.32) 51% 52%, transparent 54% 100%) !important;
  opacity: 0.72 !important;
}

.landing-kinsight-analysis-card .ks-photo-score::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -0.85rem !important;
  z-index: -2 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 20% 32%, rgba(236, 194, 84, 0.46) 0 0.08rem, transparent 0.1rem),
    radial-gradient(circle at 72% 18%, rgba(236, 194, 84, 0.38) 0 0.06rem, transparent 0.08rem),
    radial-gradient(circle at 78% 72%, rgba(236, 194, 84, 0.32) 0 0.05rem, transparent 0.07rem),
    radial-gradient(circle, rgba(219, 177, 74, 0.16), transparent 68%) !important;
  opacity: 0.8 !important;
}

.landing-kinsight-analysis-card .ks-photo-score span,
.landing-kinsight-analysis-card .ks-photo-score small {
  position: relative !important;
  z-index: 2 !important;
}


/* =========================================================
   KinSight landing v74 component spacing alignment
   ========================================================= */
.landing-kinsight-analysis-card .ks-photo-slot small {
  color: #4a2c18 !important;
}

.landing-kinsight-analysis-card .ks-feature-bars strong,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars strong {
  font-size: clamp(0.66rem, 1vw, 0.82rem) !important;
}

/* =========================================================
   KinSight landing v75 metric copy removal alignment
   ========================================================= */
.landing-kinsight-analysis-card .ks-feature-bars p,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars p {
  display: none !important;
}


/* =========================================================
   KinSight landing v76 metric text cleanup
   ========================================================= */
.landing-kinsight-analysis-card .ks-feature-bars article p {
  display: none !important;
}


/* =========================================================
   KinSight landing v77 date color alignment
   ========================================================= */
.landing-kinsight-analysis-card .ks-photo-slot small,
.landing-kinsight-preview .ks-member-card__years {
  color: #725235 !important;
  text-shadow: none !important;
}


/* =========================================================
   KinSight v87 readable shared grade medallion
   ========================================================= */
.ks-analysis-card .ks-photo-score,
.ks-photo-lab .ks-photo-score,
.landing-kinsight-analysis-card .ks-photo-score,
.landing-kinsight-preview-card .ks-photo-score {
  position: relative !important;
  isolation: isolate !important;
  display: grid !important;
  place-items: center !important;
  justify-self: center !important;
  align-self: center !important;
  width: clamp(86px, 13vw, 126px) !important;
  height: clamp(86px, 13vw, 126px) !important;
  min-height: clamp(86px, 13vw, 126px) !important;
  padding: clamp(0.28rem, 0.68vw, 0.42rem) !important;
  border: 2px solid rgba(217, 178, 65, 0.74) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 35% 24%, rgba(218, 177, 62, 0.94) 0 10%, rgba(112, 78, 30, 0.98) 40%, rgba(35, 20, 8, 0.99) 100%) !important;
  box-shadow:
    0 0 0 4px rgba(233, 199, 91, 0.2),
    0 10px 24px rgba(42, 24, 9, 0.22),
    inset 0 1px 0 rgba(255, 236, 160, 0.42),
    inset 0 -16px 24px rgba(12, 7, 3, 0.36) !important;
  color: #ffe58a !important;
  overflow: hidden !important;
  text-align: center !important;
}

.ks-analysis-card .ks-photo-score::before,
.ks-photo-lab .ks-photo-score::before,
.landing-kinsight-analysis-card .ks-photo-score::before,
.landing-kinsight-preview-card .ks-photo-score::before {
  content: "" !important;
  position: absolute !important;
  inset: -22% !important;
  z-index: 0 !important;
  display: block !important;
  border-radius: inherit !important;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 235, 139, 0.18), transparent 18%),
    linear-gradient(124deg, transparent 0 44%, rgba(255, 225, 116, 0.08) 48%, transparent 55%) !important;
  opacity: 0.52 !important;
  pointer-events: none !important;
}

.ks-analysis-card .ks-photo-score::after,
.ks-photo-lab .ks-photo-score::after,
.landing-kinsight-analysis-card .ks-photo-score::after,
.landing-kinsight-preview-card .ks-photo-score::after {
  content: "" !important;
  position: absolute !important;
  inset: 8% !important;
  z-index: 1 !important;
  display: block !important;
  border: 1px solid rgba(255, 221, 113, 0.24) !important;
  border-radius: inherit !important;
  background: transparent !important;
  pointer-events: none !important;
}

.ks-analysis-card .ks-photo-score span,
.ks-photo-lab .ks-photo-score span,
.landing-kinsight-analysis-card .ks-photo-score span,
.landing-kinsight-preview-card .ks-photo-score span {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  color: #ffeaa2 !important;
  font-family: var(--font-display, Georgia, serif) !important;
  font-size: clamp(1.92rem, 4.25vw, 3rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.055em !important;
  line-height: 0.82 !important;
  opacity: 1 !important;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.54),
    0 2px 7px rgba(0, 0, 0, 0.62) !important;
}

.ks-analysis-card .ks-photo-score small,
.ks-photo-lab .ks-photo-score small,
.landing-kinsight-analysis-card .ks-photo-score small,
.landing-kinsight-preview-card .ks-photo-score small {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  max-width: 9.5ch !important;
  margin: 0.16rem auto 0 !important;
  color: #f7d85d !important;
  font-size: clamp(0.44rem, 0.92vw, 0.62rem) !important;
  font-weight: 950 !important;
  letter-spacing: 0.025em !important;
  line-height: 0.92 !important;
  opacity: 1 !important;
  text-transform: uppercase !important;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.62),
    0 2px 5px rgba(0, 0, 0, 0.58) !important;
  overflow-wrap: normal !important;
}

@media (max-width: 620px) {
  .ks-analysis-card .ks-photo-score,
  .ks-photo-lab .ks-photo-score,
  .landing-kinsight-analysis-card .ks-photo-score,
  .landing-kinsight-preview-card .ks-photo-score {
    width: clamp(74px, 16vw, 92px) !important;
    height: clamp(74px, 16vw, 92px) !important;
    min-height: clamp(74px, 16vw, 92px) !important;
  }

  .ks-analysis-card .ks-photo-score span,
  .ks-photo-lab .ks-photo-score span,
  .landing-kinsight-analysis-card .ks-photo-score span,
  .landing-kinsight-preview-card .ks-photo-score span {
    font-size: clamp(1.4rem, 5vw, 1.95rem) !important;
  }

  .ks-analysis-card .ks-photo-score small,
  .ks-photo-lab .ks-photo-score small,
  .landing-kinsight-analysis-card .ks-photo-score small,
  .landing-kinsight-preview-card .ks-photo-score small {
    font-size: clamp(0.34rem, 1.9vw, 0.48rem) !important;
  }
}


/* =========================================================
   KinSight v88 shared CTA and metric-card refinement
   ========================================================= */
.ks-analysis-card .landing-kinsight-preview__button,
.landing-kinsight-preview__button,
.landing-kinsight-preview__button--center {
  width: auto !important;
  min-width: clamp(10.5rem, 24vw, 15rem) !important;
  max-width: min(100%, 18rem) !important;
  margin: clamp(0.72rem, 1.6vw, 1rem) auto 0 !important;
  padding: clamp(0.62rem, 1.3vw, 0.82rem) clamp(1.35rem, 3vw, 2rem) !important;
  border: 2px solid rgba(194, 157, 38, 0.72) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 40% 12%, rgba(107, 82, 22, 0.42), transparent 28%),
    linear-gradient(135deg, #2b1c0d 0%, #1d1308 55%, #35240f 100%) !important;
  box-shadow:
    0 0 0 2px rgba(214, 177, 52, 0.18),
    0 10px 20px rgba(37, 23, 9, 0.16),
    inset 0 1px 0 rgba(255, 232, 141, 0.18) !important;
  color: #d9b84f !important;
  font-family: var(--font-display, Georgia, serif) !important;
  font-size: clamp(0.92rem, 1.55vw, 1.08rem) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
}

.ks-analysis-card .ks-feature-bars article,
.ks-photo-lab .ks-feature-bars article,
.ks-feature-bars[data-ks-feature-bars] article,
.landing-kinsight-analysis-card .ks-feature-bars article,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars article {
  align-content: center !important;
  gap: clamp(0.34rem, 0.8vw, 0.52rem) !important;
  padding-top: clamp(0.62rem, 1.25vw, 0.88rem) !important;
  padding-bottom: clamp(0.62rem, 1.25vw, 0.88rem) !important;
}

.ks-feature-bars__icon-shell,
.ks-analysis-card .ks-feature-bars__icon-shell,
.ks-photo-lab .ks-feature-bars__icon-shell,
.landing-kinsight-analysis-card .ks-feature-bars__icon-shell {
  width: clamp(2.25rem, 5vw, 3.3rem) !important;
  height: clamp(2.25rem, 5vw, 3.3rem) !important;
  margin-bottom: clamp(0.08rem, 0.35vw, 0.18rem) !important;
}

.ks-feature-bars__icon-image,
.ks-analysis-card .ks-feature-bars__icon-image,
.ks-photo-lab .ks-feature-bars__icon-image,
.landing-kinsight-analysis-card .ks-feature-bars__icon-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.26)) drop-shadow(0 2px 3px rgba(42, 23, 8, 0.12)) !important;
}

.ks-analysis-card .ks-feature-bars strong,
.ks-photo-lab .ks-feature-bars strong,
.ks-feature-bars[data-ks-feature-bars] strong,
.landing-kinsight-analysis-card .ks-feature-bars strong,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars strong {
  margin-top: clamp(0.04rem, 0.28vw, 0.14rem) !important;
  font-size: clamp(0.68rem, 1.25vw, 0.9rem) !important;
  line-height: 1.05 !important;
}

.ks-analysis-card .ks-feature-bars b,
.ks-photo-lab .ks-feature-bars b,
.ks-feature-bars[data-ks-feature-bars] b,
.landing-kinsight-analysis-card .ks-feature-bars b,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars b {
  margin-top: clamp(0.04rem, 0.32vw, 0.16rem) !important;
  font-size: clamp(1.48rem, 3.5vw, 2.28rem) !important;
  line-height: 0.94 !important;
}

.ks-analysis-card .ks-feature-bars div,
.ks-photo-lab .ks-feature-bars div,
.ks-feature-bars[data-ks-feature-bars] div,
.landing-kinsight-analysis-card .ks-feature-bars div,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars div {
  margin-top: clamp(0.18rem, 0.55vw, 0.32rem) !important;
}

@media (max-width: 620px) {
  .landing-kinsight-preview__button,
  .landing-kinsight-preview__button--center {
    min-width: 10rem !important;
    max-width: 14rem !important;
  }

  .ks-feature-bars__icon-shell,
  .ks-analysis-card .ks-feature-bars__icon-shell,
  .ks-photo-lab .ks-feature-bars__icon-shell,
  .landing-kinsight-analysis-card .ks-feature-bars__icon-shell {
    width: clamp(1.82rem, 7vw, 2.35rem) !important;
    height: clamp(1.82rem, 7vw, 2.35rem) !important;
  }

  .ks-analysis-card .ks-feature-bars strong,
  .ks-photo-lab .ks-feature-bars strong,
  .landing-kinsight-analysis-card .ks-feature-bars strong {
    font-size: clamp(0.56rem, 2.35vw, 0.72rem) !important;
  }

  .ks-analysis-card .ks-feature-bars b,
  .ks-photo-lab .ks-feature-bars b,
  .landing-kinsight-analysis-card .ks-feature-bars b {
    font-size: clamp(1.12rem, 5.4vw, 1.62rem) !important;
  }
}

/* =========================================================
   KinSight landing v114: shared analyze button and score meter
   ========================================================= */
.landing-kinsight-analysis-card .ks-analysis-action-row,
.landing-kinsight-analysis-action-row {
  display: flex !important;
  justify-content: center !important;
  margin: clamp(0.65rem, 1.35vw, 0.9rem) auto clamp(0.8rem, 1.7vw, 1.12rem) !important;
}

.landing-kinsight-analysis-card .ks-analysis-action {
  display: grid !important;
  place-items: center !important;
  min-height: 2.78rem !important;
  width: fit-content !important;
  margin: 0 auto !important;
  padding: 0.72rem 1.35rem !important;
  border: 1px solid rgba(216, 181, 82, 0.58) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 35% 15%, rgba(255, 238, 154, 0.28), transparent 34%),
    linear-gradient(180deg, #3a2313 0%, #21150c 100%) !important;
  color: #f3d45c !important;
  font: 900 clamp(0.88rem, 1.65vw, 1.05rem)/1 var(--font-body, Inter, sans-serif) !important;
  letter-spacing: 0.015em !important;
  box-shadow:
    0 12px 24px rgba(40, 24, 12, 0.18),
    inset 0 1px 0 rgba(255, 240, 172, 0.2),
    inset 0 -1px 0 rgba(83, 52, 27, 0.7) !important;
}

.landing-kinsight-analysis-card .ks-photo-score {
  --ks-score-value: 0;
  --ks-score-arc: calc(var(--ks-score-value) * 1.8deg);
  position: relative !important;
  isolation: isolate !important;
  justify-self: center !important;
  align-self: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: clamp(108px, 14vw, 142px) !important;
  height: clamp(76px, 9.8vw, 98px) !important;
  min-height: clamp(76px, 9.8vw, 98px) !important;
  padding: clamp(0.48rem, 0.9vw, 0.68rem) clamp(0.36rem, 0.68vw, 0.54rem) clamp(0.42rem, 0.7vw, 0.58rem) !important;
  border: 1px solid rgba(104, 70, 39, 0.34) !important;
  border-radius: 999px 999px clamp(16px, 1.8vw, 22px) clamp(16px, 1.8vw, 22px) !important;
  background: radial-gradient(ellipse at 50% 92%, rgba(255, 244, 199, 0.94) 0 34%, rgba(235, 214, 165, 0.92) 64%, rgba(207, 181, 128, 0.86) 100%) padding-box !important;
  box-shadow:
    0 12px 25px rgba(48, 29, 14, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -10px 18px rgba(106, 74, 38, 0.12) !important;
}

.landing-kinsight-analysis-card .ks-photo-score::before {
  content: "" !important;
  position: absolute !important;
  left: 9% !important;
  right: 9% !important;
  bottom: clamp(0.66rem, 1.1vw, 0.84rem) !important;
  z-index: 1 !important;
  display: block !important;
  aspect-ratio: 2 / 1 !important;
  border-radius: 999px 999px 0 0 !important;
  background:
    radial-gradient(ellipse at 50% 100%, transparent 0 48%, #5d3d24 49% 63%, transparent 64%),
    conic-gradient(from 270deg at 50% 100%, #5d3d24 0 var(--ks-score-arc), rgba(137, 111, 75, 0.42) var(--ks-score-arc) 180deg, transparent 180deg 360deg) !important;
  filter: drop-shadow(0 2px 2px rgba(45, 27, 13, 0.22)) !important;
  pointer-events: none !important;
}

.landing-kinsight-analysis-card .ks-photo-score::after {
  content: "100" !important;
  position: absolute !important;
  right: 7% !important;
  bottom: clamp(0.5rem, 0.86vw, 0.68rem) !important;
  z-index: 2 !important;
  color: rgba(88, 58, 32, 0.46) !important;
  font-size: clamp(0.46rem, 0.82vw, 0.58rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
  pointer-events: none !important;
}

.landing-kinsight-analysis-card .ks-photo-score span,
.landing-kinsight-analysis-card .ks-photo-score small {
  position: relative !important;
  z-index: 3 !important;
  color: #3a2417 !important;
  text-align: center !important;
  text-shadow: none !important;
}

.landing-kinsight-analysis-card .ks-photo-score span {
  font-size: clamp(1.18rem, 2.55vw, 1.9rem) !important;
  line-height: 0.88 !important;
  letter-spacing: 0.02em !important;
}

.landing-kinsight-analysis-card:not([data-score-band="ready"]) .ks-photo-score span {
  font-size: clamp(1.34rem, 2.8vw, 2.08rem) !important;
}

.landing-kinsight-analysis-card .ks-photo-score small {
  max-width: 8.5ch !important;
  margin-top: 0.08rem !important;
  color: rgba(58, 36, 23, 0.84) !important;
  font-size: clamp(0.44rem, 0.82vw, 0.58rem) !important;
  font-weight: 950 !important;
  letter-spacing: 0.035em !important;
  line-height: 0.92 !important;
  text-transform: uppercase !important;
}

.landing-kinsight-quality-note {
  display: none !important;
}

.landing-kinsight-analysis-card .landing-kinsight-photo-stage,
.landing-kinsight-analysis-card.ks-analysis-card .ks-photo-stage {
  margin-bottom: clamp(0.38rem, 1vw, 0.62rem) !important;
}

.landing-kinsight-analysis-card .landing-kinsight-feature-bars,
.landing-kinsight-analysis-card .ks-feature-bars {
  margin-top: clamp(0.48rem, 1.15vw, 0.72rem) !important;
}

@media (max-width: 760px) {
  .landing-kinsight-analysis-card .landing-kinsight-photo-stage,
  .landing-kinsight-analysis-card.ks-analysis-card .ks-photo-stage {
    grid-template-columns: minmax(0, 1fr) clamp(82px, 16vw, 104px) minmax(0, 1fr) !important;
    gap: 0.65rem !important;
  }

  .landing-kinsight-analysis-card .ks-photo-score {
    width: clamp(82px, 16vw, 104px) !important;
    height: clamp(82px, 16vw, 104px) !important;
    min-height: clamp(82px, 16vw, 104px) !important;
  }
}

/* =========================================================
   KinSight landing v117: circular shared gauge and tighter preview layout
   ========================================================= */
.landing-kinsight-analysis-card .ks-photo-stage,
.landing-kinsight-analysis-card .landing-kinsight-photo-stage {
  grid-template-columns: minmax(0, 0.88fr) clamp(78px, 13.2vw, 106px) minmax(0, 0.88fr) !important;
  gap: clamp(0.36rem, 1.18vw, 0.68rem) !important;
  margin-bottom: 0 !important;
}

.landing-kinsight-analysis-card .ks-photo-slot,
.landing-kinsight-analysis-card .landing-kinsight-photo-slot {
  max-height: clamp(118px, 24vw, 196px) !important;
}

.landing-kinsight-analysis-card .ks-photo-score {
  --ks-score-value: 0;
  --ks-score-arc: calc(var(--ks-score-value) * 3.6deg);
  --ks-meter-size: clamp(76px, 13.2vw, 104px);
  --ks-meter-ring: clamp(9px, 1.5vw, 14px);
  --ks-meter-fill: #5b351f;
  --ks-meter-track: rgba(111, 88, 58, 0.24);
  position: relative !important;
  isolation: isolate !important;
  display: block !important;
  justify-self: center !important;
  align-self: center !important;
  width: var(--ks-meter-size) !important;
  min-width: var(--ks-meter-size) !important;
  height: calc(var(--ks-meter-size) + clamp(1.5rem, 2.6vw, 1.86rem)) !important;
  min-height: calc(var(--ks-meter-size) + clamp(1.5rem, 2.6vw, 1.86rem)) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #1f130b !important;
  overflow: visible !important;
}

.landing-kinsight-analysis-card .ks-photo-score::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto auto 50% !important;
  z-index: 1 !important;
  width: var(--ks-meter-size) !important;
  height: var(--ks-meter-size) !important;
  transform: translateX(-50%) !important;
  border-radius: 50% !important;
  background: conic-gradient(from -90deg, var(--ks-meter-fill) 0 var(--ks-score-arc), var(--ks-meter-track) var(--ks-score-arc) 360deg) !important;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--ks-meter-ring)), #000 calc(100% - var(--ks-meter-ring) + 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--ks-meter-ring)), #000 calc(100% - var(--ks-meter-ring) + 1px));
  filter: drop-shadow(0 2px 3px rgba(45, 27, 13, 0.18)) !important;
}

.landing-kinsight-analysis-card .ks-photo-score::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: calc(var(--ks-meter-ring) + 3px) !important;
  z-index: 2 !important;
  width: calc(var(--ks-meter-size) - (var(--ks-meter-ring) * 2) - 6px) !important;
  height: calc(var(--ks-meter-size) - (var(--ks-meter-ring) * 2) - 6px) !important;
  transform: translateX(-50%) !important;
  border-radius: 50% !important;
  border: 1px solid rgba(112, 83, 48, 0.13) !important;
  background: radial-gradient(circle at 42% 28%, rgba(255, 251, 232, 0.98) 0 18%, rgba(245, 231, 185, 0.96) 54%, rgba(225, 205, 154, 0.90) 100%) !important;
  box-shadow: inset 0 2px 8px rgba(255,255,255,0.48), inset 0 -6px 12px rgba(95,68,36,0.08) !important;
}

.landing-kinsight-analysis-card .ks-photo-score span {
  position: absolute !important;
  left: 50% !important;
  top: calc(var(--ks-meter-size) / 2) !important;
  z-index: 3 !important;
  transform: translate(-50%, -50%) !important;
  color: #1f130b !important;
  font-family: var(--font-display, Georgia, serif) !important;
  font-size: clamp(1.22rem, 3vw, 1.9rem) !important;
  font-weight: 950 !important;
  line-height: 0.95 !important;
  text-align: center !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5) !important;
  white-space: nowrap !important;
}

.landing-kinsight-analysis-card .ks-photo-score small {
  position: absolute !important;
  left: 50% !important;
  top: calc(var(--ks-meter-size) + clamp(0.28rem, 0.7vw, 0.46rem)) !important;
  z-index: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: max-content !important;
  max-width: min(128px, 92vw) !important;
  min-height: 1.08rem !important;
  transform: translateX(-50%) !important;
  padding: 0.2rem 0.54rem !important;
  border: 1px solid rgba(91, 53, 31, 0.22) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(255, 250, 230, 0.98), rgba(235, 217, 176, 0.88)) !important;
  box-shadow: 0 3px 8px rgba(58, 36, 18, 0.09), inset 0 1px 0 rgba(255,255,255,0.56) !important;
  color: rgba(49, 30, 17, 0.88) !important;
  font-size: clamp(0.38rem, 0.72vw, 0.5rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.landing-kinsight-analysis-card .ks-feature-bars,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars {
  margin-top: clamp(0.28rem, 0.72vw, 0.42rem) !important;
}

@media (max-width: 620px) {
  .landing-kinsight-analysis-card .ks-photo-stage,
  .landing-kinsight-analysis-card .landing-kinsight-photo-stage {
    grid-template-columns: minmax(0, 0.88fr) clamp(70px, 20vw, 88px) minmax(0, 0.88fr) !important;
    gap: clamp(0.28rem, 1.2vw, 0.46rem) !important;
  }

  .landing-kinsight-analysis-card .ks-photo-score {
    --ks-meter-size: clamp(68px, 20vw, 86px);
    --ks-meter-ring: clamp(8px, 2.4vw, 11px);
  }
}

/* =========================================================
   KinSight landing v119: compact analysis layout alignment
   ========================================================= */
.landing-kinsight-analysis-card .ks-photo-stage,
.landing-kinsight-analysis-card .landing-kinsight-photo-stage {
  display: grid !important;
  grid-template-columns: minmax(0, clamp(7rem, 26vw, 11.25rem)) clamp(78px, 18vw, 112px) minmax(0, clamp(7rem, 26vw, 11.25rem)) !important;
  align-items: start !important;
  justify-content: center !important;
  gap: clamp(0.38rem, 1.55vw, 0.72rem) !important;
  width: min(100%, 620px) !important;
  max-width: 620px !important;
  margin: 0 auto clamp(0.28rem, 0.75vw, 0.46rem) !important;
  overflow: visible !important;
}

.landing-kinsight-analysis-card .ks-photo-slot,
.landing-kinsight-analysis-card .landing-kinsight-photo-slot {
  display: grid !important;
  grid-template-rows: auto auto auto !important;
  justify-items: center !important;
  align-content: start !important;
  width: 100% !important;
  max-width: clamp(7rem, 26vw, 11.25rem) !important;
  max-height: none !important;
  overflow: visible !important;
}

.landing-kinsight-analysis-card .ks-photo-slot img,
.landing-kinsight-analysis-card .landing-kinsight-photo-slot img {
  display: block !important;
  width: 100% !important;
  max-width: clamp(7rem, 26vw, 11.25rem) !important;
  height: auto !important;
  max-height: clamp(8.7rem, 28vw, 13.5rem) !important;
  aspect-ratio: 0.84 / 1 !important;
  object-fit: cover !important;
}

.landing-kinsight-analysis-card .ks-photo-slot strong,
.landing-kinsight-analysis-card .landing-kinsight-photo-slot strong,
.landing-kinsight-analysis-card .ks-photo-slot small,
.landing-kinsight-analysis-card .landing-kinsight-photo-slot small {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: clamp(7rem, 26vw, 11.25rem) !important;
  transform: none !important;
  overflow: hidden !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.landing-kinsight-analysis-card .ks-photo-score,
.landing-kinsight-preview-card .ks-photo-score {
  --ks-meter-size: clamp(78px, 18vw, 112px) !important;
  --ks-meter-ring: clamp(10px, 2.25vw, 15px) !important;
  width: var(--ks-meter-size) !important;
  min-width: var(--ks-meter-size) !important;
  height: calc(var(--ks-meter-size) + clamp(1.62rem, 3.2vw, 2rem)) !important;
  min-height: calc(var(--ks-meter-size) + clamp(1.62rem, 3.2vw, 2rem)) !important;
  margin: clamp(0.58rem, 3vw, 1.1rem) auto 0 !important;
}

.landing-kinsight-quality-note {
  display: none !important;
}

.landing-kinsight-analysis-card .ks-feature-bars,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars {
  margin-top: clamp(0.24rem, 0.7vw, 0.42rem) !important;
}

.landing-kinsight-analysis-card .ks-feature-bars article,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars article {
  min-height: clamp(4.45rem, 9vw, 5.45rem) !important;
  padding: clamp(0.38rem, 0.68vw, 0.48rem) clamp(0.34rem, 0.68vw, 0.5rem) !important;
  gap: clamp(0.18rem, 0.38vw, 0.28rem) !important;
}

.landing-kinsight-analysis-card .ks-feature-bars strong,
.landing-kinsight-analysis-card .landing-kinsight-feature-bars strong {
  min-height: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 620px) {
  .landing-kinsight-analysis-card .ks-photo-stage,
  .landing-kinsight-analysis-card .landing-kinsight-photo-stage {
    grid-template-columns: minmax(0, clamp(6.65rem, 30vw, 8.7rem)) clamp(72px, 20vw, 92px) minmax(0, clamp(6.65rem, 30vw, 8.7rem)) !important;
    gap: clamp(0.24rem, 1.2vw, 0.44rem) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .landing-kinsight-analysis-card .ks-photo-slot,
  .landing-kinsight-analysis-card .landing-kinsight-photo-slot,
  .landing-kinsight-analysis-card .ks-photo-slot img,
  .landing-kinsight-analysis-card .landing-kinsight-photo-slot img,
  .landing-kinsight-analysis-card .ks-photo-slot strong,
  .landing-kinsight-analysis-card .landing-kinsight-photo-slot strong,
  .landing-kinsight-analysis-card .ks-photo-slot small,
  .landing-kinsight-analysis-card .landing-kinsight-photo-slot small {
    max-width: clamp(6.65rem, 30vw, 8.7rem) !important;
  }

  .landing-kinsight-analysis-card .ks-photo-slot img,
  .landing-kinsight-analysis-card .landing-kinsight-photo-slot img {
    max-height: clamp(8.05rem, 39vw, 11rem) !important;
  }
}


/* =========================================================
   OFC v122: signed-in home hero aligned with public hero style
   ========================================================= */
body.authenticated-home .home-welcome-hero {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  width: min(100% - 1rem, 74rem) !important;
  min-height: clamp(12rem, 31vw, 20rem) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 0.56fr) minmax(0, 0.44fr) !important;
  align-items: center !important;
  gap: 0 !important;
  margin: clamp(0.68rem, 1.22vw, 0.95rem) auto clamp(0.75rem, 1.35vw, 1rem) !important;
  padding: clamp(1.15rem, 3.4vw, 2.6rem) clamp(1.18rem, 4.6vw, 3.5rem) !important;
  border: 1px solid rgba(203, 171, 101, 0.72) !important;
  border-radius: clamp(20px, 3vw, 34px) !important;
  background:
    linear-gradient(90deg, rgba(255, 250, 239, 0.98) 0%, rgba(255, 250, 239, 0.92) 45%, rgba(255, 250, 239, 0.18) 72%, rgba(255, 250, 239, 0.02) 100%),
    radial-gradient(circle at 74% 36%, rgba(160, 108, 58, 0.16), transparent 24rem),
    url('/static/img/parchment-bg.webp') center / cover repeat !important;
  box-shadow:
    0 18px 44px rgba(82, 49, 25, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.7) !important;
}

body.authenticated-home .home-welcome-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: clamp(0.58rem, 1.4vw, 0.95rem) !important;
  z-index: 1 !important;
  border: 1px solid rgba(203, 171, 101, 0.36) !important;
  border-radius: calc(clamp(20px, 3vw, 34px) - 8px) !important;
  pointer-events: none !important;
}

body.authenticated-home .home-welcome-hero::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background:
    linear-gradient(90deg, rgba(255, 250, 239, 0.96) 0 48%, rgba(255, 250, 239, 0.42) 66%, rgba(255, 250, 239, 0.08) 100%) !important;
  pointer-events: none !important;
}

body.authenticated-home .home-welcome-copy {
  position: relative !important;
  z-index: 3 !important;
  width: min(100%, 34rem) !important;
  transform: none !important;
  text-align: left !important;
}

body.authenticated-home .home-welcome-copy h1 {
  margin: 0 !important;
  color: #1D1309 !important;
  font-family: var(--font-display, Georgia, serif) !important;
  display: grid !important;
  gap: 0 !important;
  font-size: clamp(2.25rem, 5vw, 4.25rem) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.045em !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.58) !important;
}

body.authenticated-home .home-welcome-copy h1 span {
  display: block !important;
  white-space: normal !important;
}

body.authenticated-home .home-welcome-copy .ornamental-rule {
  width: min(100%, 12rem) !important;
  margin: clamp(0.52rem, 1.25vw, 0.78rem) 0 clamp(0.58rem, 1.3vw, 0.86rem) !important;
  opacity: 0.82 !important;
}

body.authenticated-home .home-welcome-copy p {
  margin: 0 !important;
  color: rgba(45, 31, 21, 0.78) !important;
  font-size: clamp(1rem, 1.75vw, 1.2rem) !important;
  line-height: 1.38 !important;
}

body.authenticated-home .home-welcome-photo {
  position: absolute !important;
  inset: 0 0 0 auto !important;
  z-index: 0 !important;
  width: min(58%, 44rem) !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.authenticated-home .home-welcome-photo picture,
body.authenticated-home .home-welcome-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

body.authenticated-home .home-welcome-photo img {
  object-fit: cover !important;
  object-position: center center !important;
  filter: sepia(0.12) saturate(0.88) contrast(0.98) !important;
}

@media (max-width: 760px) {
  body.authenticated-home .home-welcome-hero {
    min-height: clamp(11.5rem, 42vw, 16rem) !important;
    grid-template-columns: minmax(0, 0.64fr) minmax(0, 0.36fr) !important;
    padding: clamp(1rem, 4.5vw, 1.45rem) clamp(1rem, 5vw, 1.35rem) !important;
  }

  body.authenticated-home .home-welcome-copy {
    width: min(62%, 21rem) !important;
  }

  body.authenticated-home .home-welcome-copy h1 {
    font-size: clamp(2rem, 9.2vw, 3rem) !important;
  }

  body.authenticated-home .home-welcome-copy p {
    font-size: clamp(0.82rem, 3.4vw, 1rem) !important;
  }

  body.authenticated-home .home-welcome-photo {
    width: 58% !important;
  }
}

@media (max-width: 430px) {
  body.authenticated-home .home-welcome-copy {
    width: min(64%, 17rem) !important;
  }

  body.authenticated-home .home-welcome-copy h1 {
    font-size: clamp(1.72rem, 9vw, 2.35rem) !important;
  }

  body.authenticated-home .home-welcome-copy p {
    font-size: clamp(0.72rem, 3.4vw, 0.86rem) !important;
  }
}

/* =========================================================
   KinSight landing v123: remove inner analysis panel border/background
   ========================================================= */
.landing-kinsight-preview--quick-glance .landing-kinsight-preview-card.landing-kinsight-analysis-card,
.landing-kinsight-preview-card.landing-kinsight-analysis-card {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.landing-kinsight-preview--quick-glance .landing-kinsight-preview-card.landing-kinsight-analysis-card::before,
.landing-kinsight-preview--quick-glance .landing-kinsight-preview-card.landing-kinsight-analysis-card::after,
.landing-kinsight-preview-card.landing-kinsight-analysis-card::before,
.landing-kinsight-preview-card.landing-kinsight-analysis-card::after {
  display: none !important;
  content: none !important;
}

/* =========================================================
   KinSight landing v124: restore outer preview card border only
   ========================================================= */
.landing-kinsight-preview--quick-glance .landing-kinsight-preview-card.landing-kinsight-analysis-card,
.landing-kinsight-preview-card.landing-kinsight-analysis-card {
  border: 1px solid rgba(212, 175, 55, 0.38) !important;
  border-radius: clamp(22px, 3vw, 34px) !important;
  background:
    radial-gradient(circle at 50% 35%, rgba(212, 175, 55, 0.13), transparent 30rem),
    linear-gradient(180deg, rgba(251, 246, 238, 0.96), rgba(242, 230, 210, 0.96)) !important;
  box-shadow: 0 18px 44px rgba(82, 49, 25, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

.landing-kinsight-preview--quick-glance .landing-kinsight-preview-card.landing-kinsight-analysis-card::before,
.landing-kinsight-preview--quick-glance .landing-kinsight-preview-card.landing-kinsight-analysis-card::after,
.landing-kinsight-preview-card.landing-kinsight-analysis-card::before,
.landing-kinsight-preview-card.landing-kinsight-analysis-card::after {
  display: none !important;
  content: none !important;
}

/* =========================================================
   KinSight v126: shared analysis layout, lower pill, and unified landing behavior
   ========================================================= */
.ks-analysis-card,
.ks-photo-lab,
.landing-kinsight-preview .ks-analysis-card {
  position: relative !important;
}

.landing-kinsight-preview .ks-analysis-card {
  width: min(100%, 62rem) !important;
  margin: 0 auto !important;
  padding: clamp(1rem, 3vw, 2rem) !important;
  border: 1px solid rgba(212, 175, 55, 0.38) !important;
  border-radius: clamp(22px, 3vw, 34px) !important;
  background:
    radial-gradient(circle at 50% 35%, rgba(212, 175, 55, 0.13), transparent 30rem),
    linear-gradient(180deg, rgba(251, 246, 238, 0.96), rgba(242, 230, 210, 0.96)) !important;
  box-shadow: 0 18px 44px rgba(82, 49, 25, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

.landing-kinsight-preview .ks-analysis-card::before,
.landing-kinsight-preview .ks-analysis-card::after {
  display: none !important;
  content: none !important;
}

.ks-analysis-card .ks-photo-stage,
.ks-photo-lab .ks-photo-stage,
.landing-kinsight-preview .ks-analysis-card .ks-photo-stage {
  --ks-photo-col: clamp(6.95rem, 24vw, 10rem);
  --ks-score-col: clamp(84px, 15.5vw, 108px);
  display: grid !important;
  grid-template-columns: var(--ks-photo-col) var(--ks-score-col) var(--ks-photo-col) !important;
  align-items: start !important;
  justify-content: center !important;
  gap: clamp(0.95rem, 3vw, 1.95rem) !important;
  width: min(100%, 700px) !important;
  max-width: 700px !important;
  margin: 0 auto clamp(0.46rem, 1vw, 0.64rem) !important;
  position: relative !important;
  overflow: visible !important;
}

.ks-analysis-card .ks-photo-slot,
.ks-photo-lab .ks-photo-slot,
.landing-kinsight-preview .ks-analysis-card .ks-photo-slot {
  display: grid !important;
  grid-template-rows: auto auto auto !important;
  justify-items: center !important;
  align-content: start !important;
  width: 100% !important;
  max-width: clamp(6.95rem, 24vw, 10rem) !important;
  max-height: none !important;
  min-height: 0 !important;
  gap: 0 !important;
  overflow: visible !important;
}

.ks-analysis-card .ks-photo-slot img,
.ks-photo-lab .ks-photo-slot img,
.landing-kinsight-preview .ks-analysis-card .ks-photo-slot img {
  display: block !important;
  width: 100% !important;
  max-width: clamp(6.95rem, 24vw, 10rem) !important;
  height: auto !important;
  max-height: clamp(8.7rem, 27vw, 12.35rem) !important;
  aspect-ratio: 0.84 / 1 !important;
  object-fit: cover !important;
}

.ks-analysis-card .ks-photo-slot strong,
.ks-photo-lab .ks-photo-slot strong,
.landing-kinsight-preview .ks-analysis-card .ks-photo-slot strong,
.ks-analysis-card .ks-photo-slot small,
.ks-photo-lab .ks-photo-slot small,
.landing-kinsight-preview .ks-analysis-card .ks-photo-slot small {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: clamp(6.95rem, 24vw, 10rem) !important;
  min-height: 0 !important;
  transform: none !important;
  overflow: hidden !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.ks-analysis-card .ks-photo-slot strong,
.ks-photo-lab .ks-photo-slot strong,
.landing-kinsight-preview .ks-analysis-card .ks-photo-slot strong {
  margin-top: 0.24rem !important;
  font-size: clamp(0.88rem, 2.35vw, 1.24rem) !important;
  line-height: 1.03 !important;
}

.ks-analysis-card .ks-photo-slot small,
.ks-photo-lab .ks-photo-slot small,
.landing-kinsight-preview .ks-analysis-card .ks-photo-slot small {
  margin-top: 0.08rem !important;
  color: rgba(49, 30, 17, 0.82) !important;
  font-size: clamp(0.72rem, 1.85vw, 0.96rem) !important;
  line-height: 1.05 !important;
}

.ks-analysis-card .ks-photo-score,
.ks-photo-lab .ks-photo-score,
.landing-kinsight-preview .ks-analysis-card .ks-photo-score {
  grid-column: 2 !important;
  justify-self: center !important;
  align-self: start !important;
  margin-top: clamp(3.25rem, 9.2vw, 4.65rem) !important;
}

.ks-analysis-card .ks-photo-slot[data-slot="left"],
.ks-photo-lab .ks-photo-slot[data-slot="left"],
.landing-kinsight-preview .ks-analysis-card .ks-photo-slot[data-slot="left"] {
  grid-column: 1 !important;
  justify-self: center !important;
}

.ks-analysis-card .ks-photo-slot[data-slot="right"],
.ks-photo-lab .ks-photo-slot[data-slot="right"],
.landing-kinsight-preview .ks-analysis-card .ks-photo-slot[data-slot="right"] {
  grid-column: 3 !important;
  justify-self: center !important;
}

.ks-analysis-card .ks-photo-score small,
.ks-photo-lab .ks-photo-score small,
.landing-kinsight-preview .ks-analysis-card .ks-photo-score small {
  top: calc(var(--ks-meter-size) + clamp(1.22rem, 2.7vw, 1.62rem)) !important;
}

.ks-analysis-loading-indicator,
.landing-kinsight-preview .ks-analysis-card .ks-analysis-loading-indicator {
  position: absolute !important;
  z-index: 12 !important;
  inset: auto auto auto 50% !important;
  top: clamp(1.35rem, 4.8vw, 2.55rem) !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: max-content !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  pointer-events: none !important;
}

.ks-analysis-loading-indicator[hidden] {
  display: none !important;
}

.ks-loading-gears {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  color: var(--landing-icon-color, #1d1309) !important;
  filter: drop-shadow(0 4px 9px rgba(70, 46, 25, 0.24)) !important;
}

.ks-loading-gear {
  display: block !important;
  position: relative !important;
  flex: 0 0 auto !important;
  color: currentColor !important;
  transform-origin: 50% 50% !important;
  transform-box: fill-box !important;
  backface-visibility: hidden !important;
  will-change: transform !important;
  contain: layout paint style !important;
}

.ks-loading-gear svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  fill: currentColor !important;
  overflow: visible !important;
  transform: translateZ(0) !important;
}

.ks-loading-gear--primary {
  width: clamp(3.27rem, 6.98vw, 4.35rem) !important;
  height: clamp(3.27rem, 6.98vw, 4.35rem) !important;
  animation: ks-gear-spin-cw 1.18s linear infinite !important;
}

.ks-loading-gear--secondary {
  width: clamp(2.58rem, 5.7vw, 3.42rem) !important;
  height: clamp(2.58rem, 5.7vw, 3.42rem) !important;
  margin-left: -0.63rem !important;
  margin-top: 0.72rem !important;
  animation: ks-gear-spin-ccw 0.96s linear infinite !important;
}

.ks-loading-text {
  display: none !important;
}

@keyframes ks-gear-spin-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ks-gear-spin-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@media (min-width: 760px) {
  .ks-analysis-card .ks-feature-bars,
  .ks-photo-lab .ks-feature-bars,
  .landing-kinsight-preview .ks-analysis-card .ks-feature-bars,
  .ks-feature-bars[data-ks-feature-bars] {
    grid-template-columns: repeat(4, minmax(0, 168px)) !important;
    justify-content: center !important;
  }

  .ks-analysis-card .ks-feature-bars article,
  .ks-photo-lab .ks-feature-bars article,
  .landing-kinsight-preview .ks-analysis-card .ks-feature-bars article,
  .ks-feature-bars[data-ks-feature-bars] article {
    width: 100% !important;
    max-width: 168px !important;
    margin-inline: auto !important;
  }
}

@media (max-width: 620px) {
  .ks-analysis-card .ks-photo-stage,
  .ks-photo-lab .ks-photo-stage,
  .landing-kinsight-preview .ks-analysis-card .ks-photo-stage {
    --ks-photo-col: clamp(6.12rem, 28vw, 8.12rem);
    --ks-score-col: clamp(72px, 18.5vw, 90px);
    grid-template-columns: var(--ks-photo-col) var(--ks-score-col) var(--ks-photo-col) !important;
    gap: clamp(0.48rem, 2.2vw, 0.78rem) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .ks-analysis-card .ks-photo-slot,
  .ks-photo-lab .ks-photo-slot,
  .landing-kinsight-preview .ks-analysis-card .ks-photo-slot,
  .ks-analysis-card .ks-photo-slot img,
  .ks-photo-lab .ks-photo-slot img,
  .landing-kinsight-preview .ks-analysis-card .ks-photo-slot img,
  .ks-analysis-card .ks-photo-slot strong,
  .ks-photo-lab .ks-photo-slot strong,
  .landing-kinsight-preview .ks-analysis-card .ks-photo-slot strong,
  .ks-analysis-card .ks-photo-slot small,
  .ks-photo-lab .ks-photo-slot small,
  .landing-kinsight-preview .ks-analysis-card .ks-photo-slot small {
    max-width: clamp(6.12rem, 28vw, 8.12rem) !important;
  }

  .ks-analysis-card .ks-photo-score,
  .ks-photo-lab .ks-photo-score,
  .landing-kinsight-preview .ks-analysis-card .ks-photo-score {
    margin-top: clamp(3.05rem, 14.2vw, 4.1rem) !important;
  }

  .ks-analysis-loading-indicator,
  .landing-kinsight-preview .ks-analysis-card .ks-analysis-loading-indicator {
    top: clamp(0.95rem, 5.8vw, 1.72rem) !important;
  }

  .ks-analysis-card .ks-photo-score small,
  .ks-photo-lab .ks-photo-score small,
  .landing-kinsight-preview .ks-analysis-card .ks-photo-score small {
    top: calc(var(--ks-meter-size) + clamp(0.82rem, 2.3vw, 1.02rem)) !important;
  }

}

/* =========================================================
   KinSight landing v130: center CTA and explicit loading state
   ========================================================= */
.landing-kinsight-preview .ks-analysis-action-row,
.landing-kinsight-preview--quick-glance .ks-analysis-action-row {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin-inline: auto !important;
  text-align: center !important;
}

.landing-kinsight-preview .ks-analysis-loading-indicator,
.landing-kinsight-preview--quick-glance .ks-analysis-loading-indicator {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.landing-kinsight-preview .ks-analysis-loading-indicator[data-ks-loading-active="true"],
.landing-kinsight-preview--quick-glance .ks-analysis-loading-indicator[data-ks-loading-active="true"] {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.landing-kinsight-preview .landing-kinsight-preview__button,
.landing-kinsight-preview .landing-kinsight-preview__button--center,
.landing-kinsight-preview--quick-glance .landing-kinsight-preview__button,
.landing-kinsight-preview--quick-glance .landing-kinsight-preview__button--center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  align-self: center !important;
  justify-self: center !important;
  text-align: center !important;
  transform: none !important;
}



/* =========================================================
   Kinvella hero, summary, and inline icon refinement
   ========================================================= */
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing {
  padding: 0 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing::before {
  background:
    linear-gradient(
      90deg,
      rgba(251, 246, 238, 0.98) 0%,
      rgba(251, 246, 238, 0.93) 18%,
      rgba(251, 246, 238, 0.62) 29%,
      rgba(251, 246, 238, 0.22) 38%,
      rgba(251, 246, 238, 0.04) 46%,
      rgba(251, 246, 238, 0) 54%
    ) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-lcp-image {
  transform: translateX(3.4%) scale(0.89) !important;
  transform-origin: right center !important;
  object-position: right center !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy.hero-copy--landing {
  padding: clamp(1.15rem, 2.2vw, 2rem) clamp(1rem, 2.4vw, 2rem) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle {
  width: max-content !important;
  max-width: min(100%, 22rem) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-line {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.48rem !important;
  width: max-content !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  text-align: left !important;
  white-space: nowrap !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 1rem !important;
  width: 1rem !important;
  height: 1rem !important;
  color: rgba(108, 69, 36, 0.95) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.7 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-copy {
  display: inline-block !important;
  min-width: 0 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack .btn-primary::before {
  content: none !important;
  display: none !important;
}

body.landing-page .summary-card--capsule .capsule-summary-identity {
  margin-bottom: clamp(0.75rem, 1.2vw, 1rem) !important;
}

body.landing-page .summary-card--capsule .capsule-family-name-block {
  width: 100% !important;
}

body.landing-page .summary-card--capsule .capsule-family-name-line {
  margin: 0 !important;
}

body.landing-page .summary-card--capsule .capsule-family-ornament {
  display: none !important;
}

body.landing-page .summary-card--capsule .capsule-overview-card--hero,
body.landing-page .summary-card--capsule .capsule-metric-card--hero {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.landing-page .summary-card--capsule .capsule-overview-card--hero::before,
body.landing-page .summary-card--capsule .capsule-overview-card--hero::after,
body.landing-page .summary-card--capsule .capsule-metric-card--hero::before,
body.landing-page .summary-card--capsule .capsule-metric-card--hero::after {
  display: none !important;
}

@media (max-width: 760px) {
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-lcp-image {
    transform: translateX(4.2%) scale(0.88) !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy.hero-copy--landing {
    padding: clamp(0.92rem, 2.6vw, 1.18rem) clamp(0.7rem, 2.2vw, 1rem) !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle {
    max-width: min(100%, 17rem) !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-line {
    gap: 0.36rem !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon {
    flex-basis: 0.86rem !important;
    width: 0.86rem !important;
    height: 0.86rem !important;
  }
}

@media (max-width: 430px) {
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-line {
    white-space: normal !important;
  }
}


/* =========================================================
   Kinvella conflict cleanup v5
   ========================================================= */
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing {
  padding: 0 !important;
  border-block-width: 1px !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing::before {
  background:
    linear-gradient(
      90deg,
      rgba(251, 246, 238, 0.985) 0%,
      rgba(251, 246, 238, 0.94) 18%,
      rgba(251, 246, 238, 0.58) 27%,
      rgba(251, 246, 238, 0.16) 35%,
      rgba(251, 246, 238, 0.00) 44%
    ) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-lcp-media,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-lcp-image {
  overflow: hidden !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-lcp-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 82% center !important;
  transform: scale(0.9) translateX(7%) !important;
  transform-origin: right center !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy.hero-copy--landing {
  padding: clamp(1.05rem, 2.05vw, 1.86rem) clamp(0.9rem, 2.1vw, 1.75rem) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle {
  width: min(100%, 18.75rem) !important;
  max-width: 18.75rem !important;
  display: grid !important;
  gap: 0.42rem !important;
  text-align: left !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle-line,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle .hero-subtitle-line,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-line {
  display: grid !important;
  grid-template-columns: 1.05rem minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: start !important;
  column-gap: 0.48rem !important;
  text-align: left !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.05rem !important;
  height: 1.05rem !important;
  margin: 0 !important;
  color: rgba(151, 111, 34, 0.98) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg {
  display: block !important;
  width: 1rem !important;
  height: 1rem !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.75 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-copy {
  display: block !important;
  min-width: 0 !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

body.landing-page .summary-card--capsule {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 249, 236, 0.42), transparent 54%),
    linear-gradient(180deg, rgba(250, 241, 226, 0.98), rgba(235, 218, 191, 0.96)) !important;
}

body.landing-page .summary-card--capsule .capsule-summary-shell,
body.landing-page .summary-card--capsule .capsule-summary-hero,
body.landing-page .summary-card--capsule .capsule-overview-card,
body.landing-page .summary-card--capsule .capsule-metric-card {
  background: transparent !important;
  box-shadow: none !important;
}

body.landing-page .summary-card--capsule .capsule-metric-card {
  border-color: rgba(151, 100, 42, 0.22) !important;
}

body.landing-page .summary-card--capsule .capsule-family-name-block {
  display: grid !important;
  justify-items: center !important;
}

body.landing-page .summary-card--capsule .capsule-family-name-line {
  margin: 0 !important;
  color: #d4af37 !important;
  font-family: var(--font-display, "Cormorant Garamond", serif) !important;
  font-size: clamp(2.05rem, 5.5vw, 3.6rem) !important;
  font-weight: 700 !important;
  line-height: 0.92 !important;
  letter-spacing: 0.035em !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

body.landing-page:not(.authenticated-home) .ofc-experience-quick-links svg,
.auth-quick-nav .auth-quick-nav-icon--svg {
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.landing-page:not(.authenticated-home) .ofc-quick-link__icon {
  color: #d4af37 !important;
}

body.landing-page:not(.authenticated-home) .ofc-quick-link__icon svg {
  width: clamp(1.52rem, 5.8vw, 2.05rem) !important;
  height: clamp(1.52rem, 5.8vw, 2.05rem) !important;
  stroke-width: 1.72 !important;
  filter: drop-shadow(0 3px 5px rgba(120, 75, 22, 0.18)) !important;
}

@media (max-width: 760px) {
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-lcp-image {
    object-position: 84% center !important;
    transform: scale(0.88) translateX(9%) !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle {
    width: min(100%, 16.4rem) !important;
    max-width: 16.4rem !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle-line,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle .hero-subtitle-line,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-line {
    grid-template-columns: 0.92rem minmax(0, 1fr) !important;
    column-gap: 0.36rem !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg {
    width: 0.88rem !important;
    height: 0.88rem !important;
  }
}

/* =========================================================
   Kinvella final hero, quick links, and summary heading polish v7
   ========================================================= */
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing::before {
  background:
    linear-gradient(
      90deg,
      rgba(251, 246, 238, 0.99) 0%,
      rgba(251, 246, 238, 0.97) 24%,
      rgba(251, 246, 238, 0.88) 42%,
      rgba(251, 246, 238, 0.58) 58%,
      rgba(251, 246, 238, 0.18) 72%,
      rgba(251, 246, 238, 0.02) 100%
    ) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-lcp-image {
  object-position: 91% center !important;
  transform: scale(0.84) translateX(12%) !important;
  transform-origin: right center !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle-line,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle .hero-subtitle-line,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-line {
  grid-template-columns: 1.22rem minmax(0, max-content) !important;
  align-items: center !important;
  justify-content: start !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon {
  width: 1.22rem !important;
  height: 1.22rem !important;
  color: #6f4320 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg {
  width: 1.16rem !important;
  height: 1.16rem !important;
  stroke-width: 1.9 !important;
}

body.landing-page:not(.authenticated-home) .ofc-experience-quick-links__inner {
  gap: clamp(0.42rem, 1.8vw, 0.8rem) !important;
}

body.landing-page:not(.authenticated-home) .ofc-quick-link {
  min-height: clamp(4.7rem, 14vw, 5.65rem) !important;
  padding: clamp(0.58rem, 2vw, 0.82rem) clamp(0.42rem, 1.6vw, 0.72rem) !important;
  border: 1.5px solid rgba(111, 67, 32, 0.38) !important;
  border-radius: clamp(18px, 4vw, 24px) !important;
  background: linear-gradient(180deg, rgba(255, 250, 239, 0.84), rgba(246, 230, 196, 0.62)) !important;
  box-shadow:
    0 8px 18px rgba(75, 43, 18, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

body.landing-page:not(.authenticated-home) .ofc-quick-link__icon {
  color: #6f4320 !important;
}

body.landing-page:not(.authenticated-home) .ofc-quick-link__icon svg {
  width: clamp(1.82rem, 6.7vw, 2.42rem) !important;
  height: clamp(1.82rem, 6.7vw, 2.42rem) !important;
  stroke-width: 1.85 !important;
  filter: none !important;
}

body.landing-page:not(.authenticated-home) .ofc-quick-link__label {
  color: #1D1309 !important;
  font-weight: 800 !important;
}

body.landing-page .summary-card--capsule .capsule-family-name-line,
body.landing-page .summary-card--capsule .page-section-header__title.capsule-family-name-line {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  font-family: var(--font-display, "Cormorant Garamond", serif) !important;
  font-size: clamp(1.28rem, 6vw, 3.5rem) !important;
  line-height: 0.98 !important;
  letter-spacing: 0.035em !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

body.landing-page .summary-card--capsule .capsule-family-ornament {
  margin-top: clamp(0.42rem, 1.2vw, 0.72rem) !important;
}

@media (max-width: 760px) {
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-lcp-image {
    object-position: 92% center !important;
    transform: scale(0.82) translateX(13%) !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle {
    width: min(100%, 17.2rem) !important;
    max-width: 17.2rem !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle-line,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle .hero-subtitle-line,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-line {
    grid-template-columns: 1.04rem minmax(0, max-content) !important;
    column-gap: 0.42rem !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg {
    width: 1.05rem !important;
    height: 1.05rem !important;
  }

  body.landing-page .summary-card--capsule .capsule-family-name-line,
  body.landing-page .summary-card--capsule .page-section-header__title.capsule-family-name-line {
    font-size: clamp(1.06rem, 7vw, 2.2rem) !important;
    letter-spacing: 0.018em !important;
  }
}


/* =========================================================
   Kinvella public landing conflict cleanup v8
   ========================================================= */
body.landing-page:not(.authenticated-home) .topbar {
  margin-bottom: 0 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing {
  margin-top: 0 !important;
  padding: 0 !important;
  background-color: transparent !important;
  border-top-width: 1px !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-lcp-media {
  inset: 0 !important;
  overflow: hidden !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing::before {
  background:
    linear-gradient(
      90deg,
      rgba(251, 246, 238, 0.99) 0%,
      rgba(251, 246, 238, 0.97) 30%,
      rgba(251, 246, 238, 0.82) 48%,
      rgba(251, 246, 238, 0.36) 64%,
      rgba(251, 246, 238, 0.06) 82%,
      rgba(251, 246, 238, 0.00) 100%
    ) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-lcp-image {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
  object-position: 92% center !important;
  transform: scale(0.86) translateX(12%) !important;
  transform-origin: right center !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle-line,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle .hero-subtitle-line,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-line {
  grid-template-columns: 1.28rem minmax(0, max-content) !important;
  column-gap: 0.5rem !important;
  align-items: center !important;
  white-space: nowrap !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon {
  width: 1.28rem !important;
  height: 1.28rem !important;
  color: #1D1309 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg {
  width: 1.2rem !important;
  height: 1.2rem !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
}

body.landing-page:not(.authenticated-home) .ofc-experience-quick-links {
  display: none !important;
}

body.landing-page .summary-card--capsule > .capsule-family-section-header {
  display: grid !important;
  width: 100% !important;
  margin: 0 0 clamp(0.82rem, 1.8vw, 1.1rem) !important;
  padding: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}

body.landing-page .summary-card--capsule .capsule-family-name-line.page-section-header__title,
body.landing-page .summary-card--capsule .page-section-header__title.capsule-family-name-line,
body.landing-page .summary-card--capsule > .capsule-family-section-header .capsule-family-name-line {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  color: #d4af37 !important;
  font-family: var(--font-display, "Cormorant Garamond", serif) !important;
  font-size: clamp(1.95rem, 6.2vw, 3.65rem) !important;
  font-weight: 700 !important;
  line-height: 0.96 !important;
  letter-spacing: 0.035em !important;
  text-align: center !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.landing-page .summary-card--capsule .capsule-summary-shell,
body.landing-page .summary-card--capsule .capsule-summary-hero,
body.landing-page .summary-card--capsule .capsule-overview-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 249, 236, 0.34), transparent 58%),
    linear-gradient(180deg, rgba(255, 250, 239, 0.78), rgba(244, 225, 190, 0.5)) !important;
}

body.landing-page .summary-card--capsule .capsule-metric-card {
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.9), rgba(248, 234, 207, 0.72)) !important;
  border-color: rgba(151, 100, 42, 0.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 8px 18px rgba(91, 57, 25, 0.08) !important;
}

@media (max-width: 760px) {
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-lcp-image {
    object-position: 93% center !important;
    transform: scale(0.84) translateX(13%) !important;
  }

  body.landing-page .summary-card--capsule .capsule-family-name-line.page-section-header__title,
  body.landing-page .summary-card--capsule .page-section-header__title.capsule-family-name-line,
  body.landing-page .summary-card--capsule > .capsule-family-section-header .capsule-family-name-line {
    font-size: clamp(1.58rem, 7.2vw, 2.45rem) !important;
    letter-spacing: 0.012em !important;
  }
}

/* =========================================================
   Kinvella public landing final conflict cleanup v9
   ========================================================= */
body.landing-page:not(.authenticated-home) .topbar {
  margin-bottom: 0 !important;
}

body.landing-page:not(.authenticated-home) #quick-page-content {
  padding-top: 0 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing {
  margin-top: 0 !important;
  padding: 0 !important;
  border-top-width: 1px !important;
  background-color: transparent !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-lcp-media {
  inset: 0 !important;
  overflow: hidden !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-lcp-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: right center !important;
  transform: none !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing::before {
  background:
    linear-gradient(
      90deg,
      rgba(250, 241, 226, 0.99) 0%,
      rgba(250, 241, 226, 0.97) 34%,
      rgba(250, 241, 226, 0.84) 48%,
      rgba(235, 218, 191, 0.42) 64%,
      rgba(235, 218, 191, 0.08) 82%,
      rgba(235, 218, 191, 0) 100%
    ) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle {
  width: min(100%, 19rem) !important;
  max-width: 19rem !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle-line,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle .hero-subtitle-line,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-line {
  display: grid !important;
  grid-template-columns: 1.32rem minmax(0, max-content) !important;
  column-gap: 0.5rem !important;
  align-items: center !important;
  justify-content: start !important;
  width: max-content !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  white-space: nowrap !important;
  text-align: left !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg {
  width: 1.28rem !important;
  height: 1.28rem !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon {
  color: #1D1309 !important;
  margin-top: 0 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg {
  stroke: currentColor !important;
  stroke-width: 1.95 !important;
}

body.landing-page:not(.authenticated-home) .ofc-experience-quick-links {
  display: none !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack .btn-primary,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-primary-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.85rem !important;
  padding-block: 0.68rem !important;
  padding-inline: 1.32rem !important;
  line-height: 1 !important;
  text-align: center !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-primary-button .hero-cta-label,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-primary-button .hero-cta-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

body.landing-page .summary-card--capsule > .capsule-family-section-header {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 0 clamp(0.72rem, 1.6vw, 1rem) !important;
  padding: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}

body.landing-page .summary-card--capsule .capsule-family-name-line.page-section-header__title,
body.landing-page .summary-card--capsule .page-section-header__title.capsule-family-name-line,
body.landing-page .summary-card--capsule > .capsule-family-section-header .capsule-family-name-line {
  display: block !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  color: rgba(58, 37, 23, 0.88) !important;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif) !important;
  font-size: clamp(1.15rem, 3vw, 2rem) !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0.04em !important;
  text-align: center !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  text-shadow: none !important;
  overflow: visible !important;
}

body.landing-page .summary-card--capsule .capsule-summary-shell,
body.landing-page .summary-card--capsule .capsule-summary-hero,
body.landing-page .summary-card--capsule .capsule-overview-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 249, 236, 0.34), transparent 58%),
    linear-gradient(180deg, rgba(255, 250, 239, 0.78), rgba(244, 225, 190, 0.5)) !important;
}

body.landing-page .summary-card--capsule .capsule-metric-card {
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.9), rgba(248, 234, 207, 0.72)) !important;
  border-color: rgba(151, 100, 42, 0.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 8px 18px rgba(91, 57, 25, 0.08) !important;
}

@media (max-width: 760px) {
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle {
    width: min(100%, 17rem) !important;
    max-width: 17rem !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle-line,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle .hero-subtitle-line,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-line {
    grid-template-columns: 1.24rem minmax(0, max-content) !important;
    column-gap: 0.42rem !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg {
    width: 1.12rem !important;
    height: 1.12rem !important;
  }

  body.landing-page .summary-card--capsule .capsule-family-name-line.page-section-header__title,
  body.landing-page .summary-card--capsule .page-section-header__title.capsule-family-name-line,
  body.landing-page .summary-card--capsule > .capsule-family-section-header .capsule-family-name-line {
    font-size: clamp(1.05rem, 5.4vw, 1.55rem) !important;
    letter-spacing: 0.025em !important;
  }
}

/* =========================================================
   Kinvella public landing cleanup v11
   ========================================================= */
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing {
  padding-block: 0 !important;
  background-color: rgba(242, 230, 210, 0.96) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-lcp-media {
  inset: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-inner.hero-inner--landing {
  min-height: clamp(20rem, 35vw, 28rem) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing::before {
  inset: 0 !important;
}

body.landing-page .summary-card--capsule {
  padding: clamp(0.9rem, 2.15vw, 1.18rem) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 249, 236, 0.42), transparent 58%),
    linear-gradient(180deg, rgba(255, 250, 239, 0.94), rgba(244, 225, 190, 0.72)) !important;
}

body.landing-page .summary-card--capsule .capsule-summary-shell,
body.landing-page .summary-card--capsule .capsule-summary-hero,
body.landing-page .summary-card--capsule .capsule-ancestor-row,
body.landing-page .summary-card--capsule .capsule-overview-card,
body.landing-page .summary-card--capsule .capsule-overview-card--hero {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

body.landing-page .summary-card--capsule .capsule-summary-shell {
  padding-top: 0 !important;
}

body.landing-page .summary-card--capsule > .capsule-family-section-header {
  display: grid !important;
  place-items: center !important;
  gap: 0 !important;
  margin: 0 0 clamp(0.36rem, 0.85vw, 0.52rem) !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.landing-page .summary-card--capsule > .capsule-family-section-header::after {
  content: "" !important;
  display: block !important;
  width: clamp(4.75rem, 18vw, 7rem) !important;
  height: 1px !important;
  margin-top: clamp(0.2rem, 0.55vw, 0.32rem) !important;
  background: linear-gradient(90deg, transparent, rgba(151, 100, 42, 0.45), transparent) !important;
}

body.landing-page .summary-card--capsule .capsule-family-name-line.page-section-header__title,
body.landing-page .summary-card--capsule .page-section-header__title.capsule-family-name-line,
body.landing-page .summary-card--capsule > .capsule-family-section-header .capsule-family-name-line {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  line-height: 0.95 !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  overflow: visible !important;
}

body.landing-page .summary-card--capsule .capsule-metric-card,
body.landing-page .summary-card--capsule .capsule-metric-card--hero {
  padding: clamp(0.46rem, 1.2vw, 0.7rem) clamp(0.42rem, 1.05vw, 0.62rem) !important;
  min-width: 0 !important;
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.95), rgba(248, 234, 207, 0.78)) !important;
  border: 1px solid rgba(151, 100, 42, 0.25) !important;
}

body.landing-page .summary-card--capsule .capsule-metric-label {
  max-width: 100% !important;
  padding-inline: clamp(0.04rem, 0.55vw, 0.08rem) !important;
  font-size: clamp(0.54rem, calc(0.45rem + 0.42vw), 0.72rem) !important;
  line-height: 1.04 !important;
  letter-spacing: clamp(0.002em, 0.24vw, 0.014em) !important;
  white-space: normal !important;
  text-wrap: balance !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: auto !important;
}

body.landing-page .summary-card--capsule .capsule-metric-note {
  max-width: 100% !important;
  padding-inline: clamp(0.03rem, 0.45vw, 0.06rem) !important;
  font-size: clamp(0.46rem, calc(0.39rem + 0.34vw), 0.61rem) !important;
  line-height: 1.1 !important;
  text-wrap: balance !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
}

@media (max-width: 430px) {
  body.landing-page .summary-card--capsule .capsule-metric-card,
  body.landing-page .summary-card--capsule .capsule-metric-card--hero {
    padding-inline: 0.34rem !important;
  }

  body.landing-page .summary-card--capsule .capsule-metric-label {
    font-size: clamp(0.46rem, 2.08vw, 0.58rem) !important;
    letter-spacing: 0.002em !important;
  }

  body.landing-page .summary-card--capsule .capsule-metric-note {
    font-size: clamp(0.42rem, 1.82vw, 0.52rem) !important;
  }
}


/* =========================================================
   Kinvella landing hero and feature preview alignment
   ========================================================= */
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-inner.hero-inner--landing {
  justify-items: start !important;
  padding-inline: clamp(1.65rem, 3.6vw, 2.65rem) clamp(0.82rem, 2vw, 1.4rem) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy.hero-copy--landing {
  width: min(100%, 21.5rem) !important;
  max-width: 21.5rem !important;
  margin-inline: 0 auto !important;
  padding-block: 0 !important;
  padding-inline: 0 !important;
  align-items: flex-start !important;
  justify-items: start !important;
  text-align: left !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy h1,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-title-top,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-title-line,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-ornament,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack {
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-title-top {
  display: grid !important;
  width: max-content !important;
  max-width: 100% !important;
  grid-template-rows: repeat(3, auto) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-title-line {
  display: block !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-title-emphasis--forever {
  position: relative !important;
  display: inline-block !important;
  color: #1D1309 !important;
  font-style: italic !important;
  font-weight: 700 !important;
  letter-spacing: -0.018em !important;
  text-shadow: 0 1px 0 rgba(255, 244, 221, 0.66), 0 0 0.35rem rgba(181, 138, 49, 0.18) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-title-emphasis--forever::after {
  content: "" !important;
  position: absolute !important;
  left: 0.08em !important;
  right: 0.02em !important;
  bottom: 0.04em !important;
  height: 0.08em !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(181, 138, 49, 0), rgba(181, 138, 49, 0.6), rgba(181, 138, 49, 0)) !important;
  opacity: 0.72 !important;
  pointer-events: none !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-ornament {
  width: min(100%, 20rem) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle {
  display: grid !important;
  width: max-content !important;
  max-width: min(100%, 20.25rem) !important;
  grid-template-rows: repeat(3, auto) !important;
  gap: clamp(0.34rem, 0.7vw, 0.48rem) !important;
  font-size: clamp(1.103rem, 1.66vw, 1.371rem) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle-line,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle .hero-subtitle-line,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-line {
  display: grid !important;
  width: max-content !important;
  max-width: 100% !important;
  grid-template-columns: 1.24rem minmax(0, max-content) !important;
  column-gap: 0.5rem !important;
  margin-inline: 0 auto !important;
  align-items: center !important;
  justify-content: start !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg {
  width: 1.24rem !important;
  height: 1.24rem !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon {
  color: #1D1309 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg path,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg circle {
  color: #1D1309 !important;
  stroke: currentColor !important;
  fill: none !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack .btn-primary,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-primary-button {
  border-radius: 999px !important;
  border: 2px solid var(--button-border, #b58a31) !important;
  box-shadow:
    0 9px 18px rgba(29, 19, 9, 0.2),
    inset 0 1px 0 rgba(255, 232, 184, 0.28),
    inset 0 -2px 0 rgba(29, 19, 9, 0.18) !important;
}

body.landing-page .landing-feature-pair--primary > .tree-card .treeCanvas--landing,
body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-shell {
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.landing-page .landing-feature-pair--primary > .tree-card .treeCanvas--landing > svg {
  height: auto !important;
  max-height: none !important;
}

@media (max-width: 760px) {
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-inner.hero-inner--landing {
    padding-inline: clamp(1.5rem, 6.2vw, 1.95rem) clamp(0.7rem, 2.2vw, 0.95rem) !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy.hero-copy--landing {
    width: min(100%, 17.9rem) !important;
    max-width: 17.9rem !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle {
    max-width: min(100%, 17.4rem) !important;
    font-size: clamp(0.845rem, 3.245vw, 1.071rem) !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy .hero-subtitle-line,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle .hero-subtitle-line,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-line {
    grid-template-columns: 1.05rem minmax(0, max-content) !important;
    column-gap: 0.42rem !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg {
    width: 1.05rem !important;
    height: 1.05rem !important;
  }
}



/* =========================================================
   Kinvella landing hero trim and section spacing cleanup v12
   ========================================================= */
body.landing-page:not(.authenticated-home) #quick-page-content {
  padding-top: 0 !important;
}

body.landing-page:not(.authenticated-home) .topbar {
  margin-bottom: 0 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  border-top-width: 1px !important;
  border-bottom-width: 1px !important;
  background-color: transparent !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-lcp-media {
  inset: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-lcp-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: right center !important;
  transform: none !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-inner.hero-inner--landing {
  min-height: clamp(14.45rem, 32vw, 20.5rem) !important;
  padding-block: clamp(0.18rem, 0.62vw, 0.42rem) !important;
  padding-inline: clamp(1.65rem, 3.6vw, 2.65rem) clamp(0.82rem, 2vw, 1.4rem) !important;
  align-items: center !important;
  justify-items: start !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy.hero-copy--landing {
  width: min(100%, 21.5rem) !important;
  max-width: 21.5rem !important;
  margin: 0 auto 0 0 !important;
  padding: 0 !important;
  display: grid !important;
  align-content: center !important;
  justify-items: start !important;
  row-gap: clamp(0.34rem, 0.8vw, 0.58rem) !important;
  text-align: left !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy h1,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-title-top,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-title-line,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-ornament,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack {
  margin-left: 0 !important;
  margin-right: auto !important;
  transform: none !important;
  text-align: left !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy h1,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-title-top {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.04 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-title-line {
  display: block !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-ornament {
  width: min(100%, 12rem) !important;
  height: 0.95rem !important;
  margin-block: clamp(0.16rem, 0.48vw, 0.34rem) clamp(0.12rem, 0.44vw, 0.3rem) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle {
  display: grid !important;
  width: max-content !important;
  max-width: min(100%, 20.25rem) !important;
  gap: clamp(0.26rem, 0.56vw, 0.42rem) !important;
  margin-block: 0 !important;
  font-size: clamp(1.103rem, 1.66vw, 1.371rem) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack {
  margin-top: clamp(0.36rem, 0.78vw, 0.58rem) !important;
  margin-bottom: 0 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack .btn-primary,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-primary-button {
  font: inherit;
}

body.landing-page .landing-portrait-row .summary-card--capsule,
body.landing-page .summary-card--capsule,
body.landing-page .landing-feature-pair--primary > .tree-card,
body.landing-page .landing-feature-pair--primary > .timeline-card {
  padding: clamp(0.92rem, 2vw, 1.05rem) !important;
}

body.landing-page .landing-portrait-row .summary-card--capsule {
  margin-top: clamp(0.68rem, 1.22vw, 0.95rem) !important;
}

body.landing-page .summary-card--capsule .capsule-summary-shell {
  padding: 0 !important;
}

body.landing-page .summary-card--capsule > .capsule-family-section-header {
  margin: 0 0 clamp(0.52rem, 1.1vw, 0.72rem) !important;
  padding: 0 !important;
}

body.landing-page .landing-feature-pair--primary {
  align-items: start !important;
}

body.landing-page .landing-feature-pair--primary > .tree-card,
body.landing-page .landing-feature-pair--primary > .timeline-card {
  display: flex !important;
  flex-direction: column !important;
  align-self: start !important;
}

body.landing-page .landing-feature-pair--primary > .tree-card .page-section-header,
body.landing-page .landing-feature-pair--primary > .timeline-card .page-section-header {
  margin: 0 0 clamp(0.52rem, 1.1vw, 0.72rem) !important;
  padding: 0 !important;
  min-height: 0 !important;
}

body.landing-page .landing-feature-pair--primary > .tree-card .treeCanvas--landing,
body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-shell {
  margin-top: 0 !important;
  padding-top: 0 !important;
  align-self: stretch !important;
}

body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-list {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

@media (max-width: 760px) {
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-inner.hero-inner--landing {
    min-height: clamp(13.65rem, 57vw, 15.4rem) !important;
    padding-block: clamp(0.14rem, 0.72vw, 0.28rem) !important;
    padding-inline: clamp(1.28rem, 5.45vw, 1.72rem) clamp(0.7rem, 2.2vw, 0.95rem) !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy.hero-copy--landing {
    width: min(100%, 17.9rem) !important;
    max-width: 17.9rem !important;
    row-gap: clamp(0.2rem, 1.05vw, 0.36rem) !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy h1,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-title-top {
    line-height: 1.02 !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-ornament {
    margin-block: clamp(0.08rem, 0.55vw, 0.18rem) clamp(0.08rem, 0.55vw, 0.18rem) !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle {
    max-width: min(100%, 17.4rem) !important;
    gap: clamp(0.18rem, 0.72vw, 0.3rem) !important;
    font-size: clamp(0.857rem, 3.267vw, 1.071rem) !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack {
    margin-top: clamp(0.26rem, 0.92vw, 0.42rem) !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack .btn-primary,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-primary-button {
    font: inherit;
  }
}

/* =========================================================
   Kinvella landing hero button/subheader cleanup v15
   ========================================================= */
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle {
  font-size: clamp(1.103rem, 1.66vw, 1.371rem) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack {
  margin-top: clamp(0.36rem, 0.78vw, 0.58rem) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack .btn-primary,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-primary-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.42rem !important;
  width: 100% !important;
  min-height: clamp(2.45rem, 2.65vw, 3.05rem) !important;
  padding-block: clamp(0.58rem, 0.72vw, 0.7rem) !important;
  padding-inline: clamp(1rem, 1.3vw, 1.35rem) !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--button-text-gold, #f1d18a) !important;
  background:
    linear-gradient(115deg, transparent 0 32%, rgba(212, 175, 55, 0.16) 45%, transparent 58% 100%),
    linear-gradient(180deg, var(--button-top), var(--button-bottom)) !important;
  background-size: 240% 100%, 100% 100% !important;
  background-position: 120% 0, 0 0 !important;
  box-shadow:
    0 10px 18px rgba(29, 19, 9, 0.18),
    inset 0 1px 0 rgba(255, 232, 184, 0.24),
    inset 0 -2px 0 rgba(29, 19, 9, 0.18) !important;
  font-size: clamp(0.86rem, 2.5vw, 1.02rem) !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-primary-button > *,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-primary-button .hero-cta-label,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-primary-button .hero-cta-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-primary-button .hero-cta-arrow {
  margin-left: 0.32rem !important;
  font-size: 0.68em !important;
  transform: translateY(0.01em) !important;
}

@media (max-width: 760px) {
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle {
    font-size: clamp(0.857rem, 3.267vw, 1.071rem) !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack {
    margin-top: clamp(0.26rem, 0.92vw, 0.42rem) !important;
  }
}


/* =========================================================
   Kinvella timeline first-node vertical alignment v16
   ========================================================= */
body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-shell {
  padding-top: 0 !important;
}

body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-list {
  --timeline-spine-start: 2.38rem !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-list > .timeline-preview-item:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-list > .timeline-preview-item:first-child .timeline-preview-body {
  padding-top: 0 !important;
  margin-top: 0 !important;
  align-items: start !important;
}

body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-list > .timeline-preview-item:first-child .timeline-preview-avatar-col,
body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-list > .timeline-preview-item:first-child .timeline-preview-copy {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-list > .timeline-preview-item:first-child .timeline-preview-avatar-frame {
  margin-top: 0 !important;
}

@media (max-width: 760px) {
  body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-list {
    --timeline-spine-start: 2.12rem !important;
  }
}


/* =========================================================
   Kinvella hero subtitle and timeline first-node refinement v16
   ========================================================= */
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle {
  font-size: clamp(1.103rem, 1.66vw, 1.371rem) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon {
  color: #1D1309 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg {
  width: 1.24rem !important;
  height: 1.24rem !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg path,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg circle {
  color: #1D1309 !important;
  stroke: currentColor !important;
  fill: none !important;
}

body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-list > .timeline-preview-item:first-child .timeline-preview-body {
  padding-top: 0 !important;
}

body.landing-page .landing-feature-pair--primary > .timeline-card .timeline-preview-list > .timeline-preview-item:first-child .timeline-preview-copy {
  padding-top: 0 !important;
}

@media (max-width: 760px) {
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle {
    font-size: clamp(0.857rem, 3.267vw, 1.071rem) !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg {
    width: 1.05rem !important;
    height: 1.05rem !important;
  }
}


/* =========================================================
   Kinvella section frame: non-hero section elevation v18
   ========================================================= */
body.landing-page .landing-portrait-row .summary-card--capsule,
body.landing-page .landing-feature-pair--primary > .tree-card,
body.landing-page .landing-feature-pair--primary > .timeline-card,
body.landing-page .map-card.raised-card.parchment-card,
body.landing-page .landing-kinsight-preview.raised-card.parchment-card,
body.landing-page:not(.authenticated-home) .landing-real-families__inner.raised-card.parchment-card,
body.landing-page:not(.authenticated-home) .landing-cta-card.raised-card.parchment-card {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  border-radius: clamp(1.32rem, 2.4vw, 1.82rem) !important;
  border: 1px solid rgba(176, 137, 80, 0.38) !important;
  outline: 1px solid rgba(255, 246, 221, 0.52) !important;
  outline-offset: -0.42rem !important;
  box-shadow:
    0 14px 28px rgba(64, 38, 18, 0.09),
    0 28px 54px rgba(64, 38, 18, 0.08),
    inset 0 1px 0 rgba(255, 252, 243, 0.7),
    inset 0 0 0 1px rgba(121, 76, 35, 0.11),
    inset 0 0 0 0.42rem rgba(255, 248, 232, 0.16) !important;
}

body.landing-page .landing-portrait-row .summary-card--capsule::after,
body.landing-page .landing-feature-pair--primary > .tree-card::after,
body.landing-page .landing-feature-pair--primary > .timeline-card::after,
body.landing-page .map-card.raised-card.parchment-card::after,
body.landing-page .landing-kinsight-preview.raised-card.parchment-card::after,
body.landing-page:not(.authenticated-home) .landing-real-families__inner.raised-card.parchment-card::after,
body.landing-page:not(.authenticated-home) .landing-cta-card.raised-card.parchment-card::after {
  content: "" !important;
  position: absolute !important;
  inset: clamp(0.38rem, 0.8vw, 0.54rem) !important;
  z-index: 2 !important;
  display: block !important;
  border: 1px solid rgba(118, 75, 37, 0.16) !important;
  border-radius: clamp(0.95rem, 1.9vw, 1.38rem) !important;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 1px, rgba(130,81,38,0.03) 1px 2px, transparent 2px 8px),
    radial-gradient(circle at 18% 14%, rgba(255,255,255,0.18), transparent 8rem) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(90, 55, 24, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.3) !important;
  opacity: 0.5 !important;
  pointer-events: none !important;
}

body.landing-page .landing-portrait-row .summary-card--capsule > *,
body.landing-page .landing-feature-pair--primary > .tree-card > *,
body.landing-page .landing-feature-pair--primary > .timeline-card > *,
body.landing-page .map-card.raised-card.parchment-card > *,
body.landing-page .landing-kinsight-preview.raised-card.parchment-card > *,
body.landing-page:not(.authenticated-home) .landing-real-families__inner.raised-card.parchment-card > *,
body.landing-page:not(.authenticated-home) .landing-cta-card.raised-card.parchment-card > * {
  position: relative !important;
  z-index: 3 !important;
}

@media (max-width: 760px) {
  body.landing-page .landing-portrait-row .summary-card--capsule,
  body.landing-page .landing-feature-pair--primary > .tree-card,
  body.landing-page .landing-feature-pair--primary > .timeline-card,
  body.landing-page .map-card.raised-card.parchment-card,
  body.landing-page .landing-kinsight-preview.raised-card.parchment-card,
  body.landing-page:not(.authenticated-home) .landing-real-families__inner.raised-card.parchment-card,
  body.landing-page:not(.authenticated-home) .landing-cta-card.raised-card.parchment-card {
    border-radius: clamp(1.08rem, 4vw, 1.42rem) !important;
    outline-offset: -0.34rem !important;
  }

  body.landing-page .landing-portrait-row .summary-card--capsule::after,
  body.landing-page .landing-feature-pair--primary > .tree-card::after,
  body.landing-page .landing-feature-pair--primary > .timeline-card::after,
  body.landing-page .map-card.raised-card.parchment-card::after,
  body.landing-page .landing-kinsight-preview.raised-card.parchment-card::after,
  body.landing-page:not(.authenticated-home) .landing-real-families__inner.raised-card.parchment-card::after,
  body.landing-page:not(.authenticated-home) .landing-cta-card.raised-card.parchment-card::after {
    inset: 0.34rem !important;
    border-radius: clamp(0.78rem, 3vw, 1.05rem) !important;
  }
}

/* =========================================================
   Kinvella hero gap balance v19
   ========================================================= */
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing {
  margin-top: clamp(0.56rem, 1.05vw, 0.78rem) !important;
  margin-bottom: 0 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing + .landing-portrait-row,
body.landing-page .landing-portrait-row {
  margin-top: clamp(0.56rem, 1.05vw, 0.78rem) !important;
}

/* =========================================================
   Kinvella hero responsive copy positioning v21
   ========================================================= */
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-inner.hero-inner--landing {
  padding-inline: clamp(1.2rem, 4.8vw, 3rem) clamp(0.82rem, 2vw, 1.4rem) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack {
  margin-top: clamp(0.42rem, 0.95vw, 0.66rem) !important;
}

@media (max-width: 760px) {
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-inner.hero-inner--landing {
    padding-inline: clamp(1.16rem, 5.2vw, 2.35rem) clamp(0.7rem, 2.2vw, 0.95rem) !important;
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-cta-stack {
    margin-top: clamp(0.34rem, 1.15vw, 0.5rem) !important;
  }
}

/* =========================================================
   Kinvella hero balanced spacing and responsive copy drift v22
   ========================================================= */
body.landing-page:not(.authenticated-home) {
  --landing-hero-edge-gap: var(--landing-section-gap, clamp(1.15rem, 2.6vw, 1.75rem));
  --landing-hero-copy-left: clamp(4.4rem, 10.9vw, 11rem);
  --landing-hero-copy-right: clamp(0.72rem, 2vw, 1.4rem);
  --landing-hero-y-pad: clamp(1.32rem, 2.55vw, 1.95rem);
}

body.landing-page:not(.authenticated-home) #quick-page-content {
  padding-top: 0 !important;
}

body.landing-page:not(.authenticated-home) .topbar {
  margin-bottom: 0 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing {
  margin-top: var(--landing-hero-edge-gap) !important;
  margin-bottom: 0 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing + .landing-portrait-row,
body.landing-page .landing-portrait-row {
  margin-top: var(--landing-hero-edge-gap) !important;
}

body.landing-page .landing-portrait-row .summary-card--capsule {
  margin-top: 0 !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-inner.hero-inner--landing {
  padding-block: var(--landing-hero-y-pad) !important;
  padding-inline: var(--landing-hero-copy-left) var(--landing-hero-copy-right) !important;
  align-items: center !important;
  justify-items: start !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy.hero-copy--landing {
  margin-block: 0 !important;
  margin-inline: 0 auto !important;
}

@media (max-width: 760px) {
  body.landing-page:not(.authenticated-home) {
    --landing-hero-copy-left: clamp(0.78rem, 3.1vw, 1.42rem);
    --landing-hero-copy-right: clamp(0.7rem, 2.2vw, 0.95rem);
    --landing-hero-y-pad: clamp(1.04rem, 2.95vw, 1.42rem);
  }
}

/* =========================================================
   Kinvella landing section system
   ========================================================= */
body.landing-page {
  --landing-section-max-width: 40rem;
  --landing-section-rail: min(calc(100vw - clamp(1.15rem, 5vw, 4.25rem)), var(--landing-section-max-width));
  --landing-section-gap: clamp(1rem, 2.4vw, 1.55rem);
  --landing-hero-edge-gap: var(--landing-section-gap);
  --landing-section-pad: clamp(0.92rem, 2.25vw, 1.35rem);
  --landing-section-pair-gap: clamp(0.18rem, 0.72vw, 0.42rem);
  --landing-value-card-gap: clamp(0.26rem, 0.75vw, 0.48rem);
  --landing-inner-radius: clamp(1.15rem, 2.2vw, 1.65rem);
  --landing-section-surface-background:
    radial-gradient(circle at 50% 0%, rgba(255, 249, 236, 0.42), transparent 54%),
    linear-gradient(180deg, rgba(250, 241, 226, 0.98), rgba(235, 218, 191, 0.96));
  --landing-section-surface-border: rgba(199, 159, 99, 0.74);
  --landing-icon-color: #1d1309;
  --landing-icon-gold: var(--landing-icon-color);
}

body.landing-page .landing-portrait-row,
body.landing-page .landing-feature-pair--primary,
body.landing-page .map-row,
body.landing-page .landing-kinsight-preview,
body.landing-page:not(.authenticated-home) .landing-story-intro,
body.landing-page:not(.authenticated-home) .landing-real-families,
body.landing-page:not(.authenticated-home) .landing-cta-card,
body.landing-page:not(.authenticated-home) > .landing-cta-card.raised-card.parchment-card {
  width: var(--landing-section-rail) !important;
  max-width: var(--landing-section-rail) !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}

body.landing-page .landing-feature-pair--primary,
body.landing-page .map-row,
body.landing-page .landing-kinsight-preview,
body.landing-page:not(.authenticated-home) .landing-story-intro,
body.landing-page:not(.authenticated-home) .landing-real-families,
body.landing-page:not(.authenticated-home) .landing-cta-card,
body.landing-page:not(.authenticated-home) > .landing-cta-card.raised-card.parchment-card {
  margin-top: var(--landing-section-gap) !important;
}

body.landing-page .landing-portrait-row > .summary-card--capsule,
body.landing-page .map-row > .map-card.raised-card.parchment-card,
body.landing-page .landing-kinsight-preview.raised-card.parchment-card,
body.landing-page:not(.authenticated-home) .landing-real-families > .landing-real-families__inner.raised-card.parchment-card,
body.landing-page:not(.authenticated-home) .landing-cta-card.raised-card.parchment-card {
  background: var(--landing-section-surface-background) !important;
  border-color: var(--landing-section-surface-border) !important;
  padding: var(--landing-section-pad) !important;
  border-radius: clamp(1.35rem, 2.5vw, 1.85rem) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.landing-page .landing-portrait-row > .summary-card--capsule,
body.landing-page .map-row > .map-card,
body.landing-page:not(.authenticated-home) .landing-real-families > .landing-real-families__inner,
body.landing-page:not(.authenticated-home) .landing-cta-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.landing-page .landing-feature-pair--primary {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: var(--landing-section-pair-gap) !important;
  row-gap: 0 !important;
  align-items: start !important;
}

body.landing-page .landing-feature-pair--primary > .tree-card,
body.landing-page .landing-feature-pair--primary > .timeline-card {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

body.landing-page .landing-kinsight-preview__inner,
body.landing-page .landing-kinsight-preview__inner--quick-glance {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.landing-page .landing-kinsight-preview .ks-analysis-card,
body.landing-page .landing-kinsight-preview .ks-photo-lab.ks-analysis-card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body.landing-page .landing-kinsight-preview .ks-analysis-card::before,
body.landing-page .landing-kinsight-preview .ks-analysis-card::after,
body.landing-page .landing-kinsight-preview .ks-photo-lab.ks-analysis-card::before,
body.landing-page .landing-kinsight-preview .ks-photo-lab.ks-analysis-card::after {
  content: none !important;
  display: none !important;
}

body.landing-page .landing-kinsight-preview .landing-kinsight-preview__button,
body.landing-page .landing-kinsight-preview .landing-kinsight-preview__button--center {
  margin-bottom: 0 !important;
}

body.landing-page:not(.authenticated-home) .landing-story-intro {
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.landing-page:not(.authenticated-home) .landing-story-intro::before,
body.landing-page:not(.authenticated-home) .landing-story-intro::after {
  content: none !important;
  display: none !important;
}

body.landing-page:not(.authenticated-home) .landing-story-benefits {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: var(--landing-value-card-gap) !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}

body.landing-page:not(.authenticated-home) .landing-story-benefit-card {
  min-width: 0 !important;
  min-height: clamp(7.6rem, 11vw, 9rem) !important;
  display: grid !important;
  grid-template-rows: auto auto !important;
  align-content: center !important;
  justify-content: center !important;
  justify-items: center !important;
  place-items: center !important;
  gap: clamp(0.44rem, 0.88vw, 0.64rem) !important;
  padding: clamp(0.64rem, 1.2vw, 0.86rem) clamp(0.36rem, 0.8vw, 0.58rem) !important;
  border: 1px solid rgba(183, 143, 74, 0.58) !important;
  border-radius: var(--landing-inner-radius) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 246, 220, 0.9), rgba(255, 246, 220, 0) 62%),
    linear-gradient(180deg, rgba(255, 251, 242, 0.96), rgba(239, 226, 204, 0.82)) !important;
  box-shadow:
    0 10px 22px rgba(78, 49, 25, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -10px 18px rgba(104, 70, 35, 0.045) !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

body.landing-page:not(.authenticated-home) .landing-story-benefit-heading {
  width: 100% !important;
  display: grid !important;
  justify-content: center !important;
  justify-items: center !important;
  place-items: center !important;
  align-items: center !important;
  gap: clamp(0.38rem, 0.78vw, 0.54rem) !important;
  text-align: center !important;
}

body.landing-page:not(.authenticated-home) .landing-story-benefit-icon {
  width: clamp(2.75rem, 4.8vw, 3.48rem) !important;
  height: clamp(2.75rem, 4.8vw, 3.48rem) !important;
  color: var(--landing-icon-color) !important;
}

body.landing-page:not(.authenticated-home) .landing-story-benefit-icon svg {
  width: 100% !important;
  height: 100% !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 1.85 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.landing-page:not(.authenticated-home) .landing-story-benefit-icon svg path,
body.landing-page:not(.authenticated-home) .landing-story-benefit-icon svg circle,
body.landing-page:not(.authenticated-home) .landing-story-benefit-icon svg rect,
body.landing-page:not(.authenticated-home) .landing-story-benefit-icon svg line,
body.landing-page:not(.authenticated-home) .landing-story-benefit-icon svg polyline {
  color: var(--landing-icon-color) !important;
  stroke: var(--landing-icon-color) !important;
  fill: none !important;
}

body.landing-page:not(.authenticated-home) .landing-story-benefit-heading h3,
body.landing-page:not(.authenticated-home) .landing-story-benefit-card h3,
body.landing-page:not(.authenticated-home) .landing-story-benefit-card p {
  display: block !important;
  width: fit-content !important;
  justify-self: center !important;
  align-self: center !important;
  margin-inline: auto !important;
  text-align: center !important;
  text-align-last: center !important;
  text-wrap: balance;
}

body.landing-page:not(.authenticated-home) .landing-story-benefit-heading h3,
body.landing-page:not(.authenticated-home) .landing-story-benefit-card h3 {
  max-width: min(100%, 10rem) !important;
  margin-block: 0 !important;
  color: #1d1309 !important;
  font-family: var(--font-display, Georgia, serif) !important;
  font-size: clamp(0.88rem, 1.34vw, 1.04rem) !important;
  line-height: 1.06 !important;
}

body.landing-page:not(.authenticated-home) .landing-story-benefit-card p {
  width: min(100%, 8.8rem) !important;
  max-width: 8.8rem !important;
  margin-block: 0 !important;
  color: rgba(29, 19, 9, 0.88) !important;
  font-family: var(--font-display, Georgia, serif) !important;
  font-size: clamp(0.7rem, 1.02vw, 0.82rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.01em !important;
}

body.landing-page .landing-real-families .page-section-header,
body.landing-page .landing-cta-card .page-section-header {
  justify-content: center !important;
  margin: 0 0 clamp(0.78rem, 1.6vw, 1.05rem) !important;
  text-align: center !important;
}

body.landing-page .landing-real-families .page-section-header__title,
body.landing-page .landing-cta-card .page-section-header__title {
  color: #4c3a2f !important;
  font-family: var(--font-display, Georgia, serif) !important;
  font-size: clamp(1.45rem, 3.4vw, 2.2rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.13em !important;
  line-height: 1 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

body.landing-page:not(.authenticated-home) .real-family-slider {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  grid-template-areas:
    "prev card next"
    "toggle toggle toggle" !important;
  align-items: center !important;
  gap: clamp(0.58rem, 1.35vw, 0.86rem) !important;
  touch-action: pan-y !important;
  user-select: none !important;
}

body.landing-page:not(.authenticated-home) .real-family-card {
  grid-area: card !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: clamp(0.72rem, 1.6vw, 1rem) !important;
  min-height: clamp(6.6rem, 12vw, 7.8rem) !important;
  padding: clamp(0.72rem, 1.55vw, 1.05rem) !important;
  border: 1px solid rgba(203, 171, 101, 0.62) !important;
  border-radius: var(--landing-inner-radius) !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 175, 55, 0.16), transparent 8rem),
    linear-gradient(180deg, rgba(255, 251, 243, 0.96), rgba(246, 237, 220, 0.88)) !important;
  box-shadow:
    0 12px 26px rgba(72, 45, 21, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

body.landing-page:not(.authenticated-home) .real-family-card__avatar {
  width: clamp(3.5rem, 7vw, 4.25rem) !important;
  height: clamp(3.5rem, 7vw, 4.25rem) !important;
  border: 2px solid rgba(203, 171, 101, 0.72) !important;
  border-radius: 50% !important;
  box-shadow: 0 10px 20px rgba(58, 37, 23, 0.12) !important;
}

body.landing-page:not(.authenticated-home) .real-family-card__quote p {
  margin: 0 !important;
  color: #1d1309 !important;
  font-family: var(--font-display, Georgia, serif) !important;
  font-size: clamp(0.96rem, 1.75vw, 1.14rem) !important;
  line-height: 1.22 !important;
}

body.landing-page:not(.authenticated-home) .real-family-card__quote span {
  display: block !important;
  margin-top: 0.46rem !important;
  color: #1d1309 !important;
  font-size: clamp(0.76rem, 1.2vw, 0.86rem) !important;
  font-weight: 800 !important;
}

body.landing-page:not(.authenticated-home) .real-family-review-arrow {
  width: clamp(2.25rem, 4.7vw, 2.8rem) !important;
  height: clamp(2.25rem, 4.7vw, 2.8rem) !important;
  border-radius: 50% !important;
  background: linear-gradient(180deg, #2a180d, #1d1309) !important;
  color: #d4af37 !important;
  box-shadow: 0 10px 18px rgba(29, 19, 9, 0.18) !important;
}

body.landing-page:not(.authenticated-home) .real-family-review-arrow--prev { grid-area: prev !important; }
body.landing-page:not(.authenticated-home) .real-family-review-arrow--next { grid-area: next !important; }

body.landing-page:not(.authenticated-home) .real-family-review-toggle {
  grid-area: toggle !important;
  justify-self: center !important;
  margin-top: clamp(0.18rem, 0.8vw, 0.36rem) !important;
}

body.landing-page:not(.authenticated-home) .landing-cta-card {
  width: var(--landing-section-rail) !important;
  max-width: var(--landing-section-rail) !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  gap: clamp(0.62rem, 1.4vw, 0.86rem) !important;
  text-align: center !important;
}

body.landing-page:not(.authenticated-home) .landing-cta-card__copy {
  width: min(100%, 28rem) !important;
  display: grid !important;
  justify-items: center !important;
  gap: clamp(0.68rem, 1.4vw, 0.92rem) !important;
  margin: 0 !important;
}

body.landing-page:not(.authenticated-home) .landing-cta-card__copy p {
  margin: 0 !important;
  color: rgba(29, 19, 9, 0.88) !important;
  font-family: var(--font-display, Georgia, serif) !important;
  font-size: clamp(0.98rem, 1.8vw, 1.14rem) !important;
  line-height: 1.36 !important;
}

body.landing-page:not(.authenticated-home) .landing-cta-card__actions {
  margin: 0 !important;
}

body.landing-page:not(.authenticated-home) .site-footer {
  margin-top: var(--landing-section-gap) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy--landing {
  transform: translateX(clamp(4.3rem, 10.6vw, 10.75rem)) !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-primary-button .hero-cta-arrow {
  margin-left: 0.38rem !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 1.08em !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transform: translateY(-0.01em) scaleX(1.14) !important;
  transform-origin: center !important;
}

body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg path,
body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-subtitle-icon svg circle {
  color: var(--landing-icon-color) !important;
  stroke: var(--landing-icon-color) !important;
  fill: none !important;
}

body.landing-page .map-row > .map-card.raised-card.parchment-card {
  display: grid !important;
  align-items: start !important;
  row-gap: clamp(0.38rem, 0.78vw, 0.58rem) !important;
  padding-bottom: var(--landing-section-pad) !important;
}

body.landing-page .map-row .live-map-frame {
  margin-bottom: 0 !important;
}

body.landing-page .map-row .tree-full-link-bottom {
  width: min(100%, 13.2rem) !important;
  min-height: 2.72rem !important;
  margin: 0 auto !important;
  align-self: center !important;
  justify-self: center !important;
}

@media (max-width: 760px) {
  body.landing-page:not(.authenticated-home) {
    --landing-mobile-brand-center-x: clamp(0.98rem, 3.7vw, 1.42rem);
  }

  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy,
  body.landing-page:not(.authenticated-home) .hero-card.hero-card--landing .hero-copy--landing {
    transform: translateX(calc(var(--landing-mobile-brand-center-x) - var(--landing-hero-copy-left))) !important;
  }
}

@media (max-width: 980px) {
  body.landing-page {
    --landing-section-rail: min(calc(100vw - clamp(1.2rem, 4.4vw, 2.8rem)), var(--landing-section-max-width));
  }
}

@media (max-width: 760px) {
  body.landing-page {
    --landing-section-rail: min(calc(100vw - clamp(0.78rem, 3.2vw, 1.2rem)), 100%);
    --landing-section-gap: clamp(0.78rem, 2.6vw, 1rem);
    --landing-section-pair-gap: clamp(0.16rem, 0.72vw, 0.32rem);
    --landing-value-card-gap: clamp(0.18rem, 0.86vw, 0.34rem);
  }

  body.landing-page .landing-feature-pair--primary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: var(--landing-section-pair-gap) !important;
    row-gap: 0 !important;
  }


  body.landing-page:not(.authenticated-home) .real-family-slider {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "card"
      "toggle" !important;
  }

  body.landing-page:not(.authenticated-home) .real-family-review-arrow {
    display: grid !important;
  }
}

@media (max-width: 700px) {
  body.landing-page:not(.authenticated-home) {
    --landing-value-card-gap: clamp(0.14rem, 0.72vw, 0.28rem);
  }

  body.landing-page:not(.authenticated-home) .landing-story-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.landing-page:not(.authenticated-home) .landing-story-benefits > .landing-story-benefit-card:nth-child(2) {
    display: none !important;
  }

  body.landing-page:not(.authenticated-home) .landing-story-benefit-card {
    min-height: clamp(5.75rem, 18.4vw, 7.15rem) !important;
    padding: clamp(0.58rem, 1.85vw, 0.82rem) clamp(0.32rem, 1.05vw, 0.52rem) !important;
    gap: clamp(0.24rem, 0.72vw, 0.38rem) !important;
  }

  body.landing-page:not(.authenticated-home) .landing-story-benefit-icon {
    width: clamp(1.78rem, 5.4vw, 2.35rem) !important;
    height: clamp(1.78rem, 5.4vw, 2.35rem) !important;
    margin-bottom: clamp(0.06rem, 0.28vw, 0.14rem) !important;
  }

  body.landing-page:not(.authenticated-home) .landing-story-benefit-card h3 {
    font-size: clamp(0.78rem, 2.72vw, 0.98rem) !important;
    line-height: 1.04 !important;
  }

  body.landing-page:not(.authenticated-home) .landing-story-benefit-card p {
    max-width: 7.2rem !important;
    font-size: clamp(0.64rem, 2.2vw, 0.78rem) !important;
    line-height: 1.1 !important;
  }
}

@media (max-width: 430px) {
  body.landing-page:not(.authenticated-home) .landing-story-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.landing-page:not(.authenticated-home) .landing-story-benefit-card {
    min-height: clamp(5.55rem, 22vw, 6.8rem) !important;
    padding-inline: clamp(0.28rem, 1.2vw, 0.44rem) !important;
  }

  body.landing-page:not(.authenticated-home) .landing-story-benefit-card p {
    max-width: 6.8rem !important;
  }

  body.landing-page:not(.authenticated-home) .real-family-card {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
  }
}

/* =========================================================
   Real Families controls and landing value cards: final responsive alignment
   ========================================================= */
body.landing-page:not(.authenticated-home) .landing-story-benefit-card {
  min-height: clamp(8rem, 11.8vw, 9.65rem) !important;
  padding: clamp(0.98rem, 2vw, 1.34rem) clamp(0.86rem, 1.8vw, 1.14rem) !important;
  gap: clamp(0.5rem, 1.05vw, 0.72rem) !important;
}

body.landing-page:not(.authenticated-home) .landing-story-benefit-icon {
  width: clamp(2.75rem, 4.9vw, 3.62rem) !important;
  height: clamp(2.75rem, 4.9vw, 3.62rem) !important;
}

body.landing-page:not(.authenticated-home) .landing-story-benefit-heading h3,
body.landing-page:not(.authenticated-home) .landing-story-benefit-card h3 {
  font-size: clamp(1.25rem, 2.15vw, 1.55rem) !important;
  line-height: 1.04 !important;
}

body.landing-page:not(.authenticated-home) .landing-story-benefit-card p {
  max-width: 10rem !important;
  font-size: clamp(1.02rem, 1.72vw, 1.22rem) !important;
  line-height: 1.12 !important;
}

body.landing-page:not(.authenticated-home) .landing-real-families__inner {
  overflow: visible !important;
}

body.landing-page:not(.authenticated-home) .real-family-slider {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: "card" "toggle" !important;
  justify-items: center !important;
  align-items: center !important;
  width: min(100%, 54rem) !important;
  margin-inline: auto !important;
  gap: clamp(0.78rem, 1.5vw, 1.04rem) !important;
  padding-inline: clamp(2.75rem, 5.8vw, 4.25rem) !important;
  overflow: visible !important;
}

body.landing-page:not(.authenticated-home) .real-family-review-arrow {
  position: absolute !important;
  top: 50% !important;
  z-index: 5 !important;
  display: grid !important;
  place-items: center !important;
  width: clamp(2.65rem, 5vw, 3.42rem) !important;
  height: clamp(2.65rem, 5vw, 3.42rem) !important;
  padding: 0 !important;
  border: 1px solid rgba(212, 175, 55, 0.58) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 40% 34%, rgba(245, 224, 153, 0.42), rgba(63, 38, 20, 0.94) 56%, rgba(29, 19, 9, 0.98)) !important;
  color: #f6de78 !important;
  box-shadow:
    0 14px 28px rgba(29, 19, 9, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  font-family: Georgia, serif !important;
  font-size: clamp(1.9rem, 3.6vw, 2.55rem) !important;
  line-height: 0.86 !important;
  cursor: pointer !important;
  transform: translateY(-50%) !important;
}

body.landing-page:not(.authenticated-home) .real-family-review-arrow--prev {
  left: clamp(-0.22rem, -0.8vw, -0.08rem) !important;
}

body.landing-page:not(.authenticated-home) .real-family-review-arrow--next {
  right: clamp(-0.22rem, -0.8vw, -0.08rem) !important;
}

body.landing-page:not(.authenticated-home) .real-family-review-toggle {
  grid-area: toggle !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(0.5rem, 1.12vw, 0.74rem) !important;
  width: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.landing-page:not(.authenticated-home) .real-family-review-toggle__dots {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(0.42rem, 0.85vw, 0.54rem) !important;
}

body.landing-page:not(.authenticated-home) .real-family-review-toggle__btn {
  width: clamp(0.45rem, 0.92vw, 0.56rem) !important;
  height: clamp(0.45rem, 0.92vw, 0.56rem) !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(86, 56, 29, 0.3) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48) !important;
}

body.landing-page:not(.authenticated-home) .real-family-review-toggle__btn.is-active {
  width: clamp(1.32rem, 2.8vw, 1.72rem) !important;
  background: linear-gradient(90deg, #4c2d17, #d1aa42) !important;
  box-shadow: 0 4px 10px rgba(76, 45, 23, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

@media (max-width: 700px) {
  body.landing-page:not(.authenticated-home) .landing-story-benefit-card {
    min-height: clamp(5.85rem, 18.5vw, 7.3rem) !important;
    padding: clamp(0.62rem, 1.95vw, 0.86rem) clamp(0.34rem, 1.1vw, 0.54rem) !important;
    gap: clamp(0.24rem, 0.78vw, 0.4rem) !important;
  }

  body.landing-page:not(.authenticated-home) .landing-story-benefit-icon {
    width: clamp(1.84rem, 5.7vw, 2.45rem) !important;
    height: clamp(1.84rem, 5.7vw, 2.45rem) !important;
  }

  body.landing-page:not(.authenticated-home) .landing-story-benefit-heading h3,
  body.landing-page:not(.authenticated-home) .landing-story-benefit-card h3 {
    font-size: clamp(0.82rem, 2.84vw, 1.02rem) !important;
  }

  body.landing-page:not(.authenticated-home) .landing-story-benefit-card p {
    max-width: 7.4rem !important;
    font-size: clamp(0.66rem, 2.28vw, 0.8rem) !important;
  }
}

@media (max-width: 560px) {
  body.landing-page:not(.authenticated-home) .real-family-slider {
    width: min(100%, 34rem) !important;
    padding-inline: clamp(2.42rem, 9.5vw, 3.08rem) !important;
  }

  body.landing-page:not(.authenticated-home) .real-family-review-arrow {
    display: grid !important;
    width: clamp(2.38rem, 9.2vw, 2.92rem) !important;
    height: clamp(2.38rem, 9.2vw, 2.92rem) !important;
  }
}

/* =========================================================
   KinSight loading gears: stable espresso/gold SVG animation
   ========================================================= */
.ks-analysis-card .ks-photo-stage-center .ks-loading-gears,
.landing-kinsight-preview .ks-photo-stage-center .ks-loading-gears {
  color: #4a2b16 !important;
  filter:
    drop-shadow(0 4px 9px rgba(70, 36, 14, 0.28))
    drop-shadow(0 0 3px rgba(212, 175, 55, 0.18)) !important;
}

.ks-analysis-card .ks-photo-stage-center .ks-loading-gear svg path,
.landing-kinsight-preview .ks-photo-stage-center .ks-loading-gear svg path {
  fill: #4a2b16 !important;
  stroke: rgba(212, 175, 55, 0.72) !important;
  stroke-width: 0.72 !important;
  stroke-linejoin: round !important;
  vector-effect: non-scaling-stroke !important;
}

.ks-analysis-card .ks-photo-stage-center .ks-loading-gear--primary,
.landing-kinsight-preview .ks-photo-stage-center .ks-loading-gear--primary {
  animation: ks-loader-gear-clockwise 1.28s linear infinite !important;
}

.ks-analysis-card .ks-photo-stage-center .ks-loading-gear--secondary,
.landing-kinsight-preview .ks-photo-stage-center .ks-loading-gear--secondary {
  animation: ks-loader-gear-counterclockwise 1.02s linear infinite !important;
}
