/* ============================================================
   Q-Shield page (/qshield). Built on tokens.css + site.css: the
   site's hairline grid, one accent (violet). The recreated app
   screens (.q) use Q-Shield's own app tokens, so they look like
   what a partner sees after signing in.
   ============================================================ */

/* ── page frame ───────────────────────────────────────────── */
/* One accent on this page: the EpochCore logo's teal (John's pick, 2026-11-06), here and in the Q-Shield app.
   The rest of the site keeps its violet, so the override is scoped to this page's body. */
.qp { --accent: #1f6f72; --accent2: #185a5d; --accent3: #8fcac6; --accent-soft: rgba(31,111,114,0.09); --accent-line: rgba(31,111,114,0.30); }
.qp .btn.lg { box-shadow: 0 10px 26px -12px rgba(31,111,114,0.55); }
.qp .btn.lg:not(.ghost):hover { box-shadow: 0 14px 30px -12px rgba(31,111,114,0.62); }
.qp .btn.lg.ghost { box-shadow: none; }
.qp section { scroll-margin-top: 80px; }
.qp .nav .btn { white-space: nowrap; }
.qgrid { display: grid; grid-template-columns: 2fr 1fr; gap: 1px; background: var(--line2); border: 1px solid var(--line2); margin-top: 40px; }
.qgrid > * { background: var(--bg); min-width: 0; }
.qcell { padding: 44px 44px 40px; }
.qcell.side { background: var(--surface); padding: 36px 32px; }
.qgrid > .full { grid-column: 1 / -1; }
.qcell.tight { padding: 28px 32px; }
.qk { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; }
.qh2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(30px, 4vw, 46px); letter-spacing: -1px; line-height: 1.06; margin: 0; max-width: 24ch; }
.qh2 em { font-style: italic; font-weight: 500; color: var(--accent); }
.qsub { margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: var(--dim); max-width: 66ch; }
.qsub b { color: var(--ink); font-weight: 600; }
.qlink { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.qlink:hover { text-decoration: underline; }
.qp a.inl { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.qp code, .qp .m { font-family: var(--font-mono); font-size: 0.86em; overflow-wrap: anywhere; }

/* hero */
.qhero h1 { margin-top: 22px; font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -1.6px; line-height: 1.03; max-width: 18ch; }
.qhero .lede { margin: 0; font-size: 17px; }
.qhero .hero-cta { margin-top: 24px; }
.qhero .fine { margin: 18px 0 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.4px; line-height: 1.6; color: var(--mute); }
.qshot { padding: 32px 32px 36px; background: var(--surface-2); }
.qshot-cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); margin: 0 0 12px; }

/* two profiles: a compare table */
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; color: var(--dim); }
.cmp thead th { border-top: 0; padding-top: 0; font-family: var(--font-serif); font-weight: 700; font-size: 24px; letter-spacing: -0.4px; color: var(--ink); }
.cmp thead th small { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase; color: var(--mute); }
.cmp th[scope=row] { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--mute); width: 22%; padding-left: 0; }
.cmp td b { color: var(--ink); font-weight: 600; }
.cmp .grp th { padding-top: 26px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); border-top: 1px solid var(--line2); }
.cmp thead th:first-child { width: 22%; }
.yes, .no { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; padding: 2px 8px; border-radius: var(--radius-pill); white-space: nowrap; }
.yes { color: #0f6b3f; background: rgba(31,157,97,.12); }
.no { color: #b02a33; background: rgba(231,68,78,.10); }
.callout2 { margin-top: 26px; border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 16px 20px; font-size: 16px; line-height: 1.55; color: var(--ink); max-width: 76ch; }
.callout2 b { font-weight: 600; }

/* the scan finds: a grid of cells, each with one real finding row */
.finds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line2); border-top: 1px solid var(--line2); }
.finds > div { background: var(--bg); padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.finds h3 { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: 21px; letter-spacing: -0.4px; line-height: 1.15; }
.finds p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--dim); }
.verdicts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line2); border-top: 1px solid var(--line2); }
.verdicts > div { background: var(--surface); padding: 18px 22px; font-size: 14.5px; line-height: 1.5; color: var(--dim); min-width: 0; }
.verdicts .q-badge { margin-bottom: 8px; }

