/* ============================================================
   Foot Traffic Hero — Full Immersive Map
   The map IS the page. Everything floats on top.
   ============================================================ */

/* ---- Hero = full viewport, map starts at very top ---- */
.mtl-ft-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

/* Make navbar glass-transparent — map shows through */
body:has(.mtl-ft-hero) .mtl-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: 1rem;
}

body:has(.mtl-ft-hero) .mtl-nav__inner {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Nuke ALL background colors so the map is the only thing visible */
body:has(.mtl-ft-hero),
body:has(.mtl-ft-hero) .mtl-landing {
  background: transparent !important;
}

/* ---- Full-bleed Leaflet map ---- */
.mtl-ft-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mtl-ft-map .leaflet-control-container { display: none !important; }

/* ---- Vignette overlay — very light, let buildings + heatmap show ---- */
.mtl-ft-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.6) 0%,
      rgba(255,255,255,0.15) 18%,
      rgba(255,255,255,0.0) 35%,
      rgba(255,255,255,0.0) 65%,
      rgba(255,255,255,0.2) 85%,
      rgba(255,255,255,0.65) 100%
    );
}

/* ---- Floating content layer ---- */
.mtl-ft-float {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10rem 1rem 2rem; /* top clears the fixed navbar + breathing room */
  min-height: 100%;
  pointer-events: none; /* let map show through gaps */
}

.mtl-ft-float > * {
  pointer-events: auto; /* re-enable on actual elements */
}

/* ---- Glass utility ---- */
.mtl-ft-glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* ---- Headline ---- */
.mtl-ft-head {
  text-align: center;
  margin-bottom: 1rem;
  transition: opacity 0.5s ease, max-height 0.6s ease, margin 0.5s ease;
  max-height: 400px;
  overflow: hidden;
}

.mtl-ft-head.is-collapsed {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.mtl-ft-head__card {
  display: inline-block;
  padding: 1.5rem 2.5rem;
  border-radius: 24px;
  text-align: center;
}

.mtl-ft-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(97, 114, 241, 0.08);
  color: #6172f1;
  font-size: 0.78rem;
  font-weight: 600;
}

.mtl-ft-head__title {
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: #0f172a;
  margin: 0.8rem 0 0.6rem;
}

.mtl-ft-head__accent {
  background: linear-gradient(90deg, #6172f1, #4f8af7, #18b8ac);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mtl-ft-head__sub {
  font-size: 1rem;
  color: #64748b;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ---- Search card ---- */
.mtl-ft-search-wrap {
  width: 100%;
  max-width: 700px;
  margin-bottom: 0.75rem;
}

.mtl-ft-search-card {
  border-radius: 20px;
  padding: 1rem 1.25rem;
}

.mtl-ft-search__bar {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.3rem 0.35rem 0.3rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mtl-ft-search__bar,
.mtl-ft-search__bar:focus-within,
.mtl-ft-search__bar:focus,
.mtl-ft-search__bar *:focus,
.mtl-ft-search__bar *:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.mtl-ft-search__bar:focus-within {
  border-color: #e2e8f0;
}

.mtl-ft-search__field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.mtl-ft-search__field svg { flex-shrink: 0; }

.mtl-ft-search__field input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  color: #0f172a;
  width: 100%;
  padding: 0.5rem 0;
}

.mtl-ft-search__field input::placeholder { color: #94a3b8; }
.mtl-ft-search__field input:focus,
.mtl-ft-search__field input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  ring: none;
}

.mtl-ft-search__sep {
  width: 1px;
  height: 24px;
  background: #e2e8f0;
  flex-shrink: 0;
  margin: 0 0.75rem;
}

.mtl-ft-search__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #6172f1, #4f5bd5);
  color: #fff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(97, 114, 241, 0.3);
}

.mtl-ft-search__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(97, 114, 241, 0.4);
}

