/* Use Cases catalog — industry templates */

.uc-page {
  --uc-ink: #0a0a0a;
  --uc-hero-text: #f4f7fb;
  --uc-hero-muted: #c8d4e0;
  --uc-glow: #5eb3ff;
  --uc-card-shadow: 0 2px 12px rgba(15, 20, 25, 0.07);
  --uc-card-shadow-hover: 0 12px 32px rgba(0, 87, 184, 0.12);
  --uc-body-muted: #3d4652;
  --uc-border-strong: #94a3b8;
}

/* —— Hero —— */
.uc-hero {
  position: relative;
  overflow: hidden;
  background: var(--uc-ink);
  color: var(--uc-hero-text);
  padding: clamp(2rem, 4vw, 3rem) 1.5rem clamp(2.25rem, 4vw, 3.25rem);
  border-bottom: 1px solid #1f2937;
}

.uc-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.uc-hero-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  width: min(720px, 110vw);
  height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(94, 179, 255, 0.22) 0%, transparent 70%);
}

.uc-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(94, 179, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 179, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 90%);
}

.uc-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
}

.uc-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--uc-glow);
  text-decoration: none;
}

.uc-back:hover {
  color: #fff;
  text-decoration: underline;
}

.uc-eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--uc-glow);
}

.uc-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #fff;
}

.uc-lead {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.6;
  color: var(--uc-hero-muted);
}

.uc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.uc-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.uc-stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.uc-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--uc-hero-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* —— Main layout —— */
.uc-main {
  flex: 1;
  max-width: 52rem;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

#useCasesStatus {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.uc-seo-industries {
  margin: 0 0 2rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.uc-seo-industries h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.uc-seo-industry-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.45rem 1rem;
}

.uc-seo-industry-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}

.uc-seo-industry-list a:hover,
.uc-seo-industry-list a:focus-visible {
  color: var(--accent, #7ec8ff);
  text-decoration: underline;
}

/* —— Filters —— */
.uc-filters {
  background: var(--surface);
  border: 1px solid var(--uc-border-strong);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--uc-card-shadow);
}

.uc-filters-inner {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.uc-filter-row-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .uc-filter-row-top {
    grid-template-columns: 1fr;
  }
}

.uc-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.uc-filter-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.uc-filter-field select,
.uc-filter-field input[type="search"] {
  font: inherit;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--uc-border-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  width: 100%;
}

.uc-filter-field select:focus-visible,
.uc-filter-field input[type="search"]:focus-visible {
  border-color: var(--accent);
}

.uc-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.uc-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.uc-filter-chip {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--uc-border-strong);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.uc-filter-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.uc-filter-chip-active,
.uc-tag-chip.uc-tag-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.uc-tag-chip {
  font: inherit;
  cursor: pointer;
}

.uc-tag-chip:hover {
  filter: brightness(0.95);
}

.uc-filter-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.uc-filter-count {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.uc-filter-clear {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--uc-border-strong);
  background: var(--surface);
  color: var(--accent-text);
  cursor: pointer;
}

.uc-filter-clear:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* —— Industry sections —— */
.uc-industry-section {
  margin-bottom: 2.25rem;
}

.uc-industry-section h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-text);
  border-bottom: 2px solid var(--accent-soft);
}

.uc-industry-section h2::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: var(--accent);
}

.uc-industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

/* —— Cards —— */
.uc-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--uc-border-strong);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--uc-card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.uc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--uc-card-shadow-hover);
  border-color: rgba(0, 87, 184, 0.45);
}

.uc-card-featured {
  border-color: var(--accent);
  border-width: 2px;
}

.uc-card-tier {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-text);
}

.uc-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}

.uc-card-summary {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--uc-body-muted);
}

.uc-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.uc-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--tip-border);
}

.uc-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.uc-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.uc-card-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.uc-card-link-secondary {
  font-weight: 600;
  color: var(--uc-body-muted);
}

span.uc-card-link-secondary {
  text-decoration: none;
  cursor: default;
}

span.uc-card-link-secondary:hover {
  color: var(--uc-body-muted);
  text-decoration: none;
}

