/* ═══════════════════════════════════════════════════════════
   USE CASE TEMPLATE (Web 2.0 Figma redesign)
   Light-theme inner page used for /use-case/[slug]/ routes.
   Pairs with brand.css (nav + footer remain dark) and this
   sheet wraps page content in `.uc-page` to scope its palette.
   ═══════════════════════════════════════════════════════════ */

/* ── Local design tokens (mirrors Figma Web-2.0 vars) ── */
.uc-page {
  --uc-bg:               #E5E5E5;
  --uc-card-bg:          #dbdbdb;
  --uc-tag-bg:           #d4d4d4;
  --uc-text:             #282928;
  --uc-text-muted:       #404040;
  --uc-text-subtle:      #525252;
  --uc-border:           rgba(23, 23, 23, 0.5);
  --uc-border-soft:      rgba(23, 23, 23, 0.15);
  --uc-divider:          rgba(23, 23, 23, 0.25);
  --uc-primary:          #f2ff70;
  --uc-cta-bg:           #525252;
  --uc-cta-fg:           #f0f0f0;
  --uc-related-grad:     linear-gradient(124deg, #d4d4d4 43.5%, #f2ff70 211.8%);

  background: var(--uc-bg);
  color: var(--uc-text);
  font-family: var(--font-body);
  position: relative;
  z-index: 1;
}

/* Match body to template canvas (nav/footer keep their own backgrounds) */
body:has(.uc-page) {
  background: #E5E5E5;
}

/* ── Container / spacers ── */
.uc-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 60px;
}

.uc-section {
  padding: 56px 0 0;
}
/* Extra vertical rhythm between stacked template sections (steps, related, FAQ, CTA). */
.uc-section + .uc-section {
  padding-top: 88px;
}
.uc-section:last-child {
  padding-bottom: 80px;
}

/* ── HERO / HEADER ── */
.uc-hero {
  padding: 96px 0 64px;
}
.uc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 523px) minmax(0, 565px);
  gap: 108px;
  align-items: center;
}
.uc-breadcrumb-back {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--uc-text);
  text-decoration: underline;
  letter-spacing: 0.24px;
  margin-bottom: 46px;
  transition: color .2s;
}
.uc-breadcrumb-back:hover { color: var(--uc-text-muted); }

.uc-hero-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 36px;
  line-height: 39.6px;
  letter-spacing: -0.005em;
  color: var(--uc-text);
  max-width: 447px;
  margin-bottom: 15px;
}

.uc-hero-tags {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.uc-hero-tag {
  background: var(--uc-tag-bg);
  color: var(--uc-text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 0.24px;
  padding: 4.8px 6px;
  border-radius: 2.242px;
  display: inline-flex;
  align-items: center;
}

.uc-hero-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--uc-text);
  margin-bottom: 40px;
  max-width: 523px;
}

.uc-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Reuse homepage cascade CTAs (see brand.css `.hero-cta .btn-lime`); keep row left-aligned */
.uc-hero-ctas.hero-cta {
  margin-top: 0;
  margin-bottom: 0;
  justify-content: flex-start;
}
/* Light canvas: `.hero-cta--in-hero .btn-outline` defaults are for dark hero — match prior uc-btn-outline */
.uc-page .uc-hero-ctas.hero-cta--in-hero .btn-outline {
  border-color: #404040;
  color: #404040;
  background-color: transparent;
}
.uc-page .uc-hero-ctas.hero-cta--in-hero .btn-outline:hover {
  border-color: #333;
  color: #333;
  background: rgba(0, 0, 0, 0.04);
}
.uc-page .uc-hero-ctas.hero-cta--in-hero .btn-outline:active {
  color: #404040;
  border-color: #404040;
  background: transparent;
}
.uc-page .uc-hero-ctas.hero-cta--in-hero .btn-outline .btn-cascade-fill {
  background: #d4d4d4;
}
.uc-page .uc-hero-ctas.hero-cta--in-hero .btn-outline:active .btn-cascade-fill {
  background: var(--ds-secondary-press-bg);
}

