/* The Bot Score page (/try): one sheet in Stripe's ink, in both themes, with no
   cards, frames or rules (Dušan, 1. 11.). Behind it the home page's ribbon runs
   blurred and quicker, so the ground moves like a slow flame. On top, the form,
   the test and the summary on one side and the gauge on the other; permission is
   asked in a dialog. When the result arrives, every answer opens below it. Only
   transform, opacity and the gauge's arc move; with reduced motion every part
   shows its finished state and the flame stands still. */

/* ---------- The ink's colours, for the whole page ---------- */

.page-try, .bs-stage, .bs-consent {
  --bg: var(--stripe-ink);
  --surface: #13304d;
  --surface-2: #183a5c;
  --panel: #0a1d31;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --hairline-input: rgba(255, 255, 255, 0.24);
  --ink: #ffffff;
  --ink-2: #c9d4e1;
  --mute: #a3b3c6;
  --faint: #7d93ab;
  --accent-ink: var(--yellow);
  --accent-bg: rgba(255, 213, 82, 0.12);
  --ghost-ink: #ffffff;
  --ghost-border: rgba(255, 255, 255, 0.3);
  --error-ink: #ffb4a6;
  --error-bg: rgba(243, 67, 42, 0.14);
  --error-line: rgba(243, 67, 42, 0.45);
  --look-ink: var(--yellow);
  --look-bg: rgba(255, 213, 82, 0.1);
  --look-line: rgba(255, 213, 82, 0.26);
  --menu-bg: rgba(13, 37, 61, 0.97);
  --dd-bg: #0f2a45;
  --dd-shadow: rgba(0, 0, 0, 0.45);
  --bubble: rgba(255, 255, 255, 0.06);
  --focus: var(--amber);
  --selection: rgba(255, 144, 20, 0.35);
  color-scheme: dark;
}
/* The nav lies on the stage, so it takes the stage's light ink; scrolled, its glass stays ink. */
.page-try .nav.is-scrolled { background: rgba(13, 37, 61, 0.97); border-bottom-color: rgba(255, 255, 255, 0.12); }
.page-try .nav .nav-logo { color: var(--ink); }
.page-try .nav-cta { background: rgba(255, 255, 255, 0.08); border-color: var(--line-strong); color: var(--ink); box-shadow: none; }

/* ---------- One sheet over a moving flame ---------- */

html:has(body.page-try) { background: var(--stripe-ink); }
body.page-try { background: transparent; }
.page-try main::before { display: none; }
.page-try :is(.section, .footer, .footer-base) { background: transparent; border-top: 0; }
/* The home page's ribbon, drawn at a small fraction of the pixels and blurred: it only has to glow, and a phone should not pay for more. */
.bs-sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bs-flame { position: absolute; top: -12%; left: -12%; width: 124%; height: 124%; filter: blur(48px) saturate(1.15); opacity: 0; transition: opacity 2.4s var(--ease-ui); }
.bs-flame.is-drawn { opacity: 0.62; }
/* Keeps the words readable where the flame passes behind them. */
.bs-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13, 37, 61, 0.9) 0%, rgba(13, 37, 61, 0.55) 46%, rgba(13, 37, 61, 0.12) 100%); }
@media (max-width: 860px) { .bs-sky::after { background: linear-gradient(180deg, rgba(13, 37, 61, 0.45), rgba(13, 37, 61, 0.8)); } }

/* ---------- The stage ---------- */

.bs-stage {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(112px, 11vw, 148px) 0 clamp(64px, 7vw, 104px);
  color: var(--ink);
}
.bs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.bs-lead { min-width: 0; max-width: 600px; }
/* With the result, the gauge leads and the summary follows it. */
.bs-grid:has([data-try][data-step="result"]) { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); }
.bs-grid:has([data-try][data-step="result"]) .bs-gauge { order: -1; }

.bs-lead .page-title { max-width: 10.528em; }
.bs-lead .lede { max-width: 35.802em; }
/* The words over a title are quiet words on this page, not yellow pills (Dušan, 4. 12.: the pills read as the mark of
   AI-written sites). The test's live dot still sits beside its words. */
