/* --- Design tokens / CSS custom properties --- */
:root {
  --bg: #f4f6fb;
  --ink: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --border: #e5e7eb;
  --accent: #008083;
  --accent-2: #0ea5e9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* --- Base / reset styles --- */
body {
  margin: 0;
  color: var(--ink);
  font-family: 'Arial', sans-serif;
  font-size: 16px;
}

a {
  color: inherit;
}

/* --- Hero header banner --- */
.hero {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e5e5e5;
  padding: 20px 0 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 25px;
  padding: 0 20px;
  margin-bottom: 20px;
}

.hero h1 {
  letter-spacing: -0.5px;
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 32px;
  margin-bottom: 0;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.hero-top {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-logo {
  height: 45px;
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* --- Button component --- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* --- View navigation tabs --- */
.view-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.view-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.view-tab:hover {
  color: var(--accent);
}

.view-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* --- View panels --- */
.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

.view-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--muted);
  text-align: center;
  gap: 12px;
}

.view-placeholder i {
  font-size: 48px;
  opacity: 0.3;
}

.view-placeholder p {
  margin: 0;
  font-size: 16px;
}

main {
  padding-bottom: 40px;
}

/* --- Summary KPI cards grid --- */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.summary-card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}

.summary-card small {
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 12px;
}

.summary-card .value {
  font-size: 28px;
  font-weight: 700;
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 129, 133, 0.1);
  color: var(--accent);
  font-size: 13px;
}

/* --- Table panel wrapper --- */
.panel {
  margin-top: 22px;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.table-wrap {
  overflow-x: auto;
}

/* --- Challenge card data table --- */
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: #f8fafc;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}

th .sort-arrow {
  font-size: 12px;
  margin-left: 6px;
  opacity: 0.4;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

th[data-active="true"] .sort-arrow {
  opacity: 1;
  color: var(--accent);
}

tr:hover td {
  background: #f9fafb;
}

/* --- Card number link pill in table rows --- */
.table-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 8px;
  background: #e5e7eb;
  border: none;
  justify-content: center;
  font-size: 13px;
  white-space: nowrap;
}

.table-link i {
  color: var(--muted);
  font-size: 12px;
}

.table-link:hover {
  color: var(--ink);
  background: #d4d4d8;
}

.challenge-title {
  margin-left: 14px;
  margin-right: 8px;
  letter-spacing: -0.2px;
}

.challenge-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e5e7eb;
  color: #334155;
  font-size: 12px;
}

/* --- Inline metric progress bars in table cells --- */
.metric-bar {
  margin-top: 6px;
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.metric-bar span {
  display: block;
  height: 100%;
  background: #aaa;
  width: var(--w, 0%);
  transition: width 0.2s ease;
}

.muted {
  color: var(--muted);
}

/* --- Error banner and loading spinner --- */
.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 16px 0;
  display: none;
}

.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  padding: 16px;
  font-weight: 600;
}

.loading .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from {
    opacity: 0.3;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* --- Filter dropdown row --- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.filter-row select {
  font-size: 13px;
}

.filter-select {
  min-width: 190px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e5e5;
  padding: 8px 32px 8px 14px;
  font-family: inherit;
  background: #fff;
  cursor: pointer;
  appearance: auto;
}

.filter-select:focus {
  border-color: #008083;
  box-shadow: 0 0 0 0.12rem rgba(0, 128, 131, 0.25);
  outline: none;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #f7fafa;
  color: #006c6e;
  font-weight: 700;
  text-decoration: none;
  font-size: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pill-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
  color: #004447;
}

/* --- Summary heatmap grids --- */
.sum-heatmap-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.sum-heatmap-card h3 {
  margin-bottom: 12px;
}

.sum-heatmap-grid {
  display: grid;
  grid-template-columns: auto repeat(3, 1fr);
  gap: 4px;
  align-items: center;
}

.sum-heatmap-axis-corner {
  /* empty top-left cell */
}

.sum-heatmap-col-header,
.sum-heatmap-row-header {
  font-size: 11px;
  color: #64748b;
  text-align: center;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.sum-heatmap-row-header {
  text-align: right;
  padding-right: 6px;
}

.sum-heatmap-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  min-height: 44px;
  transition: transform 0.1s ease;
  cursor: default;
}

.sum-heatmap-cell:hover {
  transform: scale(1.06);
  z-index: 1;
  position: relative;
}

.sum-heatmap-axis-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding-left: calc(3ch + 10px);
  /* indent past row headers */
}