/* Hero illustration */
.uc-hero-illustration {
  box-sizing: content-box;
  width: 100%;
  height: 318px;
  position: relative;
  overflow: hidden;
  border: 0.7px solid #171717;
}
.uc-hero-illustration .uc-hero-mockup {
  box-sizing: content-box;
  position: relative;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
}
.uc-hero-illustration .uc-hero-mockup-bg {
  box-sizing: content-box;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Healthcare PNG: mirror horizontally vs default SVG hero (template uses scaleX(-1) on mockup) */
.uc-hero-illustration:has(.uc-hero-mockup-bg[src*="hero-illustration-healthcare"]) .uc-hero-mockup {
  transform: scaleX(1);
}
/* Healthcare PNG has thin borders baked into the bottom/right edges — crop them out */
.uc-hero-illustration:has(.uc-hero-mockup-bg[src*="hero-illustration-healthcare"]) .uc-hero-mockup-bg {
  clip-path: inset(0 3px 3px 0);
}
/* General PNG: flip horizontally vs default SVG hero (template uses scaleX(-1) on mockup) */
.uc-hero-illustration:has(.uc-hero-mockup-bg[src*="hero-illustration-general"]) .uc-hero-mockup {
  transform: scaleX(1);
}
/* General PNG: no container border (image already includes its own browser-window chrome) */
.uc-hero-illustration:has(.uc-hero-mockup-bg[src*="hero-illustration-general"]) {
  border: none;
}
/* General PNG has thin dark borders baked into the bottom/right edges — crop them out */
.uc-hero-illustration:has(.uc-hero-mockup-bg[src*="hero-illustration-general"]) .uc-hero-mockup-bg {
  clip-path: inset(0 3px 3px 0);
}
/* Logistics PNG: flip horizontally vs default SVG hero (template uses scaleX(-1) on mockup) */
.uc-hero-illustration:has(.uc-hero-mockup-bg[src*="hero-illustration-logistics"]) .uc-hero-mockup {
  transform: scaleX(1);
}
/* Logistics PNG has thin dark borders baked into the bottom/right edges — crop them out */
.uc-hero-illustration:has(.uc-hero-mockup-bg[src*="hero-illustration-logistics"]) .uc-hero-mockup-bg {
  clip-path: inset(0 3px 3px 0);
}
/* Supply Chain PNG: flip horizontally vs default SVG hero (template uses scaleX(-1) on mockup) */
.uc-hero-illustration:has(.uc-hero-mockup-bg[src*="hero-illustration-supply-chain"]) .uc-hero-mockup {
  transform: scaleX(1);
}
/* Supply Chain PNG has thin dark borders baked into the top/right/bottom edges — crop them out */
.uc-hero-illustration:has(.uc-hero-mockup-bg[src*="hero-illustration-supply-chain"]) .uc-hero-mockup-bg {
  clip-path: inset(2px 3px 2px 0);
}

/* ── PROCESS DETAILS ── */
.uc-process {
  background: var(--uc-card-bg);
  border: 0.75px solid var(--uc-border);
  border-radius: 4px;
  padding: 40px;
}
.uc-card-heading {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 400;
  line-height: 28.8px;
  color: var(--uc-text);
  margin-bottom: 36px;
}
.uc-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 75px;
  align-items: start;
}
.uc-process-col-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.uc-process-col-title svg {
  width: 24px;
  height: 24px;
  color: var(--uc-text);
  flex-shrink: 0;
}
.uc-process-col-title h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 27px;
  color: var(--uc-text);
  margin: 0;
}
.uc-process-col-divider {
  height: 0;
  border-top: 0.75px solid var(--uc-border);
  margin-bottom: 16px;
}
.uc-process-list {
  list-style: disc;
  padding-left: 21px;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: #0a0a0a;
}
.uc-process-list li { margin-bottom: 4px; }

.uc-systems-logos {
  display: grid;
  grid-template-columns: repeat(6, 32px);
  column-gap: 16px;
  row-gap: 12px;
  margin-top: 4px;
  align-items: center;
  justify-content: start;
}
.uc-systems-logos .uc-system-logo {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.uc-systems-logos .uc-system-logo img,
.uc-systems-logos .uc-system-logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Cursor-following label on .uc-system-logo (pointer devices only; wired in page JS) */
.uc-system-logo-tag {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  padding: 5px 9px;
  border-radius: 4px;
  background: #f4f4f4;
  border: 1px solid rgba(23, 23, 23, 0.12);
  color: #404040;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.06s ease;
}
.uc-system-logo-tag.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ── SOLUTION STEPS ── */
.uc-steps-card {
  border-radius: 4px;
  padding: 40px 0;
  display: grid;
  grid-template-columns: 475px 1fr;
  gap: 96px;
  align-items: start;
}
.uc-steps-left {
  position: relative;
}
/* Section titles (same as Related + FAQ) */
.uc-related h2,
.uc-faq h2,
.uc-steps-left h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 400;
  line-height: 28.8px;
  color: #0a0a0a;
}
.uc-steps-left h2 {
  margin-bottom: 16px;
}
.uc-steps-left .uc-steps-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--uc-text);
  margin-bottom: 40px;
}
.uc-steps-squiggle {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  opacity: 0.92;
}

