/* Mockup v2: action-plan report. Loaded after live.css (the unchanged live stylesheet); only adds report styles.
   Tokens are the live ones; three additions: --surface-2, --line-2, --y-bar. */
:root { --surface-2: #faf9f6; --line-2: #d6d3ca; --y-bar: #b68a12; --accent-soft: #e3f0ed; accent-color: var(--accent); }
@media (prefers-color-scheme: dark) { :root { --surface-2: #16191c; --line-2: #3a3f44; --y-bar: #d9ad3c; --accent-soft: #15302c; } }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.ic { inline-size: 18px; block-size: 18px; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.print-head { display: none; }

/* staged loading inside the live #loading section */
.stages { list-style: none; margin: 0; padding: 4px 18px; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-inline-size: 560px; }
.stage { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-block-end: 1px solid var(--line); }
.stage:last-child { border-block-end: 0; }
.st-icon { inline-size: 28px; block-size: 28px; border-radius: 50%; display: grid; place-items: center; }
.stage.done .st-icon { background: var(--g-bg); color: var(--g-fg); } .stage.run .st-icon { background: var(--accent-soft); color: var(--accent); } .stage.wait .st-icon { background: var(--n-bg); color: var(--ink-3); }
.st-text { display: grid; } .st-text span { font-size: 13px; color: var(--ink-3); }
.st-state { font-size: 13px; font-weight: 700; color: var(--ink-3); } .stage.done .st-state { color: var(--g-fg); } .stage.run .st-state { color: var(--accent); }
.spin { inline-size: 14px; block-size: 14px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }

/* buttons: live.css styles every <button> as the primary; scope variants here */
.btn { font: 700 15px/1.1 var(--font); min-block-size: 44px; padding: 0 16px; border-radius: var(--radius-s); border: 1.5px solid transparent; gap: 8px;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--ink-3); filter: none; }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline[aria-disabled=true] { cursor: default; }
.linkbtn { all: unset; color: var(--accent); font-weight: 700; text-decoration: underline; cursor: pointer; }
.linkbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- v3 report: one centered ~720px column ---------- */
body.is-result main.wrap { max-width: 760px; } /* 720px content + live 20px padding; the landing keeps the live 860px */
body.is-result .cta { display: none; }
body.is-result .hero { padding-block-end: 0; }
/* the onboarding lede and hint already did their job on the landing; the result screen keeps the question and the form */
body.is-result .hero .lede, body.is-result #hint { display: none; }
#results { padding-block-start: 28px; }
.report { display: grid; }

.verdict { margin: 0 0 20px; display: flex; align-items: center; gap: 10px; font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -0.005em; }
.verdict .ic { inline-size: 22px; block-size: 22px; }
.verdict.s-red .ic { color: var(--r-fg); } .verdict.s-yellow .ic { color: var(--y-fg); } .verdict.s-green .ic { color: var(--g-fg); }

.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.task { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.task-tag { margin: 0; display: flex; align-items: center; gap: 12px; }
.prio { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 3px 10px 3px 8px; border-radius: 999px; }
[dir=rtl] .prio { padding: 3px 8px 3px 10px; }
.prio .ic { inline-size: 15px; block-size: 15px; }
.prio.urgent { background: var(--r-bg); color: var(--r-fg); } .prio.recommended { background: var(--y-bg); color: var(--y-fg); }
.tmin { font-size: 13px; color: var(--ink-3); font-weight: 700; }
.task h3 { margin: 12px 0 4px; font-size: 20px; line-height: 1.3; }
.risk { margin: 0; color: var(--ink-2); max-width: 65ch; }
.task-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-block-start: 16px; }
.task-actions .btn { min-block-size: 44px; padding: 0 20px; }
.textlink { all: unset; box-sizing: border-box; cursor: pointer; color: var(--accent); font: 700 15px/1.2 var(--font); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  min-block-size: 44px; display: inline-flex; align-items: center; }
.textlink:hover { text-decoration-thickness: 2px; }
.textlink:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.howto { margin-block-start: 18px; padding-block-start: 18px; border-block-start: 1px solid var(--line); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.steps > li::before { content: counter(s); inline-size: 24px; block-size: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.steps > li > * { grid-column: 2; } .steps p { margin: 0; color: var(--ink); max-width: 65ch; }
.rec { margin-block-start: 8px; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); text-align: left; }
.rec code { flex: 1; font: 13px/1.5 var(--mono); overflow-wrap: anywhere; }
.btn-copy { all: unset; box-sizing: border-box; font: 700 13px/1 var(--font); display: inline-flex; align-items: center; gap: 6px; min-block-size: 40px; padding: 0 12px; flex: none;
  border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--surface); color: var(--ink); cursor: pointer; }
.btn-copy:hover { border-color: var(--accent); color: var(--accent); }
.btn-copy:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn-copy.ok { border-color: var(--g-fg); color: var(--g-fg); } .btn-copy .ic { inline-size: 16px; block-size: 16px; }
.howto-end { margin-block-start: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.howto-end .btn .ic { inline-size: 17px; block-size: 17px; }
.techd { margin: 0; flex-basis: auto; }
.techd[open] { flex-basis: 100%; }
.techd > summary { min-block-size: 44px; font-size: 13px; }
.api-says { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); max-width: 65ch; }
.techd .tech { margin: 8px 0 0; }
.done-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 12px 0 0; color: var(--g-fg); font-weight: 700; font-size: 15px; }
.done-line .textlink { font-size: 14px; color: var(--ink-3); min-block-size: 32px; }
.task.is-done { background: transparent; }
.task.is-done h3 { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; margin-block-start: 0; }

/* one-line folds: good + couldn't check */
details.fold { margin: 0; border-block-end: 1px solid var(--line); }
.tasks + details.fold { margin-block-start: 28px; border-block-start: 1px solid var(--line); }
details.fold > summary { display: flex; align-items: center; gap: 10px; inline-size: 100%; min-block-size: 52px; font-size: 16px; font-weight: 700; color: var(--ink); }
details.fold > summary::before { order: 3; margin-inline-start: auto; color: var(--ink-3); font-size: 18px; }
.fold-ic { inline-size: 24px; block-size: 24px; border-radius: 50%; display: grid; place-items: center; }
.good .fold-ic { background: var(--g-bg); color: var(--g-fg); } .unk .fold-ic { background: var(--n-bg); color: var(--ink-2); }
.fold-ic .ic { inline-size: 15px; block-size: 15px; }
details.fold ul { list-style: none; margin: 0 0 14px; padding: 0 0 0 34px; display: grid; gap: 8px; }
[dir=rtl] details.fold ul { padding: 0 34px 0 0; }
details.fold li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--ink-2); max-width: 68ch; }
details.fold li .ic { inline-size: 16px; block-size: 16px; margin-block-start: 3px; color: var(--ink-3); } .good li .ic { color: var(--g-fg); }

