/* USE CASES v55: the use-cases page, designed from zero. This file: tags, section heads, the hero's queue, the industry
   strip and the explorer's frame (tabs, copy, stage). usecases2.css holds the product objects, teams and the ledger.
   One entrance in the hero; the explorer changes only when the reader picks a tab. Nothing loops. */
.ucv .band:not(.white) { background: #f6f9fc; }
.ucv code { font-family: var(--mono); font-size: .86em; }
.ucv .band { padding: 128px 0; }

/* tags: plain status pills, no dots */
.tg { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.tg.t-ok { background: #e3f6e9; color: #0f6b34; } .tg.t-ask { background: #e8f0ff; color: #1f55e6; } .tg.t-eng { background: #eef1f5; color: #4a5875; }

/* section heads: the two-tone lede, no eyebrows */
.uh { max-width: 900px; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.16; letter-spacing: -.03em; font-weight: 500; color: var(--ink); text-wrap: balance; }
.uh span { color: var(--slate); }

/* 1. Hero: an SM37 window behind a Trace queue holding each industry's first ticket of the day */
.uc-hero .ph-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 64px; }
.inner .subnav + .uc-hero { padding-top: 120px; }
.uc-hero .page-title { max-width: 12ch; }
.qh { position: relative; padding: 124px 0 40px 56px; }
.qh-sap { position: absolute; left: 0; top: 0; width: 300px; padding: 0 0 8px; border-radius: 8px; background: #eef2f8; box-shadow: 0 0 0 1px rgba(10, 37, 64, .1), 0 20px 40px -24px rgba(20, 45, 110, .45); font-size: 12px; color: var(--slate); }
.qs-t { padding: 9px 12px; border-bottom: 1px solid rgba(10, 37, 64, .08); background: #e3e9f3; border-radius: 8px 8px 0 0; } .qs-t b { font-family: var(--mono); color: var(--ink); margin-right: 6px; }
.qs-r { display: flex; justify-content: space-between; gap: 8px; padding: 6px 12px; } .qs-r code { font-size: 11.5px; }
.qs-r.hit { background: #fff1f5; box-shadow: inset 0 0 0 1.5px #ff9cc0; }
.qh code.g { color: #0f6b34; font-weight: 600; } .qh code.r { color: #c2185b; font-weight: 600; }
.qh-win { position: relative; border-radius: 12px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.qh-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: #f6f8fb; border-bottom: 1px solid var(--line); }
.qh-bar i { width: 9px; height: 9px; border-radius: 50%; background: #dde3ec; }
.qh-bar span { margin: 0 auto; padding: 3px 12px; border-radius: 6px; background: #fff; font: 11.5px var(--mono); color: var(--muted); box-shadow: 0 0 0 1px var(--line); }
.qh-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 22px 10px; }
.qh-head b { font-size: 17px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); } .qh-head span { font-size: 12.5px; color: var(--muted); }
.qh-list { list-style: none; margin: 0; padding: 0 10px 10px; }
.qh-list li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 12px 12px 12px 18px; border-top: 1px solid var(--line); }
.qh-list li::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--c); }
.qh-list small { grid-column: 1 / -1; font-size: 12px; font-weight: 500; color: var(--muted); }
.qh-list p { font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.qh-list p code { display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 4px; background: #eef3ff; color: #1f55e6; font-size: 11.5px; font-weight: 500; }
.qh-chip { position: absolute; right: -14px; top: 26px; display: grid; gap: 2px; padding: 12px 16px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); font-size: 12.5px; color: var(--muted); }
.qh-chip b { font-size: 14px; color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .qh-sap { animation: ucUp .8s cubic-bezier(.2, .7, .2, 1) both; }
  .qh-win { animation: ucUp .9s .12s cubic-bezier(.2, .7, .2, 1) both; }
  .qh-list li { animation: ucRow .55s cubic-bezier(.2, .7, .2, 1) both; }
  .qh-list li:nth-child(1) { animation-delay: .65s; } .qh-list li:nth-child(2) { animation-delay: .85s; } .qh-list li:nth-child(3) { animation-delay: 1.05s; } .qh-list li:nth-child(4) { animation-delay: 1.25s; }
  .qh-list .tg { animation: ucTag .4s cubic-bezier(.2, .7, .2, 1) both; }
  .qh-list li:nth-child(1) .tg { animation-delay: 1.5s; } .qh-list li:nth-child(2) .tg { animation-delay: 1.65s; } .qh-list li:nth-child(3) .tg { animation-delay: 1.8s; } .qh-list li:nth-child(4) .tg { animation-delay: 1.95s; }
  .qh-chip { animation: ucUp .7s 2.25s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes ucUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes ucRow { from { opacity: 0; transform: translateX(-6px); } }
@keyframes ucTag { from { opacity: 0; transform: scale(.9); } }

/* 2. The industry strip: four ways into the explorer, straddling the hero's edge */
.uc-strip { position: relative; z-index: 3; margin-top: -104px; }
.ix { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(20, 45, 110, .4); }
.ix-c { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px 28px 26px; border: 0; border-left: 1px solid var(--line); background: none; font: inherit; text-align: left; cursor: pointer; transition: background .25s; }
.ix-c:first-child { border-left: 0; border-radius: 12px 0 0 12px; } .ix-c:last-child { border-radius: 0 12px 12px 0; }
.ix-c b { font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); transition: color .2s; }
.ix-c span { font-size: 15px; line-height: 1.45; color: var(--slate); max-width: 24ch; }
.ix-c em { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; font-style: normal; }
.ix-c em code { padding: 2px 6px; border-radius: 4px; background: #f1f4f9; color: var(--slate); font-size: 11.5px; }
.ix-c::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; background: linear-gradient(90deg, var(--c), #2f6bff); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s cubic-bezier(.3, .6, .2, 1); }
.ix-c:nth-child(2)::before { transition-delay: .12s; } .ix-c:nth-child(3)::before { transition-delay: .24s; } .ix-c:nth-child(4)::before { transition-delay: .36s; }
.ix.in .ix-c::before { transform: scaleX(1); }
.ix-c:hover { background: #fafcff; } .ix-c:hover b { color: var(--accent); }
.ix-c:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* 3. The explorer: tabs under hairlines, copy on the left, one stage on the right */
.ex.band { padding-top: 120px; }
.ex-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 20px; margin-top: 52px; }
.ex-tabs button { position: relative; padding: 16px 0 4px; border: 0; background: none; font-family: inherit; font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--slate); text-align: left; cursor: pointer; box-shadow: inset 0 2px 0 rgba(10, 37, 64, .1); transition: color .25s; }
.ex-tabs button::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: linear-gradient(90deg, #2ee6d6, #22b8ff, #2f6bff 60%, #7b5cff); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s cubic-bezier(.3, .6, .2, 1); }
.ex-tabs button[aria-selected="true"] { color: var(--ink); } .ex-tabs button[aria-selected="true"]::before { transform: scaleX(1); }
.ex-tabs button:hover { color: var(--ink); } .ex-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.ex-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; margin-top: 40px; }
.ex-copy { display: flex; flex-direction: column; padding-top: 12px; }
.ex-copy h3 { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.028em; color: var(--ink); max-width: 14ch; }
.ex-copy p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--slate); }
.ck { list-style: none; margin: 26px 0 0; padding: 0; }
.ck li { position: relative; padding: 13px 0 13px 30px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.ck li::before { content: ""; position: absolute; left: 3px; top: 19px; width: 10px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.ex-copy .more { margin-top: 28px; }
@media (prefers-reduced-motion: no-preference) { .ex-p:not([hidden]) { animation: ucFade .45s ease both; } }
@keyframes ucFade { from { opacity: 0; transform: translateY(6px); } }
.ex-stage { position: relative; height: 560px; border-radius: 16px; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #fff 40%, #f5f8fe); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgba(20, 45, 110, .35); display: flex; align-items: center; }
.ex-model { position: absolute; right: 1%; top: 5%; width: 52%; height: 90%; isolation: isolate; }
.ex-model canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