.page-try .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 0; border-radius: 0; background: none;
  color: var(--ink-2); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.4;
}
/* Panels lie on the sheet itself; only the fields keep a soft fill, so they read as fields. */
.bs-card { max-width: 520px; }
.bs-stage .field input { background: rgba(255, 255, 255, 0.07); border-color: transparent; }
.try-form.bs-card { margin-top: 32px; max-width: 480px; }
.bs-free { margin-top: 14px; font-size: 13px; color: var(--faint); }
.bs-trust { display: grid; gap: 14px; margin-top: 32px; max-width: 520px; }
.bs-trust li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; }
.bs-trust p { font-size: 15px; line-height: 1.5; color: var(--mute); }
.bs-trust b { font-weight: 500; color: var(--ink); }
.bs-ico { display: grid; place-items: center; width: 32px; height: 32px; }
/* Icons take the words' ink, one colour for all three: colour is kept for the gauge and the verdicts. */
.bs-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bs-mail { display: block; width: 44px; height: 32px; margin-bottom: 14px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linejoin: round; }
.bs-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: bs-pulse 1.2s ease-in-out infinite; }
@keyframes bs-pulse { 50% { opacity: 0.35; transform: scale(0.7); } }
.bs-title { margin-top: 18px; font-size: clamp(32px, 1.3rem + 2vw, 50px); }
.bs-stage .meter { max-width: 440px; }
.bs-stage .try-panel > .muted { margin-top: 18px; font-size: 14px; color: var(--faint); }

/* ---------- The gauge: an instrument from 1 to 100 ---------- */

