/* Shared extension for the public feature card and tour. */
.ft-wrap:has(> .ft-card > .flooros-promo) {
  --flooros-blend-depth: 280px;
  --flooros-frame-gradient: linear-gradient(to bottom,
    #ff854b 0, #ff854b calc(100% - var(--flooros-blend-depth)),
    #9560f5 calc(100% - var(--flooros-blend-depth) + 70px),
    #3478ff calc(100% - var(--flooros-blend-depth) + 140px), #3478ff 100%);
}

.ft-wrap:has(> .ft-card > .flooros-promo)::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: -8px;
  border-radius: 24px;
  pointer-events: none;
  background: var(--flooros-frame-gradient);
  filter: blur(32px);
  opacity: .8;
}

.ft-wrap:has(> .ft-card > .flooros-promo) > .ft-amb { display: none; }

.ft-card:has(> .flooros-promo) { border-color: transparent; }

.ft-card:has(> .flooros-promo)::before {
  z-index: 4;
  border: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--flooros-frame-gradient);
  box-shadow: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.flooros-promo {
  --flooros-accent: #1f5eff;
  position: relative;
  z-index: 3;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px 40px;
  overflow: hidden;
  padding: 32px;
  border-top: 1px solid #427dff;
  border-radius: 0 0 16px 16px;
  background: radial-gradient(ellipse at 100% 100%, #1f5eff35, transparent 65%), #070f24;
  color: #fff;
  box-shadow: inset 0 0 0 1px #3478ff80, inset 0 0 38px #1f5eff24;
  font-family: 'Inter', system-ui, sans-serif;
  text-align: left;
}

.flooros-promo::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, #6a92ff4d 0.6px, transparent 0.9px) 0 0 / 5px 5px;
  mask-image: linear-gradient(115deg, transparent 25%, #000 100%);
  opacity: .35;
}

.flooros-promo .flooros-promo__copy { min-width: 0; }

.flooros-promo .flooros-promo__title {
  margin: 0;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(27px, 3.1vw, 44px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.flooros-promo .flooros-promo__title > span { display: block; }
.flooros-promo .flooros-promo__title > span:first-child { white-space: nowrap; }
.flooros-promo .flooros-promo__title > span + span { color: #8eafff; }
.flooros-promo .flooros-promo__title .flooros-promo__accent {
  display: inline;
  color: var(--flooros-accent);
}

.flooros-promo .flooros-promo__description {
  max-width: 770px;
  margin: 16px 0 0;
  color: #c5d0e8;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  text-wrap: pretty;
}

.flooros-promo .flooros-promo__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid #5d8aff;
  border-radius: 9px;
  background: var(--flooros-accent);
  color: #fff;
  box-shadow: 0 4px 24px #1f5eff33;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .035em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .18s ease, box-shadow .18s ease;
}

.flooros-promo .flooros-promo__cta:hover {
  background: #134ae0;
  box-shadow: 0 4px 30px #1f5eff66;
}

.flooros-promo .flooros-promo__cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.flooros-promo .flooros-promo__cta svg { flex: none; }

.flooros-promo-wrap {
  box-sizing: border-box;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.flooros-promo-wrap .flooros-promo {
  border: 1px solid #427dff;
  border-radius: 16px;
  box-shadow: 0 0 30px #1f5eff40, 0 0 65px #1f5eff20, inset 0 0 38px #1f5eff24;
}

@media (min-width: 1024px) {
  .flooros-promo-wrap { padding-right: 48px; padding-left: 48px; }
  .flooros-promo {
    background-image:
      radial-gradient(ellipse at 100% 100%, #1f5eff45, transparent 65%),
      linear-gradient(90deg, #070f24ed, #070f24d6 55%, #070f24b8),
      url('/media/floors/flooros-warehouse-callout.png');
    background-size: auto, auto, cover;
    background-position: center, center, center 52%;
    background-repeat: no-repeat;
  }
}

@media (max-width: 767px) {
  .ft-wrap:has(> .ft-card > .flooros-promo) { --flooros-blend-depth: 360px; }
  .flooros-promo {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 26px 20px;
  }
  .flooros-promo .flooros-promo__title { font-size: clamp(26px, 5.7vw, 38px); }
  .flooros-promo .flooros-promo__description { margin-top: 14px; }
  .flooros-promo .flooros-promo__cta { justify-self: start; }
}

@media (max-width: 480px) {
  .flooros-promo .flooros-promo__cta { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .flooros-promo .flooros-promo__cta { transition: none; }
}
