/* =============================================================
   use-cases.css — Tabbed use cases section:
   Railway, Civil Engineering, Housebuilding
   ============================================================= */

.use-cases {
  background: var(--stone-50);
}

/* ── Tab bar ──────────────────────────────────────────────────── */
.uc-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 44px;
}

.uc-tab {
  flex: 1;
  padding: 16px 20px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-300);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-right: 1px solid var(--stone-200);
  text-align: center;
  line-height: 1.3;
}

.uc-tab:last-child {
  border-right: none;
}

.uc-tab:hover {
  background: var(--stone-50);
  color: var(--slate-800);
}

.uc-tab.active {
  background: var(--slate-900);
  color: #fff;
}

/* ── Panel visibility ─────────────────────────────────────────── */
.uc-panel {
  display: block;
}

.uc-panel.hidden {
  display: none;
}

/* ── Panel inner grid ─────────────────────────────────────────── */
.uc-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ── Content column ───────────────────────────────────────────── */
.uc-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-800);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  text-transform: uppercase;
  font-family: var(--f-mono);
}

.uc-kicker-icon {
  font-size: 20px;
}

.uc-content h3 {
  font-size: clamp(20px, 2.4vw, 28px);
  margin-bottom: 16px;
}

.uc-content p {
  font-size: 15px;
  color: var(--slate-500);
  margin-bottom: 14px;
  max-width: 52ch;
}

/* ── Feature list ─────────────────────────────────────────────── */
.uc-feats {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 26px 0;
}

.uc-feat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.uc-feat-ico {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.uc-feat-ico svg {
  width: 18px;
  height: 18px;
}

.uc-feat-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.uc-feat-desc {
  font-size: 13px;
  color: var(--slate-300);
  line-height: 1.55;
}

/* ── Quote block ──────────────────────────────────────────────── */
.uc-qquote {
  border-left: 3px solid var(--bronze);
  padding: 13px 18px;
  background: var(--bronze-bg);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.uc-qquote-text {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  color: var(--slate-800);
  line-height: 1.55;
  margin-bottom: 8px;
}

.uc-qquote-attr {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze);
}

/* ── Scenario card (right column) ────────────────────────────── */
.uc-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  position: sticky;
  top: 96px;
  border: 1px solid var(--stone-100);
}

.uc-card-head {
  background: var(--slate-900);
  padding: 13px 18px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.uc-card-body {
  padding: 6px 18px 14px;
}

.uc-r {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--stone-100);
}

.uc-r:last-child {
  border-bottom: none;
}

.uc-r-k {
  font-size: 12px;
  color: var(--slate-300);
  font-weight: 500;
  flex-shrink: 0;
}

.uc-r-v {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}

/* Badge variants */
.uc-b {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}

.uc-b.g { background: var(--green-l);   color: var(--green); }
.uc-b.a { background: var(--bronze-bg); color: var(--bronze); }
.uc-b.r { background: var(--red-l);     color: var(--red); }

/* ── Cert strip at bottom of scenario card ────────────────────── */
.uc-certs {
  border-top: 1px solid var(--stone-100);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stone-100);
}

.uc-cert {
  background: var(--stone-50);
  padding: 13px 12px;
}

.uc-cert-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--slate-300);
  margin-bottom: 4px;
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
}

.uc-cert-val {
  font-size: 11px;
  font-weight: 700;
}

.uc-cert-val.g { color: var(--green); }
.uc-cert-val.a { color: var(--bronze); }
.uc-cert-val.r { color: var(--red); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  .uc-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .uc-card {
    position: static;
  }
  .uc-certs {
    grid-template-columns: 1fr;
  }
  .uc-tabs {
    flex-direction: column;
  }
  .uc-tab {
    border-right: none;
    border-bottom: 1px solid var(--stone-200);
  }
  .uc-tab:last-child {
    border-bottom: none;
  }
}
