/* ---------------------------------------------------------------------------
   The scorecards: intro, details, one question a screen, then the result.
   ---------------------------------------------------------------------------
   Loaded after `/shared.css`, which brings the palette, the type, the buttons,
   the bar, the footer and the cookie banner. This file adds only what the
   scorecards need on top: a few tokens the site has no use for, and the pieces
   of each screen. The same file is inlined into the claude.ai previews, with a
   copy of the site's basics in front of it.
   --------------------------------------------------------------------------- */

:root {
  --warn-wash: #fff6e6;
  --err-wash: rgba(207, 59, 50, 0.06);
  --err-edge: rgba(207, 59, 50, 0.24);
  --ok-wash: rgba(44, 134, 77, 0.08);
  --paper-soft: #6b6862;
  --ink-wash: rgba(255, 108, 55, 0.45);
  --shadow-paper: drop-shadow(0 24px 26px rgba(17, 17, 17, 0.16));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --warn-wash: rgba(240, 176, 74, 0.12);
    --err-wash: rgba(255, 107, 99, 0.08);
    --err-edge: rgba(255, 107, 99, 0.3);
    --ok-wash: rgba(78, 194, 122, 0.1);
    --shadow-paper: drop-shadow(0 24px 26px rgba(0, 0, 0, 0.55));
  }
}

:root[data-theme='dark'] {
  --warn-wash: rgba(240, 176, 74, 0.12);
  --err-wash: rgba(255, 107, 99, 0.08);
  --err-edge: rgba(255, 107, 99, 0.3);
  --ok-wash: rgba(78, 194, 122, 0.1);
  --shadow-paper: drop-shadow(0 24px 26px rgba(0, 0, 0, 0.55));
}

/* ---- type ---- */
h1.display { font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -0.025em; }
h1:focus { outline: none; }
.sc .eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft);
}
.sc .eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--brand); flex: none; }
.sc .lede { margin: 0; max-width: 58ch; font-size: 18px; line-height: 1.55; color: var(--text-soft); text-wrap: pretty; }
.sc .label {
  margin: 0; font: 500 12px var(--mono);
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-soft);
}
.num { font-variant-numeric: tabular-nums; }
.sc .btn svg { width: 16px; height: 16px; display: inline; }
.linkish {
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px;
}
.linkish:hover { color: var(--text); }
.opt:focus-visible, .linkish:focus-visible, .back:focus-visible, .seg button:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 3px;
}

/* ---- intro ---- */
.intro {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px; align-items: center; padding-block: 64px 80px;
}
.intro-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.gets { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.gets li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 15.5px; align-items: start; }
.gets svg { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.meta-line { margin: 0; font-size: 14px; color: var(--text-dim); }
.intro-art { min-width: 0; }

/* ---- question ---- */
.qs {
  max-width: 800px; margin-inline: auto; padding-block: 40px 64px;
  min-height: calc(100dvh - 57px - 64px);
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
}
.q-top { display: grid; gap: 12px; }
.q-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--text-dim); }
.back {
  appearance: none; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; margin-left: -8px; border-radius: 7px;
  font: 500 13px var(--sans); color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.04em;
}
.back:hover { color: var(--text); background: var(--card); }
.back svg { width: 14px; height: 14px; display: inline; }
.q-tag { font: 400 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); }
.progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--text); transition: width 0.35s ease; }
.q-text { font-size: clamp(27px, 3.4vw, 38px); line-height: 1.16; }
.q-hint { margin: -12px 0 0; color: var(--text-soft); font-size: 16px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt {
  appearance: none; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: center;
  min-height: 66px; padding: 15px 18px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--r);
  font: 500 15.5px/1.35 var(--sans);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.opt kbd {
  display: grid; place-items: center; width: 28px; height: 28px;
  font: 500 12px var(--mono); color: var(--text-soft);
  background: var(--bg); border: 1px solid var(--line); border-radius: 7px;
}
.opt:hover { border-color: var(--text-dim); }
.opt.is-on { border-color: var(--text); background: var(--row-hl); }
.opt.is-on kbd { background: var(--text); border-color: var(--text); color: var(--bg); }
.q-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-dim); }
.q-keys { display: none; }
@media (hover: hover) and (pointer: fine) { .q-keys { display: inline; } }

/* ---- details form ---- */
.gate { max-width: 580px; margin-inline: auto; padding-block: 56px 72px; display: flex; flex-direction: column; gap: 18px; }
.gate h1.display { font-size: clamp(32px, 4.2vw, 46px); }
.sc .form {
  display: grid; gap: 14px; margin-top: 6px; padding: 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--text-soft); min-width: 0; }
.field input {
  width: 100%; min-width: 0; padding: 11px 12px;
  font: 400 16px/1.4 var(--sans); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
}
.field input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.tick { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; color: var(--text-soft); }
.tick input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--text); }
/* A field nobody is asked for, so only a form-filling robot fills it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sc .fine { margin: 0; font-size: 13px; color: var(--text-dim); }
.sc .fine a { color: inherit; }
.note-err {
  display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px;
  border-radius: 10px; background: var(--err-wash); border: 1px solid var(--err-edge); color: var(--err); font-size: 14px;
}
.note-err svg, .send-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; display: inline; }
.note-err .linkish { color: var(--err); margin-left: auto; white-space: nowrap; }
.gate-skip { margin: 0; font-size: 13.5px; color: var(--text-dim); }

/* ---- result, shared pieces ---- */
.report { padding-block: 48px 48px; display: flex; flex-direction: column; gap: 56px; }
.rep-head { display: grid; gap: 22px; }
.send-note {
  display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 14px; width: fit-content; max-width: 100%;
  border-radius: 10px; background: var(--ok-wash); color: var(--text-soft); font-size: 14.5px;
}
.send-note svg { color: var(--ok); }
.send-note b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.send-note.is-quiet { background: var(--card); }
.send-note.is-quiet svg { color: var(--text-dim); }
.sect { display: grid; gap: 20px; }
.sect-head { display: grid; gap: 8px; }
.sect-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.2vw, 36px); letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
.sect-head p { margin: 0; color: var(--text-soft); max-width: 62ch; }

.cta-band {
  display: grid; gap: 18px; padding: 44px clamp(22px, 5vw, 56px);
  background: var(--ink); color: var(--ink-text); border: 1px solid var(--ink-line); border-radius: var(--r-lg);
}
.cta-band .display { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.1; }
.cta-band mark { background: none; box-shadow: inset 0 -0.32em 0 var(--ink-wash); }
.cta-band p { margin: 0; max-width: 62ch; font-size: 17px; color: var(--ink-soft); }
.cta-band .btn { background: var(--ink-text); color: var(--ink); border-color: transparent; }
.cta-band .btn.btn-ghost { background: transparent; color: var(--ink-text); border-color: var(--ink-line); }
.rep-foot { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; align-items: center; font-size: 14px; color: var(--text-dim); }

.note-warn {
  display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px 16px;
  border-radius: var(--r); background: var(--warn-wash); color: var(--warn); font-size: 15px;
}
.note-warn svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

@media (max-width: 860px) {
  .intro { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 36px 56px; }
}
@media (max-width: 640px) {
  .opts { grid-template-columns: 1fr; }
  .opt { min-height: 58px; }
  .row2 { grid-template-columns: 1fr; }
  .sc .form { padding: 18px; }
  .report { gap: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc *, .sc *::before, .sc *::after { transition: none !important; animation: none !important; }
}
