/* Local prototype. Loaded last; the original layout remains the fallback. */
body.lt-homepage #lt-homepage .product-journey { overflow-anchor: none; }
body.lt-homepage #lt-homepage .product-sticky { background: #fff; }
body.lt-homepage #lt-homepage .product-journey:is(.journey-measuring, .journey-ready) .product-window {
  position: relative;
}
body.lt-homepage #lt-homepage .product-journey:is(.journey-measuring, .journey-ready) .tool-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
}
body.lt-homepage #lt-homepage .product-journey .tool-panel > :is(.case-copy, .tool-copy) {
  contain: none;
  overflow: visible;
}
body.lt-homepage #lt-homepage .journey-ready .product-window {
  height: var(--journey-window);
  overflow: clip;
  /* Space for the existing keyboard outline without changing the composition. */
  overflow-clip-margin: 6px;
  isolation: isolate;
}
body.lt-homepage #lt-homepage .journey-ready .tool-tabs {
  position: relative;
  z-index: 2;
  background: #fff;
}
body.lt-homepage #lt-homepage .journey-ready .tool-tabs button {
  position: relative;
  border-bottom: 1px solid transparent !important;
  padding-bottom: 20px;
  box-shadow: none !important;
  background-image: none;
  transition: background-color 160ms ease;
}
body.lt-homepage #lt-homepage .journey-ready .tool-tabs button::before {
  content: "";
  position: absolute;
  height: 3px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e8e1e6;
  box-shadow: none;
  pointer-events: none;
}
body.lt-homepage #lt-homepage .journey-ready .tool-tabs button::after {
  content: "";
  position: absolute;
  height: 3px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--brown);
  transform: scaleX(var(--journey-fill, 0));
  transform-origin: left;
  opacity: var(--journey-emphasis, 0);
  pointer-events: none;
}
body.lt-homepage #lt-homepage .journey-ready .tool-tabs button[data-command] {
  background: rgba(80, 28, 63, .045);
}
body.lt-homepage #lt-homepage .journey-ready .tool-panel { visibility: hidden; }
body.lt-homepage #lt-homepage .journey-ready .tool-panel[data-visible] { visibility: visible; }
body.lt-homepage #lt-homepage .journey-ready .tool-panel[inert] { pointer-events: none; }
body.lt-homepage #lt-homepage .product-journey[data-mode="flow"] .tool-panel { margin-bottom: 32px; }
body.lt-homepage #lt-homepage .product-journey[data-mode="flow"] .tool-tabs { display: none; }

/* Flat selection, distinct from keyboard focus and from the neutral track. */
body.lt-homepage #lt-homepage .product-journey .tool-tabs button[aria-selected="true"] {
  color: var(--brown);
  box-shadow: none !important;
}
@media (forced-colors: active) {
  body.lt-homepage #lt-homepage .journey-ready .tool-tabs button::before { background: GrayText; }
  body.lt-homepage #lt-homepage .journey-ready .tool-tabs button::after { background: Highlight; forced-color-adjust: none; }
}

@media (max-width: 600px) {
  body.lt-homepage #lt-homepage .journey-ready .tool-tabs button { padding-bottom: 16px; }
}
