/*
  Axari site · v5 · use cases and compare (uc.css)
  Loaded after site.css by /use-cases/ and /compare/, which _build/build.py
  generates. Only layout for patterns site.css does not already have; every size,
  colour and space is a site.css token. No new font sizes.

  Pulled from the v30 versions of these pages on purpose: step tabs with autoplay,
  numbered steps, check-mark cards, icon cards, pill badges, the gradient headline,
  the purple glow panels, the coloured scatter map, the marquee. Each is replaced by
  the plain pattern next to it below.
*/

/* ---------- Shared bits ---------- */
/* .ticks: one shared bullet in site.css since 10 Nov (was a dash here). */
.cells .h4 + .body, .cells .h4 + .muted, .cells .h4 + .ticks { margin-top: var(--s2); }
.cells .muted + .body { margin-top: var(--s2); }
.cells > li { list-style: none; }
.uc-two { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s7); align-items: start; }
.uc-two > :first-child { grid-column: 1 / span 5; }
.uc-two > :last-child { grid-column: 7 / span 6; min-width: 0; }
@media (max-width: 1199px) { .uc-two > :first-child, .uc-two > :last-child { grid-column: 1 / -1; } }
.uc-two .h3 + .ticks, .uc-two .h4 + .ticks, .uc-two .h3 + .body { margin-top: var(--s4); }

/* Mockup text inside .app (site.css owns the frame) */
.app .t { color: var(--ink); font-size: var(--fs-small); line-height: 1.45; }
.app .s { color: var(--ink-60); }
.app p + p, .app p + .rows, .app .rows + div, .app p + .msg-actions { margin-top: var(--s2); }
.app .app-title { margin-top: var(--s4); }

/* The data table (.tbl) moved to site.css on 10 Nov: every page that states facts uses it. */

/* ---------- Use-case pages (v6, 10 Nov 2026, IA revision 2, 7.3) ----------
   Three chapters (the chapter rule): the person and the chasing, the Twin at work, what you keep.
   Pulled from v5 with the template (styles in _legacy/uc-v5.css): the persona needs strip, the five
   stacked Slack windows, step meta grids, the confidence modes, the jobs-in-this-area cells, the tools
   table, the start steps, the first-job quote, related links, and every floating rule they carried. */
.uc-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s8); align-items: center; }
.uc-hero-grid > :first-child { grid-column: 1 / span 7; }
.uc-hero-grid > .shot { grid-column: 8 / span 5; min-width: 0; }
.uc-hero .h1 { max-width: 16ch; }
/* Use-case switcher (12 Nov, Avi: after one use case, people went back to the nav for each next one).
   The job's name above the H1, opening the site's Select list (site.js, site.css "Select") with the
   eight jobs. Not a field: no box, the eyebrow's small size, ink 80 with the nav's chevron, so it reads
   as the page's name first and a control on hover. 44px tall for touch; the H1 keeps its own spacing.
   Not a breadcrumb (pulled 10 Nov): it names this page and moves sideways, never back up.
   Remove: UC_SWITCH = False in _build/build.py. */
.uc-switch { margin-bottom: var(--s3); }
.uc-pick.sel-btn { display: inline-flex; justify-content: flex-start; gap: var(--s2); min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-small); font-weight: 500; color: var(--ink-80); transition: color var(--t-hover) var(--ease); }
.uc-pick.sel-btn:hover, .uc-pick.sel-btn[aria-expanded="true"] { color: var(--ink); }
.uc-pick.sel-btn:hover svg, .uc-pick.sel-btn[aria-expanded="true"] svg { stroke: var(--ink); }
.uc-hero .ctas { margin-top: var(--s6); }
.wf .wf-dec { margin-top: var(--s4); padding: var(--s3); border-radius: 8px; background: color-mix(in srgb, var(--ink) 5%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.wf .wf-dec .app-title { margin-top: 2px; }
.wf .rows .st { width: 14px; height: 14px; }
@media (max-width: 1199px) { .uc-hero-grid > :first-child, .uc-hero-grid > .shot { grid-column: 1 / -1; } }

/* 1 · The person and the chasing: text beside the alert and the questions answered by hand. */
.uc-emph { margin-top: var(--s4); color: var(--ink); }
.uc-k { margin-top: var(--s6); margin-bottom: var(--s3); font-size: var(--fs-cap); color: var(--ink-60); }
.app .uc-k { margin: var(--s4) 0 var(--s1); }
.uc-alert { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); }
.uc-alert .app-title { margin-top: 0; }
.uc-alert .state { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-cap); color: var(--ink-80); white-space: nowrap; }
.uc-alert .st { width: 14px; height: 14px; }
.app .rows .s { text-align: right; }

/* 2 · The Twin at work: one panel of timed steps. Each row: the step and time, what the Twin does
   with its message and evidence, and the person's role at that step. The step that needs the person
   is lit, the one place the eye should stop. Rows are list rows (a line between siblings). */