.sum-heatmap-y-label,
.sum-heatmap-x-label {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
}

/* --- Heatmap / Top-5 filter bars --- */
.sum-heatmap-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: 20px 16px;
  margin-bottom: 8px;
  margin-top: 16px;
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--border);
  justify-content: center;
}

.sum-hmap-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sum-hmap-filter-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  white-space: nowrap;
}

.sum-hmap-filter-select {
  min-width: 0;
  max-width: 200px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.sum-hmap-filter-select:focus {
  outline: none;
  border-color: #008083;
  box-shadow: 0 0 0 0.12rem rgba(0, 128, 131, 0.25);
}

@media (max-width: 900px) {
  .sum-heatmap-row {
    grid-template-columns: 1fr;
  }

  .sum-heatmap-filter-bar {
    gap: 8px;
  }
}

/* --- Summary top-5 challenge lists --- */
.sum-top5-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.sum-top5-card {
  min-width: 0;
  overflow: hidden;
}

.sum-top5-card h3 {
  margin-bottom: 12px;
  text-align: center;
}

.sum-top5-list {
  display: flex;
  flex-direction: column;
}

.sum-top5-entry {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 4px;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}

.sum-top5-entry-odd {
  background: #f8fafc;
}

.sum-top5-title {
  flex: 1 1 0;
  min-width: 0;
  color: #334155;
  font-size: 13px;
  word-break: break-word;
}

.sum-top5-count {
  flex: 0 0 auto;
  font-weight: 700;
  color: #008083;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .sum-top5-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sum-top5-row {
    grid-template-columns: 1fr;
  }
}

/* --- Gap analysis solutions overlay --- */
.ga-sol-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 24px;
}

.ga-sol-overlay[hidden] {
  display: none;
}

.ga-sol-panel {
  position: relative;
  width: min(96vw, 1200px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.ga-sol-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.ga-sol-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.ga-sol-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}

.ga-sol-close:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.ga-sol-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  flex: 1;
  overflow: hidden;
}

.ga-sol-list {
  overflow-y: auto;
  padding: 12px;
  border-right: 1px solid #e5e7eb;
  scrollbar-width: thin;
  scrollbar-color: #bbb transparent;
}

.ga-sol-detail {
  overflow-y: auto;
  padding: 20px;
  background: #f8fafc;
}

.ga-sol-placeholder {
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
  margin-top: 40px;
}

.sv-project-box.ga-sol-active {
  border-left-color: #008083;
  background: #e6f5f5;
}