/* end of report: offer, quiet actions, timestamp */
.offer { margin: 32px 0 0; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 15px; }
.soon { display: inline-block; margin-inline-start: 6px; font-size: 13px; font-weight: 700; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 8px; }
.offer:target { border-color: var(--accent); border-style: solid; }
.quiet-row { margin-block-start: 16px; display: flex; flex-wrap: wrap; gap: 0 22px; }
.quiet-row .textlink { font-size: 15px; color: var(--ink-2); }
.stamp { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
body.is-result .limits { margin-top: 48px; }

.toast { position: fixed; inset-block-end: 20px; inset-inline: 20px; margin-inline: auto; inline-size: fit-content; max-inline-size: calc(100vw - 40px); opacity: 0; translate: 0 10px; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; transition: opacity .2s, translate .2s; }
.toast.on { opacity: 1; translate: 0 0; }

@media (min-width: 640px) { .stages { padding: 4px 20px; } }
@media (max-width: 480px) {
  .task { padding: 18px 16px; } .task h3 { font-size: 18px; }
  .verdict { font-size: 21px; align-items: flex-start; } .verdict .ic { margin-block-start: 4px; }
  .task-actions .btn { flex: 1 1 100%; } .task-actions .textlink { margin-inline: auto; }
  .howto-end .btn { flex: 1 1 100%; }
  details.fold ul { padding-inline-start: 0 !important; padding-inline-end: 0 !important; }
}
@media print {
  .task-actions, .howto-end .btn, .btn-copy, .toast, .hero, .limits, .offer, .quiet-row { display: none !important; }
  .print-head { display: block; margin: 12px 20px; font-size: 12px; color: #555; border-block-end: 1px solid #ccc; padding-block-end: 6px; }
  .howto[hidden] { display: block !important; }
  .task { break-inside: avoid; }
  details.fold > *, .techd > * { display: block; }
}

/* ---------- v4: legal + CISO additions, kept quiet ---------- */
.verdict { margin-block-end: 6px; }
.snap { margin: 0 0 20px; font-size: 13px; line-height: 1.5; color: var(--ink-3); max-width: 72ch; }
.note { margin: 0 0 16px; display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--ink-2); max-width: 68ch; }
.note .ic { inline-size: 17px; block-size: 17px; margin-block-start: 2px; color: var(--ink-3); }
.note.sub { margin: 16px 0 0; padding-inline-start: 38px; font-size: 14px; color: var(--ink-3); }
.note.warn { margin: 14px 0 0; color: var(--ink); }
.note.warn .ic { color: var(--y-fg); }
.prio.monitoring { background: var(--y-bg); color: var(--y-fg); }
.done-line.mon { color: var(--y-fg); }
.task.is-mon .js-fixed { display: none; }
.offer .mail { color: var(--accent); font-weight: 700; }
.disc { margin-block-start: 40px; padding-block-start: 18px; border-block-start: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.disc h2 { margin: 0 0 6px; font-size: 14px; color: var(--ink-2); }
.disc p { margin: 0 0 6px; max-width: 75ch; }
.disc a, .foot-links a { color: var(--ink-2); }
.foot-links { margin: 8px 0 0; font-size: 13px; }
.stamp { display: none; }
@media print {
  .snap, .disc { color: #333; }
  .disc { break-inside: avoid; border-block-start: 1px solid #999; }
  .foot-links, .note.sub { display: block; }
}
/* v4 fold budget: the snapshot line and the longer DMARC risk sentence cost ~70px; win it back without cutting content */
#results { padding-block-start: 20px; }
.snap { margin-block-end: 16px; }
.tasks { gap: 12px; }
.task { padding: 18px 24px 20px; }
.task h3 { margin-block-start: 10px; }
.task-actions { margin-block-start: 14px; }

/* standalone additions */
.not-yet { margin: 10px 0 0; }
.fold .fyi-h { margin-block-start: 10px; font-size: 13px; color: var(--ink-3); }
.fold .fyi-h b { font-weight: 700; }
.quiet-row .left { margin-inline-start: auto; font-size: 13px; }
@media print { .quiet-row .left, .not-yet { display: none !important; } }

/* ================= v5 declutter ================= */
/* 5: one content width in both states (top bar, hook, report, footer share one edge) */
body.is-result main.wrap { max-width: 760px; }

/* 6: H1 weight 800 -> 700 (only hook change besides the hint text and width) */
h1 { font-weight: 700; }

/* 7: empty state says "what we check" once */
.empty { padding: 20px 0 0; }
.scope-line { margin: 0; color: var(--ink-2); font-size: 15px; font-weight: 700; }
.scope-line span[aria-hidden] { color: var(--ink-3); font-weight: 400; }

/* verdict + one short disclaimer line */
.verdict { font-size: 20px; font-weight: 700; margin-block-end: 4px; }
.verdict .ic { inline-size: 20px; block-size: 20px; }
.snap { font-size: 13px; margin-block-end: 18px; }

/* 4: one quiet priority word, colour has one meaning each */
.task-tag { gap: 0; }
.prio { padding: 0 !important; background: none !important; border-radius: 0; font-size: 13px; font-weight: 700; gap: 7px; letter-spacing: .01em; }
.prio::before { content: ""; inline-size: 7px; block-size: 7px; border-radius: 50%; background: currentColor; }
.prio.urgent { color: var(--r-fg); }
.prio.recommended { color: var(--y-fg); }
.prio.monitoring { color: var(--i-fg); }
.task h3 { margin-block-start: 6px; font-size: 20px; }
.task.p-monitoring { background: var(--surface-2); }
.done-line { font-size: 15px; font-weight: 400; flex-wrap: nowrap; align-items: flex-start; }
.done-line .ic { margin-block-start: 3px; }
.done-line.mon { color: var(--ink); }
.done-line.mon .ic { color: var(--i-fg); }

/* 1 + 9: one filled button per report; the estimate sits beside the button as a quiet line */
.task-actions { gap: 10px 16px; flex-wrap: wrap; }
.task-actions .btn { padding: 0 18px; }
.eta { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--ink-3); flex: 1 1 260px; max-inline-size: 62ch; }
.eta .ic { inline-size: 15px; block-size: 15px; margin-block-start: 1px; }
.seen { margin: 0 0 14px; font-size: 13px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 12px; overflow-wrap: anywhere; }

/* 8: quiet row as a small toolbar */
.quiet-row { margin-block-start: 18px; gap: 0 20px; align-items: center; }
.quiet-row .textlink { font-size: 15px; font-weight: 400; color: var(--ink-2); text-decoration: none; gap: 6px; }
.quiet-row .textlink:hover { color: var(--accent); }
.quiet-row .textlink .ic { inline-size: 17px; block-size: 17px; color: var(--ink-3); }

/* 1: a single quiet line, no box, no badge */
.offer { margin: 8px 0 0; padding: 0; border: 0; background: none; font-size: 15px; color: var(--ink-3); }
.offer .mail { font-weight: 400; }

/* 2: one closed disclosure for all fine print; footer is links only */
details.about { margin: 36px 0 0; border-block: 1px solid var(--line); }
details.about > summary { display: flex; inline-size: 100%; min-block-size: 48px; align-items: center; font-size: 15px; color: var(--ink-2); }
details.about > summary::before { order: 2; margin-inline-start: auto; color: var(--ink-3); font-size: 18px; }
.about-body { padding: 2px 0 14px; font-size: 13px; color: var(--ink-2); }
.about-body h3 { font-size: 13px; margin: 14px 0 4px; color: var(--ink); }
.about-body p { margin: 0 0 6px; max-width: 75ch; }
.about-body ul { margin: 4px 0 8px; padding-inline-start: 18px; }
.foot { margin-top: 0; padding: 18px 0 28px; border-top: 0; }
.foot-links { margin: 0; color: var(--ink-3); }
.foot-links a { color: var(--ink-2); }

@media (max-width: 480px) {
  .task { padding: 16px; } .task h3 { font-size: 18px; }
  .verdict { font-size: 20px; }
  .task-actions .btn { flex: 0 0 auto; }
  .eta { flex-basis: 100%; }
  .quiet-row { gap: 0 16px; }
}
@media print {
  details.about { border: 0; }
  details.about > summary { font-weight: 700; color: #000; }
  .about-body, .about-body h3 { color: #333; }
  .eta { display: flex !important; }
  .task-actions { display: block !important; } .task-actions .btn { display: none !important; }
  .foot { padding-block: 8px 0; }
}

/* responsive audit: mobile legibility (>=14px) and tap targets (>=40px) */
@media (max-width: 767px) {
  .hint, .snap, .stamp, .tmin, .prio, .prio-t, .eta, .seen, .disc, .foot-links,
  .about-body, .about-body h3, .api-says, .techd > summary, .st-text span, .st-state, .soon, .fold .fyi-h, .quiet-row .left { font-size: 14px; }
  .brand, .lang { display: inline-flex; align-items: center; min-block-size: 40px; }
  .lang { font-size: 14px; padding: 0 14px; }
  .foot-links a { display: inline-flex; align-items: center; min-block-size: 40px; }
}
