/* The 20 HQ.io use-case pages (cases-io group): parts the HQ.ai use-case layout lacks. Tokens from site.css. */

/* Hero: the line above the H1 with the status label, the answer block, and TL;DR cells with a bold line and a note */
.ci-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ci-status { --c: var(--accent); display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px 5px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--ink); }
.ci-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.ci-status--ns { --c: var(--ok); }
.ci-status--walk { --c: var(--warn); }
.ci-hero h1 { max-width: 17ch; }
.ci-answer { max-width: 74ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--ink-2); padding: 2px 0 2px 18px; border-left: 3px solid var(--accent); text-wrap: pretty; }
.ci-answer strong { color: var(--ink); font-weight: 500; }
.ci-tldr dd b { display: block; font-weight: 500; }
.ci-tldr dd span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }

/* The sample screen's caption and links */
.ci-cap { margin-top: 16px; max-width: 110ch; color: var(--muted); text-transform: none; letter-spacing: .02em; font-size: 12px; line-height: 1.6; }
.ci-go { margin-top: 22px; }

/* A drawn screen of a proof: a list with one row picked, a verdict, and the file it produced */
.ci-shot__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .85fr); }
.ci-shot__col { display: grid; gap: 14px; align-content: start; padding: 20px 18px 22px; min-width: 0; }
.ci-shot__col + .ci-shot__col { border-left: 1px solid var(--line-2); }
.ci-rows { display: grid; gap: 8px; }
.ci-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 14.5px; line-height: 1.35; }
.ci-rows b { font-family: var(--mono); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ci-rows li.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg)); }
.ci-rows li.is-on b { color: var(--accent); }
.ci-shot__k { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.ci-ok { padding: 3px 9px; border-radius: 999px; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); font-size: 10.5px; }
.ci-shot__lead { font-size: clamp(19px, 1.7vw, 25px); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; text-wrap: pretty; }
.ci-lines { display: grid; gap: 9px; padding-top: 4px; }
.ci-lines i { display: block; height: 7px; width: var(--w); border-radius: 4px; background: var(--line); }
.ci-lines i:first-child { background: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ci-slides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ci-slides i { aspect-ratio: 4 / 3; border-radius: 8px; border: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--bg)), var(--bg) 70%); }
.ci-slides i:nth-child(2) { background: linear-gradient(160deg, color-mix(in srgb, #ec4899 14%, var(--bg)), var(--bg) 70%); }
.ci-slides i:nth-child(3) { background: linear-gradient(160deg, color-mix(in srgb, #14b8a6 14%, var(--bg)), var(--bg) 70%); }
.ci-shot__ok { justify-self: start; padding: 8px 12px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 10.5px; }

/* How it works: five steps in one row on wide screens */
.ci-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ci-flow .fnode { margin-right: 26px; padding: 20px 16px 22px; }
.ci-flow .fnode:last-child { margin-right: 0; }
.ci-flow .fnode::after { right: -27px; width: 26px; }
.ci-flow .fnode h3 { font-size: 18.5px; line-height: 1.2; }
.ci-flow .fnode p { font-size: 14.5px; }

/* The stack: four columns, each cell labelled once the columns stack */
.ci-stack .stk { grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.ci-stack .stk h3 { font-size: clamp(20px, 1.7vw, 26px); }

/* The service card, then the industry and two sibling use cases */
.ci-more { margin-top: 26px; }

@media (max-width: 1360px) {
  .ci-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .ci-flow .fnode { margin-right: 0; }
  .ci-flow .fnode::after { display: none; }
  .ci-flow .fnode:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .ci-shot__body { grid-template-columns: minmax(0, 1fr); }
  .ci-shot__col + .ci-shot__col { border-left: 0; border-top: 1px solid var(--line-2); }
  .ci-slides { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ci-stack .stk { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ci-stack .stk p::before { content: attr(data-k); display: block; margin-bottom: 2px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
}
@media (max-width: 700px) {
  .ci-shot .xdemo__bar > span.mono:not(.xdemo__tag) { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 640px) {
  .ci-flow { grid-template-columns: minmax(0, 1fr); }
  .ci-answer { padding-left: 14px; }
}
