/* ===== Impact layer - conversion patterns from top B2B SaaS ===== */

/* Sticky conversion bar */
.impact-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  pointer-events: none;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.impact-bar.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.impact-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  width: min(100%, 920px);
  padding: 0.85rem 1.1rem;
  border-radius: 18px;
  background: rgba(5, 11, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(5, 11, 24, 0.35);
  color: #fff;
}
.impact-bar p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.82);
  font-weight: 500;
}
.impact-bar p strong {
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.impact-bar .btn {
  padding: 0.7rem 1.25rem;
  font-size: 0.88rem;
}
body.has-impact-bar { padding-bottom: 5.5rem; }

/* Back to Top */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.35rem;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  background: #0b1220;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}
.back-to-top-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}
.back-to-top-label {
  font-family: Outfit, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #0b1220;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.back-to-top:hover .back-to-top-icon {
  background: #1a5fdb;
  transform: translateY(-2px);
}
.back-to-top:focus-visible {
  outline: none;
}
.back-to-top:focus-visible .back-to-top-icon {
  outline: 2px solid #1a5fdb;
  outline-offset: 3px;
}
body.has-impact-bar .back-to-top {
  bottom: 5.75rem;
}
@media (max-width: 720px) {
  .back-to-top {
    right: 0.85rem;
    bottom: 1rem;
  }
  body.has-impact-bar .back-to-top {
    bottom: 6.5rem;
  }
  .back-to-top-label {
    font-size: 0.65rem;
  }
}

/* Hero proof chip */
.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.35rem;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  color: rgba(226, 232, 240, 0.85);
  max-width: 100%;
}
.hero-proof b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 1.7rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Metric wall */
.metric-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.metric-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.4rem;
  border-radius: 22px;
  background: linear-gradient(165deg, #0b1628, #12284f);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  min-height: 160px;
  box-shadow: 0 20px 50px rgba(5, 11, 24, 0.18);
}
.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 70%);
}
.metric-card strong {
  display: block;
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.65rem;
  background: linear-gradient(135deg, #fff, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Interior page hero proof - readable on dark heroes */
.page-hero .hero-proof {
  margin-top: 1.1rem;
}

/* Outcome outcomes list punch */
.section-block .check-list li {
  font-size: 1.02rem;
}
.metric-card span {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.72);
}

/* Quote / proof block */
.quote-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: stretch;
}
.quote-card {
  padding: 2rem 1.75rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow-sm);
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
  color: var(--ink);
}
.quote-card cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}
.quote-card cite strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  margin-bottom: 0.15rem;
}
.quote-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.75rem;
  border-radius: 24px;
  background: linear-gradient(145deg, #1a5fdb, #0b2a8b);
  color: #fff;
  box-shadow: 0 24px 50px rgba(26, 95, 219, 0.35);
}
.quote-stat strong {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.quote-stat span {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.trust-item {
  padding: 1.4rem 1.2rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.trust-item span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* How it works - impactful steps */
.how-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2rem;
  position: relative;
}
.how-rail::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(26, 95, 219, 0.35), transparent);
}
.how-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.75rem;
}
.how-step .orb {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1a5fdb);
  box-shadow: 0 12px 30px rgba(26, 95, 219, 0.35), 0 0 0 8px rgba(26, 95, 219, 0.08);
}
.how-step h3 {
  margin-bottom: 0.45rem;
}
.how-step p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 18ch;
  margin-inline: auto;
}

/* Case cards - metric first */
.case-card .case-metric {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--blue);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

/* Secondary path CTAs */
.cta-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.92rem;
}
.cta-paths a {
  color: var(--blue);
  font-weight: 700;
}
.page-hero .cta-paths a { color: #93c5fd; }

/* Logo strip elevation */
.customer-logos {
  padding: 2rem 0;
  background: #fff;
}
.customer-logos p {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
}

@media (max-width: 960px) {
  .metric-wall,
  .trust-strip,
  .how-rail,
  .quote-band { grid-template-columns: 1fr 1fr; }
  .how-rail::before { display: none; }
}
@media (max-width: 640px) {
  .metric-wall,
  .trust-strip,
  .how-rail,
  .quote-band { grid-template-columns: 1fr; }
  .impact-bar-inner { flex-direction: column; text-align: center; }
}
