/* use-cases.css — structural/visual only. Typography, colours, margins → Bootstrap + common.css in HTML. */

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* LISTING — Hero */
.uc-hero-label {
  letter-spacing: 0.12em;
}
.uc-hero-headline {
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 780px;
}
.uc-hero-sub {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--primaryTextColor);
  line-height: 1.7;
  max-width: 600px;
}

/* LISTING — Card grid */
.uc-grid {
  border-top: 1px solid var(--layoutBorderColor);
  border-left: 1px solid var(--layoutBorderColor);
}
.uc-grid-cell {
  border-right: 1px solid var(--layoutBorderColor);
  border-bottom: 1px solid var(--layoutBorderColor);
}
.uc-card {
  flex-direction: column;
  padding: 36px 28px 32px;
  transition: background 0.25s ease;
}
.uc-card:hover {
  background: rgba(246, 99, 32, 0.04);
}
.uc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--secondaryMastercolorLite);
}
.uc-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}
.uc-card-num {
  letter-spacing: 0.08em;
}
.uc-card-name {
  font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.uc-card-desc {
  line-height: 1.65;
  color: var(--primaryTextColor);
  flex-grow: 1;
}
.uc-card-arrow {
  gap: 6px;
  margin-top: auto;
}
.uc-card-arrow svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}
.uc-card:hover .uc-card-arrow svg {
  transform: translate(3px, -3px);
}

/* LISTING — Why Pixl */
.uc-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--layoutBorderColor);
}
@media (max-width: 767px) {
  .uc-why-grid {
    grid-template-columns: 1fr;
  }
}
.uc-why-item {
  padding: 36px 28px;
  border-right: 1px solid var(--layoutBorderColor);
  border-bottom: 1px solid var(--layoutBorderColor);
}
.uc-why-num {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.uc-why-num sup {
  font-size: 20px;
  top: -10px;
  position: relative;
}
.uc-why-title {
  letter-spacing: -0.01em;
}
.uc-why-desc {
  line-height: 1.65;
  color: var(--primaryTextColor);
  margin: 0;
}

/* INNER — Hero */
.uc-hero {
  position: relative;
  background: var(--landingBackground);
  overflow: hidden;
  padding: 70px 0;
}
.uc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 55% at 50% 38%,
    rgba(246, 99, 32, 0.08) 0%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
}
.uc-lines {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}
.uc-lines-left,
.uc-lines-right {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.uc-lines-right {
  transform: scaleX(-1);
}
.uc-lines-left svg,
.uc-lines-right svg {
  display: block;
  max-width: 50vw;
}
@media (max-width: 768px) {
  .uc-lines-left,
  .uc-lines-right {
    display: none;
  }
}
.uc-line-trail {
  fill: none;
  stroke: var(--secondaryMastercolor);
  stroke-width: 1.5;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: ucTrailDraw 2.4s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
  opacity: 0.65;
}
.uc-line-trail--b {
  animation-delay: 0.7s;
  animation-duration: 2s;
}
@keyframes ucTrailDraw {
  to {
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .uc-line-trail {
    animation: none;
    stroke-dashoffset: 0;
  }
}
.uc-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* INNER — Badge / headline / sub */
.uc-badge {
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  background: var(--secondaryMastercolorLite);
  border: 1px solid rgba(246, 99, 32, 0.28);
  border-radius: 100px;
  padding: 6px 16px;
}
.uc-headline {
  font-size: clamp(28px, 4.5vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 820px;
  margin-bottom: 20px;
}
.uc-sub {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--primaryTextColor);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 28px;
}

/* INNER — Tags row */
.uc-tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.uc-tags-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--layoutBorderColor));
}
.uc-tags-row .uc-tags-line:last-child {
  background: linear-gradient(270deg, transparent, var(--layoutBorderColor));
}
.uc-tags-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.uc-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--layoutBorderColor);
  border-radius: 100px;
  padding: 5px 12px;
}
.uc-tag svg {
  flex-shrink: 0;
}

/* INNER — Actions */
.uc-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

/* INNER — Stats strip */
.uc-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  border: 1px solid var(--layoutBorderColor);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}
.uc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  flex: 1 1 0;
}
.uc-stat strong {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.uc-stat strong sup {
  font-size: 0.5em;
  top: -6px;
  position: relative;
}
.uc-stat span {
  font-size: 11px;
  color: var(--primaryTextColor);
  margin-top: 4px;
  text-align: center;
}
.uc-stat-div {
  width: 1px;
  background: var(--layoutBorderColor);
  flex-shrink: 0;
  align-self: stretch;
}
@media (max-width: 480px) {
  .uc-stats {
    flex-direction: column;
  }
  .uc-stat-div {
    width: 100%;
    height: 1px;
  }
}

/* INNER — Overview */

.uc-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 767px) {
  .uc-overview-grid {
    grid-template-columns: 1fr;
  }
}

.uc-overview-col {
  padding: 48px 40px;
}
.uc-overview-col:first-child {
  border-right: 1px solid var(--layoutBorderColor);
}

@media (max-width: 767px) {
  .uc-overview-col {
    padding: 32px 20px;
  }
  .uc-overview-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--layoutBorderColor);
  }
}

.uc-section-label {
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.uc-section-title {
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.uc-section-body {
  line-height: 1.75;
  color: var(--primaryTextColor);
  margin: 0;
}

.uc-check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.uc-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--primaryTextColor);
  margin-bottom: 8px;
}
.uc-check-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  background: var(--secondaryMastercolorLite);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8l2.5 2.5L12 5' stroke='%23f66320' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* INNER — Steps */

.uc-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--layoutBorderColor);
}

