/* ==========================================================================
   data source — VARIANT D · hybrid
   Loads on top of site.css (variant A). Adds the two borrowed pieces:
     1. one full-bleed BLACK "Solutions" section — a tabbed deep-dive modelled
        on the IgniteFlow reference (eyebrow chip · centred heading · mono tabs
        · copy-left / live-demo-right)
     2. variant B's night footer
   Nothing here touches A's own rules.
   ========================================================================== */

.dark-band {
  --night: #06070A;
  --night-2: #0E1016;
  --night-line: rgba(255, 255, 255, .12);
  --night-line-soft: rgba(255, 255, 255, .07);
  --night-ink-2: rgba(255, 255, 255, .72);
  --night-ink-3: rgba(255, 255, 255, .46);
  --glow: #4F8DFF;

  position: relative;
  background: var(--night);
  color: #fff;
  overflow: hidden;
  padding: 104px 0 112px;
  margin: 96px 0;
}

/* the light seam + cool glow across the top edge, as in the reference */
.dark-band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55) 22%, rgba(255,255,255,.75) 50%, rgba(255,255,255,.55) 78%, transparent);
}
.dark-band::after {
  content: "";
  position: absolute;
  top: -320px; left: 50%;
  width: 1100px; height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(79,141,255,.22), rgba(79,141,255,0) 66%);
  pointer-events: none;
}
.dark-band > .wrap-wide { position: relative; z-index: 1; }

/* --- head ---------------------------------------------------------------- */
.db-head { text-align: center; margin-bottom: 52px; }
.db-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--night-ink-2);
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid var(--night-line);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
}
.db-eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--glow);
  box-shadow: 0 0 10px rgba(79,141,255,.9);
}
.db-head h2 {
  margin-top: 26px;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
}

/* --- tabs ---------------------------------------------------------------- */
.db-tabs {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--night-line-soft);
  margin-bottom: 56px;
}
.db-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 16px 26px;
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--night-ink-3);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}
.db-tab:hover { color: var(--night-ink-2); }
.db-tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--glow); }

/* --- panels -------------------------------------------------------------- */
.db-panel { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: start; }
.db-panel.is-active { display: grid; animation: dbFade .32s ease both; }
@keyframes dbFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.db-copy h3 { font-size: clamp(26px, 2.7vw, 36px); letter-spacing: -0.03em; color: #fff; }
.db-copy p { margin: 20px 0 0; font-size: 16.5px; line-height: 1.65; color: var(--night-ink-2); max-width: 46ch; }
.db-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.db-chips span {
  font-size: 13.5px; font-weight: 500;
  color: var(--night-ink-2);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--night-line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
}

/* --- the demo card ------------------------------------------------------- */
.db-demo {
  padding: 26px;
  border-radius: 20px;
  border: 1px solid var(--night-line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
}
.db-demo-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--night-ink-3);
  margin-bottom: 16px;
}
.db-prompt {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(79,141,255,.42);
  background: rgba(79,141,255,.05);
}
.db-prompt p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.5; color: rgba(255,255,255,.9); }
.db-run {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 20px;
  border-radius: 11px;
  font: inherit; font-size: 14px; font-weight: 650;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 12px 26px -12px rgba(29,78,216,.95);
  transition: transform .16s ease;
}
.db-run:hover { transform: translateY(-1px); }