.ga-view-btn {
  width: auto;
  min-width: 110px;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 640px) {
  .ga-sol-body {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .ga-sol-list {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
}

/* --- Star rating filters (Impact / AI Suitability / Novelty) --- */
.star-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  justify-content: center;
}

.star-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.star-filter-label {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

.star-filter-btns {
  display: flex;
  gap: 4px;
}

.star-filter-btn {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #bbb;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.star-filter-btn:hover {
  border-color: #ebb51f;
  color: #ebb51f;
}

.star-filter-btn.active {
  background: #ebb51f;
  border-color: #ebb51f;
  color: #fff;
}

/* --- Verification status legend (human / AI / unverified) --- */
.verification-legend {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  font-size: 13px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid transparent;
}

.legend-dot-human {
  background: #198754;
}

.legend-dot-ai {
  background: #0d6efd;
}

.legend-dot-unverified {
  background: #6c757d;
  opacity: 0.7;
}

/* --- Date range filter (sits to the right of the verification checkboxes) --- */
.date-range-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

.date-range-input {
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

.date-range-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.12rem rgba(0, 128, 131, 0.25);
  outline: none;
}

.date-range-sep {
  color: var(--muted);
  font-size: 13px;
}

/* ====== Sector charts ====== */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.chart-card {
  background: var(--card);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

.chart-card h3 {
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 700;
}

.chart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.chart-label {
  min-width: 120px;
  max-width: 120px;
  font-size: 12px;
  text-align: right;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-bar-track {
  flex: 1;
  height: 22px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.chart-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: var(--accent);
  transition: width 0.35s ease;
  min-width: 2px;
}

.chart-value {
  min-width: 70px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.chart-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 12px 0;
}

/* =====================================================
   SOLUTION VIEW
   ===================================================== */

/* Solution view breaks out of the 1200px container to use full viewport width */
#view-solution {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: 24px;
  padding-right: 24px;
}

.solution-view-shell {
  position: relative;
}

.sv-loading-banner {
  margin: 20px auto 12px;
  padding: 12px 16px;
  max-width: 960px;
  border-radius: 10px;
  background: #e8f4f4;
  color: #006c6e;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.sv-loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1s infinite alternate;
}

.sv-filter-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.sv-filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.sv-filter-search-wrap {
  position: relative;
  flex: 1 1 360px;
}

.sv-filter-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.sv-filter-input {
  width: 100%;
  border-radius: 999px;
  padding: 12px 16px 12px 42px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e5e5;
  font: inherit;
}

.sv-filter-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.12rem rgba(0, 128, 131, 0.25);
  outline: none;
}

.sv-filter-row {
  margin-top: 12px;
}

.sv-scroll-row {
  width: 100%;
  padding: 24px 0 8px;
  box-sizing: border-box;
}

.sv-card-section {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}

.sv-card-wrapper {
  display: flex;
  flex-direction: column;
  width: 265px;
  overflow: hidden;
}

.sv-card-wrapper[hidden] {
  display: none;
}

.sv-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 358px;
}

.sv-card-content {
  position: relative;
}

.sv-card-side {
  position: absolute;
  width: 42px;
  height: 100%;
  z-index: 1;
  background: var(--sv-sector);
}

.sv-control-system {
  position: absolute;
  top: 7%;
  right: -170px;
  display: flex;
  width: 195px;
  height: 48px;
  border-radius: 8px;
  align-items: center;
  background: var(--sv-sector);
}

.sv-number-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 7px;
  font-size: 17px;
  border-radius: 50%;
  background: var(--sv-sector-soft);
  font-weight: 700;
  flex-shrink: 0;
}

.sv-control-system span {
  font-size: 12px;
  color: #fff;
}

.sv-gc-pill {
  position: absolute;
  top: 24%;
  right: -22px;
  min-width: 50px;
  max-width: 66px;
  min-height: 32px;
  padding: 5px;
  border-radius: 5px;
  background: var(--sv-sector-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.sv-icon {
  position: absolute;
  right: -17px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sv-icon span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sv-icon span img {
  width: 34px;
  height: 34px;
}

.sv-icon-1 {
  bottom: 50%;
}

.sv-icon-2 {
  bottom: 31%;
}

.sv-icon-3 {
  bottom: 18%;
}

.sv-icon-4 {
  bottom: 4%;
}

.sv-card-image {
  height: 158px;
  background: #fff;
}

.sv-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-card-text {
  position: relative;
  height: 200px;
  padding: 16px 14px 14px 72px;
  background: #fff;
}

.sv-rating {
  position: absolute;
  top: -55px;
  right: 8px;
}

.sv-rating-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 20px;
  width: 136px;
  padding: 0 7px;
  margin-bottom: 3px;
  border-radius: 8px;
  background: var(--sv-sector);
}

.sv-rating-item h6 {
  flex-shrink: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  margin: 0;
}

.sv-rating-icon {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  width: 100%;
}

.sv-rating-icon i {
  font-size: 10px;
}

.sv-card-desc {
  font-size: 11px;
  line-height: 1.35;
  color: #222;
  margin: 0;
}

.sv-star-on {
  color: #ebb51f;
}

.sv-star-off {
  color: #d7d7d7;
}

.sv-card-permalink {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: #444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  z-index: 3;
  opacity: 0.5;
}

.sv-card-permalink:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
  color: #000;
}

.sv-card-add-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 0;
  min-width: 110px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  z-index: 3;
  text-decoration: none;
}