@media (max-width: 767px) {
  .uc-steps {
    grid-template-columns: 1fr;
  }
}

.uc-step {
  padding: 36px 28px;
  border-right: 1px solid var(--layoutBorderColor);
  border-bottom: 1px solid var(--layoutBorderColor);
  position: relative;
}

.uc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--secondaryMastercolorLite);
  color: var(--secondaryMastercolor);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Connector arrow between steps (desktop) */
.uc-steps .uc-step::after {
  content: "→";
  position: absolute;
  top: 34px;
  right: -13px;
  font-size: 18px;
  color: var(--layoutBorderColor);
  z-index: 2;
  font-weight: 300;
  background: #fff;
  line-height: 36px;
  width: 26px;
  text-align: center;
}
.uc-steps .uc-step:last-child::after {
  content: none;
}
@media (max-width: 767px) {
  .uc-step::after {
    display: none;
  }
}

.uc-step-title {
  letter-spacing: -0.01em;
}

.uc-step-desc {
  line-height: 1.65;
  color: var(--primaryTextColor);
  margin: 0;
}

/* INNER — Capabilities */

.uc-caps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-left: 1px solid var(--layoutBorderColor);
}

@media (min-width: 992px) {
  .uc-caps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 575px) {
  .uc-caps-grid {
    grid-template-columns: 1fr;
  }
}

.uc-cap-card {
  padding: 32px 24px;
  border-right: 1px solid var(--layoutBorderColor);
  border-bottom: 1px solid var(--layoutBorderColor);
  transition: background 0.25s ease;
}
.uc-cap-card:hover {
  background: rgba(246, 99, 32, 0.03);
}

.uc-cap-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--secondaryMastercolorLite);
  margin-bottom: 14px;
}
.uc-cap-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.uc-cap-title {
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.uc-cap-desc {
  line-height: 1.6;
  color: var(--primaryTextColor);
  margin: 0;
}

/* INNER — Related / CTA / Breadcrumb */

.uc-related-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.uc-related-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: var(--black);
  border: 1.5px solid var(--layoutBorderColor);
  border-radius: 8px;
  padding: 10px 16px;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.uc-related-pill:hover {
  border-color: var(--secondaryMastercolor);
  color: var(--secondaryMastercolor);
  background: var(--secondaryMastercolorLite);
}
.uc-related-pill svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
}

.uc-cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .uc-cta-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

.uc-cta-title {
  font-size: clamp(22px, 2.5vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  max-width: 560px;
}

.uc-cta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.uc-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  letter-spacing: 0.05em;
}
.uc-breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.uc-breadcrumb .uc-breadcrumb-sep {
  opacity: 0.4;
}
.uc-breadcrumb .uc-breadcrumb-current {
  color: var(--secondaryMastercolor);
}

/* ── HOW IT WORKS — Premium step cards ─────────────────────── */
.hiw-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 767px) {
  .hiw-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.hiw-card {
  background: #fff;
  border: 1px solid var(--layoutBorderColor);
  border-radius: 16px;
  padding: 20px 20px 20px;
  position: relative;
  overflow: hidden;
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease;
}
.hiw-card:hover {
  box-shadow: 0 16px 56px rgba(246, 99, 32, 0.12);
  border-color: rgba(246, 99, 32, 0.35);
  transform: translateY(-5px);
}
.hiw-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--secondaryMastercolor),
    rgba(246, 99, 32, 0.2)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hiw-card:hover::before {
  transform: scaleX(1);
}
.hiw-card-bg-num {
  position: absolute;
  bottom: -18px;
  right: 10px;
  font-size: 108px;
  font-weight: 900;
  line-height: 1;
  color: rgba(246, 99, 32, 0.065);
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
}
.hiw-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--secondaryMastercolorLite);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondaryMastercolor);
  margin-bottom: 20px;
  flex-shrink: 0;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.hiw-card:hover .hiw-icon {
  background: var(--secondaryMastercolor);
  color: #fff;
}
.hiw-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}
.hiw-step-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--secondaryMastercolor);
  margin-bottom: 10px;
}
.hiw-title {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #000;
  margin-bottom: 12px;
}
.hiw-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--primaryTextColor);
  margin: 0;
}

/* ── KEY CAPABILITIES — Premium bordered feature grid ────────── */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--layoutBorderColor);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 767px) {
  .cap-grid {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }
}
.cap-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 28px 24px;
  border-right: 1px solid var(--layoutBorderColor);
  border-bottom: 1px solid var(--layoutBorderColor);
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease;
}
.cap-item:nth-child(even) {
  border-right: none;
}
.cap-item:nth-last-child(-n + 2) {
  border-bottom: none;
}
@media (max-width: 767px) {
  .cap-item {
    border-right: none;
  }
  .cap-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--layoutBorderColor);
  }
  .cap-item:last-child {
    border-bottom: none;
  }
}
.cap-item:hover {
  background: var(--secondaryMastercolorLite);
}
.cap-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--secondaryMastercolor);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.cap-item:hover::before {
  transform: scaleY(1);
}
.cap-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: var(--secondaryMastercolorLite);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondaryMastercolor);
  transition:
    background 0.25s ease,
    color 0.25s ease;
  flex-shrink: 0;
}
.cap-item:hover .cap-icon {
  background: var(--secondaryMastercolor);
  color: #fff;
}
.cap-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.cap-content {
  flex: 1;
  min-width: 0;
}
.cap-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.cap-title {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.cap-chip {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondaryMastercolor);
  background: var(--secondaryMastercolorLite);
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.cap-item:hover .cap-chip {
  background: var(--secondaryMastercolor);
  color: #fff;
}
.cap-desc {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--primaryTextColor);
  margin: 0;
}
