/* Hero enrichment slider + ROI calculator */

.mkt-hero-slider {
  background: var(--cream);
  scroll-margin-top: 6rem;
  display: flex;
  align-items: center;
}

@media (min-width: 1024px) {
  .mkt-hero-slider {
    height: auto;
    max-height: none;
    overflow: visible;
    min-height: calc(100dvh - var(--header-h));
  }
}

.mkt-hero-slider-inner {
  margin: 0 auto;
  max-width: 72rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .mkt-hero-slider-inner {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    height: 100%;
    min-height: 0;
  }
}

.mkt-hs-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .mkt-hs-grid {
    grid-template-columns: 7fr 3fr;
    align-items: stretch;
    flex: 1;
    min-height: 0;
    height: 100%;
  }
}

.mkt-hs-panel {
  border-radius: 1rem;
  background: var(--background);
  padding: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

@media (min-width: 1024px) {
  .mkt-hs-panel {
    min-height: 0;
    height: 100%;
  }
}

.mkt-hs-stage {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 280px;
  overflow: hidden;
}

.mkt-hs-headline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0 0.25rem;
  text-align: center;
  pointer-events: none;
}

.mkt-hs-headline h2 {
  font-size: clamp(15px, 1.9vw, 26px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.12;
}

.mkt-hs-dress-zone {
  position: absolute;
  pointer-events: none;
  z-index: 20;
}

.mkt-hs-dress-zone img {
  display: block;
  max-width: none;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 3px #fff)
    drop-shadow(5px 0 0 rgba(255, 255, 255, 0.9))
    drop-shadow(-5px 0 0 rgba(255, 255, 255, 0.9));
}

.mkt-hs-tags {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  overflow: hidden;
}

.mkt-hs-tag {
  position: absolute;
  z-index: 1;
  white-space: nowrap;
  border-radius: 9999px;
  border: 0.5px solid #bbb;
  padding: 0.25rem 0.75rem;
  font-size: 12px;
  font-weight: 500;
  background: #f5f5f5;
  color: #555;
  opacity: 0.18;
  filter: blur(3px);
  transition: opacity 0.5s ease, filter 0.5s ease, background 0.35s ease,
    color 0.35s ease;
  user-select: none;
  pointer-events: none;
}

.mkt-hs-measure {
  position: absolute;
  left: -9999px;
  top: 0;
  white-space: nowrap;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 0.25rem 0.75rem;
  font-size: 12px;
  font-weight: 500;
}

.mkt-hs-slider-wrap {
  margin-top: auto;
  padding-top: 0.5rem;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  border: 1px solid color-mix(in oklab, var(--primary) 45%, transparent);
  background: var(--background);
  padding: 0.5rem 0.75rem;
  flex-shrink: 0;
}

.mkt-hs-slider-labels {
  display: flex;
  width: 100%;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .mkt-hs-slider-labels {
    font-size: 14px;
  }
}

.mkt-hs-stat-line {
  min-height: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.hero-reveal-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #ddd;
  outline: none;
  cursor: pointer;
}

.hero-reveal-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: oklch(0.55 0.15 350);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.hero-reveal-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: oklch(0.55 0.15 350);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.mkt-hs-panel-data {
  position: relative;
  z-index: 40; /* above left stage (~30); below sticky header (100) */
  overflow: visible;
}

.mkt-hs-fields {
  display: grid;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.mkt-hs-field label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* Instant custom tooltip — native title= is delayed by the browser. */
.mkt-hs-panel-data .info {
  position: relative;
  margin: 0;
  display: inline-flex;
  height: 1rem;
  width: 1rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--ink-soft) 40%, transparent);
  background: var(--background);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  cursor: help;
  padding: 0;
  vertical-align: middle;
}

.mkt-hs-panel-data .info::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  bottom: auto;
  z-index: 40;
  width: max-content;
  max-width: min(240px, 70vw);
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

.mkt-hs-panel-data .info::before {
  content: "";
  position: absolute;
  right: 0.2rem;
  top: calc(100% + 2px);
  bottom: auto;
  z-index: 41;
  border: 5px solid transparent;
  border-bottom-color: var(--background);
  border-top-color: transparent;
  filter: drop-shadow(0 -1px 0 var(--border));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

.mkt-hs-panel-data .info:hover::after,
.mkt-hs-panel-data .info:hover::before,
.mkt-hs-panel-data .info:focus-visible::after,
.mkt-hs-panel-data .info:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

.mkt-hs-panel-data .info:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.mkt-hs-input {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--cream);
  padding: 0.45rem 0.7rem;
  transition: border-color 0.15s ease;
}

.mkt-hs-input:focus-within {
  border-color: color-mix(in oklab, var(--primary) 55%, var(--border));
}

.mkt-hs-input span {
  font-size: 13px;
  color: var(--ink-soft);
}

.mkt-hs-input input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}

/* Unified data card — matches marketing panel language */
.mkt-hs-metrics {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--cream);
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mkt-hs-metric {
  padding: 0.7rem 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.mkt-hs-metric + .mkt-hs-metric {
  border-top: 1px solid color-mix(in oklab, var(--border) 85%, var(--ink-soft));
}

.mkt-hs-metric:first-child {
  padding-top: 0.15rem;
}

.mkt-hs-metric:last-child {
  padding-bottom: 0.15rem;
}

.mkt-hs-metric .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.mkt-hs-metric .label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}

.mkt-hs-metric .value {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

.mkt-hs-metric.is-up .value,
.mkt-hs-metric.is-up .badge {
  color: var(--up);
}

.mkt-hs-metric.is-primary .value,
.mkt-hs-metric.is-primary .badge {
  color: var(--primary);
}

.mkt-hs-metric .badge {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.mkt-hs-bar {
  margin-top: 0.4rem;
  height: 4px;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--background) 70%, var(--border));
}

.mkt-hs-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 0.25s ease;
}

.mkt-hs-metric.is-up .mkt-hs-bar > span {
  background: var(--up);
}

.mkt-hs-metric .source {
  margin: 0.35rem 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-soft);
}