.uc-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.uc-step-item {
  display: grid;
  grid-template-columns: 27px 1fr;
  column-gap: 27px;
  row-gap: 0;
  padding: 8px 0;
  align-items: start;
  border: none;
  background: none;
}
/* Row 1: divider only in column 2. Row 2: step number + body so the number
   stays aligned with the first line of the title when the title wraps. */
.uc-step-divider {
  grid-column: 2;
  grid-row: 1;
  height: 1px;
  background: var(--uc-divider);
  margin-bottom: 21px;
}
.uc-step-num {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 30px;
  color: #262626;
  padding-top: 0;
  user-select: none;
}
.uc-step-body {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  align-self: start;
}
.uc-step-trigger {
  width: 100%;
  display: block;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.uc-step-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.uc-step-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  color: #262626;
  margin: 0;
}
.uc-step-chevron {
  width: 24px;
  height: 24px;
  color: var(--uc-text);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.uc-step-item.open .uc-step-chevron { transform: rotate(180deg); }

.uc-step-desc {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  min-width: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(0.16, 1, 0.3, 1), padding .35s ease;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: var(--uc-text-muted);
  width: 500px;
  max-width: 100%;
}
.uc-step-item.open .uc-step-desc {
  max-height: 800px;
  padding-top: 21px;
}
.uc-step-desc p {
  margin: 0 0 12px;
}
.uc-step-desc p:last-child {
  margin-bottom: 0;
}
/* Numbered step sub-lists: match FAQ answer typography; keep <ol> markers. */
.uc-step-desc-list {
  list-style: decimal;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 26px;
  color: var(--uc-text-muted);
}
.uc-step-desc-list li {
  margin: 0 0 0 24px;
  padding-left: 4px;
}
.uc-step-desc-list li::marker {
  font-weight: 500;
  color: var(--uc-text);
}
.uc-step-desc-list li + li {
  margin-top: 12px;
}

/* ── RELATED USE CASES ── */
.uc-related h2 {
  margin-bottom: 45px;
}
.uc-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.uc-related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 14px 23px 20px;
  min-height: 376px;
  border-radius: 2px;
  border: 0.75px solid var(--uc-border);
  background: var(--uc-related-grad);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1);
}
.uc-related-card:hover {
  transform: translateY(-4px);
}
.uc-related-tag {
  display: inline-flex;
  background: #f0f0f0;
  color: var(--uc-text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 12px;
  letter-spacing: 0.24px;
  padding: 4.8px 6px;
  border-radius: 2.242px;
  margin-bottom: 30px;
  width: max-content;
}
.uc-related-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  color: #171717;
  margin-bottom: 21px;
  text-transform: capitalize;
  max-width: 230px;
}
.uc-related-body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  color: #0a0a0a;
  margin-bottom: 24px;
  max-width: 244px;
}
.uc-related-link {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 15.36px;
  line-height: 12.288px;
  color: #0a0a0a;
  display: inline-flex;
  gap: 5.4px;
  align-items: center;
  margin-top: auto;
}
.uc-related-link span:first-child {
  text-decoration: underline;
}
.uc-related-link span:last-child {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.uc-related-card:hover .uc-related-link span:last-child {
  transform: translateX(20px);
}
@media (prefers-reduced-motion: reduce) {
  .uc-related-link span:last-child {
    transition: none;
  }
  .uc-related-card:hover .uc-related-link span:last-child {
    transform: none;
  }
}

/* ── FAQ ── */
.uc-faq {
  display: grid;
  grid-template-columns: 432px 1fr;
  gap: 78px;
  padding: 40px 0;
  align-items: start;
}
.uc-faq h2 {
  margin: 0;
}
.uc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 690px;
}
.uc-faq-item {
  padding: 8px 0;
}
.uc-faq-trigger {
  width: 100%;
  margin: 0;
  display: block;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
}
.uc-faq-trigger:focus-visible {
  outline: 2px solid var(--uc-accent, currentColor);
  outline-offset: -2px;
}
.uc-faq-divider {
  display: block;
  height: 1px;
  background: var(--uc-divider);
  margin-bottom: 10px;
}
.uc-faq-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
}
.uc-faq-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 27px;
  color: var(--uc-text);
  margin: 0;
  max-width: 486px;
}
.uc-faq-chevron {
  width: 24px;
  height: 24px;
  color: var(--uc-text);
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.uc-faq-item.open .uc-faq-chevron { transform: rotate(180deg); }
.uc-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(0.16, 1, 0.3, 1), padding .35s ease;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  color: var(--uc-text-muted);
  width: 572px;
  max-width: 100%;
}
.uc-faq-item.open .uc-faq-answer {
  max-height: 800px;
  padding-top: 12px;
}
.uc-faq-answer strong,
.uc-step-desc-list li strong {
  color: var(--uc-text);
  font-weight: 500;
}