/* the app, page by page */
.tour { border-top: 1px solid var(--line2); }
.stop { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); border-top: 1px solid var(--line2); }
.stop:first-child { border-top: 0; }
.stop-text { padding: 40px 40px 36px 44px; }
.stop-shot { padding: 32px 32px; background: var(--surface-2); border-left: 1px solid var(--line2); min-width: 0; }
.stop:nth-child(even) .stop-text { order: 2; padding: 40px 44px 36px 40px; }
.stop:nth-child(even) .stop-shot { order: 1; border-left: 0; border-right: 1px solid var(--line2); }
.stop .n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--accent); }
.stop h3 { margin: 10px 0 0; font-family: var(--font-serif); font-weight: 700; font-size: 28px; letter-spacing: -0.6px; line-height: 1.1; }
/* the eyebrow under each tour title: its own <p>, so the <h3> reads as the title alone (audit M4) */
.stop .h3-sub { margin: 6px 0 0; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 1px; line-height: 1.1; text-transform: uppercase; color: var(--mute); }
.stop-text > ul { margin: 16px 0 0; padding-left: 18px; }
.stop-text > ul > li { margin: 8px 0; font-size: 15.5px; line-height: 1.55; color: var(--dim); }
.stop-text > ul > li b { color: var(--ink); font-weight: 600; }
.stop-text > p { margin: 14px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--dim); }
.json { margin: 14px 0 0; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.65; background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; white-space: pre; }
.json .k { color: var(--accent3); } .json .s { color: #6ad29b; } .json .c { color: rgba(246,242,234,0.5); }

/* integrations-style panels (GitHub status, Slack post) */
.ext { margin-top: 14px; border: 1px solid #d0d7de; border-radius: 6px; background: #fff; font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; color: #1f2328; font-size: 13px; line-height: 1.45; }
.ext-h { padding: 10px 14px; border-bottom: 1px solid #d0d7de; background: #f6f8fa; font-weight: 600; border-radius: 6px 6px 0 0; }
.ext-r { padding: 10px 14px; display: flex; gap: 10px; align-items: flex-start; }
.ext-r + .ext-r { border-top: 1px solid #d8dee4; }
.ext .ok { flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: #1a7f37; position: relative; }
.ext .ok::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ext .ctx { font-weight: 600; }
.ext .dsc { color: #59636e; }
.slack { margin-top: 14px; border: 1px solid rgba(29,28,29,.13); border-radius: 8px; background: #fff; padding: 12px 14px; font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 13.5px; line-height: 1.46; color: #1d1c1d; }
.slack .who { font-weight: 800; } .slack .app { font-size: 10px; font-weight: 700; color: #616061; background: rgba(29,28,29,.06); padding: 1px 4px; border-radius: 3px; margin-left: 4px; vertical-align: 1px; } .slack .t { color: #616061; font-size: 12px; margin-left: 6px; }
.slack p { margin: 6px 0 0; font-size: 13.5px; color: #1d1c1d; } .slack ul { margin: 6px 0 0; padding-left: 18px; } .slack li { margin: 2px 0; font-size: 13.5px; color: #1d1c1d; }

/* IBM Heron: three numbered columns */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line2); border-top: 1px solid var(--line2); }
.cols3 > div { background: var(--bg); padding: 28px 26px 30px; min-width: 0; }
.cols3 .n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--accent); }
.cols3 h3 { margin: 10px 0 0; font-family: var(--font-serif); font-weight: 700; font-size: 20px; letter-spacing: -0.4px; line-height: 1.2; }
.cols3 p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--dim); }
.cols3 q { font-family: var(--font-mono); font-size: 12px; color: var(--ink); quotes: "\201C" "\201D"; }
.rowline { border-top: 1px solid var(--line2); padding: 20px 44px; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; justify-content: space-between; font-size: 15.5px; color: var(--dim); }

/* safe to run: a terminal and facts */
.term { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 1.75; background: #14110d; color: var(--on-ink); padding: 20px 22px; overflow-x: auto; white-space: pre; border-radius: 0; }
.term .c { color: rgba(246,242,234,0.48); } .term .p { color: var(--accent3); } .term .ok { color: #6ad29b; }
.facts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line2); border-top: 1px solid var(--line2); }
.facts3 > div { background: var(--bg); padding: 24px 26px; min-width: 0; }
.facts3 h3 { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: 19px; letter-spacing: -0.3px; }
.facts3 p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--dim); }
.safe { margin: 18px 0 0; padding: 0; list-style: none; }
.safe li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; color: var(--dim); }
.safe li:first-child { border-top: 0; padding-top: 0; }
.safe li b { color: var(--ink); font-weight: 600; }