.uc-video { margin-bottom: var(--s9); } /* 12 Nov: stacked blocks 64px apart. Was s6 (32px). */
.uc-video .shot { padding: 0; overflow: hidden; }
.uc-video video { width: 100%; aspect-ratio: 16 / 9; background: var(--surface-2); }
.uc-walk { padding: 0; }
.uc-step { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s3); padding: var(--s6) var(--s7); }
.uc-step + .uc-step { border-top: 1px solid var(--line); }
/* padding-box keeps the lit fill out from under the row's top hairline. With the default
   border-box the 8% --line stacked on the 5% fill and that one separator read brighter than its siblings. */
.uc-step.hi { background: var(--fill-soft); background-clip: padding-box; }
.uc-when { grid-column: 1 / span 3; display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: var(--s3); align-content: start; }
.uc-when .st { width: 14px; height: 14px; margin-top: 4px; }
.uc-when b { font-weight: 500; color: var(--ink); }
.uc-when span:last-child { grid-column: 2; font-size: var(--fs-cap); color: var(--ink-60); }
.uc-what { grid-column: 4 / span 6; }
.uc-what .body { margin-top: var(--s2); }
.uc-msg { display: flex; align-items: flex-start; gap: var(--s3); margin-top: var(--s4); font-size: var(--fs-small); color: var(--ink-80); }
.uc-msg .av { width: 20px; height: 20px; font-size: var(--fs-cap); flex: none; }
.uc-ev { margin-top: var(--s2); padding-left: calc(20px + var(--s3)); font-family: var(--font-mono); font-size: var(--fs-cap); color: var(--ink-60); }
.uc-you { grid-column: 10 / span 3; }
.uc-you .pv-k { font-size: var(--fs-cap); color: var(--ink-60); margin-bottom: var(--s1); }
.uc-step.hi .uc-you .body { color: var(--ink); }
@media (max-width: 1199px) {
  .uc-step { padding: var(--s5); }
  .uc-when { grid-column: 1 / -1; }
  .uc-what { grid-column: 1 / span 8; }
  .uc-you { grid-column: 9 / span 4; }
  /* Once the step name sits above the content, everything under it starts on the name's edge, not
     the status icon's (10 Nov, Avi): the icon hangs in the margin, as a list bullet does.
     The indent is the icon plus its gap in .uc-when (14px + --s3). */
  .uc-what { padding-left: calc(14px + var(--s3)); }
}
@media (max-width: 767px) { .uc-what, .uc-you { grid-column: 1 / -1; } .uc-you { padding-left: calc(14px + var(--s3)); } .uc-step { padding: var(--s5) var(--s4); } }
.uc-tools-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); margin-top: var(--s7); }
.uc-tools { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); }
.uc-tools li { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-small); color: var(--ink-80); }
/* 10 Nov (Avi): colour brand marks, same files as /integrations/. Was grayscale(1) at 0.8. */
.uc-tools .tool { width: 16px; height: 16px; object-fit: contain; }

/* 3 · What you keep: three joined panels, then this job's one customer voice. */
.uc-keep .ticks li { font-size: var(--fs-small); }
.uc-keep .ticks b { font-weight: 500; color: var(--ink); }
.uc-voice { margin-top: var(--s8); max-width: 44ch; }
/* Quote to name: the shared .voice gap (24px), exactly as home's Akshay Wattal voice (10 Nov, Avi). */
.uc-voice + .more { margin-top: var(--s4); }

/* The hub: one table, a link per responsibility. */
.uc-hub { min-width: 760px; }
.uc-hub tbody th { width: 28%; }
.uc-hub tbody th a { color: var(--ink); text-decoration: none; }
.uc-hub tbody th a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.uc-hub tbody th b { font-weight: 500; }
.uc-hub td { font-size: var(--fs-small); }
.uc-roles { margin-top: var(--s5); }
/* Phones: each row stacks into labelled lines (the compare table's pattern), no sideways scroll. */
@media (max-width: 767px) {
  .uc-hub { min-width: 0; }
  .uc-hub thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .uc-hub tr, .uc-hub th, .uc-hub td { display: block; width: auto !important; }
  .uc-hub tbody tr { padding-block: var(--s5); border-bottom: 1px solid var(--line); }
  .uc-hub th, .uc-hub td { border: 0; padding: 0; }
  .uc-hub td { margin-top: var(--s3); }
  .uc-hub td::before { content: attr(data-label); display: block; font-size: var(--fs-cap); color: var(--ink-60); }
  /* 10 Nov mobile audit: the row's title is its link, but it was a 20px-tall target with nothing saying
     it opens. Phones: a full-width 44px row with the .more arrow on the right (same glyph and tone). */
  .uc-hub tbody th a { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 44px; margin-block: -12px -4px; }
  .uc-hub tbody th a::after { content: "→"; color: var(--ink-60); flex: none; }
}

/* The switcher takes the hero's first entrance beat, so the CTAs (now fourth) keep a step after the lede. */
.uc-hero > .wrap > :nth-child(4) { animation-delay: 0.7s; }
