/* ===================================================================
   Features page — overrides + page-specific styles
   =================================================================== */

/* ---- Hero (dark navy gradient) ---- */
.fhero {
  position: relative;
  background: #320088;
  color: #fff;
  padding: 160px 32px 0;
  overflow: visible;
  isolation: isolate;
}
.fhero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(191,66,249,.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.fhero-inner {
  position: relative;
  z-index: 2;
  max-width: 1056px;
  margin: 0 auto;
  text-align: center;
  padding: 0 0 200px;
}
.fhero-title {
  font-family: "Satoshi", sans-serif;
  font-weight: 500;
  font-size: clamp(48px, 5.6vw, 80px);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.fhero-sub {
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: 18px;
  line-height: 1.55;
  opacity: .92;
  text-wrap: pretty;
}
.fhero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.fhero-screenshot {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #f8f9fd;
  box-shadow:
    0 60px 120px -40px rgba(0,0,0,.6),
    0 24px 60px -16px rgba(0,0,0,.4);
}
.fhero-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- AI feature strip ---- */
.ai-strip {
  background: #16164e;
  padding: 56px 32px 96px;
  color: #fff;
}
/* ---- Client logo carousel ---- */
.cl-marquee { background: #16164e; padding: 64px 0 88px; overflow: hidden; }
.cl-marquee-head { text-align: center; font-family: "Geist", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin: 0 0 44px; }
.cl-row { display: flex; gap: 0; width: max-content; animation: clScroll 60s linear infinite; }
.cl-row.rev { animation-direction: reverse; margin-top: 8px; }
.cl-marquee:hover .cl-row { animation-play-state: paused; }
.cl-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cl-track + .cl-track { margin-top: 26px; }
.cl-logo { flex: 0 0 auto; width: 190px; height: 84px; display: flex; align-items: center; justify-content: center; padding: 0 26px; }
.cl-logo img { max-width: 100%; max-height: 56px; width: auto; object-fit: contain; opacity: .82; transition: opacity .2s; }
.cl-logo img:hover { opacity: 1; }
@keyframes clScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cl-row { animation: none; } }
.ai-strip-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  font-family: "Satoshi";
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  letter-spacing: -.005em;
}
.ai-star {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--bright) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 4px 12px rgba(191,66,249,.35);
}
.ai-star svg {
  width: 20px;
  height: 20px;
  display: block;
}
.ai-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bright);
  box-shadow: 0 0 0 6px rgba(191,66,249,.2);
  flex-shrink: 0;
}
.ai-connector {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bright), transparent);
}
@media (max-width: 760px) {
  .ai-connector { display: none; }
}

/* ---- Category section (lavender) ---- */
.fcat {
  background: #E5D3FB;
  padding: 112px 32px;
}
.fcat:nth-of-type(even-cat),  /* placeholder if alt-bg ever wanted */
.fcat + .fcat { border-top: 1px solid rgba(22,22,78,.06); }
.fcat-head {
  text-align: center;
  max-width: 768px;
  margin: 0 auto 56px;
}
.fcat-title {
  font-family: "Satoshi", sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #16164e;
  margin: 0 0 16px;
  text-wrap: balance;
}
.fcat-sub {
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: #16164e;
  margin: 0;
  text-wrap: pretty;
}

/* ---- Tabs ---- */
.ftabs {
  max-width: var(--container);
  margin: 0 auto;
  background: #F2E8FD;
  border: 1px solid rgba(22,22,78,.2);
  border-radius: 16px;
  box-shadow: 0 0 29px rgba(0,0,0,.09);
  display: grid;
  grid-template-columns: 480px 1fr;
  min-height: 556px;
  overflow: hidden;
}
.ftabs-menu {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(22,22,78,.2);
}
.ftab-link {
  font-family: "Satoshi", sans-serif;
  font-weight: 500;
  font-size: 18px;
  text-align: left;
  color: #16164e;
  padding: 20px 28px;
  border: 0;
  background: transparent;
  border-bottom: 1px solid rgba(22,22,78,.12);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, padding .15s ease;
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 64px;
}
.ftab-link:last-child { border-bottom: 0; }
.ftab-link:hover { background: rgba(125,27,220,.06); }
.ftab-link.is-active {
  background: #fff;
  font-weight: 600;
  color: var(--purple);
  padding-left: 36px;
}
.ftab-link.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--purple);
}

.ftabs-content { position: relative; background: #fff; }
.ftab-pane {
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ftab-pane[hidden] { display: none; }
.ftab-eyebrow {
  font-family: "Geist", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--purple);
  text-transform: uppercase;
  margin: 0;
}
.ftab-pane h3 {
  font-family: "Satoshi", sans-serif;
  font-weight: 500;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -.005em;
  color: #16164e;
  margin: 0;
  text-wrap: balance;
}
.ftab-pane p {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1B0035;
  margin: 0;
  text-wrap: pretty;
}
.ftab-meta {
  font-size: 14px !important;
  color: #4a3a6d !important;
  padding: 16px 20px;
  background: #faf5ff;
  border-radius: 10px;
  border-left: 3px solid var(--purple);
}
.ftab-meta strong { color: var(--purple); font-weight: 700; }

/* Inline "Learn more →" link */
.ftab-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-family: "Satoshi", sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color .15s ease, transform .15s ease;
}
.ftab-cta:hover { color: var(--bright); transform: translateX(2px); }

/* Integrations table */
.ftab-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
}
.ftab-table thead th {
  text-align: left;
  font-family: "Satoshi", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(125,27,220,.18);
  background: #faf5ff;
}
.ftab-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(22,22,78,.08);
  vertical-align: top;
  color: #1B0035;
  line-height: 1.5;
}
.ftab-table tbody td:first-child {
  width: 30%;
  white-space: nowrap;
}
.ftab-table tbody tr:hover { background: rgba(125,27,220,.03); }

/* Active state in dropdown */
.dd-item--active {
  background: var(--lavender-50);
}
.dd-item--active .dd-title { color: var(--purple); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .ftabs {
    grid-template-columns: 1fr;
  }
  /* Stack tabs vertically as a full-width list instead of horizontal scroll
     so every section title is visible at once. Active state keeps the
     left-bar indicator from the desktop layout. */
  .ftabs-menu {
    flex-direction: column;
    overflow-x: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(22,22,78,.2);
  }
  .ftab-link {
    flex: 0 0 auto;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(22,22,78,.08);
    border-right: 0;
    white-space: normal;
    text-align: left;
    font-size: 15px;
  }
  .ftab-link.is-active { padding-left: 24px; }
  .ftab-link.is-active::before {
    left: 0; top: 0; right: auto; bottom: 0;
    width: 4px; height: auto;
  }
  .ftab-pane { padding: 36px 28px; }
}