.sv-card-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.sv-card-logo-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.sv-logo-wrapper {
  width: 22%;
  display: inline-flex;
  justify-content: center;
}

.sv-logo-wrapper img {
  width: 100%;
  border-radius: 0.1rem;
}

.sv-projects-box {
  position: relative;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #bbb transparent;
}

.sv-projects-box::-webkit-scrollbar {
  width: 6px;
}

.sv-projects-box::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 4px;
}

.sv-projects-box::after {
  content: '';
  position: sticky;
  bottom: 0;
  display: block;
  height: 28px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85));
  pointer-events: none;
}

.sv-project-box {
  position: relative;
  width: 100%;
  height: 72px;
  overflow: hidden;
  border-bottom: 1px solid #bbb;
  border-top: 1px solid #bbb;
  border-right: 1px solid #bbb;
  border-left: 5px solid #ccc;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  margin: 6px 0;
  padding: 8px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background: #fff;
  text-align: left;
  font: inherit;
  box-sizing: border-box;
}

.sv-project-box:hover {
  background: #f5f5f5;
}

.sv-unverified-solution {
  opacity: 0.8;
}

.sv-official-solution {
  background: #e6f5f5;
}

.sv-project-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.sv-project-meta {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #777;
  margin-top: 4px;
}

.sv-verification-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.sv-verification-dot-human {
  background: #198754;
}

.sv-verification-dot-ai {
  background: #0d6efd;
}

.sv-verification-dot-unverified {
  background: #6c757d;
  opacity: 0.7;
}

.sv-solutions-stats {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  color: #888;
  margin: 6px 0 4px 6px;
}

.sv-solutions-stats i {
  margin-right: 4px;
}

.sv-back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.sv-back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sv-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sv-modal[hidden] {
  display: none;
}

.sv-modal-dialog {
  position: relative;
  width: min(90vw, 1100px);
  max-height: 88vh;
  overflow-y: auto;
}

.sv-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #475569;
  z-index: 2;
}

.sv-modal-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.sv-modal-card {
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-left: 10px solid var(--accent);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sv-modal-card-body {
  padding: 20px;
}

.sv-modal-card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}

.sv-modal-meta {
  color: #8b8b8b;
}

.sv-modal-desc,
.sv-modal-card-body p {
  font-size: 13px;
  color: #222;
  margin-bottom: 8px;
}

.sv-modal-link a {
  color: var(--accent);
  text-decoration: none;
}

.sv-modal-orgs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}

.sv-org-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 12px;
}

.sv-verification-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  background: #fff;
  border: 1px solid #6c757d;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.sv-related-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  padding: 0 6px;
  color: #fff;
  font-size: 11px;
  line-height: 1.6;
}

.sv-footer-note {
  margin: 8px 0 0;
  padding: 12px 4px 0;
  color: var(--muted);
  font-size: 12px;
}

.sv-empty-state {
  width: 100%;
  min-height: 180px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  background: #fff;
}

.sv-empty-state i {
  font-size: 28px;
  opacity: 0.5;
}

@media (max-width: 900px) {
  .sv-card-wrapper {
    width: 240px;
  }
}

@media (max-width: 600px) {
  .sv-filter-bar {
    padding: 14px;
  }

  .sv-card-section {
    justify-content: center;
  }

  .sv-card-wrapper {
    width: min(88vw, 340px);
  }

  .sv-card-image {
    height: 14em;
  }

  .sv-card-text {
    min-height: 16em;
  }

  .sv-card-desc {
    font-size: 13px;
    font-weight: 500;
  }

  .sv-card-side {
    width: 42px;
  }

  .sv-modal {
    padding: 12px;
  }

  .sv-modal-content {
    padding: 20px;
  }
}

/* =====================================================
   SUMMARY VIEW
   ===================================================== */

/* --- KPI grid --- */
.sum-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.sum-kpi-card {
  background: var(--card);
  border-radius: 16px;
  padding: 30px 20px 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Accent bar at top */
.sum-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 16px 16px 0 0;
}