/* the run checklist */
.db-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.db-steps li {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: center;
  font-family: var(--mono);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.34);
  transition: color .3s ease;
}
.db-steps i {
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.22);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.db-steps li.is-done { color: rgba(255,255,255,.92); }
.db-steps li.is-done i { background: var(--glow); border-color: var(--glow); box-shadow: 0 0 12px rgba(79,141,255,.7); }
.db-steps li.is-active { color: #fff; }
.db-steps li.is-active i {
  border-color: var(--glow);
  border-right-color: transparent;
  animation: dbSpin 1s linear infinite;
}
@keyframes dbSpin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Hero variant: the query surface sits in the hero's right column instead of the
   collage, with its control rail dropped — at this width the table needs the room.
   -------------------------------------------------------------------------- */
.searchbox-hero { margin-top: 0; }
.searchbox-hero .sb-body { grid-template-columns: minmax(0, 1fr); }
.searchbox-hero .sb-results { padding: 16px 18px 18px; }
.searchbox-hero .sb-table { min-width: 0; }
/* Four columns only in the hero. The hero column is roughly 45% of the viewport
   at any width, so Email and Tenure never fit — leaving them in produced a
   horizontal scrollbar inside the card rather than a clean table. */
.searchbox-hero .sb-table th:nth-child(n+5),
.searchbox-hero .sb-table td:nth-child(n+5) { display: none; }
.searchbox-hero .sb-table-wrap { overflow: visible; }
.hero { padding-top: 132px; }
.hero-grid { align-items: center; }

/* --------------------------------------------------------------------------
   Closing band — full-bleed and locked to the page, not a floating card:
   edge to edge, no radius, no gutter, and flush against the footer.
   -------------------------------------------------------------------------- */
.closing {
  position: relative;
  overflow: hidden;
  padding: 130px 0 140px;
  text-align: center;
  margin: 0;
}
.closing-media { position: absolute; inset: 0; z-index: 0; }
.closing-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 58%;
  display: block;
}
/* the art is snow-bright, so the wash only has to lift the type off the peaks */
.closing-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(244,247,252,.86) 0%, rgba(244,247,252,.46) 42%, rgba(244,247,252,.18) 100%);
}
.closing-inner { position: relative; z-index: 1; }
.closing .lede { margin-inline: auto; }
.closing .btn-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (max-width: 760px) {
  .closing { padding: 84px 0 92px; }
  .hero { padding-top: 88px; }
}

/* Per-panel artwork. The image sits behind the panel, bled to the right so the
   copy column keeps the black negative space the art was composed for. */
.db-panel { position: relative; }
.db-art {
  position: absolute;
  top: -60px; right: -6%; bottom: -60px;
  width: 74%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 26%, #000 82%, transparent);
}
.db-art img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.db-panel > .db-copy, .db-panel > .db-demo { position: relative; z-index: 1; }

@media (max-width: 1000px) { .db-art { display: none; } }

/* --------------------------------------------------------------------------
   The other two sections that live inside the black band
   -------------------------------------------------------------------------- */
.db-divide { height: 1px; background: var(--night-line-soft); margin: 88px 0; }