.uc-card-link-locked,
.uc-spotlight-cta-locked {
  color: #0d7a4a;
}

.uc-card-link-locked:hover,
.uc-spotlight-cta-locked:hover {
  color: #065f37;
}

.uc-card-hidden {
  display: none !important;
}

.uc-section-hidden {
  display: none !important;
}

.uc-card-highlight {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* —— Featured spotlight —— */
.uc-spotlight {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 1.75rem 1.85rem;
  margin-bottom: 2rem;
  box-shadow: var(--uc-card-shadow);
}

.uc-spotlight-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.uc-spotlight h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.uc-spotlight-meta {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--uc-body-muted);
}

.uc-spotlight p {
  margin: 0 0 1rem;
  color: var(--text);
  line-height: 1.6;
}

.uc-spotlight p:last-child {
  margin-bottom: 0;
}

.uc-callout {
  background: var(--tip-bg);
  border: 1px solid var(--tip-border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  color: var(--text);
}

.uc-callout strong {
  color: var(--accent-text);
}

.uc-spotlight-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.uc-spotlight-cta:hover {
  text-decoration: underline;
}

/* —— Tags legend —— */
.uc-legend {
  background: var(--surface);
  border: 1px solid var(--uc-border-strong);
  border-radius: 14px;
  padding: 1.5rem 1.65rem;
  margin-bottom: 2rem;
  box-shadow: var(--uc-card-shadow);
}

.uc-legend h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.uc-legend > p {
  margin: 0 0 1rem;
  color: var(--uc-body-muted);
}

.uc-legend-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.uc-legend-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1rem;
  border-left: 3px solid var(--accent-soft);
  margin-bottom: 0.35rem;
  color: var(--text);
  line-height: 1.55;
}

.uc-legend-list li + li {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.uc-legend-list strong {
  color: var(--accent-text);
}

.uc-legend-foot {
  margin: 0;
  font-size: 0.92rem;
  color: var(--uc-body-muted);
}

.uc-legend-foot a {
  color: var(--accent);
  font-weight: 600;
}

/* —— CTA band —— */
.uc-cta {
  text-align: center;
  background: linear-gradient(135deg, #003366 0%, #0057b8 55%, #0066cc 100%);
  color: #fff;
  border-radius: 16px;
  padding: clamp(1.75rem, 4vw, 2.5rem) 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 51, 102, 0.22);
}

.uc-cta h2 {
  margin: 0 auto 0.55rem;
  max-width: 26rem;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.uc-cta p {
  margin: 0 auto 1.35rem;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.55;
}

.uc-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: var(--accent-text);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.8rem 1.45rem;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid #fff;
  transition: background 0.2s ease, color 0.2s ease;
}

.uc-cta-btn:hover {
  background: transparent;
  color: #fff;
}

.uc-cta-btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  .uc-card:hover {
    transform: none;
  }
}

/* —— High contrast —— */
html[data-contrast="high"] .uc-page {
  --uc-body-muted: #000;
  --uc-border-strong: #000;
}

html[data-contrast="high"] .uc-hero {
  background: #000;
  border-bottom-color: #fff;
}

html[data-contrast="high"] .uc-eyebrow,
html[data-contrast="high"] .uc-back {
  color: #ffff00;
}

html[data-contrast="high"] .uc-card,
html[data-contrast="high"] .uc-filters,
html[data-contrast="high"] .uc-legend,
html[data-contrast="high"] .uc-spotlight {
  border: 2px solid #000;
}

html[data-contrast="high"] .uc-card:hover {
  transform: none;
  box-shadow: none;
}

html[data-contrast="high"] .uc-filter-chip-active,
html[data-contrast="high"] .uc-tag-chip.uc-tag-active {
  background: #000;
  color: #fff;
  border-color: #000;
}

html[data-contrast="high"] .uc-cta {
  background: #000;
  border: 2px solid #fff;
}

html[data-contrast="high"] .uc-cta-btn {
  background: #fff;
  color: #000;
  border-color: #fff;
}
