/* All use cases: one directory of every CloudAEye use case, grouped by
   product and section, with a small outline icon on each card. */
.uc-page main {
  color: var(--ink);
}
.uc-page .uc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Hero */
.uc-hero {
  padding: 64px 0 44px;
  text-align: center;
}
.uc-label {
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
body[data-site-family].uc-page main .uc-hero h1 {
  max-width: 20ch;
  margin: 0 auto;
  text-wrap: balance;
}
.uc-page .uc-lede {
  max-width: 62ch;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: var(--site-lede-size);
  line-height: 1.6;
  text-wrap: pretty;
}
.uc-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
}
.uc-page .uc-actions .cx-btn svg,
.uc-page .uc-link svg {
  width: 16px;
  height: 16px;
}
.uc-page .uc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--blue-dark);
  font-size: var(--site-button-size);
  font-weight: 500;
  text-decoration: none;
}
.uc-page .uc-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.uc-works {
  margin: 44px auto 0;
}
.uc-page .uc-works > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.uc-works ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.uc-works li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}
.uc-works img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Product and section groups */
.uc-category {
  padding: 72px 0 16px;
  scroll-margin-top: 56px;
}
.uc-category + .uc-category {
  border-top: 1px solid var(--line);
}
.uc-category-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 40px;
  margin-bottom: 40px;
}
body[data-site-family].uc-page main .uc-category-head h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
}
.uc-page .uc-category-head p {
  max-width: 64ch;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}
.uc-page .uc-category-head .uc-syntax {
  max-width: none;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.uc-syntax code {
  color: var(--ink);
  font-size: 13px;
}
.uc-group {
  padding-bottom: 52px;
  scroll-margin-top: 56px;
}
.uc-group-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 18px;
}
body[data-site-family].uc-page main .uc-group-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}
.uc-page .uc-group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Cards */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.uc-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition:
    border-color 160ms,
    box-shadow 160ms,
    transform 160ms;
}
.uc-card:hover {
  border-color: #b7cde4;
  box-shadow: 0 14px 30px -20px rgb(20 40 60 / 40%);
  transform: translateY(-2px);
}
.uc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.uc-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
}
.uc-page .uc-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}
.uc-page .uc-cmd {
  min-width: 0;
  overflow: hidden;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-site-family].uc-page main .uc-card h4 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.uc-page .uc-card h4 a {
  color: inherit;
  text-decoration: none;
}
/* The title link covers the whole card, so every card is one tab stop. */
.uc-page .uc-card h4 a::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  content: "";
}
.uc-page .uc-card h4 a:focus-visible {
  outline: none !important;
}
.uc-page .uc-card h4 a:focus-visible::after {
  border-radius: 8px;
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.uc-page .uc-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.uc-points {
  display: grid;
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.uc-page .uc-points li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
.uc-points li::before {
  position: absolute;
  top: 2px;
  left: 0;
  width: 16px;
  height: 16px;
  background: var(--lime-dark);
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.uc-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.uc-page .uc-more svg {
  width: 15px;
  height: 15px;
  transition: transform 160ms;
}
.uc-card:hover .uc-more {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.uc-card:hover .uc-more svg {
  transform: translateX(3px);
}

/* A card with its own links instead of one card-wide link (Pre-commit Flow
   links to the Claude Code and Codex pages). */
.uc-card-links:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}
.uc-card-links:hover .uc-more {
  text-decoration: none;
}
.uc-card-links:hover .uc-more svg {
  transform: none;
}
.uc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  margin-top: auto;
}
.uc-page .uc-links .uc-more {
  margin-top: 0;
  text-decoration: none;
}
.uc-page .uc-links .uc-more img {
  width: 16px;
  height: 16px;
}
.uc-page .uc-links .uc-more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.uc-page .uc-links .uc-more:hover svg {
  transform: translateX(3px);
}

/* Featured card: Review Intelligence (/ultrareview) */
.uc-grid > .uc-feature {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 24px;
  border-color: #cfe0f3;
  background: #eaf2fb;
}
.uc-feature-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.uc-feature .uc-icon {
  border-color: #cfe0f3;
  background: #fff;
  color: var(--blue-dark);
}
.uc-page .uc-feature .uc-cmd {
  background: #fff;
}
body[data-site-family].uc-page main .uc-feature h4 {
  font-size: 22px;
}
.uc-run {
  align-self: stretch;
  min-width: 0;
  padding: 16px 16px 14px;
  border: 1px solid #d7e5f4;
  border-radius: 6px;
  background: #fff;
}
.uc-page .uc-run > p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.uc-run ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.uc-page .uc-run li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}
.uc-page .uc-run li svg {
  width: 14px;
  height: 14px;
  color: var(--blue-dark);
}
.uc-outcomes {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.uc-outcome {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 10px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #eaf6ee;
  color: #1d5f31;
}
.uc-outcome-human {
  background: #fbf3e2;
  color: #6f4f12;
}
.uc-page .uc-outcome svg {
  width: 18px;
  height: 18px;
  grid-row: span 2;
}
.uc-outcome strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.uc-outcome small {
  color: inherit;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.85;
}

/* Closing call to action */
.uc-cta {
  padding: 80px 0 96px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}
body[data-site-family].uc-page main .uc-cta h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
}
.uc-page .uc-cta p {
  max-width: 56ch;
  margin: 14px auto 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}
.uc-cta p code {
  color: var(--ink);
  font-size: 15px;
}

@media (max-width: 1000px) {
  .uc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .uc-category-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}
@media (max-width: 720px) {
  .uc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .uc-grid > .uc-feature {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .uc-hero {
    padding: 36px 0 32px;
  }
  .uc-works {
    margin-top: 32px;
  }
  .uc-works ul {
    gap: 10px 16px;
  }
  .uc-category {
    padding-top: 48px;
  }
  .uc-category-head {
    margin-bottom: 28px;
  }
  body[data-site-family].uc-page main :is(.uc-category-head h2, .uc-cta h2) {
    font-size: 28px;
  }
  .uc-group {
    padding-bottom: 40px;
  }
  .uc-card {
    padding: 20px 18px 18px;
  }
  .uc-cta {
    padding: 56px 0 64px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .uc-card,
  .uc-page .uc-more svg {
    transition: none;
  }
  .uc-card:hover,
  .uc-card:hover .uc-more svg {
    transform: none;
  }
}