/* ways to run */
.ways { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); border-top: 1px solid var(--line2); }
.ways ol { list-style: none; margin: 0; padding: 0; }
.ways li { padding: 22px 28px 22px 44px; border-top: 1px solid var(--line); }
.ways li:first-child { border-top: 0; }
.ways li b { display: block; font-family: var(--font-serif); font-size: 19px; font-weight: 700; letter-spacing: -0.3px; color: var(--ink); }
.ways li span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--dim); }
.ways .term { border-left: 1px solid var(--line2); height: 100%; }

/* why now: a dated list */
.dates { border-top: 1px solid var(--line2); }
.date { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 20px 44px; border-top: 1px solid var(--line); align-items: baseline; }
.date:first-child { border-top: 0; }
.date .when { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }
.date h3 { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: 19px; letter-spacing: -0.3px; }
.date p { margin: 4px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--dim); }
.date .src { display: inline-block; margin-top: 6px; }

/* offer */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1px; background: var(--line2); }
.offer > div { background: var(--bg); padding: 44px; min-width: 0; }
.steps3 { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps3 li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--dim); }
.steps3 li:first-child { border-top: 0; padding-top: 0; }
.steps3 li::before { content: counter(s) "."; font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding-top: 3px; }
.steps3 b { color: var(--ink); font-weight: 600; }
.qp .partners { margin-top: 0; border-top: 1px solid var(--line2); }

/* ── recreated Q-Shield screens: the app's own tokens ─────── */
.qp, .q { --q-bg:#f4f0e7; --q-surface:#efe9db; --q-surface-2:#eae3d3; --q-field:#fffdf8; --q-line:rgba(34,27,18,.12); --q-line2:rgba(34,27,18,.22);
  --q-ink:#1b1712; --q-dim:rgba(27,23,18,.74); --q-accent:#1f6f72; --q-accent-strong:#1f6f72; --q-accent-ink:#185a5d;
  --q-up:#0f6b3f; --q-up-soft:rgba(31,157,97,.12); --q-down:#b02a33; --q-down-soft:rgba(231,68,78,.10); --q-warn:#8a5a00; --q-warn-soft:rgba(194,140,28,.16);
}
.q { background: var(--q-bg); color: var(--q-ink); border: 1px solid var(--q-line2); border-radius: 6px; font-family: var(--font-serif); font-size: 15px; line-height: 1.5;
  box-shadow: 0 18px 40px -26px rgba(34,27,18,.45); overflow: hidden; min-width: 0; }