.db-flow-head { max-width: 720px; margin-bottom: 42px; }
.db-flow-head h3 { margin-top: 22px; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.035em; line-height: 1.03; color: #fff; }
.db-flow-head p { margin: 18px 0 0; font-size: 16px; line-height: 1.65; color: var(--night-ink-2); max-width: 60ch; }

.db-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.db-step {
  padding: 26px;
  border-radius: 18px;
  border: 1px solid var(--night-line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
}
.db-step-n {
  display: block; margin-bottom: 16px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; color: var(--glow);
}
.db-step h4 { margin: 0 0 9px; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; color: #fff; }
.db-step p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--night-ink-2); }

.db-table { width: 100%; border-collapse: collapse; }
.db-table th, .db-table td {
  text-align: left; padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--night-line-soft);
}
.db-table thead th {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--night-ink-3);
  border-bottom: 1px solid var(--night-line);
}
.db-table tbody th { font-weight: 600; color: #fff; width: 32%; }
.db-table td { color: var(--night-ink-3); }
.db-table .us { color: #fff; font-weight: 550; }
.db-table thead .us { color: var(--glow); }
.db-table tbody tr:last-child th, .db-table tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 1000px) {
  .db-panel.is-active { grid-template-columns: 1fr; gap: 36px; }
  .dark-band { padding: 76px 0 84px; margin: 72px 0; }
  .db-steps-grid { grid-template-columns: 1fr; }
  .db-divide { margin: 60px 0; }
  .db-table { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 620px) {
  .db-tabs { gap: 0; }
  .db-tab { padding: 14px 14px; font-size: 11px; letter-spacing: .1em; }
}

/* --------------------------------------------------------------------------
   Night footer (borrowed from variant B)
   -------------------------------------------------------------------------- */
.footer-night {
  background: #06070A;
  color: #fff;
  border-top: 0;
  margin-top: 0;
  padding: 72px 0 40px;
}
/* The footer uses the supplied one-piece glow lockup (badge + wordmark with its
   neon kept), not the split badge/wordmark pair the nav uses — at footer size the
   glow reads as intended rather than turning to mush. */
/* the footer lockup is the same live text as the nav, recoloured for the dark
   surface — one asset fewer, and it stays crisp at any size */
.footer-night .brand-badge { width: 44px; height: 44px; }
.footer-night .brand-word { font-size: 21px; color: #fff; }

/* --------------------------------------------------------------------------
   Footer treatment — black base, effects only, no imagery:
   a cool corner glow, a masked blueprint grid, and a gradient hairline along
   the top edge. All three are painted, so there is nothing to load.
   -------------------------------------------------------------------------- */
.footer-night {
  position: relative;
  overflow: hidden;
  padding: 104px 0 46px;
  /* the hairline rides on the background so both pseudo-elements stay free */
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(79,141,255,.45) 16%,
      rgba(255,255,255,.62) 50%,
      rgba(79,141,255,.45) 84%,
      transparent 100%) top / 100% 1px no-repeat,
    #06070A;
}
/* corner glow */
.footer-night::before {
  content: "";
  position: absolute;
  top: -46%; left: -12%;
  width: 820px; height: 820px;
  background: radial-gradient(circle at 50% 50%,
    rgba(79,141,255,.22) 0%,
    rgba(79,141,255,.07) 40%,
    transparent 68%);
  pointer-events: none;
}
/* blueprint grid, masked so it dies out across the panel */
.footer-night::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 58px 58px;
  /* a tight mask leaves a visible rectangular edge where it cuts off; this one
     is large and fades to nothing well inside the panel */
  -webkit-mask-image: radial-gradient(115% 150% at 4% -25%, #000 0%, rgba(0,0,0,.55) 32%, transparent 76%);
          mask-image: radial-gradient(115% 150% at 4% -25%, #000 0%, rgba(0,0,0,.55) 32%, transparent 76%);
  pointer-events: none;
}
.footer-night > .wrap-wide { position: relative; z-index: 1; }

/* brand line across the top */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  margin-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.footer-claim {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}

.footer-night .footer-grid { grid-template-columns: 1.7fr repeat(4, 1fr); gap: 36px; }
.footer-night .footer-brand p { margin: 0; }

/* live status pip */
.foot-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
}
.foot-status i {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: #34D399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .55);
  animation: footPulse 2.4s ease-out infinite;
}
@keyframes footPulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); }
  70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.footer-night .footer-bottom { margin-top: 64px; }

@media (max-width: 1080px) {
  .footer-night .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 700px) {
  .footer-night { padding: 68px 0 36px; }
  .footer-night .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { padding-bottom: 28px; margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .foot-status i { animation: none; }
}
.footer-night .footer-brand p { color: rgba(255, 255, 255, .46); }
.footer-night h4 { color: rgba(255, 255, 255, .46); }
.footer-night li a { color: rgba(255, 255, 255, .72); }
.footer-night li a:hover { color: #fff; }
.footer-night .footer-bottom { border-top-color: rgba(255, 255, 255, .07); }
.footer-night .micro { color: rgba(255, 255, 255, .46); }

@media (prefers-reduced-motion: reduce) {
  .db-panel.is-active { animation: none; }
  .db-steps li.is-active i { animation: none; border-right-color: var(--glow); }
}