.bs-gauge { justify-self: center; width: 100%; max-width: 480px; margin: 0; padding: 8px 0; }
.bg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
/* The instrument's labels read like the dashboard's: a name, the store, and the scale in quiet figures. */
.bg-kicker { font-size: 14px; font-weight: 500; color: var(--ink); }
.bg-store { margin-top: 4px; font-family: var(--mono); font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.bg-chip { flex: none; margin-top: 2px; font-family: var(--mono); font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.bs-gauge[data-mode="live"] .bg-chip { color: #ffb366; }
.bg-dial { display: block; width: 100%; margin-top: 18px; overflow: visible; }
.bg-track, .bg-fill { fill: none; stroke-width: 14; stroke-linecap: round; }
.bg-track { stroke: rgba(255, 255, 255, 0.12); }
.bg-fill { stroke: url(#bs-arc); opacity: 0; }
.bg-fill.is-on { opacity: 1; }
.bg-tick { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.2; stroke-linecap: round; }
.bg-tick.is-on { stroke: #ffffff; }
.bg-needle { stroke: #ffffff; stroke-width: 3; stroke-linecap: round; transform-origin: 120px 120px; transform: rotate(-90deg); }
.bg-hub { fill: #ffffff; }
.bg-hub-in { fill: var(--stripe-ink); }
.bg-end { font-family: var(--mono); font-size: 7px; fill: var(--faint); }
.bg-value { margin-top: 6px; text-align: center; line-height: 1; }
.bg-num { font-size: clamp(64px, 3rem + 3vw, 84px); font-weight: 300; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.bg-unit { font-size: 20px; color: var(--faint); }
.bs-gauge.is-rest .bg-num { color: var(--faint); }
.bg-caption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--mute); }
.bg-segments { display: none; gap: 4px; margin-top: 22px; }
.bs-gauge[data-mode="live"] .bg-segments { display: grid; }
.bg-segments i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); transition: background-color 0.4s var(--ease-ui); }
.bg-segments i.is-on { background: var(--amber); }

/* ---------- The summary beside the gauge ---------- */

.bs-summary .report-title { margin-top: 18px; font-size: clamp(32px, 1.3rem + 2vw, 52px); line-height: 1.06; letter-spacing: -0.026em; text-wrap: balance; overflow-wrap: normal; }
.bs-summary .report-title .dim { display: block; }
.bs-tally { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.bs-tally li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 14.5px; color: var(--ink-2); }
.bs-tally b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.bs-tally .tally-proven { background: var(--error-bg); color: #ffd6cd; }
.bs-tally .tally-proven b { color: var(--error-ink); }
.bs-tally .tally-suspicion { background: var(--look-bg); color: #f3e3b0; }
.bs-tally .tally-suspicion b { color: var(--yellow); }
.bs-tally .tally-unchecked { background: rgba(255, 255, 255, 0.04); color: var(--mute); }
.bs-tally .tally-unchecked b { color: var(--mute); }
.bs-summary .report-meta { margin-top: 16px; overflow-wrap: anywhere; }
.bs-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; margin-top: 22px; }
.bs-down { width: 10px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bs-formula { flex: 1 1 260px; min-width: 0; }
.bs-formula summary { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 48px; padding: 0 4px; color: var(--ink-2); font-size: 14.5px; cursor: pointer; list-style: none; }
.bs-formula summary::-webkit-details-marker { display: none; }
.bs-formula p { padding: 0 4px 4px; font-size: 14px; line-height: 1.6; color: var(--mute); }
.bs-chev { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease-ui); }
details[open] > summary .bs-chev { transform: rotate(180deg); }
/* What follows the score arrives once the gauge has climbed. */
.js .bs-summary .bs-after { opacity: 0; transform: translateY(10px); transition: opacity 0.7s var(--ease-ui), transform 0.8s var(--ease); }
.js .bs-summary.is-done .bs-after { opacity: 1; transform: none; }

/* ---------- Permission, as a dialog over the stage ---------- */

.bs-consent {
  width: min(560px, 100% - 32px); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0;
  border: 0; background: transparent; color: var(--ink); overflow: auto; overscroll-behavior: contain;
}
.bs-consent::backdrop { background: rgba(4, 14, 26, 0.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bs-consent-box {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 16px; padding: clamp(22px, 4vw, 32px);
  border-radius: 16px; background: var(--bg); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}
.bs-consent-box::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; left: 20%; right: -30%; top: -60%; height: 90%;
  background: radial-gradient(closest-side, rgba(255, 97, 24, 0.32), transparent), radial-gradient(closest-side at 70% 60%, rgba(249, 107, 238, 0.26), transparent);
}
.bs-consent .eyebrow { justify-self: start; }
.bs-consent .panel-title { padding-right: 40px; overflow-wrap: anywhere; }
.bs-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--mute); cursor: pointer; transition: color 0.2s var(--ease-ui); }
.bs-close:hover { color: var(--ink); }
.bs-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.bs-allow { display: grid; gap: 10px; }
.bs-allow li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.bs-allow svg { width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--amber); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bs-allow .is-never svg { stroke: var(--error-ink); }
.bs-small { font-size: 13.5px; line-height: 1.5; color: var(--faint); }
.bs-consent .confirm-form { margin-top: 0; }
.bs-consent .check { background: rgba(255, 255, 255, 0.06); }
.bs-consent .form-error { margin-top: 14px; }
.bs-consent .panel-actions { align-items: center; margin-top: 18px; }
.bs-consent .panel-actions .btn { margin-top: 0; }
.bs-consent .btn-text { min-height: 44px; color: var(--mute); }
.bs-consent[open] .bs-consent-box { animation: bs-pop 0.45s var(--ease) both; }
.bs-consent[open]::backdrop { animation: bs-fade 0.25s ease-out both; }
@keyframes bs-pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
@keyframes bs-fade { from { opacity: 0; } }

/* ---------- The report: every answer, on the same sheet ---------- */

.bs-report { padding-top: clamp(56px, 6vw, 88px); }
.bs-report .report-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.bs-report .report-top h2 { font-size: clamp(26px, 1.1rem + 1.2vw, 36px); font-weight: 300; line-height: 1.15; letter-spacing: -0.02em; max-width: 17.108em; outline: none; }
.bs-report .report-top .report-note { margin-top: 8px; }
.bs-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.bs-tabs button {
  min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--ink-2);
  font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color 0.25s var(--ease-ui), color 0.25s var(--ease-ui), border-color 0.25s var(--ease-ui);
}
.bs-tabs button:hover { color: var(--ink); }
.bs-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.bs-report .report-group { margin-top: 56px; }
.bs-report .report-list { gap: 32px; margin-top: 22px; }
.bs-report .group-correct .report-list { gap: 10px; }
.bs-report .report-empty { padding: 0; }
.bs-report .finding { gap: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.bs-report .fix { padding: 0; border: 0; }

.bq-head { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.bq-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); }
.bq-mark svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.finding-proven .bq-mark { color: var(--error); border-color: var(--error-line); background: var(--error-bg); }
.finding-suspicion .bq-mark { color: var(--look-ink); border-color: var(--look-line); background: var(--look-bg); }
.finding-unchecked .bq-mark { color: var(--faint); }
.bq-q { margin: 0; padding-top: 2px; font-size: clamp(18px, 1rem + 0.3vw, 21px); font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.bq-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.bq-chip { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 500; }
.finding-suspicion .bq-chip { background: var(--look-bg); color: var(--look-ink); }
.bq-ok { font-size: 13.5px; color: var(--ink-2); }
.bq-body { display: grid; gap: 14px; margin: 16px 0 0 42px; }
.bq-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bq-said, .bq-source { display: grid; gap: 7px; align-content: start; min-width: 0; margin: 0; }
.bq-said figcaption, .bq-source figcaption { font-size: 13px; font-weight: 500; color: var(--mute); }
.bq-bot, .bq-site { padding: 13px 15px; font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
/* Yellow is what the bot said, orange what the store's own page says, as everywhere on the site. */
.bq-bot { border-radius: 14px 14px 14px 4px; background: var(--surface-2); color: var(--ink); box-shadow: inset 3px 0 0 var(--claim-line); }
.bs-report .bq-site { border-radius: var(--r-md); background: var(--sheet); color: var(--sheet-ink); font-family: var(--font); box-shadow: inset 3px 0 0 var(--orange); }
.bq-meta, .bs-report .evidence-source { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 0; font-size: 12.5px; color: var(--mute); }
.bs-report .evidence-source a { font-family: var(--mono); color: var(--ink-2); }
.bs-report .finding-why { font-size: 15px; line-height: 1.5; }
.bs-report .finding-proven .finding-why { padding: 11px 14px; border-radius: var(--r-md); background: var(--error-bg); color: var(--error-ink); }
.bs-report .finding-why b { font-weight: 600; }
.bs-report .finding-suspicion .finding-why { color: var(--look-ink); }
.bs-report .finding-unchecked .finding-why { color: var(--mute); }
/* A correct answer is one line; its evidence opens on demand. */
.bq-open > summary { list-style: none; cursor: pointer; }
.bq-open > summary::-webkit-details-marker { display: none; }
.bq-open .bq-head { grid-template-columns: 28px minmax(0, 1fr) auto 12px; align-items: center; }
.bq-open .bq-q { padding-top: 0; }
.bs-report .report-cta { margin-top: 72px; padding: 0; border-radius: 0; background: none; color: var(--ink); }
.bs-report .report-cta p { color: var(--mute); }
.bs-report .report-cta .panel-actions { margin-top: 8px; }
/* The report opens under the stage one group after another. */
.js .bs-report :is(.report-top, .report-group, .report-cta) { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease-ui), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
.js .bs-report.is-in :is(.report-top, .report-group, .report-cta) { opacity: 1; transform: none; }
/* With a result on the page, the explanations make way for it. */
main:has([data-try][data-step="result"]) :is(.try-how, .try-read) { display: none; }

/* ---------- How the test works: four steps on one line ---------- */

.try-how .section-title { margin-top: 14px; }
.th-rail { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); margin-top: clamp(36px, 4vw, 56px); }
/* The steps join on the row of their numbers: each line runs from one number to the next and is drawn in turn, so it
   never crosses a picture. (It used to run at the pictures' middle, behind their cards; once the cards went, 1. 11., it
   struck through the address, the envelope, the chat and the figures, Dušan, 4. 12.) The number sits on its own row:
   picture 112px, then 22px, then the 26px circle, so the line's middle is at 147px. */
.th-rail { --th-gap: clamp(20px, 2.6vw, 36px); gap: var(--th-gap); }
.th-step { position: relative; }
.th-step:not(:last-child)::after {
  content: ""; position: absolute; top: 146px; left: 38px; right: calc(12px - var(--th-gap)); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--th-from), var(--th-to));
  transform-origin: left center; transform: scaleX(0); transition: transform 0.6s var(--ease) var(--th-wait);
}
.th-step:nth-child(1) { --th-from: var(--orange); --th-to: var(--ruby); --th-wait: 0.6s; }
.th-step:nth-child(2) { --th-from: var(--ruby); --th-to: color-mix(in oklab, var(--ruby), var(--magenta)); --th-wait: 1.1s; }
.th-step:nth-child(3) { --th-from: color-mix(in oklab, var(--ruby), var(--magenta)); --th-to: var(--magenta); --th-wait: 1.6s; }
.th-rail.is-in .th-step::after, html:not(.js) .th-step::after { transform: scaleX(1); }
.th-art {
  position: relative; z-index: 1; display: grid; align-content: center; gap: 6px; height: 112px; padding: 14px 16px; overflow: hidden;
  border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--lift-1);
}
.th-step h3 { display: grid; justify-items: start; gap: 16px; margin-top: 22px; font-size: 18px; font-weight: 400; letter-spacing: -0.01em; }
.th-step h3 span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 12px; font-weight: 400; }
.th-step > p { margin-top: 10px; font-size: 15px; color: var(--mute); max-width: 22.542em; }

.th-doc-t { font-size: 12px; font-weight: 500; color: var(--faint); }
.th-doc-l { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.th-art-terms i { display: block; height: 5px; border-radius: 3px; background: var(--surface-2); }
.th-art-terms i:last-child { width: 62%; }
.th-art-mail { justify-items: center; }
.th-art-mail svg { width: 64px; height: 44px; fill: var(--surface); stroke: var(--ink-2); stroke-width: 1.6; stroke-linejoin: round; }
.th-art-mail p { font-size: 12px; color: var(--ink-2); }
.th-art-chat { align-content: center; }
.th-ask { justify-self: end; padding: 6px 10px; border-radius: 12px 12px 4px 12px; background: var(--ink); color: var(--bg); font-size: 12.5px; }
.th-dots { justify-self: start; display: flex; gap: 4px; padding: 9px 11px; border-radius: 12px; background: var(--surface); }
.th-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); animation: dot 1s infinite; }
.th-dots i:nth-child(2) { animation-delay: 0.15s; }
.th-dots i:nth-child(3) { animation-delay: 0.3s; }
.th-art-result { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; text-align: center; gap: 4px; }
.th-art-result p { font-size: 11px; color: var(--mute); line-height: 1.25; }
.th-art-result b { display: block; font-size: 30px; font-weight: 300; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.th-art-result b.is-err { color: var(--error); }
.th-art-result b.is-look { color: var(--look-ink); }
.th-rail mark::before { transition-delay: 0.9s; }
.th-rail.is-in mark::before, html:not(.js) .th-rail mark::before { transform: scaleX(1); }
.js .th-rail .th-step { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-ui), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 140ms); }
.js .th-rail.is-in .th-step { opacity: 1; transform: none; }
/* The rail itself does not slide; only its steps do. */
.js .th-rail[data-reveal] { opacity: 1; transform: none; }