.sum-kpi-icon {
  font-size: 24px;
  color: rgba(0, 0, 0, 0.04);
  opacity: 0.18;
  position: absolute;
  top: 16px;
  right: 18px;
}

.sum-kpi-value {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: rgba(0, 0, 0, 0.8);
  margin: 6px 0 10px;
  letter-spacing: -2px;
}

.sum-kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(0, 0, 0, 0.8);
  font-weight: 700;
}

/* --- Sector colour legend --- */
.sum-chart-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 10px 16px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  justify-content: center;
}

.sum-filter-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  white-space: nowrap;
}

.sum-groupby-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sum-groupby-btn {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sum-groupby-btn:hover {
  border-color: #008083;
  color: #008083;
}

.sum-groupby-btn.active {
  background: #008083;
  border-color: #008083;
  color: #fff;
}

.sum-sector-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 16px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.sum-legend-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  font-weight: 700;
  margin-right: 4px;
}

.sum-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.sum-legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* --- Main charts layout (pie left, right col) --- */
.sum-charts-main {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.sum-charts-pies {
  grid-template-columns: 1fr 1fr;
}

/* Pie chart cards: fixed height, flex column so chart + legend share space */
.chart-card:has(#sum-pie-chart),
.chart-card:has(#sum-challenges-pie-chart) {
  height: 400px;
  display: flex;
  flex-direction: column;
}

/* Chart container fills remaining space after the title */
#sum-pie-chart,
#sum-challenges-pie-chart {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* SVG grows into available space; preserveAspectRatio keeps the pie square */
#sum-pie-chart svg,
#sum-challenges-pie-chart svg {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}

/* Legend stays at the bottom, never grows */
#sum-pie-chart .sum-pie-legend,
#sum-challenges-pie-chart .sum-pie-legend {
  flex-shrink: 0;
}

/* --- Pie chart legend --- */
.sum-pie-legend {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}

.sum-pie-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.sum-pie-legend-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sum-pie-legend-label {
  flex: 1 1 0;
  min-width: 0;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.sum-pie-legend-value {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.sum-right-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Bottom charts (AI cap only, full width) --- */
.sum-bottom-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
}

/* --- Star combinations row --- */
.sum-star-combos-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
  align-items: start;
}

/* --- Star combos axis header --- */
.sum-star-combos-axis {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 8px;
  padding-left: 2px;
}

/* --- Stars + Impact distribution row --- */
.sum-stars-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
  align-items: start;
}

/* --- Stars scorecard 2-col variant --- */
.stars-scorecard-2col {
  grid-template-columns: repeat(2, 1fr);
}

/* --- Chart header row (title + filter) --- */
.sum-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.sum-chart-header h3 {
  margin: 0;
}

.sum-filter-sm {
  min-width: 130px !important;
  font-size: 11px !important;
  padding: 5px 10px !important;
}

/* --- Horizontal bar rows --- */
.sum-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  min-height: 21px;
}

.sum-bar-label {
  min-width: 130px;
  max-width: 180px;
  width: 180px;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}

.sum-bar-track {
  flex: 1;
  height: 18px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}

.sum-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
  min-width: 2px;
}

.sum-bar-value {
  min-width: 42px;
  font-size: 12px;
  font-weight: 700;
}

/* --- AI capabilities comparison: grouped blocks --- */
.sum-aicap-group {
  margin-bottom: 18px;
}

.sum-aicap-group-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--border);
}

.sum-bar-row-sm {
  margin-bottom: 4px;
  min-height: 20px;
}

.sum-bar-label-sm {
  min-width: 130px !important;
  width: 130px !important;
  font-size: 11px !important;
}

/* --- Stars scorecard (2-row × 3-col display) --- */
.stars-scorecard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 8px 0;
}

.stars-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.stars-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stars-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.stars-sep {
  font-size: 20px;
  font-weight: 400;
  opacity: 0.5;
}

.stars-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* =====================================================
   HELP BUTTON + SLIDE-IN PANEL (all views)
   ===================================================== */