.q-app { display: grid; grid-template-columns: 170px minmax(0, 1fr); }
.q-side { border-right: 1px solid var(--q-line); padding: 18px 12px; display: flex; flex-direction: column; gap: 14px; }
.q-brand { display: flex; align-items: center; gap: 8px; padding: 0 4px; font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.q-brand img { width: 22px; height: 22px; }
.q-brand small { display: block; font: 600 8.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--q-dim); }
.q-new { display: block; text-align: center; padding: 8px 10px; border-radius: 999px; background: var(--q-accent-strong); color: #fff; font-weight: 600; font-size: 13px; }
.q-nav { display: flex; flex-direction: column; gap: 1px; }
.q-nav span { display: block; padding: 7px 10px; border-left: 3px solid transparent; border-radius: 3px; font: 500 10px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--q-dim); }
.q-nav span.on { background: var(--q-surface); color: var(--q-ink); border-left-color: var(--q-accent); }
.q-main { padding: 22px 24px 24px; min-width: 0; }
.q-lbl { font: 600 10.5px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--q-dim); margin: 0; }
.q-title { margin: 6px 0 0; font-size: 24px; line-height: 1.12; font-weight: 700; letter-spacing: -.025em; }
.q-meta { margin-top: 4px; font-size: 13px; color: var(--q-dim); }
.q-lead { margin: 6px 0 0; font-size: 13.5px; color: var(--q-dim); max-width: 62ch; }
.q-answer { margin-top: 16px; background: var(--q-field); border: 1px solid var(--q-line2); border-radius: 4px; padding: 18px 20px 16px; }
.q-answer .q-lbl { color: var(--q-accent-ink); }
.q-big { margin: 8px 0 0; font-size: 26px; line-height: 1.14; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.q-big .hot { color: var(--q-down); }
.q-dimp { margin: 8px 0 0; font-size: 13.5px; color: var(--q-dim); }
.q-meter { margin-top: 14px; display: flex; height: 8px; overflow: hidden; }
.q-meter i { display: block; height: 100%; }
.q-meter .r { background: #b02a33; } .q-meter .g { background: rgba(31,157,97,.22); flex: 1; }
.q-legend { margin-top: 6px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font: 500 10.5px var(--font-mono); color: var(--q-dim); }
.q-kpis { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--q-line2); border-radius: 4px; }
.q-kpi { padding: 12px 14px; border-right: 1px solid var(--q-line); min-width: 0; }
.q-kpi:last-child { border-right: 0; }
.q-val { margin-top: 6px; font-size: 21px; line-height: 1.15; font-weight: 600; }
.q-val.down { color: var(--q-down); } .q-val.up { color: var(--q-up); } .q-val.warn { color: var(--q-warn); }
.q-note { margin-top: 3px; font-size: 12.5px; color: var(--q-dim); }
.q-card { margin-top: 12px; border: 1px solid var(--q-line2); border-radius: 4px; background: var(--q-field); }
.q-card.plain { background: transparent; }
.q-card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; flex-wrap: wrap; }
.q-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--q-line); }
.q-row .g { flex: 1 1 auto; min-width: 0; }
.q-row .t { font-weight: 600; overflow-wrap: break-word; }
.q-row .s { font: 11.5px var(--font-mono); color: var(--q-dim); overflow-wrap: break-word; }
.q-row .r { text-align: right; flex: none; font-size: 12.5px; color: var(--q-dim); }
.q-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 600 10px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; background: var(--q-surface-2); color: rgba(27,23,18,.8); }
.q-badge.fail { background: var(--q-down-soft); color: var(--q-down); }
.q-badge.due { background: var(--q-warn-soft); color: var(--q-warn); }
.q-badge.pass { background: var(--q-up-soft); color: var(--q-up); }
.q-seg { display: inline-flex; padding: 3px; border: 1px solid var(--q-line2); border-radius: 999px; background: var(--q-field); margin-top: 12px; }
.q-seg span { padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: 12.5px; }
.q-seg span.on { background: var(--q-ink); color: var(--q-bg); }
.q-table { width: 100%; border-collapse: collapse; margin-top: 10px; table-layout: fixed; }
.q-table th { text-align: left; padding: 7px 8px; font: 500 9.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--q-dim); border-bottom: 1px solid var(--q-line2); }
.q-table td { padding: 8px; border-bottom: 1px solid var(--q-line); font-size: 12.5px; vertical-align: top; overflow-wrap: break-word; }
.q-table td.m { font-family: var(--font-mono); font-size: 11px; }
.q-why { margin: 10px 0 0; font-size: 12.5px; color: var(--q-dim); }
.q-why b { color: var(--q-ink); font-weight: 600; }
.q-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--q-line); }
.q-item .rk { font: 600 12px var(--font-mono); color: var(--q-accent-ink); }
.q-item .t { font-weight: 600; overflow-wrap: break-word; } .q-item .t .m { font-weight: 400; color: var(--q-dim); }
.q-item .w { font-size: 12.5px; color: var(--q-dim); margin-top: 2px; }
.q-item .d { font: 11px var(--font-mono); text-align: right; white-space: nowrap; } .q-item .d small { display: block; color: var(--q-dim); }
.q-grp { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--q-line); background: var(--q-surface); }
.q-grp:first-child { border-top: 0; }
.q-quiet { margin-top: 10px; border: 1px solid var(--q-line); border-radius: 4px; padding: 10px 14px; font-size: 12.5px; color: var(--q-dim); }
.q-quiet b { color: var(--q-ink); font-weight: 600; display: block; margin-bottom: 4px; }
.q-good { margin-top: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border: 1px solid rgba(15,107,63,.35); background: var(--q-up-soft); border-radius: 4px; padding: 12px 14px; }
.q-good .mk { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--q-up); position: relative; }
.q-good .mk::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.q-good .w { flex: 1 1 200px; min-width: 0; } .q-good .w b { display: block; font-size: 14px; } .q-good .w span { font-size: 12px; color: var(--q-dim); }
.q-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.q-btn { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--q-accent-strong); color: #fff; font-weight: 600; font-size: 12px; white-space: nowrap; }
.q-btn.ghost { background: transparent; border: 1px solid var(--q-accent-strong); color: var(--q-accent-ink); }
.q-facts { margin: 12px 0 0; border: 1px solid var(--q-line2); border-radius: 4px; }
.q-facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; padding: 8px 14px; border-top: 1px solid var(--q-line); font-size: 12.5px; }
.q-facts > div:first-child { border-top: 0; }
.q-facts dt { color: var(--q-dim); } .q-facts dd { margin: 0; overflow-wrap: anywhere; } .q-facts dd.m { font-family: var(--font-mono); font-size: 11px; }
.q-sec { margin-top: 14px; }
.q-sec h4 { margin: 0; font-size: 15px; font-weight: 700; }
.q-picks { margin-top: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.q-pick { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border: 1px solid var(--q-line2); border-radius: 4px; background: var(--q-field); font-family: var(--font-mono); font-size: 11.5px; overflow-wrap: anywhere; min-width: 0; }
.q-pick i { flex: none; width: 13px; height: 13px; border: 1.5px solid var(--q-line2); border-radius: 3px; }
.q-pick.on i { background: var(--q-accent-strong); border-color: var(--q-accent-strong); }
.q-prof { margin-top: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.q-prof div { padding: 10px 12px; border: 1px solid var(--q-line2); border-radius: 4px; background: var(--q-field); font-size: 12.5px; color: var(--q-dim); min-width: 0; }
.q-prof div.on { border-color: var(--q-accent); box-shadow: 0 0 0 1px var(--q-accent); }
.q-prof b { display: block; color: var(--q-ink); font-size: 14px; margin-bottom: 2px; }
.q-sel { margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 11.5px; }
.q-sel span:last-child { padding: 5px 10px; border: 1px solid var(--q-line2); border-radius: 4px; background: var(--q-field); font-family: var(--font-serif); font-size: 12.5px; }
.q-ul { color: var(--q-accent-ink); text-decoration: underline; font-size: 12.5px; }
.q-fld { display: block; margin-top: 4px; padding: 7px 10px; border: 1px solid var(--q-line2); border-radius: 6px; background: var(--q-field); font-size: 12.5px; color: rgba(27,23,18,.6); }
.q-form { margin-top: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; font-size: 12px; color: var(--q-dim); }
.q-code { margin-top: 6px; display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 10px; border: 1px solid var(--q-line2); border-radius: 4px; background: var(--q-field); font: 11px var(--font-mono); overflow-wrap: anywhere; }
.q-code em { font-style: normal; color: var(--q-accent-ink); flex: none; }

/* ── narrow screens ───────────────────────────────────────── */
@media (max-width: 980px) {
  .finds, .cols3, .facts3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verdicts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .qgrid { grid-template-columns: 1fr; margin-top: 24px; }
  .qcell, .qcell.side, .qcell.tight { padding: 26px 20px; }
  .qshot { padding: 18px 14px 20px; }
  .stop, .ways, .offer { grid-template-columns: minmax(0, 1fr); }
  .stop-text, .stop:nth-child(even) .stop-text { order: 1; padding: 28px 20px 22px; }
  .stop-shot, .stop:nth-child(even) .stop-shot { order: 2; border: 0; border-top: 1px solid var(--line2); padding: 18px 14px 20px; }
  .ways li { padding: 18px 20px; }
  .ways .term { border-left: 0; border-top: 1px solid var(--line2); }
  .rowline { padding: 18px 20px; }
  .date { grid-template-columns: 1fr; gap: 4px; padding: 18px 20px; }
  .offer > div { padding: 28px 20px; }
  .cmp thead th { font-size: 19px; }
  .cmp th, .cmp td { padding: 12px 10px; font-size: 14.5px; }
  .cmp th[scope=row], .cmp thead th:first-child { width: 28%; }
  .q-app { grid-template-columns: 1fr; }
  .q-side { display: none; }
  .q-main { padding: 16px 14px 18px; }
  .q-kpis { grid-template-columns: 1fr; }
  .q-kpi { border-right: 0; border-top: 1px solid var(--q-line); } .q-kpi:first-child { border-top: 0; }
  .q-facts > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 600px) {
  .finds, .cols3, .facts3, .verdicts, .q-picks, .q-prof, .q-form { grid-template-columns: 1fr; }
  .cmp, .cmp thead, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto !important; }
  .cmp thead tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .cmp thead th:first-child { display: none; }
  .cmp tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; border-top: 1px solid var(--line); padding: 12px 0; }
  .cmp tbody tr.grp { border-top: 1px solid var(--line2); }
  .cmp tbody th[scope=row] { grid-column: 1 / -1; padding: 0 0 6px; border: 0; }
  .cmp tbody td { border: 0; padding: 0; }
  .cmp .grp th { grid-column: 1 / -1; padding: 14px 0 0; border: 0; }
  .q-table th:nth-child(4), .q-table td:nth-child(4) { display: none; }
  .q-item { grid-template-columns: 22px minmax(0, 1fr); }
  .q-item .d { grid-column: 2; text-align: left; }
  .qh2 { font-size: 30px; }
  .qhero h1 { font-size: 38px; letter-spacing: -1px; }
}