/* ---------- Reading the result: one finding, its four parts ---------- */

.tr-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.tr-text .section-title { margin-top: 14px; }
.tr-keys { display: grid; gap: 18px; margin-top: 32px; }
.tr-keys li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: start; }
.tr-keys b { font-size: 16px; font-weight: 500; }
.tr-keys p { margin-top: 3px; font-size: 15px; color: var(--mute); max-width: 30.498em; }
.tr-pin { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 12px; }
.js .tr-keys > li { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease-ui), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.js .tr-keys.is-in > li { opacity: 1; transform: none; }
.js .tr-keys[data-reveal] { opacity: 1; transform: none; }

.tr-figure { margin: 0; padding-right: 14px; }
.tr-finding { box-shadow: var(--lift-2); }
.tr-part { position: relative; }
/* Each part of the finding carries the number of its explanation, on the card's edge. */
.tr-part::after {
  content: attr(data-pin); position: absolute; right: -31px; top: 50%; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 12px; box-shadow: 0 0 0 4px var(--bg);
}
.js .tr-figure .tr-part::after { opacity: 0; transform: scale(0.4); transition: opacity 0.25s var(--ease-ui), transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.js .tr-figure.is-in .tr-part::after { opacity: 1; transform: none; }
.js .tr-figure.is-in .tr-part[data-pin="1"]::after { transition-delay: 0.5s; }
.js .tr-figure.is-in .tr-part[data-pin="2"]::after { transition-delay: 0.65s; }
.js .tr-figure.is-in .tr-part[data-pin="3"]::after { transition-delay: 0.8s; }
.js .tr-figure.is-in .tr-part[data-pin="4"]::after { transition-delay: 0.95s; }
.tr-figure mark::before { transition-delay: 0.6s; }
.tr-figure.is-in mark::before, html:not(.js) .tr-figure mark::before { transform: scaleX(1); }
.tr-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.tr-groups li { padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel); font-size: 13.5px; line-height: 1.45; color: var(--mute); box-shadow: inset 3px 0 0 var(--k, var(--faint)); }
.tr-groups b { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 500; color: var(--ink); }
.tr-groups .is-err { --k: var(--error); }
.tr-groups .is-ok { --k: var(--ink); }
.tr-groups .is-look { --k: var(--yellow-deep); }