/* ---- Autocomplete dropdown ---- */
.mtl-ft-ac {
  display: none;
  margin-top: 0.35rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.mtl-ft-ac.is-open {
  display: block;
  animation: ftAcIn 0.15s ease;
}

@keyframes ftAcIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mtl-ft-ac__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  transition: background 0.1s ease;
  border-bottom: 1px solid #f1f5f9;
}

.mtl-ft-ac__item:last-child {
  border-bottom: none;
}

.mtl-ft-ac__item:hover,
.mtl-ft-ac__item.is-active {
  background: #f8fafc;
}

.mtl-ft-ac__item:first-child {
  border-radius: 12px 12px 0 0;
}

.mtl-ft-ac__item:last-child {
  border-radius: 0 0 12px 12px;
}

.mtl-ft-ac__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  color: #64748b;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.mtl-ft-ac__logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
}

.mtl-ft-ac__icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.mtl-ft-ac__arrow {
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.mtl-ft-ac__item:hover .mtl-ft-ac__arrow,
.mtl-ft-ac__item.is-active .mtl-ft-ac__arrow {
  opacity: 1;
}

.mtl-ft-ac__text {
  flex: 1;
  min-width: 0;
}

.mtl-ft-ac__main {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtl-ft-ac__secondary {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.mtl-ft-ac__loading {
  padding: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
}

.mtl-ft-ac__loading svg {
  animation: ftSpin 0.8s linear infinite;
  vertical-align: -2px;
  margin-right: 0.3rem;
}

/* Quick picks */
.mtl-ft-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.mtl-ft-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.mtl-ft-pick__logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 3px;
}

.mtl-ft-pick:hover {
  border-color: rgba(97, 114, 241, 0.3);
  color: #6172f1;
}

.mtl-ft-pick.is-active {
  border-color: rgba(97, 114, 241, 0.4);
  color: #6172f1;
  background: rgba(97, 114, 241, 0.06);
}

/* ---- Map pin icons (category-colored cards) ---- */
.mtl-ft-pin-wrap {
  background: none !important;
  border: none !important;
}

.mtl-ft-pin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: ftPinDrop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Stagger pin drop animation */
.leaflet-marker-icon:nth-child(2)  .mtl-ft-pin { animation-delay: 0.15s; }
.leaflet-marker-icon:nth-child(3)  .mtl-ft-pin { animation-delay: 0.25s; }
.leaflet-marker-icon:nth-child(4)  .mtl-ft-pin { animation-delay: 0.35s; }
.leaflet-marker-icon:nth-child(5)  .mtl-ft-pin { animation-delay: 0.45s; }
.leaflet-marker-icon:nth-child(6)  .mtl-ft-pin { animation-delay: 0.55s; }
.leaflet-marker-icon:nth-child(7)  .mtl-ft-pin { animation-delay: 0.6s; }
.leaflet-marker-icon:nth-child(8)  .mtl-ft-pin { animation-delay: 0.7s; }
.leaflet-marker-icon:nth-child(9)  .mtl-ft-pin { animation-delay: 0.78s; }
.leaflet-marker-icon:nth-child(10) .mtl-ft-pin { animation-delay: 0.85s; }
.leaflet-marker-icon:nth-child(11) .mtl-ft-pin { animation-delay: 0.92s; }
.leaflet-marker-icon:nth-child(12) .mtl-ft-pin { animation-delay: 1.0s; }
.leaflet-marker-icon:nth-child(13) .mtl-ft-pin { animation-delay: 1.08s; }

@keyframes ftPinDrop {
  from { opacity: 0; transform: translateY(-18px) scale(0.6); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mtl-ft-pin__face {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.15),
    0 0 0 2px #fff;
  position: relative;
  z-index: 1;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  overflow: hidden;
}

.leaflet-marker-icon:hover .mtl-ft-pin__face {
  transform: scale(1.18);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.2),
    0 0 0 2.5px #fff;
}

.mtl-ft-pin__logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}

.mtl-ft-pin__fallback {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6172f1, #18b8ac);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mtl-ft-pin__point {
  width: 10px;
  height: 10px;
  background: #fff;
  transform: rotate(45deg) translateY(-4px);
  border-radius: 0 0 2px 0;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
  margin-top: -5px;
  position: relative;
  z-index: 0;
}

/* Tooltip (business name on hover) */
.mtl-ft-maptip {
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
}

.mtl-ft-maptip::before {
  border-top-color: #fff !important;
}

/* ---- Loading ---- */
.mtl-ft-loader {
  display: none;
  width: 100%;
  max-width: 480px;
}

.mtl-ft-loader.is-visible {
  display: block;
  animation: ftFadeIn 0.3s ease;
}

.mtl-ft-loader__card {
  border-radius: 16px;
  padding: 1rem 1.5rem;
}

.mtl-ft-loader__biz {
  text-align: center;
  margin-bottom: 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.mtl-ft-loader__biz span {
  display: block;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 2px;
}

.mtl-ft-loader__track {
  height: 4px;
  background: rgba(97, 114, 241, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.mtl-ft-loader__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6172f1, #18b8ac);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mtl-ft-loader__steps {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.76rem;
  color: #94a3b8;
  white-space: nowrap;
}

.mtl-ft-loader__steps span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.3s ease;
}

.mtl-ft-loader__steps span svg { opacity: 0; transition: opacity 0.3s ease; }
.mtl-ft-loader__steps span.is-active { color: #6172f1; font-weight: 600; }
.mtl-ft-loader__steps span.is-active svg { opacity: 1; animation: ftSpin 0.8s linear infinite; }
.mtl-ft-loader__steps span.is-done { color: #10b981; }
.mtl-ft-loader__steps span.is-done svg { opacity: 1; animation: none; }

/* ============================================================
   Browser Window (results panel, floats over map)
   ============================================================ */
.mtl-ft-browser {
  display: none;
  width: 100%;
  max-width: 780px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 25px 80px rgba(15, 23, 42, 0.12),
    0 8px 24px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(15, 23, 42, 0.04);
  text-align: left;
}

.mtl-ft-browser.is-visible {
  display: block;
  animation: ftBrowserIn 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ftBrowserIn {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mtl-ft-browser__chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.mtl-ft-browser__dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.mtl-ft-browser__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mtl-ft-browser__url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.25rem 0.7rem;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: "SF Mono", "Fira Code", monospace;
}

.mtl-ft-browser__tabs {
  display: flex;
  padding: 0 0.75rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
}

.mtl-ft-browser__tabs span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.55rem 0.85rem;
  font-size: 0.74rem;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: default;
}

.mtl-ft-browser__tabs span.is-active {
  color: #6172f1;
  border-bottom-color: #6172f1;
  font-weight: 600;
}

.mtl-ft-browser__tabs span.is-locked { opacity: 0.5; }

.mtl-ft-browser__body { padding: 1.25rem; }

/* ---- Dashboard internals (reused) ---- */
.mtl-ft-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.mtl-ft-card__header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mtl-ft-card__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.mtl-ft-card__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.2rem;
}

.mtl-ft-card__subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.mtl-ft-card__badge { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.mtl-ft-card__ring { width: 64px; height: 64px; }
.mtl-ft-card__ring circle:last-of-type { transition: stroke-dasharray 1.2s cubic-bezier(0.16,1,0.3,1); }

.mtl-ft-card__score {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-60%);
  font-family: "Space Grotesk", sans-serif; font-size: 1.15rem; font-weight: 700; color: #0f172a;
}

.mtl-ft-card__score-label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,50%);
  font-size: 0.55rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #94a3b8;
}

.mtl-ft-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.5rem; margin-bottom: 1rem; }
.mtl-ft-stat { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem; background: #f8fafc; border-radius: 10px; border: 1px solid #f1f5f9; }
.mtl-ft-stat__icon { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; }
.mtl-ft-stat__icon--indigo { background: rgba(97,114,241,0.1); color: #6172f1; }
.mtl-ft-stat__icon--teal   { background: rgba(24,184,172,0.1);  color: #18b8ac; }
.mtl-ft-stat__icon--purple { background: rgba(139,92,246,0.1);  color: #8b5cf6; }
.mtl-ft-stat__icon--green  { background: rgba(16,185,129,0.1);  color: #10b981; }
.mtl-ft-stat__val { display: block; font-family: "Space Grotesk", sans-serif; font-size: 0.95rem; font-weight: 700; color: #0f172a; line-height: 1.2; }
.mtl-ft-stat__val--up { color: #10b981; }
.mtl-ft-stat__val--down { color: #ef4444; }
.mtl-ft-stat__label { display: block; font-size: 0.65rem; color: #94a3b8; font-weight: 500; }

/* Heatmap */
.mtl-ft-heatmap { background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 12px; padding: 0.85rem; margin-bottom: 0.75rem; }
.mtl-ft-heatmap__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.mtl-ft-heatmap__label { font-family: "Space Grotesk", sans-serif; font-size: 0.78rem; font-weight: 600; color: #0f172a; }
.mtl-ft-heatmap__hint { font-size: 0.65rem; color: #94a3b8; }
.mtl-ft-heatmap__body { display: flex; gap: 0.35rem; }
.mtl-ft-heatmap__days { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.mtl-ft-heatmap__days span { height: 22px; display: flex; align-items: center; font-size: 0.62rem; font-weight: 600; color: #94a3b8; width: 24px; }
.mtl-ft-heatmap__grid { display: grid; grid-template-columns: repeat(16,1fr); grid-template-rows: repeat(7,22px); gap: 2px; flex: 1; min-width: 0; }
.mtl-ft-heatmap__cell { border-radius: 3px; transition: transform 0.12s ease; cursor: default; position: relative; }
.mtl-ft-heatmap__cell:hover { transform: scale(1.3); z-index: 2; box-shadow: 0 2px 8px rgba(97,114,241,0.25); }
.mtl-ft-heatmap__cell::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); padding: 0.2rem 0.45rem; border-radius: 5px; background: #0f172a; color: #fff; font-size: 0.6rem; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.12s ease; z-index: 10; }
.mtl-ft-heatmap__cell:hover::after { opacity: 1; }
.mtl-ft-heatmap__hours { display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px; margin-left: 28px; margin-top: 0.25rem; }
.mtl-ft-heatmap__hours span { font-size: 0.52rem; color: #94a3b8; font-weight: 500; text-align: center; }
.mtl-ft-heatmap__legend { display: flex; align-items: center; justify-content: flex-end; gap: 0.35rem; margin-top: 0.4rem; font-size: 0.58rem; color: #94a3b8; }
.mtl-ft-heatmap__scale { width: 80px; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #eff6ff, #93c5fd, #60a5fa, #fbbf24, #f97316, #ef4444, #dc2626); }

/* Insight */
.mtl-ft-insight { display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.65rem 0.75rem; background: linear-gradient(135deg, rgba(97,114,241,0.05), rgba(24,184,172,0.04)); border: 1px solid rgba(97,114,241,0.1); border-radius: 10px; }
.mtl-ft-insight__icon { width: 24px; height: 24px; border-radius: 6px; background: rgba(97,114,241,0.1); display: grid; place-items: center; flex-shrink: 0; }
.mtl-ft-insight p { font-size: 0.78rem; line-height: 1.5; color: #475569; margin: 0; }
.mtl-ft-insight strong { color: #0f172a; }

/* ============================================================
   Locked Cards + CTA Gate
   ============================================================ */
.mtl-ft-locked { display: none; grid-template-columns: repeat(3,1fr); gap: 0.65rem; width: 100%; max-width: 780px; margin-top: 0.75rem; }
.mtl-ft-locked.is-visible { display: grid; animation: ftSlideUp 0.5s cubic-bezier(0.16,1,0.3,1) 0.1s both; }
.mtl-ft-locked__item { position: relative; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,0.8); backdrop-filter: blur(12px); border: 1px solid rgba(15,23,42,0.06); height: 140px; }
.mtl-ft-locked__blur { padding: 1rem; filter: blur(5px); opacity: 0.35; height: 100%; pointer-events: none; }
.mtl-ft-locked__bars div { height: 10px; background: linear-gradient(90deg, rgba(97,114,241,0.4), rgba(24,184,172,0.3)); border-radius: 5px; margin-bottom: 7px; }
.mtl-ft-locked__ring-fake { display: grid; place-items: center; height: 100%; }
.mtl-ft-locked__ring-fake svg { width: 65px; height: 65px; }
.mtl-ft-locked__lines div { height: 8px; background: rgba(97,114,241,0.25); border-radius: 4px; margin-bottom: 8px; }
.mtl-ft-locked__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; text-align: center; padding: 1rem; background: rgba(255,255,255,0.45); backdrop-filter: blur(2px); }
.mtl-ft-locked__overlay svg { color: #94a3b8; margin-bottom: 0.1rem; }
.mtl-ft-locked__overlay strong { font-family: "Space Grotesk", sans-serif; font-size: 0.8rem; color: #0f172a; }
.mtl-ft-locked__overlay span { font-size: 0.7rem; color: #94a3b8; }

/* CTA Gate */
.mtl-ft-gate { display: none; text-align: center; padding: 2rem 1rem 1rem; }
.mtl-ft-gate.is-visible { display: block; animation: ftSlideUp 0.5s cubic-bezier(0.16,1,0.3,1) 0.2s both; }
.mtl-ft-gate h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.4rem; font-weight: 700; color: #0f172a; margin: 0 0 0.4rem; }
.mtl-ft-gate p { font-size: 0.9rem; color: #64748b; max-width: 460px; margin: 0 auto 1.25rem; line-height: 1.5; }
.mtl-ft-gate__ctas { display: flex; justify-content: center; gap: 0.65rem; flex-wrap: wrap; }
.mtl-ft-gate__primary { padding: 0.8rem 1.8rem !important; font-size: 0.95rem !important; box-shadow: 0 8px 24px rgba(97,114,241,0.35); }
.mtl-ft-gate .mtl-btn--ghost { border-color: rgba(97,114,241,0.25); color: #6172f1; background: rgba(255,255,255,0.8); backdrop-filter: blur(8px); }
.mtl-ft-gate .mtl-btn--ghost:hover { border-color: rgba(97,114,241,0.45); background: rgba(255,255,255,0.95); }
.mtl-ft-gate__proof { font-size: 0.72rem !important; color: #94a3b8 !important; margin-top: 1rem !important; margin-bottom: 0 !important; }

/* ---- Gate overlay (429 / rate limited) ---- */
.mtl-ft-browser__body {
  position: relative;
  overflow: hidden;
}

/* Light blur — 404 / no data (teaser, can sense there's data) */
.mtl-ft-browser__content.is-gated {
  filter: blur(28px) saturate(0.15);
  opacity: 0.22;
  pointer-events: none;
  user-select: none;
}

/* Heavy blur — 429 / rate limited (already got their free look) */
.mtl-ft-browser__content.is-gated.is-gated--heavy {
  filter: blur(20px) saturate(0) brightness(1.1);
  opacity: 0.25;
}

.mtl-ft-gate-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  align-items: center;
  justify-content: center;
}

.mtl-ft-gate-overlay.is-visible {
  display: flex;
  animation: ftGateIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ensure the overlay is at least as tall as the content behind it */
.mtl-ft-browser__content.is-gated {
  min-height: 320px;
}

@keyframes ftGateIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.mtl-ft-gate-overlay__inner {
  text-align: center;
  max-width: 360px;
  padding: 2rem 1.5rem;
}

.mtl-ft-gate-overlay__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(97,114,241,0.1), rgba(24,184,172,0.08));
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

.mtl-ft-gate-overlay__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.mtl-ft-gate-overlay__desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 1.25rem;
}

.mtl-ft-gate-overlay__cta {
  padding: 0.75rem 1.8rem !important;
  font-size: 0.95rem !important;
  box-shadow: 0 8px 24px rgba(97, 114, 241, 0.35);
}

.mtl-ft-gate-overlay__link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #6172f1;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mtl-ft-gate-overlay__link:hover {
  color: #4f5bd5;
}

/* ---- Shake ---- */
.mtl-ft-search__bar.is-shake { animation: ftShake 0.4s ease; }

/* ---- Keyframes ---- */
@keyframes ftFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ftSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ftSpin { to { transform: rotate(360deg); } }
@keyframes ftShake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }

.mtl-ft-heatmap__cell { opacity: 0; animation: ftCellIn 0.25s ease forwards; }
@keyframes ftCellIn { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }

/* Entrance animation for head + search */
.mtl-ft-head { animation: ftFloatIn 0.6s ease both; }
.mtl-ft-search-wrap {
  animation: ftFloatIn 0.6s ease 0.15s both;
  transition: opacity 0.4s ease, max-height 0.5s ease, margin 0.4s ease;
  max-height: 500px;
  overflow: visible;
}

.mtl-ft-search-wrap.is-collapsed {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  pointer-events: none;
  overflow: hidden;
}
@keyframes ftFloatIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .mtl-ft-hero { min-height: 100svh; }
  .mtl-ft-float { padding: 5rem 0.65rem 1.5rem; }
  .mtl-ft-head__card { padding: 1rem 1.25rem; border-radius: 18px; }
  .mtl-ft-head__title { font-size: 1.8rem; }
  .mtl-ft-search-card { padding: 0.75rem; border-radius: 16px; }
  .mtl-ft-search__bar { flex-wrap: wrap; border-radius: 10px; padding: 0.4rem; }
  .mtl-ft-search__field { padding: 0.25rem 0.6rem; width: 100%; }
  .mtl-ft-search__sep { width: 100%; height: 1px; margin: 0.2rem 0; }
  .mtl-ft-search__btn { width: 100%; justify-content: center; margin-top: 0.2rem; border-radius: 8px; }
  .mtl-ft-browser { border-radius: 12px; }
  .mtl-ft-browser__body { padding: 0.85rem; }
  .mtl-ft-metrics { grid-template-columns: repeat(2,1fr); }
  .mtl-ft-heatmap__body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mtl-ft-heatmap__grid { min-width: 360px; }
  .mtl-ft-heatmap__hours { min-width: 360px; padding-left: 0; }
  .mtl-ft-heatmap__days { display: none; }
  .mtl-ft-locked { grid-template-columns: 1fr; }
  .mtl-ft-locked__item { height: 100px; }
  .mtl-ft-loader__steps { gap: 0.75rem; font-size: 0.68rem; }
  .mtl-ft-gate h3 { font-size: 1.15rem; }
}

@media (max-width: 480px) {
  .mtl-ft-head__title { font-size: 1.5rem; }
  .mtl-ft-card__header { flex-direction: column; }
  .mtl-ft-card__badge { align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .mtl-ft-head, .mtl-ft-search-wrap, .mtl-ft-browser, .mtl-ft-loader__fill,
  .mtl-ft-card__ring circle, .mtl-ft-heatmap__cell, .mtl-ft-marker__pulse {
    transition: none !important; animation: none !important; opacity: 1 !important;
  }
}