.q-meter .r.w33 { width: 33.33%; }
.qcell.side.flush { padding: 0; }
.qgrid.last { margin-bottom: 64px; }
.stop > *, .ways > *, .offer > *, .qgrid > * { min-width: 0; }

/* layout fixes after the first render */
.stop:nth-child(even) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.finds .q-row { flex-wrap: wrap; }
.cmp .grp th { padding-left: 0; }
.q-table.five th:nth-child(1) { width: 31%; } .q-table.five th:nth-child(2) { width: 17%; } .q-table.five th:nth-child(3) { width: 20%; } .q-table.five th:nth-child(4) { width: 12%; } .q-table.five th:nth-child(5) { width: 20%; }
.q-table.six th:nth-child(1) { width: 25%; } .q-table.six th:nth-child(2) { width: 14%; } .q-table.six th:nth-child(3) { width: 19%; } .q-table.six th:nth-child(4) { width: 12%; } .q-table.six th:nth-child(5), .q-table.six th:nth-child(6) { width: 15%; }
#proof.qgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.qcell.side.flush { background: #14110d; display: flex; align-items: center; }
.qcell.side.flush .term { font-size: 11.5px; width: 100%; }
@media (max-width: 880px) {
  #proof.qgrid, .stop:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .q-table.five th:nth-child(1), .q-table.six th:nth-child(1) { width: 34%; }
  .q-table.six th:nth-child(4), .q-table.six td:nth-child(4) { display: none; }
  .q-table.six th:nth-child(2), .q-table.six td:nth-child(2) { display: none; }
  .q-table.six th:nth-child(3) { width: 26%; } .q-table.six th:nth-child(5), .q-table.six th:nth-child(6) { width: 20%; }
}

