/**
 * FlowBridge — /features (pro marketing layout)
 */

.flow-features-page {
  background: #f4f6fa;
}

.flow-features-page main {
  overflow-x: clip;
}

/* Hero ------------------------------------------------------------------- */
.features-page-hero {
  padding: clamp(2rem, 5vw, 3rem) 0 1.25rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(66, 41, 255, 0.1), transparent 60%),
    #f8fafc;
}

.theme-dark-active.flow-features-page .features-page-hero {
  background: #1a1a1a;
}

.features-page-hero__center {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.features-page-hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #041226;
}

.theme-dark-active .features-page-hero__title {
  color: #fff;
}

.features-page-hero__subtitle {
  margin: 0 auto 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #5c6370;
}

.theme-dark-active .features-page-hero__subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.features-page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4229ff;
  background: rgba(66, 41, 255, 0.08);
  border: 1px solid rgba(66, 41, 255, 0.15);
  border-radius: 999px;
}

.features-page-hero__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.features-page-hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.features-page-hero__meta i {
  color: #4229ff;
}

.theme-dark-active .features-page-hero__meta {
  color: rgba(255, 255, 255, 0.75);
}

/* In-hero jump links (static — no sticky bar) -------------------------- */
.features-page-jumplinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem 0.35rem;
  margin: 1.35rem auto 0;
  max-width: 52rem;
  padding: 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.features-page-jumplinks a {
  color: #4229ff;
  font-weight: 600;
  text-decoration: none;
}

.features-page-jumplinks a:hover {
  text-decoration: underline;
}

.features-page-jumplinks__sep {
  color: #cbd5e1;
  user-select: none;
}

.theme-dark-active .features-page-jumplinks a {
  color: #b8afff;
}

.theme-dark-active .features-page-jumplinks__sep {
  color: rgba(255, 255, 255, 0.25);
}

/* Showcases (zig-zag) ---------------------------------------------------- */
.features-page-body {
  padding: clamp(1.5rem, 4vw, 2.25rem) 0 clamp(3rem, 7vw, 4.5rem);
}

.features-page-body > .container {
  max-width: 1120px;
}

.features-page-showcases {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.feature-showcase {
  scroll-margin-top: calc(var(--landing-header-height, 76px) + 1rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

@media (min-width: 992px) {
  .feature-showcase {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: clamp(1.75rem, 3vw, 2.25rem) clamp(1.75rem, 3vw, 2.5rem);
  }

  .feature-showcase--flip .feature-showcase__content {
    order: 2;
  }

  .feature-showcase--flip .feature-showcase__visual {
    order: 1;
  }
}

.theme-dark-active .feature-showcase {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.feature-showcase__kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.feature-showcase__num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #4229ff;
}

.feature-showcase__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(66, 41, 255, 0.1);
  color: #4229ff;
  font-size: 1.15rem;
}

.feature-showcase__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #041226;
}

.theme-dark-active .feature-showcase__title {
  color: #fff;
}

.feature-showcase__lead {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.6;
  color: #334155;
}

.feature-showcase__detail {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #64748b;
}

.theme-dark-active .feature-showcase__lead,
.theme-dark-active .feature-showcase__detail {
  color: rgba(255, 255, 255, 0.78);
}

.feature-showcase__checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.feature-showcase__checks li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #041226;
}

.feature-showcase__checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #4229ff;
  box-shadow: 0 0 0 3px rgba(66, 41, 255, 0.15);
}

.theme-dark-active .feature-showcase__checks li {
  color: rgba(255, 255, 255, 0.88);
}

.feature-showcase__panel {
  border-radius: 18px;
  padding: 1.15rem;
  background: linear-gradient(145deg, #f8f7ff 0%, #eef2ff 100%);
  border: 1px solid rgba(66, 41, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-dark-active .feature-showcase__panel {
  background: linear-gradient(145deg, rgba(66, 41, 255, 0.12) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* UI mockups ------------------------------------------------------------- */
.fp-mock {
  width: 100%;
  max-width: 320px;
  font-size: 0.8125rem;
}

.fp-mock--deals .fp-mock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.4rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-weight: 600;
  color: #041226;
}

.fp-pill {
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.fp-pill--open { background: #e0e7ff; color: #3730a3; }
.fp-pill--offer { background: #fef3c7; color: #92400e; }
.fp-pill--won { background: #d1fae5; color: #065f46; }

.fp-mock--table .fp-mock__thead,
.fp-mock--table .fp-mock__trow {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
}

.fp-mock--table .fp-mock__thead {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.fp-mock--table .fp-mock__trow {
  background: #fff;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #041226;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.fp-mock--calendar .fp-mock__appt {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.4rem;
  background: #fff;
  border-radius: 10px;
  border-left: 3px solid #4229ff;
  font-weight: 600;
  color: #041226;
}

.fp-mock--calendar .fp-mock__appt time {
  font-variant-numeric: tabular-nums;
  color: #4229ff;
}

.fp-mock__appt--danger { border-left-color: #dc2626; }
.fp-mock__appt--warn { border-left-color: #f59e0b; }

.fp-mock--pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.fp-mock__stage {
  padding: 0.65rem 0.5rem;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.fp-mock__stage small {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.fp-mock__stage strong {
  font-size: 0.8125rem;
  color: #041226;
}

.fp-mock__stage--active {
  border-color: #4229ff;
  box-shadow: 0 8px 20px rgba(66, 41, 255, 0.15);
}

.fp-mock--filters .fp-mock__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.fp-mock--filters .fp-mock__chips span {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #64748b;
}

.fp-mock--filters .fp-mock__chips span.is-on {
  background: #4229ff;
  border-color: #4229ff;
  color: #fff;
}

.fp-mock__timeline div {
  height: 8px;
  border-radius: 999px;
  background: rgba(66, 41, 255, 0.15);
  margin-bottom: 0.45rem;
}

.fp-mock__timeline div:nth-child(2) { width: 88%; }
.fp-mock__timeline div:nth-child(3) { width: 72%; }

.fp-mock--integrations {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.fp-mock__plug {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #fff;
  border-radius: 10px;
  font-weight: 600;
  color: #041226;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.fp-mock__plug i {
  color: #4229ff;
}

.fp-mock--mobile .fp-mock__phone {
  width: 140px;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 22px;
  background: #fff;
  border: 2px solid #041226;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
}

.fp-mock__qr {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.65rem;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #041226 2px, transparent 2px) 0 0 / 8px 8px,
    linear-gradient(#041226 2px, transparent 2px) 0 0 / 8px 8px;
  opacity: 0.85;
}

/* CTA -------------------------------------------------------------------- */
.features-page-cta {
  margin-top: 0.5rem;
  padding: clamp(2rem, 5vw, 2.75rem);
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #4229ff 0%, #4642fc 100%);
  box-shadow: 0 24px 56px rgba(66, 41, 255, 0.28);
}

.features-page-cta__title {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.features-page-cta__subtitle {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.35rem;
  font-size: 1rem;
}

.features-page-cta__btn {
  display: inline-flex;
  background: #fff !important;
  color: #4229ff !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