/* --- Feedback tab (vertical, right side) --- */
.feedback-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 20px 10px;
  background: #0ea5e9;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-decoration: none;
  border-radius: 10px 0 0 10px;
  box-shadow: -4px 0 18px rgba(14, 165, 233, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 890;
  transition: padding 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.feedback-tab i {
  font-size: 15px;
}

.feedback-tab:hover {
  background: #0284c7;
  padding-right: 14px;
  box-shadow: -6px 0 22px rgba(14, 165, 233, 0.5);
  color: #fff;
}

.help-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 128, 131, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.help-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(0, 128, 131, 0.55);
}

.help-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 1000;
}

.help-overlay.active {
  display: block;
}

.help-panel {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  height: 100vh;
  background: var(--card);
  box-shadow: -6px 0 32px rgba(0, 0, 0, 0.14);
  z-index: 1001;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 28px 28px 40px;
}

.help-panel.open {
  right: 0;
}

.help-panel-icon {
  font-size: 40px;
  color: var(--accent);
  opacity: 0.15;
  margin-bottom: 8px;
}

.help-panel h2 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.help-panel-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  color: var(--muted);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.help-panel-close:hover {
  background: #e5e7eb;
  color: var(--ink);
}

.help-panel-body h2 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin: 24px 0 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.help-panel-body h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 18px 0 5px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.help-panel-body h3 i {
  color: var(--accent);
  font-size: 13px;
}

.help-panel-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 4px;
}

/* =====================================================
   LANDING PAGE
   ===================================================== */

/* --- Hero splash: full-bleed photo background with stacked CTAs --- */
.landing-hero {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 72px 24px 32px;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.45)), url('misc/glass-building.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.landing-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.landing-hero-title {
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  max-width: 600px;
  margin: 0;
}

.landing-hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 260px;
}

.landing-hero-btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.95);
  justify-content: center;
  padding: 16px 22px;
  font-size: 17px;
  font-weight: 700;
}

.landing-hero-btn:hover {
  background: #fff;
}

.landing-hero-kpis {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

/* --- Generic vertical-rhythm wrapper for the non-hero sections --- */
.landing-section {
  padding-top: 35px;
  padding-bottom: 35px;
}

.landing-intro-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto 32px;
  text-align: center;
}

/* --- Shared 3-column card grid (audience cards + workflow cards) --- */
.landing-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.landing-audience-card,
.landing-workflow-card {
  padding: 28px 24px;
  text-align: center;
}

.landing-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.landing-workflow-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.landing-audience-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* --- Workflow media placeholders (real video/gif to be added later) --- */
.landing-media-placeholder {
  aspect-ratio: 16 / 9;
  border: 2px dashed var(--border);
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
}

.landing-media-placeholder i {
  font-size: 36px;
  color: var(--muted);
  opacity: 0.4;
}

.landing-media-caption {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  margin: 0;
}

/* --- Standalone CTA buttons (Div 3 + Div 4) --- */
.landing-cta-wrap {
  text-align: center;
  margin-top: 28px;
}

.landing-cta-button {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.landing-cta-button:hover {
  background: #006c6e;
}

/* --- Responsive tweaks for narrow screens --- */
@media (max-width: 960px) {
  .sum-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sum-charts-main {
    grid-template-columns: 1fr;
  }

  .sum-bottom-charts,
  .sum-stars-row,
  .sum-star-combos-row {
    grid-template-columns: 1fr;
  }

  .help-panel {
    width: 100%;
    right: -100%;
  }

  .landing-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .landing-hero-title {
    max-width: 100%;
  }

  .landing-hero-ctas {
    width: 100%;
  }

  .landing-3col-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .summary-card .value {
    font-size: 24px;
  }

  .sum-kpi-value {
    font-size: 40px;
  }

  .sum-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .landing-hero {
    padding: 48px 16px 28px;
  }

  .landing-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  th,
  td {
    padding: 10px;
  }

  .view-tab {
    padding: 12px 12px;
    font-size: 13px;
  }
}

/* --- Footer logos --- */
footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  margin-top: 0;
  flex-shrink: 0;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.footer-logos img {
  height: 50px;
  width: auto;
  object-fit: contain;
}