/* ── CTA BANNER ── */
.uc-cta {
  background: var(--uc-cta-bg);
  border-radius: 4px;
  padding: 67px 56px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 32px;
  align-items: center;
  min-height: 348px;
}
.uc-cta-content {
  position: relative;
  z-index: 2;
  max-width: 515px;
}
.uc-cta h2 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 36px;
  line-height: 39.6px;
  letter-spacing: -0.005em;
  color: var(--uc-cta-fg);
  margin: 0 0 32px;
}
.uc-cta p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 27px;
  color: var(--uc-cta-fg);
  margin: 0 0 32px;
  max-width: 405px;
}
/* Figma Legacy-Web node 63:3013 — InstantAnimate default vs hover (solid lime) */
.uc-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 56px;
  width: 200px;
  min-width: 200px;
  padding: 2px 0;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #282928;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: #f2ff70;
  overflow: hidden;
  isolation: isolate;
}
.uc-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(96.95deg, #f2ff70 6.53%, #f5f7f6 108.99%);
  z-index: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.uc-cta-btn:hover::before,
.uc-cta-btn:focus-visible::before {
  opacity: 0;
}
.uc-cta-btn:focus-visible {
  outline: 2px solid #f5f7f6;
  outline-offset: 3px;
}
.uc-cta-btn__inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  white-space: nowrap;
}
.uc-cta-btn .uc-arrow {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  transform: translate3d(0, -1px, 0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.uc-cta-btn:hover .uc-arrow,
.uc-cta-btn:focus-visible .uc-arrow {
  transform: translate3d(2px, -5px, 0);
}
@media (prefers-reduced-motion: reduce) {
  .uc-cta-btn::before,
  .uc-cta-btn .uc-arrow {
    transition: none;
  }
  .uc-cta-btn:hover .uc-arrow,
  .uc-cta-btn:focus-visible .uc-arrow {
    transform: translate3d(0, -1px, 0);
  }
}
.uc-cta-decoration {
  position: absolute;
  right: -12px;
  top: 0;
  bottom: 0;
  width: min(442px, 48vw);
  max-width: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  margin-left: 50px;
  margin-right: 50px;
  gap: 0;
  padding-left: 34px;
  padding-right: 34px;
}
.uc-cta-decoration img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ── REVEALS (subtle entrance, scoped to in-viewport reveal) ── */
/* The .uc-reveal hook is wired up via JS but defaults to fully visible so
   the page is readable without JS, in headless renderers, and for users
   that prefer reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .uc-page.uc-js-ready .uc-reveal:not(.visible) {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .8s cubic-bezier(0.16, 1, 0.3, 1),
                transform .8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .uc-page.uc-js-ready .uc-reveal.visible {
    transition: opacity .8s cubic-bezier(0.16, 1, 0.3, 1),
                transform .8s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .uc-container { padding: 0 40px; }
  .uc-hero-grid { gap: 56px; }
  .uc-process-grid { gap: 40px; }
  .uc-steps-card { gap: 56px; grid-template-columns: 1fr 1fr; }
  .uc-faq { gap: 40px; grid-template-columns: 1fr 1.5fr; }
}
@media (max-width: 900px) {
  .uc-hero { padding: 64px 0 40px; }
  .uc-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .uc-hero-illustration { height: 240px; }
  .uc-process-grid { grid-template-columns: 1fr; gap: 32px; }
  .uc-steps-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 24px;
  }
  .uc-related-grid { grid-template-columns: 1fr; }
  .uc-faq { grid-template-columns: 1fr; gap: 24px; }
  .uc-cta {
    grid-template-columns: 1fr;
    padding: 48px 28px;
    min-height: 0;
  }
  .uc-cta-decoration {
    position: relative;
    right: auto;
    width: 100%;
    max-width: 280px;
    margin: 24px auto 0;
  }
}
@media (max-width: 600px) {
  .uc-container { padding: 0 20px; }
  .uc-hero-title,
  .uc-cta h2 { font-size: 28px; line-height: 32px; }
  .uc-process { padding: 28px 20px; }
  .uc-card-heading { font-size: 20px; }
}