/* The example finding's labels are words, as in the dashboard: "High", "Recommendation", never shouted. */
.page-try .tr-finding .sev {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px;
  border: 1px solid var(--error-line); background: var(--error-bg); color: var(--error-ink);
  font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none;
}
.page-try .tr-finding .sev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--error); }
.page-try .tr-finding .fix-label { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
/* No coloured bars on the quote's edge: the marked words carry the colour, the boxes stay quiet. */
.page-try .tr-finding .exchange-a { box-shadow: none; }
.page-try .tr-finding .evidence { box-shadow: none; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); }

/* The explanations lie on the sheet too: no cards around their pictures, no frame around the example. */
.page-try .th-art { background: none; border: 0; box-shadow: none; padding-inline: 0; }
.page-try .tr-finding { padding: 0; background: none; border: 0; box-shadow: none; }
.page-try .tr-figure { padding-right: 36px; }
.page-try .tr-groups li { padding: 0; background: none; border: 0; box-shadow: none; }
.page-try .tr-groups b { color: var(--k, var(--faint)); }

/* ---------- Narrow screens ---------- */

@media (max-width: 1023px) {
  .bs-grid, .bs-grid:has([data-try][data-step="result"]), .tr-grid { grid-template-columns: minmax(0, 1fr); }
  .bs-lead { max-width: 680px; }
  .th-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .th-step::after { display: none; }
}
@media (max-width: 640px) {
  .bq-head { grid-template-columns: 28px minmax(0, 1fr); }
  .bq-tags { grid-column: 2; justify-content: flex-start; }
  .bq-open .bq-head { grid-template-columns: 28px minmax(0, 1fr) 12px; }
  .bq-open .bq-tags { grid-row: 2; }
  .bq-open .bs-chev { grid-column: 3; grid-row: 1; }
  .bq-body { margin-left: 0; }
  .bq-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .th-rail { grid-template-columns: minmax(0, 1fr); }
  .tr-groups { grid-template-columns: minmax(0, 1fr); }
  .tr-figure { padding-right: 12px; }
}
