/* "Are we ready for AI?", version 4 (5 Nov 2026): what the scorecard adds to the Systems Finder's shell and controls
   (assets/finder/finder.css, controls.css; load order finder, controls, this, site-taste.css). Same tokens, type
   and tile look; only the scorecard's own pieces live here: the phone bar, answer tiles one to a row, question 11's
   rows, the slider lock, the free first section with the form, and the report pages after it. */

/* A shorter card than the Finder's on wide screens: 13 quick questions, not six steps of picks. */
@media (min-width: 821px) { .sc { min-height: 640px; } }

/* Phone bar: six segments, filled as the questions go by (app.ts sets data-sc-chapter 0 to 6); all six on the report. */
@media (max-width: 820px) {
  .sc[data-sc-chapter="0"] .fd-bar span:nth-child(-n+1),
  .sc[data-sc-chapter="1"] .fd-bar span:nth-child(-n+2),
  .sc[data-sc-chapter="2"] .fd-bar span:nth-child(-n+3),
  .sc[data-sc-chapter="3"] .fd-bar span:nth-child(-n+4),
  .sc[data-sc-chapter="4"] .fd-bar span:nth-child(-n+5),
  .sc[data-sc-chapter="5"] .fd-bar span,
  .sc[data-sc-chapter="6"] .fd-bar span { background: var(--bla-consulting-blue); }
  .sc .fd-top { grid-template-columns: minmax(0, 1fr) auto; }
  /* The h1 and lede belong to question 1; after that the questions speak for themselves. */
  .sc[data-fd-started] .fd-intro { display: none; }
  .sc:not([data-fd-started]) .fd-lede { display: block; }
  .sc .fd-main { padding-top: 18px; }
}

