/* ============================================================
   VividCharts — Solutions catalog (ReportFlows)
   Builds on styles.css tokens (Object Sans, teal/ivory/chocolate, 4px).
   ============================================================ */

/* ---- Page header ---- */
.sol-hero { padding: 64px 0 36px; position: relative; }
.sol-hero .wrap { position: relative; z-index: 1; }
.sol-hero .eyebrow { margin-bottom: 16px; }
.sol-hero h1 { font-size: clamp(34px, 4.6vw, 54px); max-width: 18ch; }
.sol-hero p { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); line-height: 1.55; max-width: 60ch; margin-top: 18px; }

/* ---- Filter bar ---- */
.sol-filter {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.sol-filter .wrap {
  display: flex; align-items: center; gap: 18px;
  padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.sol-filter .flabel {
  font-size: 11.5px; font-weight: 700; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--ink-3); flex: none;
}
.sol-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.sol-tab {
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  color: var(--ink-2); background: transparent;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 8px 14px; cursor: pointer; white-space: nowrap;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.sol-tab:hover { border-color: var(--brand); color: var(--ink); }
.sol-tab.active { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
.sol-tab .n { opacity: .6; font-weight: 500; margin-left: 3px; }

/* active nav trigger (Solutions page) */
.nav-trigger.is-current { color: var(--ink); }

/* ---- Grid ---- */
.sol-section { padding: 40px 0 96px; }
.sol-count { font-size: 13.5px; color: var(--ink-3); font-weight: 500; margin-bottom: 22px; }
.sol-count b { color: var(--ink); font-weight: 700; }
.sol-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 900px) { .sol-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sol-grid { grid-template-columns: 1fr; } }

.sol-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.sol-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.sol-card.hidden { display: none; }

/* thumbnail = mini report preview on ivory */
.sol-thumb {
  aspect-ratio: 16 / 9; background: var(--light-cream);
  display: grid; place-items: center; padding: 22px 22px 0;
  border-bottom: 1px solid var(--line);
}
.sol-mini {
  width: 100%; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-sm); box-shadow: var(--shadow-sm);
  padding: 12px; transform: translateY(8px);
}
.sol-mini .mini-bar-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.sol-mini .mini-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.sol-mini .mini-tag { margin-left: auto; height: 6px; width: 34px; border-radius: 3px; background: var(--brand-tint); }
.sol-mini svg { display: block; width: 100%; height: auto; }
/* real product screenshot thumbnail (VIV-2804) — fixed height keeps card rows even
   regardless of each shot's native aspect ratio; contain preserves the transparent PNG */
.sol-mini .sol-shot {
  display: block; width: 100%; height: 132px;
  object-fit: contain; object-position: center top;
  border-radius: var(--r-sm);
}

/* card body */
.sol-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.sol-cat {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-strong); background: var(--brand-tint);
  padding: 4px 9px; border-radius: var(--r-sm); margin-bottom: 12px;
}
.sol-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.sol-card p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: 8px; }
.sol-more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-size: 12.5px; font-weight: 700; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--ink);
}
.sol-more svg { width: 14px; height: 14px; transition: transform .18s var(--ease); }
.sol-card:hover .sol-more { color: var(--brand-strong); }
.sol-card:hover .sol-more svg { transform: translateX(3px); }

.sol-empty { display: none; padding: 60px 0; text-align: center; color: var(--ink-3); font-size: 16px; }
.sol-empty.show { display: block; }

/* ---- Closing CTA ---- */
.sol-cta { padding: 0 0 96px; }
.sol-cta-band {
  background: var(--dark-blue); border-radius: var(--r-md);
  padding: 48px 56px; display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.sol-cta-band h2 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); max-width: 20ch; }
.sol-cta-band p { color: rgba(255,255,255,.72); font-size: 16px; margin-top: 12px; max-width: 46ch; line-height: 1.5; }
.sol-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* Mobile: stack the band and let CTAs fill the width so the long
   "Browse all ReportFlows" button can't overflow the viewport (VIV-2840). */
@media (max-width: 600px) {
  .sol-cta-band { flex-direction: column; align-items: stretch; padding: 32px 24px; gap: 24px; }
  .sol-cta-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .sol-cta-actions .btn { justify-content: center; }
}