/* ── audit batch 2 (2026-11-07): the two working controls, and the screens that are pictures ── */
.q-seg button { appearance: none; border: 0; margin: 0; background: transparent; color: inherit; font-family: inherit; font-weight: 600; font-size: 12.5px; line-height: inherit; padding: 4px 12px; border-radius: 999px; cursor: pointer; }
.q-seg button[aria-pressed="true"] { background: var(--q-ink); color: var(--q-bg); }
.q-seg button:focus-visible, .q-code .q-copy:focus-visible { outline: 2px solid var(--q-accent-strong); outline-offset: 2px; }
.q-table.six[data-profile="mid_market"] th:nth-child(6), .q-table.six[data-profile="mid_market"] td:nth-child(6),
.q-table.six[data-profile="cnsa2"] th:nth-child(5), .q-table.six[data-profile="cnsa2"] td:nth-child(5) { display: none; }
.q-code .q-copy { appearance: none; border: 0; margin: 0; padding: 0 2px; background: none; font: inherit; color: var(--q-accent-ink); flex: none; cursor: pointer; }
.q-code .q-copy:hover { text-decoration: underline; }
.q-new, .q-nav span, .q-btn, .q-pick, .q-ul, .q-code em, .q-sel span, .q-fld { cursor: default; }
.qsignin { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.qsignin:hover { color: var(--accent2); }

/* ── audit batch 3 (2026-11-07): phones and small text ── */
/* M3: contrast. 64% ink passes 4.5:1 on --bg, --surface, --surface-2 and --hi (4.72:1 at worst); 50% gave 3.2-3.3:1. */
.qp { --mute: rgba(27,23,18,0.64); }
.qp, .q { --q-warn: #7a4f00; }
/* M3: text floor, 12 px on the page */
.qk { font-size: 12px; letter-spacing: 1.2px; }
.qshot-cap { font-size: 12px; letter-spacing: 1px; }
.stop .h3-sub { font-size: 12px; }
.cmp thead th small, .cmp th[scope=row], .cmp .grp th { font-size: 12px; }
.qp .lab-k, .qp .foot-b span, .qp .foot-co, .qp .foot-co a, .qp .nav-links a, .qp .nav .btn, .qp .foot h4, .qp .eyebrow { font-size: 12px; }
.qhero .fine, .qlink, .stop .n, .cols3 .n, .yes, .no, .verdicts .q-badge { font-size: 12px; }
.qcell.side.flush .term, .json { font-size: 12px; }
/* M3: 11 px inside the app screens */
.q-table th, .q-nav span, .q-badge, .q-lbl, .q-brand small, .q-item .d small, .slack .app, .q-legend { font-size: 11px; }

/* M1: the section links as chips on phones */
@media (max-width: 760px) {
  .qp .nav { flex-wrap: wrap; height: auto; min-height: 66px; row-gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .qp .nav .brand { order: 1; }
  .qp .nav > .btn { order: 2; }
  .qp .nav-links { display: flex; order: 3; flex: 1 0 100%; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .qp .nav-links::-webkit-scrollbar { display: none; }
  .qp .nav-links a { flex: none; padding: 6px 11px; border: 1px solid var(--line2); border-radius: 999px; background: var(--field); white-space: nowrap; }
  .qp section { scroll-margin-top: 124px; }
}

/* M2: the Findings tables as cards on phones */
@media (max-width: 700px) {
  .q-table, .q-table tbody, .q-table tr { display: block; width: auto; }
  .q-table { table-layout: auto; margin-top: 12px; }
  .q-table thead { display: none; }
  .q-table tbody tr { padding: 10px 0 8px; border-bottom: 1px solid var(--q-line); }
  .q-table tbody tr:first-child { border-top: 1px solid var(--q-line2); }
  .q-table.five td:nth-child(n), .q-table.six td:nth-child(n) { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; width: auto; border: 0; padding: 3px 0; font-size: 13px; }
  .q-table.six[data-profile="mid_market"] td:nth-child(6), .q-table.six[data-profile="cnsa2"] td:nth-child(5) { display: none; }
  .q-table td::before { content: attr(data-label); flex: none; font: 500 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--q-dim); }
  .q-table.five td:first-child, .q-table.six td:first-child { padding-bottom: 6px; font-weight: 600; }
  .q-table td:first-child::before { content: none; }
  .q-table td.m { white-space: nowrap; overflow-wrap: normal; }
}

/* ── copy batch 5 (draft, 2026-11-07): sub-H1, who it's for, FAQ, words, how we handle results ── */
.qhero .hero-sub { margin: 16px 0 0; font-size: 19px; line-height: 1.45; color: var(--dim); max-width: 34ch; }
.built h3 { font-size: 19px; }
.faq { border-top: 1px solid var(--line2); }
.faq details { border-top: 1px solid var(--line); padding: 0 44px; }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--font-serif); font-weight: 700; font-size: 19px; letter-spacing: -0.3px; list-style-position: outside; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq details p { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: var(--dim); max-width: 76ch; }
.gloss { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.gloss dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.gloss dd { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--dim); }
details.tech { margin-top: 14px; }
details.tech summary { cursor: pointer; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--accent); }
.handle h3 { font-size: 18px; }
.founder { border-top: 1px solid var(--line2); padding: 18px 44px; font-size: 15.5px; color: var(--dim); }
@media (max-width: 880px) { .faq details, .founder { padding-left: 20px; padding-right: 20px; } .gloss { grid-template-columns: 1fr; } }
.slack-cap { margin: 16px 0 -6px; }

/* ── render handoff v2, A1 (2026-11-07): the melting vault in the hero's right column ── */
/* the square clip sits whole in a cream frame (1:1 per the handoff), never cropped to the column's tall shape */
@media (min-width: 881px) { .qhero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.qhero .qcell:first-child .lede { margin: 22px 0 0; max-width: 52ch; }
.qhero .hero-media { display: grid; place-items: center; padding: 28px; background: var(--surface); }
.qhero .hero-media picture, .qhero .hero-media video { grid-area: 1 / 1; display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 4px; }
.qhero .hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.qhero .hero-media video { object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.qhero .hero-media video.on { opacity: 1; }
@media (max-width: 880px) { .qhero .hero-media { padding: 16px; } }

/* ── render handoff v2, A2 (2026-11-07): the seal that gives way, the seal that holds, atop the Report stop ── */
.stop .seals { order: -1; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line2); border-bottom: 1px solid var(--line2); }
.stop .seals figure { margin: 0; background: var(--bg); padding: 26px 28px 22px; min-width: 0; }
.stop .seals img { display: block; width: 100%; height: auto; border-radius: 4px; }
.stop .seals figcaption { margin-top: 12px; font-size: 15.5px; line-height: 1.5; color: var(--dim); }
@media (max-width: 700px) { .stop .seals { grid-template-columns: minmax(0, 1fr); } .stop .seals figure { padding: 20px; } }

/* ── 2026-11-07: the page's films play for everyone; each has a pause / replay button (WCAG 2.2.2) ── */
.vctl { grid-area: 1 / 1; align-self: end; justify-self: end; z-index: 1; margin: 10px; padding: 6px 12px; font: 600 13px/1.2 var(--font-mono); color: var(--ink); background: rgba(250, 247, 240, 0.9); border: 1px solid var(--line2); border-radius: 4px; cursor: pointer; }
.vctl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qhero .hero-media { align-content: center; }