/* The rising building: windows light as the questions are answered. */
.sc-build { margin-top: auto; border-top: 1px solid var(--bla-soft-stone); padding-top: 18px; }
.sc-build .sc-building { width: 56px; height: 78px; }
.sc-mini { display: none; }
@media (max-width: 820px) {
  .sc-mini { display: block; }
  .sc-mini .sc-building { width: 26px; height: 36px; display: block; }
}
.sc-building { display: block; overflow: visible; }
.sc-building .sc-wall { fill: var(--bla-off-white); stroke: var(--bla-charcoal); stroke-width: 1.6; }
.sc-building :is(.sc-roof, .sc-ground) { fill: none; stroke: var(--bla-charcoal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sc-building .sc-win { fill: var(--bla-soft-stone); transition: fill 300ms var(--ease-out); }
.sc-building .sc-win.is-lit { fill: var(--bla-consulting-blue); }

/* Answer tiles: whole sentences, so one to a row and left-aligned, at every width. */
.sc .fd-tiles[data-cols="1"] { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.sc .fd-tiles[data-cols="1"] .fd-tile { justify-items: start; text-align: left; padding: 16px 18px; min-height: 56px; }
.sc .fd-tiles[data-cols="1"] .fd-tile-l { font-weight: 600; font-size: 16px; line-height: 1.35; }
/* "Not sure" always comes last, a step quieter than the answers. */
.sc .fd-tile[data-unsure] { background: transparent; box-shadow: none; border: 2px dashed var(--bla-soft-stone); }
.sc .fd-tile[data-unsure] .fd-tile-l { font-weight: 500; color: var(--bla-steel-grey); }

/* Next stays shut until there is an answer; it reads as waiting, not broken. */
.sc .fd-go:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.sc .fd-go:disabled::after { transform: none; }

/* Slider: a big thumb and a big number; muted until it is moved (the lock). */
.sc-slider { padding: 22px 20px 16px; }
.sc-slider .fd-slider-v { font-family: var(--font-mono); font-weight: 500; font-size: 34px; line-height: 1.1; }
.sc-slider:not(.is-set) .fd-slider-v { color: var(--bla-steel-grey); }
.sc-slider .fd-range { height: 44px; }
.sc-slider .fd-range::-webkit-slider-thumb { width: 34px; height: 34px; margin-top: -14px; }
.sc-slider .fd-range::-moz-range-thumb { width: 28px; height: 28px; }

/* Question 11: each job on its own line, its four levels as one row of taps under it, and the biggest drain so far. */
.sc-q { display: grid; gap: 14px; min-width: 0; }
.sc-q > .fd-legend { float: none; }
.sc-grid { display: grid; gap: 16px; }
.sc-gr { display: grid; gap: 8px; min-width: 0; }
.sc-gr-l { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.3; }
.sc-gr-o { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sc-gr-c {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 4px; border: 2px solid transparent; border-radius: 10px;
  background: var(--bla-off-white); box-shadow: 0 1px 2px var(--fd-ink-06); font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer;
}
.sc-gr-c:has(input:checked) { border-color: var(--bla-consulting-blue); background: var(--fd-lb-45); }
.sc-gr-c:has(input:focus-visible) { outline: 2px solid var(--bla-consulting-blue); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .sc-gr-c:hover { border-color: var(--bla-consulting-blue); } }
.sc-drain { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--bla-soft-stone); font-size: 15px; line-height: 1.4; }

/* The form: first name and email side by side on wide screens. */
.sc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sc-privacy { margin: 0; font-size: 14px; }
@media (max-width: 820px) { .sc-fields { grid-template-columns: minmax(0, 1fr); } }

/* The free first section: the dial and stage, six areas with the Ready tick, the first step and what they said. */
.sc-card { display: grid; gap: 16px; padding: 24px; border-radius: 20px; background: var(--bla-off-white); box-shadow: 0 1px 2px var(--fd-ink-06); }
.sc-card h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.15; text-wrap: balance; }
.sc-card-lead { margin: 4px 0 0; font-size: 17px; line-height: 1.45; }
.sc-dialrow { display: flex; align-items: center; gap: 18px; }
.sc-dial { width: 92px; height: 92px; flex: none; }
.sc-dial-t { fill: none; stroke: var(--bla-soft-stone); stroke-width: 9; }
.sc-dial-a { fill: none; stroke: var(--bla-consulting-blue); stroke-width: 9; }
/* The score arriving (Kristian, 7 Nov 2026): the ring draws itself to the score, then the six bars fill in turn.
   The numbers never move. Reduced motion shows the end state at once. */
@property --v { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes sc-draw { from { stroke-dashoffset: var(--len); } }
@keyframes sc-fill { from { --v: 0%; } }
.sc-card .sc-dial-a { animation: sc-draw 600ms cubic-bezier(0.23, 1, 0.32, 1) 120ms both; }
.sc-card .sc-area-bar { animation: sc-fill 450ms cubic-bezier(0.23, 1, 0.32, 1) calc(200ms + var(--i, 0) * 40ms) both; }
.sc-dial-n { font-family: var(--font-mono); font-weight: 500; font-size: 24px; fill: var(--bla-charcoal); }
.sc-dial-o { font-family: var(--font-body); font-size: 9px; fill: var(--bla-steel-grey); }
.sc-h3 { margin: 4px 0 0; font-size: 17px; font-weight: 700; }
.sc-areas { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sc-area { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; }
.sc-area-l { font-weight: 600; font-size: 15px; }
.sc-area-n { font-family: var(--font-mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.sc-area-bar { position: relative; grid-column: 1 / -1; height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--bla-consulting-blue) var(--v), var(--bla-soft-stone) var(--v)); }
.sc-area-bar::after { content: ""; position: absolute; left: var(--mark); top: -4px; width: 2px; height: 16px; background: var(--bla-charcoal); }
.sc-tick { margin: 0; font-size: 14px; color: var(--bla-steel-grey); }
.sc-step { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--fd-lb-45); }
.sc-step-l { font-size: 14px; font-weight: 600; color: var(--bla-consulting-blue); }
.sc-step b { font-size: 17px; line-height: 1.4; }
.sc-you { margin: 0; padding-left: 12px; border-left: 3px solid var(--bla-soft-stone); font-size: 15px; line-height: 1.45; color: var(--bla-steel-grey); }

/* The locked rest of the report (stand-in lines, blurred, so nothing real is on the page), then the form. */
.sc-teaser { margin: 0; font-size: 17px; line-height: 1.45; }
.sc-locked { overflow: hidden; padding: 20px; border-radius: 16px; background: var(--bla-off-white); box-shadow: 0 1px 2px var(--fd-ink-06); }
.sc-lk-in { display: grid; gap: 12px; filter: blur(5px); user-select: none; pointer-events: none; }
.sc-lk-line { display: block; width: var(--w); height: 12px; border-radius: 6px; background: var(--bla-soft-stone); }
.sc-form-h { margin-top: 8px; }

/* After the send: the three report pages (v4/report.ts, its own styles scoped to .rq), sized to the column. */
.sc-result { display: grid; gap: 16px; min-width: 0; }
.sc-report { display: grid; gap: 16px; min-width: 0; container-type: inline-size; }
.sc-report .page { width: auto; max-width: 100%; min-height: 0; margin: 0; padding: 22px 22px 60px; border-radius: 14px; box-shadow: 0 1px 2px var(--fd-ink-06); }
.sc-report .head { flex-direction: column; }
.sc-report .head__r { text-align: left; }
.sc-report .foot { left: 22px; right: 22px; bottom: 16px; }
@container (max-width: 640px) {
  .sc-report .page h1 { font-size: 44px; }
  .sc-report .page h2 { font-size: 28px; }
  .sc-report .cover__row { flex-direction: column; align-items: stretch; }
  .sc-report .ring { align-self: center; }
  .sc-report :is(.facts, .v4-cols, .v4-plan) { grid-template-columns: minmax(0, 1fr); }
  .sc-report .v4-hr { grid-template-columns: minmax(0, 1fr) 22mm; }
  .sc-report .v4-hr i { grid-column: 1 / -1; grid-row: 2; }
  .sc-report .cta { flex-direction: column; align-items: flex-start; }
  .sc-report .cta--call { grid-template-columns: minmax(0, 1fr); }
}
/* The site-wide type scale and section spacing (site-taste.css) are for pages, not the report's sheets: these keep the
   sheets' own sizes, as in the emailed report. */
html body main .sc-report .page h1:not(#st) { font-size: 44px !important; line-height: 1.05 !important; }
html body main .sc-report .page h2:not(#st) { font-size: 30px !important; line-height: 1.2 !important; margin: 0 !important; }
html body main .sc-report .page h2.h3:not(#st) { font-size: 22px !important; margin-top: 4px !important; }
html body main .sc-report .page :is(h1, h2) + :not(#st) { margin-top: 0 !important; }
.sc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sc-sent { margin: 0; font-size: 15px; color: var(--bla-steel-grey); }
.sc-share { display: grid; gap: 8px; width: 100%; padding-top: 16px; border-top: 1px solid var(--bla-soft-stone); }
.sc-share .fd-help { margin: 0; }

/* The ads' page question 1 tap (swap.ts): the page cross-fades into question 2 where the browser can. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }

@media (prefers-reduced-motion: reduce) {
  .sc-building .sc-win { transition: none; }
  .sc-card :is(.sc-dial-a, .sc-area-bar) { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Cookie settings, small and out of the way under the scorecard (26 Oct 2026). */
.sc-cookie { margin: 0; padding: 12px 20px 20px; text-align: center; font-size: 13px; }
.sc-cookie a { color: var(--bla-steel-grey); }

/* The question screens carry on the readiness page's question 1 card (Kristian, 6 Nov 2026): a Charcoal pane,
   Off-White question, Off-White answers with an arrow, Light Blue for the one picked; Signal Blue only on Next (Kristian, 6 Nov 2026). Only while a question shows
   (fieldset.fd-q); the free section, the form and the report keep their own look. */
.sc-page .fd-main:has(.fd-slide fieldset.fd-q) { background: #232A31; color: #FAFAF8; }
.sc-page .fd-main:has(fieldset.fd-q) .fd-legend { color: #FAFAF8; }
.sc-page .fd-main:has(fieldset.fd-q) .fd-help { color: rgba(250, 250, 248, 0.72); }
.sc-page .fd-main fieldset.fd-q .fd-tile { background: #FAFAF8; color: #232A31; border: 2px solid transparent; box-shadow: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; min-height: 56px; padding: 14px 20px;
  transition: background-color 140ms cubic-bezier(0.23, 1, 0.32, 1), color 140ms cubic-bezier(0.23, 1, 0.32, 1), border-color 140ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 140ms cubic-bezier(0.23, 1, 0.32, 1), transform 140ms cubic-bezier(0.23, 1, 0.32, 1); }
.sc-page .fd-main fieldset.fd-q .fd-tile .fd-tile-l { transition: color 140ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (prefers-reduced-motion: reduce) { .sc-page .fd-main fieldset.fd-q .fd-tile, .sc-page .fd-main fieldset.fd-q .fd-tile .fd-tile-l { transition: none; } }
/* The arrow reuses the tick badge's ::after, so it stays shown whether or not the answer is picked. */
.sc-page .fd-main fieldset.fd-q .fd-tile::after { content: ""; display: block; position: static; inset: auto; opacity: 1; transform: none; border-radius: 0; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.sc-page .fd-main fieldset.fd-q .fd-tile:has(input:checked) { background: #AFC4DD; border-color: #FAFAF8; }
.sc-page .fd-main fieldset.fd-q .fd-tile:has(input:focus-visible) { outline: 2px solid #AFC4DD; outline-offset: 3px; }
.sc-page .fd-main fieldset.fd-q .fd-tile .fd-tile-l { color: #232A31; font-size: 17px; }
.sc-page .fd-main fieldset.fd-q .fd-tile .fd-tile-s { color: #232A31; opacity: 0.8; }
.sc-page .fd-main fieldset.fd-q .fd-tile .fd-ico { background: rgba(250, 250, 248, 0.5); }
.sc-page .fd-main fieldset.fd-q .fd-tile[data-unsure] { background: transparent; color: #FAFAF8; border-color: rgba(250, 250, 248, 0.3); }
.sc-page .fd-main fieldset.fd-q .fd-tile[data-unsure] .fd-tile-l { color: #FAFAF8; }
.sc-page .fd-main fieldset.fd-q .fd-tile[data-unsure]:has(input:checked) { background: #AFC4DD; border-color: #FAFAF8; }
.sc-page .fd-main fieldset.fd-q .fd-tile[data-unsure]:has(input:checked) .fd-tile-l { color: #232A31; }
@media (hover: hover) and (pointer: fine) { .sc-page .fd-main fieldset.fd-q .fd-tile:hover { background: #AFC4DD; border-color: transparent; } }
/* Question 11's grid and the turnover slider on the dark pane. The row names sit on the Charcoal; the cells, the biggest
   drain line and the turnover card keep their light grounds, so their words stay Charcoal, and a picked cell goes Light
   Blue like a picked answer (8 Nov 2026: Off-White words on those grounds hid every level and the turnover figure). */
.sc-page .fd-main fieldset.fd-q .sc-gr-l { color: #FAFAF8; }
.sc-page .fd-main fieldset.fd-q :is(.sc-drain, .fd-slider) { color: #232A31; }
.sc-page .fd-main fieldset.fd-q .sc-gr-c { background: #FAFAF8; color: #232A31; border-color: transparent; box-shadow: none; }
.sc-page .fd-main fieldset.fd-q .sc-gr-c:has(input:checked) { background: #AFC4DD; border-color: #FAFAF8; }
.sc-page .fd-main fieldset.fd-q .sc-gr-c:has(input:focus-visible) { outline-color: #AFC4DD; }
@media (hover: hover) and (pointer: fine) { .sc-page .fd-main fieldset.fd-q .sc-gr-c:hover { background: #AFC4DD; border-color: transparent; } }
.sc-page .fd-main fieldset.fd-q .fd-slider { accent-color: #6193D1; }
/* Back and Next on the dark pane. */
.sc-page .fd-main:has(fieldset.fd-q) .fd-back { color: #FAFAF8; }
.sc-page .fd-main:has(fieldset.fd-q) .fd-go { background: #6193D1; color: #232A31; }
.sc-page .fd-main:has(fieldset.fd-q) .fd-foot { border-color: rgba(250, 250, 248, 0.14); background: transparent; }
/* On a phone the footer is pinned over the answers, so it keeps a solid Charcoal ground. */
@media (max-width: 820px) { .sc-page .fd-main:has(fieldset.fd-q) .fd-foot { background: #232A31; } }
/* The page ground goes Off-White while a question shows, so the Charcoal pane and the Soft Stone side panel both keep
   their edges. */
body.sc-page:has(fieldset.fd-q) { background: #FAFAF8; }
html body.sc-page:has(fieldset.fd-q) .sc-cookie a { color: #232A31 !important; }
.sc-page .fd-main fieldset.fd-q .fd-tile:has(input:checked)::after { background: #232A31; }

/* The side panel in Soft Stone (Kristian, 6 Nov 2026), on every screen, with its lines and rings darkened so they
   still show on the stone. The phone's top bar is the same panel. */
.sc-page :is(.fd-intro, .fd-rail) { background: #E5E5E2; }
.sc-page .fd-step:not([data-state="done"])::before { background: rgba(35, 42, 49, 0.18); }
.sc-page .fd-step:not([data-state="done"]):not([data-state="current"]) .fd-dot { border-color: rgba(35, 42, 49, 0.28); }
.sc-page .sc-build { border-top-color: rgba(35, 42, 49, 0.16); }
.sc-page .fd-top { background: #E5E5E2; }
.sc-page .fd-bar span { background: rgba(35, 42, 49, 0.16); }

/* Question screens and the card sit centred on desktop (Kristian, 6 Nov 2026). */
@media (min-width: 821px) { .fd:is(.sc, [data-sa-root]) .fd-slide:has(fieldset.fd-q) { align-content: center; } }
@media (min-width: 821px) { body.fd-page:has(> .fd:is(.sc, [data-sa-root])) { display: flex; flex-direction: column; justify-content: center; position: relative; padding-block: 40px; } body.fd-page:has(> .fd.sc) > .sc-cookie { position: absolute; left: 0; right: 0; bottom: 0; } body.fd-page > .fd:is(.sc, [data-sa-root]) { width: 100%; } }
