/* Site Check — editorial-brutalist brand chrome.
   Fraunces serif + Manrope, cream surface, electric lime accent.
   Intentionally not using --ctx-* tokens so the visual is decoupled
   from the platform theme. */

:root {
    --sc-cream: #FAFAF7;
    --sc-ink: #0B0B0B;
    --sc-dim: #51514E;
    --sc-rule: #1F1F1D;
    --sc-lime: #C8FA28;
    --sc-paper: #F2F1EC;
    /* Keyboard focus ring — lime + dark inset combo readable on every
       Site Check surface (white/cream/ink backgrounds). Bug #19. */
    --sc-focus-ring: 0 0 0 3px var(--sc-lime), 0 0 0 5px var(--sc-ink);
    /* Status tokens — surface + emphasis colours used by finding pills,
       warning panels, and the cert summary count grid. Three families;
       each with a tinted background variant for soft callouts. Defined
       once here so the rest of the file (and templates with inline
       style="..." overrides) can reference them via var(--sc-warn)
       instead of hardcoding hex. */
    --sc-pass: #1FAA59;
    --sc-warn: #E0A100;
    --sc-fail: #C8312B;
    --sc-warn-bg: #FFF8DD;
    --sc-warn-border: #C99F2A;
    --sc-warn-text: #8A6900;
}

body {
    background: var(--sc-cream);
    color: var(--sc-ink);
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sc-shell {
    max-width: 1040px;
    margin: 0 auto;
    padding: 56px 28px 96px;
}

/* --- Type --- */
.sc-eyebrow {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sc-dim);
    margin: 0 0 18px;
}

.sc-h1, .sc-hero__title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.015em;
    margin: 0 0 22px;
    color: var(--sc-ink);
}

.sc-h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: clamp(22px, 2.6vw, 30px);
    letter-spacing: -0.01em;
    margin: 36px 0 18px;
    color: var(--sc-ink);
}
.sc-h3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sc-dim);
    margin: 22px 0 10px;
}

.sc-hero__lede {
    font-size: 19px;
    max-width: 680px;
    color: var(--sc-dim);
    margin: 0 0 36px;
}

.sc-muted { color: var(--sc-dim); }
.sc-rescan-btn {
    background: transparent;
    border: 1px solid var(--sc-dim);
    color: var(--sc-dim);
    font-size: 12px;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    cursor: pointer;
    font-family: inherit;
}
.sc-rescan-btn:hover {
    background: var(--sc-ink);
    color: var(--sc-cream);
    border-color: var(--sc-ink);
}
.sc-link { color: var(--sc-ink); border-bottom: 1px solid var(--sc-ink); text-decoration: none; }
.sc-link:hover { color: var(--sc-dim); border-bottom-color: var(--sc-dim); }
code { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--sc-paper); padding: 2px 6px; border-radius: 3px; }

/* --- Scan form --- */
.sc-scan-form { margin-top: 12px; }
.sc-scan-form__label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sc-dim);
    margin-bottom: 10px;
}
.sc-scan-form__row {
    display: flex;
    gap: 0;
    border: 2px solid var(--sc-ink);
    background: #fff;
    max-width: 720px;
}
.sc-input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 18px 20px;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    color: var(--sc-ink);
    outline: none;
}
.sc-input::placeholder { color: #B4B3AF; }
.sc-btn {
    border: 0;
    cursor: pointer;
    padding: 0 28px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.sc-btn--lime {
    background: var(--sc-lime);
    color: var(--sc-ink);
    border-left: 2px solid var(--sc-ink);
}
.sc-btn--lime:hover { background: var(--sc-ink); color: var(--sc-lime); }
.sc-scan-form__note { margin-top: 14px; font-size: 14px; color: var(--sc-dim); }

/* --- Checks list (landing) --- */
.sc-checks { margin-top: 80px; max-width: 760px; }
.sc-check-list { list-style: none; padding: 0; margin: 0; }
.sc-check-list li {
    border-top: 1px solid var(--sc-rule);
    padding: 22px 0;
    color: var(--sc-dim);
}
.sc-check-list li:last-child { border-bottom: 1px solid var(--sc-rule); }
.sc-check-list strong { color: var(--sc-ink); }

/* --- Status / report placeholders --- */
.sc-status__placeholder, .sc-report__panel {
    margin-top: 30px;
    padding: 28px 30px;
    background: var(--sc-paper);
    border-left: 4px solid var(--sc-lime);
}
.sc-report__panel ul { margin: 14px 0 0; padding-left: 22px; color: var(--sc-dim); }
.sc-report__panel li { margin: 6px 0; }

/* --- Admin --- */
.sc-admin__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 28px 0 36px;
}
.sc-card {
    background: #fff;
    border: 1px solid var(--sc-rule);
    padding: 22px 24px;
}
.sc-card h3 {
    margin: 0 0 8px;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: 22px;
    color: var(--sc-ink);
}
.sc-stat-big {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 1;
    margin: 6px 0 4px;
    color: var(--sc-ink);
}
.sc-admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 28px;
    font-size: 13px;
}
.sc-admin-table th,
.sc-admin-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--sc-rule);
    vertical-align: top;
}
.sc-admin-table th {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sc-dim);
    font-weight: 600;
}
.sc-admin-table code {
    font-size: 12px;
    word-break: break-all;
    background: transparent;
    padding: 0;
}

/* --- Standalone brand header --- */
.sc-brand {
    margin-bottom: 56px;
}
.sc-brand__mark {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: var(--sc-ink);
}
.sc-brand__mark-lime {
    background: var(--sc-lime);
    padding: 0 6px;
    margin-left: 1px;
}

/* --- Tiers (free vs paid) --- */
.sc-tiers { margin-top: 80px; }
.sc-tier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 28px;
}
@media (max-width: 720px) {
    .sc-tier-grid { grid-template-columns: 1fr; }
}
.sc-tier {
    background: #fff;
    border: 2px solid var(--sc-ink);
    padding: 30px 32px;
}
.sc-tier--paid {
    background: var(--sc-ink);
    color: var(--sc-cream);
}
/* Chain classes (.sc-tier.sc-tier--paid) so these variants out-specify
   the base .sc-tier ul li / .sc-tier__cta rules later in the file —
   otherwise source order makes list items render dim grey on a dark
   background. */
.sc-tier.sc-tier--paid .sc-tier__title,
.sc-tier.sc-tier--paid .sc-tier__price { color: var(--sc-cream); }
.sc-tier.sc-tier--paid ul li { color: rgba(250, 250, 247, 0.92); border-top-color: rgba(250, 250, 247, 0.18); }
.sc-tier.sc-tier--paid ul li:first-child { border-top: 0; }
.sc-tier.sc-tier--paid .sc-tier__cta { color: var(--sc-lime); }
.sc-tier__price {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: 32px;
    margin: 0 0 6px;
    color: var(--sc-ink);
}
.sc-tier__title {
    margin: 0 0 18px;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: 22px;
    color: var(--sc-ink);
}
.sc-tier ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}
.sc-tier ul li {
    padding: 8px 0;
    border-top: 1px solid rgba(11, 11, 11, 0.12);
    color: var(--sc-dim);
}
.sc-tier ul li:first-child { border-top: 0; }
.sc-tier__cta {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sc-dim);
}

/* --- Footer --- */
.sc-foot {
    margin-top: 96px;
    padding-top: 24px;
    border-top: 1px solid var(--sc-rule);
    font-size: 13px;
    color: var(--sc-dim);
    letter-spacing: 0.02em;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.sc-foot__links a {
    color: var(--sc-dim);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.sc-foot__links a:hover {
    color: var(--sc-ink);
    border-bottom-color: var(--sc-ink);
}
.sc-legal h2 { margin-top: 32px; }
.sc-legal ul { padding-left: 22px; }
.sc-legal li { margin: 6px 0; }

/* --- Report — headline score block --- */
.sc-report__score {
    display: flex;
    align-items: center;  /* was baseline — needed for the ring to align with the number */
    gap: 24px;
    margin: 32px 0 40px;
    padding: 28px 32px;
    background: #fff;
    border-left: 6px solid var(--sc-ink);
}
/* Verdict ring — mirrors the cert page's summary block. Pass/total
   dasharray semantic. Lives flush-right of the score+verdict via
   margin-left:auto so the score keeps its leftmost prominence. */
.sc-report__score-ring {
    position: relative;
    width: 64px; height: 64px;
    margin-left: auto;
    flex-shrink: 0;
}
.sc-report__score-ring-text {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px; font-weight: 700;
    color: var(--sc-ink);
    line-height: 1;
}
.sc-report__score-ring-num { font-size: 15px; }
.sc-report__score-ring-sep { color: var(--sc-dim); margin: 0 1px; font-weight: 400; }
.sc-report__score-ring-tot { color: var(--sc-dim); font-size: 11px; }
.sc-report__score--green  { border-left-color: var(--sc-pass); }
.sc-report__score--amber  { border-left-color: var(--sc-warn); }
.sc-report__score--orange { border-left-color: #E55A1A; }
.sc-report__score--red    { border-left-color: var(--sc-fail); }
.sc-report__score-number {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 72px;
    line-height: 1;
    color: var(--sc-ink);
}
.sc-report__score-verdict {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sc-dim);
}

/* --- Report — stat grid --- */
.sc-report__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 0 0 40px;
}
/* Stat tiles — visual language aligned with finding cards
   (enhancement #21). Full border → left-rail-only so the row reads
   as part of the same forensic-evidence-brief family. Neutral
   metric (no pass/warn/fail), rail uses --sc-ink. */
.sc-stat {
    background: #fff;
    border-left: 4px solid var(--sc-ink);
    padding: 14px 18px;
}
.sc-stat__label {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sc-dim);
    margin-bottom: 6px;
}
.sc-stat__value {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: 24px;
    color: var(--sc-ink);
}

/* --- Findings list --- */
.sc-warning-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}
.sc-warning {
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #fff;
    border-left: 4px solid var(--sc-dim);
    color: var(--sc-ink);
}
.sc-warning--error   { border-left-color: var(--sc-fail); }
.sc-warning--warning { border-left-color: var(--sc-warn); }
.sc-warning__level {
    display: inline-block;
    margin-right: 10px;
    padding: 2px 7px;
    font-size: 11px;
    letter-spacing: 0.1em;
    background: var(--sc-ink);
    color: var(--sc-cream);
}

/* --- Pages table --- */
.sc-pages {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    font-size: 14px;
}
.sc-pages th,
.sc-pages td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--sc-rule);
    vertical-align: top;
}
.sc-pages th {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sc-dim);
    font-weight: 600;
}
.sc-pages code {
    font-size: 12px;
    word-break: break-all;
    background: transparent;
    padding: 0;
}

/* --- Findings (security) --- */
.sc-finding-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}
.sc-finding {
    padding: 16px 18px;
    margin-bottom: 10px;
    background: #fff;
    border-left: 4px solid var(--sc-dim);
}
.sc-finding--pass    { border-left-color: var(--sc-pass); }
.sc-finding--warn    { border-left-color: var(--sc-warn); }
.sc-finding--fail    { border-left-color: var(--sc-fail); }
.sc-finding--not_run { border-left-color: var(--sc-dim); }
.sc-finding__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}
.sc-finding__status {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    letter-spacing: 0.1em;
    background: var(--sc-ink);
    color: var(--sc-cream);
}
.sc-finding--pass .sc-finding__status { background: var(--sc-pass); }
.sc-finding--warn .sc-finding__status { background: var(--sc-warn); }
.sc-finding--fail .sc-finding__status { background: var(--sc-fail); }
.sc-finding__detail {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--sc-ink);
}
.sc-finding__fix {
    margin: 0;
    font-size: 13px;
    color: var(--sc-dim);
}
.sc-finding__ai {
    margin-top: 10px;
    border-top: 1px solid var(--sc-rule);
    padding-top: 8px;
}
.sc-finding__ai summary {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sc-ink);
    cursor: pointer;
    font-weight: 600;
    padding: 4px 0;
}

/* Chrome ladder — owner-chrome (most specific) → paid-chrome (paid
   tier without cert claim) → no chrome (free tiers). Both blocks
   share visual DNA so they read as one progression: black-ink
   background, monospace chip on the left, prose body. Owner uses
   lime-on-ink (highest cue); paid uses cream-on-ink with a lime
   chip (one notch down). Free tiers get neither — visual ladder is
   the cue that the visitor "is somewhere" in the funnel. */
.sc-owner-chrome,
.sc-paid-chrome {
    margin: 0 0 18px;
    padding: 16px 20px;
    background: var(--sc-ink);
    color: var(--sc-cream);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.sc-owner-chrome { border-left: 6px solid var(--sc-lime); }
.sc-paid-chrome  { border-left: 6px solid var(--sc-cream); }

.sc-owner-chrome__chip,
.sc-paid-chrome__chip {
    display: inline-block;
    padding: 4px 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    flex-shrink: 0;
}
.sc-owner-chrome__chip {
    background: var(--sc-lime);
    color: var(--sc-ink);
}
.sc-paid-chrome__chip {
    background: var(--sc-cream);
    color: var(--sc-ink);
    border: 1px solid var(--sc-lime);
}

.sc-owner-chrome__welcome,
.sc-paid-chrome__welcome {
    margin: 0;
    font-size: 14px;
    color: var(--sc-cream);
    flex: 1 1 320px;
    min-width: 0;
}
.sc-owner-chrome__welcome strong {
    color: var(--sc-lime);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.sc-paid-chrome__claim {
    color: var(--sc-lime);
    text-decoration: underline;
    font-weight: 700;
}
.sc-paid-chrome__claim:hover { color: var(--sc-cream); }

/* Tech stack interpretation rows — closes Sonnet's audit gap #8.
   One row per detected component (CDN, WAF, Bot manager, Origin, Hosting)
   with a status rail (good/ok/warn/absent), a headline, and a longer
   impact paragraph. Replaces the bare dl. */
.sc-techstack-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}
.sc-techstack-row {
    margin: 0 0 14px;
    padding: 14px 18px;
    background: #fff;
    border-left: 4px solid var(--sc-rule);
}
.sc-techstack-row--good { border-left-color: var(--sc-pass); }
.sc-techstack-row--ok   { border-left-color: var(--sc-ink); }
.sc-techstack-row--warn { border-left-color: var(--sc-warn); }
.sc-techstack-row--absent { border-left-color: var(--sc-warn); background: var(--sc-warn-bg); }
.sc-techstack-row__head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 6px;
}
.sc-techstack-row__component {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sc-dim);
    font-weight: 700;
    flex-shrink: 0;
}
.sc-techstack-row__value {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    color: var(--sc-ink);
    font-weight: 600;
}
.sc-techstack-row__headline {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sc-ink);
}
.sc-techstack-row__impact {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--sc-dim);
}
.sc-techstack-confidence {
    margin: 18px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--sc-rule);
    font-size: 12px;
    color: var(--sc-dim);
}
.sc-techstack-confidence strong {
    color: var(--sc-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Report-level cert anchor — surfaces cert ↔ report linkage at the top.
   Companion to the per-finding cert-anchor footer in _finding_item.html. */
.sc-report__cert-anchor {
    margin: 14px 0 22px;
    padding: 10px 14px;
    background: var(--sc-cream);
    border-left: 3px solid var(--sc-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: var(--sc-dim);
}
.sc-report__cert-anchor a {
    color: var(--sc-ink);
    text-decoration: underline;
    font-weight: 600;
}
.sc-report__cert-anchor a:hover { color: var(--sc-dim); }
.sc-report__cert-anchor code {
    font-family: inherit;
    background: var(--sc-paper);
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid var(--sc-rule);
    color: var(--sc-ink);
}
.sc-report__cert-eyebrow {
    display: inline-block;
    margin-right: 10px;
    padding: 2px 8px;
    background: var(--sc-lime);
    color: var(--sc-ink);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 10px;
}

/* --- Finding card — forensic-evidence-brief extensions (ported from PFW) --- */
.sc-finding__name { flex: 1; min-width: 0; }
.sc-finding__target {
    display: inline-flex; align-items: baseline; gap: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    color: var(--sc-dim);
    margin-left: 12px;
    overflow: hidden;
}
.sc-finding__method {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.05em;
    background: var(--sc-cream);
    color: var(--sc-ink);
    border: 1px solid var(--sc-rule);
}
.sc-finding__method--get    { color: #2563EB; border-color: #BFDBFE; }
.sc-finding__method--post   { color: #16A34A; border-color: #BBF7D0; }
.sc-finding__method--put    { color: #CA8A04; border-color: #FDE68A; }
.sc-finding__method--patch  { color: #CA8A04; border-color: #FDE68A; }
.sc-finding__method--delete { color: #DC2626; border-color: #FECACA; }
.sc-finding__url {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    min-width: 0;
}
.sc-finding__ring {
    display: inline-flex; align-items: center; gap: 6px;
    margin-left: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--sc-ink);
}
.sc-finding--pass .sc-finding__ring { color: var(--sc-pass); }
.sc-finding--warn .sc-finding__ring { color: var(--sc-warn); }
.sc-finding--fail .sc-finding__ring { color: var(--sc-fail); }

/* Latency mini-chart */
.sc-finding__chart {
    margin: 12px 0 0;
    padding: 10px 12px;
    background: var(--sc-cream, #FAF7EC);
    border: 1px solid var(--sc-rule);
    border-radius: 4px;
}
.sc-finding__chart-cap {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sc-dim);
    margin: 0 0 6px;
}
.sc-finding__chart-svg {
    display: block;
    width: 100%;
    max-width: 360px;
    height: 72px;
}
.sc-finding__bar--pass { fill: var(--sc-pass); }
.sc-finding__bar--warn { fill: var(--sc-warn); }
.sc-finding__bar--fail { fill: var(--sc-fail); }
.sc-finding__chart-stats {
    margin: 6px 0 0;
    font-size: 11px;
    color: var(--sc-dim);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.sc-finding__chart-stats b { color: var(--sc-ink); }

/* Technical detail collapsible */
.sc-finding__tech {
    margin-top: 12px;
    border-top: 1px solid var(--sc-rule);
}
.sc-finding__tech summary,
.sc-finding__ai summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--sc-dim);
    display: flex; align-items: center; gap: 10px;
}
.sc-finding__tech summary::-webkit-details-marker,
.sc-finding__ai summary::-webkit-details-marker { display: none; }
.sc-finding__tech summary:hover,
.sc-finding__ai summary:hover { color: var(--sc-ink); }
.sc-finding__caret {
    display: inline-block;
    transition: transform 0.18s ease;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
details[open] > summary > .sc-finding__caret { transform: rotate(90deg); }
.sc-finding__meta {
    margin-left: auto;
    font-weight: 400;
    font-size: 10px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--sc-dim);
}
.sc-finding__meta--ai { color: #2563EB; }
.sc-finding__tech-body {
    margin: 0 0 12px;
    padding: 12px 14px;
    background: var(--sc-cream, #FAF7EC);
    border: 1px solid var(--sc-rule);
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    line-height: 1.6;
    color: var(--sc-ink);
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

/* AI fix prompt — distinguished (prescription, not evidence) */
.sc-finding__ai-body {
    margin-bottom: 12px;
    background: #F0F6FF;
    border: 1px solid #C7DCFB;
    border-radius: 4px;
    overflow: hidden;
}
.sc-finding__ai-prompt {
    margin: 0;
    padding: 12px 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11.5px;
    line-height: 1.65;
    color: var(--sc-ink);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 280px;
    overflow-y: auto;
}
.sc-finding__ai-actions {
    display: flex; gap: 8px; align-items: center;
    padding: 8px 12px;
    border-top: 1px solid #C7DCFB;
    background: rgba(255,255,255,0.5);
}
.sc-finding__ai-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.sc-finding__ai-btn--copy {
    color: #2563EB;
    border-color: #93C5FD;
}
.sc-finding__ai-btn--copy:hover {
    background: #DBEAFE;
    border-color: #2563EB;
}
.sc-finding__ai-btn--copy.is-copied {
    color: #16A34A;
    border-color: #86EFAC;
    background: #DCFCE7;
}
.sc-finding__ai-btn--claude {
    color: var(--sc-dim);
    border-color: var(--sc-rule);
    margin-left: auto;
}
.sc-finding__ai-btn--claude:hover {
    color: var(--sc-ink);
    border-color: var(--sc-dim);
}

/* Tier-gate: unpaid visitors see a preview + upgrade CTA */
.sc-finding__ai-body--gated {
    background: var(--sc-warn-bg);
    border-color: var(--sc-warn-border);
}
.sc-finding__ai-body--gated .sc-finding__ai-prompt {
    /* Preview-only; hard cap so the truncation feels intentional */
    max-height: 140px;
    overflow: hidden;
}
.sc-finding__meta--gate { color: var(--sc-warn-text); }
.sc-finding__ai-btn--upgrade {
    color: var(--sc-ink);
    background: var(--sc-lime, #C8FA28);
    border-color: var(--sc-ink);
    font-weight: 800;
}
.sc-finding__ai-btn--upgrade:hover {
    background: var(--sc-ink);
    color: var(--sc-lime, #C8FA28);
    border-color: var(--sc-ink);
}

/* Cert anchor footer — links each finding back to the verifying cert */
.sc-finding__cert-anchor {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--sc-rule);
    font-size: 11px;
    color: var(--sc-dim);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.sc-finding__cert-anchor a { color: var(--sc-ink); text-decoration: underline; }
.sc-finding__cert-anchor code {
    font-family: inherit;
    background: var(--sc-cream, #FAF7EC);
    padding: 1px 4px;
    border-radius: 2px;
}
.sc-finding__ai pre {
    margin: 10px 0 0;
    padding: 14px 16px;
    background: var(--sc-ink);
    color: var(--sc-cream);
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* --- Pentest referral CTA --- */
.sc-report__pentest {
    margin: 48px 0;
    padding: 32px;
    background: #fff;
    border-left: 4px solid var(--sc-fail);
}
.sc-report__pentest--done {
    border-left-color: var(--sc-ink);
    background: var(--sc-paper);
}
.sc-pentest-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 18px 0 8px;
    max-width: 560px;
}
.sc-pentest-form .sc-input {
    border: 2px solid var(--sc-ink);
    padding: 12px 14px;
    font-size: 15px;
}
.sc-pentest-form textarea.sc-input {
    font-family: 'Manrope', sans-serif;
    resize: vertical;
}
.sc-pentest-form .sc-btn {
    align-self: flex-start;
    padding: 12px 24px;
}

/* --- Email gate --- */
.sc-report__gate {
    margin-top: 48px;
    padding: 32px;
    background: var(--sc-paper);
    border-left: 4px solid var(--sc-lime);
}
.sc-report__gate--done {
    border-left-color: var(--sc-ink);
}
.sc-gate-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    max-width: 560px;
}
.sc-gate-form .sc-input {
    border: 2px solid var(--sc-ink);
    padding: 14px 16px;
    font-size: 16px;
}
.sc-gate-form .sc-btn {
    align-self: flex-start;
    padding: 12px 24px;
}
.sc-gate-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--sc-dim);
    line-height: 1.5;
}
.sc-gate-consent input { margin-top: 2px; }

/* --- Upgrade CTA --- */
.sc-report__upgrade {
    margin-top: 48px;
    padding: 32px;
    background: var(--sc-ink);
    color: var(--sc-cream);
}
.sc-report__upgrade .sc-h2 {
    color: var(--sc-cream);
    margin-top: 0;
}
.sc-report__upgrade p {
    color: rgba(250, 250, 247, 0.85);
}
.sc-report__upgrade .sc-muted {
    color: var(--sc-lime);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 18px;
}
.sc-upgrade-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 18px 0 8px;
    max-width: 480px;
}
.sc-upgrade-form .sc-input {
    background: #fff;
    border: 0;
    padding: 14px 16px;
    color: var(--sc-ink);
    font-size: 16px;
}
.sc-upgrade-form .sc-btn {
    align-self: flex-start;
    padding: 14px 28px;
}
.sc-report__upgrade--verified {
    border-left: 4px solid var(--sc-lime);
    background: var(--sc-paper);
    color: var(--sc-ink);
}
.sc-report__upgrade--verified .sc-h2 { color: var(--sc-ink); }
.sc-report__upgrade--verified p     { color: var(--sc-dim); }

/* ============================================================
   /site-check/account dashboard (Plan 1 Task 9 follow-up CSS)
   Layout decisions from the Step 9.0 discussion:
   - minimal greeting strip (Hi, name + tier badge + Sign out top-right)
   - tier-aware upgrade card ABOVE walks list
   - hybrid expand-on-click walks list
   - cert thumbnails L2/L3 only
   ============================================================ */

.sc-account {
    max-width: 880px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}
@media (max-width: 600px) {
    .sc-account { padding: 20px 16px 48px; }
}

/* Sub-state banner — top of page when relevant */
.sc-banner {
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.sc-banner-info    { background: var(--sc-paper); color: var(--sc-ink); border-left: 4px solid var(--sc-ink); }
.sc-banner-warning { background: #fff4d6; color: var(--sc-ink); border-left: 4px solid #c97700; }
.sc-banner-error   { background: #ffe5e5; color: var(--sc-ink); border-left: 4px solid #c93030; }
.sc-banner-cta {
    color: var(--sc-ink);
    border-bottom: 1px solid var(--sc-ink);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

/* Greeting strip — minimal, top-right Sign out */
.sc-account-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--sc-rule);
    margin-bottom: 28px;
}
.sc-account-greeting {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--sc-ink);
    flex-shrink: 0;
}
.sc-signout {
    margin-left: auto;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    color: var(--sc-dim);
    border-bottom: 1px solid var(--sc-dim);
    text-decoration: none;
    padding-bottom: 1px;
}
.sc-signout:hover { color: var(--sc-ink); border-bottom-color: var(--sc-ink); }

/* Tier badge — small pill, lime for L2/L3, ink-outline for L1 */
.sc-tier-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.sc-tier-l0,
.sc-tier-l1 { background: var(--sc-paper); color: var(--sc-ink); border: 1px solid var(--sc-rule); }
.sc-tier-l2 { background: var(--sc-lime); color: var(--sc-ink); }
.sc-tier-l3 { background: var(--sc-ink); color: var(--sc-lime); }

/* Tier-aware upgrade card above the walks list */
.sc-upgrade-strip {
    margin-bottom: 36px;
}
.sc-upgrade-card {
    background: var(--sc-ink);
    color: var(--sc-cream);
    padding: 24px 28px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sc-upgrade-card h3 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--sc-cream);
}
.sc-upgrade-card p {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    color: rgba(250, 250, 247, 0.78);
}
.sc-upgrade-card .sc-cta {
    align-self: flex-start;
    background: var(--sc-lime);
    color: var(--sc-ink);
    border-color: var(--sc-lime);
    margin-top: 6px;
}
.sc-upgrade-card .sc-cta:hover {
    background: var(--sc-cream);
    color: var(--sc-ink);
    border-color: var(--sc-cream);
}
.sc-upgrade-card .sc-cta-secondary {
    background: transparent;
    color: var(--sc-lime);
    border: 1px solid var(--sc-lime);
}
.sc-upgrade-card .sc-cta-secondary:hover {
    background: var(--sc-lime);
    color: var(--sc-ink);
}

/* Walks list — hybrid expand-on-click rows */
.sc-walks .sc-h2 {
    margin-bottom: 16px;
}
.sc-walk-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--sc-rule);
}
.sc-walk-row {
    border-bottom: 1px solid var(--sc-rule);
}
.sc-walk-row-header {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    color: var(--sc-ink);
    text-align: left;
}
.sc-walk-row-header:hover { background: var(--sc-paper); }
.sc-walk-row-header[aria-expanded="true"] { background: var(--sc-paper); }
.sc-walk-url {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.sc-walk-date {
    flex-shrink: 0;
    color: var(--sc-dim);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.85rem;
}
.sc-walk-score {
    flex-shrink: 0;
    display: inline-block;
    min-width: 44px;
    padding: 2px 8px;
    text-align: center;
    border-radius: 4px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.85rem;
    font-weight: 600;
}
.sc-score-excellent { background: var(--sc-lime);  color: var(--sc-ink); }
.sc-score-good      { background: #d4f0a5;          color: var(--sc-ink); }
.sc-score-ok        { background: #ffd66b;          color: var(--sc-ink); }
.sc-score-warn      { background: #ffb169;          color: var(--sc-ink); }
.sc-score-bad       { background: #ff8585;          color: var(--sc-ink); }
.sc-score-unknown   { background: var(--sc-paper); color: var(--sc-dim); border: 1px solid var(--sc-rule); }
.sc-walk-cert-thumb {
    flex-shrink: 0;
    border-radius: 3px;
    border: 1px solid var(--sc-rule);
}
.sc-walk-row-body {
    padding: 4px 18px 18px;
    background: var(--sc-paper);
}
.sc-walk-row-body .sc-link {
    font-size: 0.9rem;
}

/* ============================================================================
   Rich /site-check/account page — 11-section layout
   See plugins/site_check/blueprints/account.py for the section ordering.
   ============================================================================ */

/* 3. Hero card */
.sc-hero-card {
    padding: 28px 0 24px;
    border-top: 1px solid var(--sc-rule);
    border-bottom: 1px solid var(--sc-rule);
    margin-bottom: 28px;
}
.sc-hero-card .sc-eyebrow {
    margin: 0 0 8px;
    color: var(--sc-dim);
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.sc-hero-h1 {
    margin: 0 0 14px;
}
.sc-hero-link {
    color: var(--sc-ink);
    text-decoration: none;
    border-bottom: 2px solid var(--sc-lime);
}
.sc-hero-link:hover { background: var(--sc-lime); }
.sc-hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.sc-hero-date {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.85rem;
    color: var(--sc-dim);
}

/* 4. Cert card */
.sc-cert-card {
    background: var(--sc-paper);
    border: 1px solid var(--sc-rule);
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 28px;
}
.sc-cert-card .sc-eyebrow {
    color: var(--sc-dim);
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
}
.sc-cert-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.sc-cert-preview {
    flex-shrink: 0;
    border: 1px solid var(--sc-rule);
    border-radius: 4px;
    background: var(--sc-cream);
}
.sc-cert-snippet {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sc-snippet {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    padding: 10px 12px;
    border: 1px solid var(--sc-rule);
    border-radius: 4px;
    background: var(--sc-cream);
    color: var(--sc-ink);
    resize: vertical;
}
.sc-cert-card-pending { font-style: italic; color: var(--sc-dim); }

/* 5. Perf trend card */
.sc-perf-card {
    background: var(--sc-ink);
    color: var(--sc-cream);
    padding: 22px 26px;
    border-radius: 6px;
    margin-bottom: 28px;
}
.sc-perf-card .sc-eyebrow {
    color: var(--sc-lime);
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 10px;
}
.sc-perf-card .sc-h2 {
    color: var(--sc-cream);
    margin: 0 0 6px;
}
.sc-perf-card .sc-muted { color: rgba(250, 250, 247, 0.7); }
.sc-perf-delta {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.9rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}
.sc-perf-improving { background: var(--sc-lime); color: var(--sc-ink); }
.sc-perf-stable    { background: rgba(250, 250, 247, 0.18); color: var(--sc-cream); }
.sc-perf-regressing { background: #ff8585; color: var(--sc-ink); }

/* 6. Upgrade card — extended feature list */
.sc-upgrade-card header { margin-bottom: 4px; }
.sc-upgrade-card .sc-eyebrow {
    margin: 0 0 4px;
    color: var(--sc-lime);
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.sc-feature-list {
    margin: 8px 0 14px;
    padding-left: 18px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.92rem;
    color: rgba(250, 250, 247, 0.85);
}
.sc-feature-list li { margin-bottom: 4px; }
.sc-upgrade-card-l3 { background: #1f2a18; border: 1px solid var(--sc-lime); }
.sc-upgrade-card-l3 .sc-eyebrow { color: var(--sc-lime); }
.sc-upgrade-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.sc-cta-link {
    background: none;
    border: none;
    color: var(--sc-lime);
    padding: 8px 0;
    text-decoration: underline;
}
.sc-cta-link:hover { color: var(--sc-cream); }

/* 7. Bot-blocked recovery card */
.sc-recovery-card {
    background: #fff3d6;
    border: 1px solid #d4a200;
    border-radius: 6px;
    padding: 22px 26px;
    margin-bottom: 28px;
}
.sc-recovery-card .sc-eyebrow {
    color: #6b5300;
    font-family: 'Manrope', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
}
.sc-recovery-card .sc-h2 { margin: 0 0 10px; color: var(--sc-ink); }

/* 8. Pentest card */
.sc-pentest-card {
    background: var(--sc-paper);
    border: 1px solid var(--sc-rule);
    border-left: 4px solid var(--sc-ink);
    border-radius: 6px;
    padding: 22px 26px;
    margin-bottom: 28px;
}
.sc-pentest-card .sc-eyebrow {
    color: var(--sc-dim);
    font-family: 'Manrope', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
}
.sc-pentest-card .sc-h2 { margin: 0 0 10px; }

/* 10. Cross-product nudge */
.sc-nudge-card {
    background: var(--sc-cream);
    border: 1px dashed var(--sc-rule);
    border-radius: 6px;
    padding: 22px 26px;
    margin-bottom: 28px;
}
.sc-nudge-card .sc-eyebrow {
    color: var(--sc-dim);
    font-family: 'Manrope', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
}
.sc-nudge-card h3 {
    margin: 0 0 8px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.2rem;
    color: var(--sc-ink);
}
.sc-nudge-card p { margin: 0 0 14px; }

/* 11. Recommended next action footer */
.sc-next-footer {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--sc-rule);
    text-align: center;
    font-family: 'Manrope', sans-serif;
    color: var(--sc-dim);
}
.sc-next-footer p { margin: 0; }
.sc-next-footer .sc-link { color: var(--sc-ink); font-weight: 600; }

/* --- Cert ownership claim page --- */
.sc-page--claim { max-width: 900px; margin: 0 auto; }
.sc-claim-error {
    margin: 18px 0 24px;
    padding: 14px 18px;
    background: #FFF1F0;
    border-left: 4px solid var(--sc-fail);
    color: var(--sc-ink);
    font-size: 14px;
}
.sc-claim-error strong { color: var(--sc-fail); display: block; margin-bottom: 4px; }

.sc-claim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin: 30px 0;
}
@media (max-width: 720px) {
    .sc-claim-grid { grid-template-columns: 1fr; }
}
.sc-claim-method {
    background: #fff;
    border: 1px solid var(--sc-rule);
    padding: 22px 24px 28px;
}
.sc-claim-method__head {
    display: flex; align-items: baseline; gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sc-rule);
}
.sc-claim-method__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    background: var(--sc-ink); color: var(--sc-cream);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px; font-weight: 600;
    flex-shrink: 0;
}
.sc-claim-method__title {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--sc-ink);
}
.sc-claim-method__tag {
    display: inline-block;
    margin-left: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 2px 6px;
    background: #E8F1E2;
    color: #4F7A35;
}
.sc-claim-method__tag--dim {
    background: var(--sc-cream);
    color: var(--sc-dim);
}
.sc-claim-steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0;
}
.sc-claim-steps > li {
    padding: 12px 0;
    border-top: 1px dashed var(--sc-rule);
}
.sc-claim-steps > li:first-child { border-top: 0; padding-top: 0; }
.sc-claim-steps > li:last-child { padding-bottom: 0; }
.sc-claim-steps p {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--sc-ink);
}
.sc-claim-token {
    margin: 8px 0 6px;
    padding: 10px 12px;
    background: var(--sc-cream);
    border: 1px solid var(--sc-rule);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    line-height: 1.5;
    color: var(--sc-ink);
    word-break: break-all;
    white-space: pre-wrap;
    max-height: 140px;
    overflow-y: auto;
}
.sc-claim-copy {
    background: transparent;
    border: 1px solid var(--sc-ink);
    color: var(--sc-ink);
    padding: 6px 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.15s ease;
}
.sc-claim-copy:hover { background: var(--sc-ink); color: var(--sc-cream); }
.sc-claim-copy.is-copied {
    background: #E8F1E2;
    border-color: #4F7A35;
    color: #4F7A35;
}
.sc-claim-path {
    display: block;
    margin: 8px 0;
    padding: 10px 12px;
    background: var(--sc-cream);
    border: 1px solid var(--sc-rule);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: var(--sc-ink);
    word-break: break-all;
}
.sc-claim-help {
    margin-top: 6px;
    font-size: 12px;
    color: var(--sc-dim);
}
.sc-claim-help code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    background: var(--sc-cream);
    padding: 1px 4px;
}
.sc-claim-footer {
    margin-top: 28px;
    padding: 16px 18px;
    background: var(--sc-cream);
    border-left: 3px solid var(--sc-dim);
    font-size: 12px;
    color: var(--sc-dim);
    line-height: 1.6;
}
.sc-claim-back {
    margin-top: 18px;
    font-size: 13px;
}

/* --- Reduced motion (bug #20) -------------------------------------------
   Honour the OS-level "reduce motion" preference. The Site Check CSS
   doesn't run heavy animations (no @keyframes today), but it does have
   three hover/click transitions — disable them under the opt-out for
   vestibular-sensitivity users. Cheap insurance; activates only when
   prefers-reduced-motion: reduce is set, leaves default motion intact
   for everyone else. Belt-and-braces against future animation work
   accidentally landing without an opt-out path.
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Keyboard focus styles (bug #19) ------------------------------------
   Site Check had zero :focus / :focus-visible rules, so keyboard
   navigation was invisible. One global rule covers every interactive
   element via :focus-visible (so mouse-clicks don't fire the ring
   on supporting browsers); per-element overrides where the global
   ring clashes with the element's own background (lime buttons,
   ink-on-lime upgrade button, etc).
   --------------------------------------------------------------------- */
:focus { outline: none; }
*:focus-visible {
    outline: none;
    box-shadow: var(--sc-focus-ring);
    border-radius: 3px;
}
/* Buttons that already use ink-background want the inverse ring
   (cream + lime) so the lime layer reads against the ink fill. */
.sc-btn:focus-visible,
.sc-rescan-btn:focus-visible,
.sc-finding__ai-btn--upgrade:focus-visible {
    box-shadow: 0 0 0 3px var(--sc-cream), 0 0 0 5px var(--sc-lime);
}
/* Details summary chevron rows — the ring fits the underline shape
   better as an outline (no border-radius) so it doesn't clip the
   triangle indicator. */
summary:focus-visible {
    outline: 2px solid var(--sc-lime);
    outline-offset: 3px;
    box-shadow: none;
}
/* Skip-the-content link target (any future "skip to main" affordance) */
.sc-skip-link:focus-visible {
    box-shadow: var(--sc-focus-ring);
    background: var(--sc-ink);
    color: var(--sc-cream);
}

/* Bug #27: site-unreachable panel — replaces the score ring + stats when
   every request to the target failed. Headline reads "we couldn't reach
   your site" with concrete remediation. Cream background + fail-coloured
   left rail to match the "BROKEN" verdict colour vocabulary while not
   shouting at the user like a generic 500-page would. */
.sc-report__unreachable {
    margin: 18px 0 32px;
    padding: 24px 28px;
    background: var(--sc-cream);
    border-left: 6px solid var(--sc-fail);
    max-width: 760px;
}
.sc-report__unreachable-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 3px 10px;
    background: var(--sc-fail);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 10px;
}
.sc-report__unreachable-title {
    margin: 0 0 10px;
    color: var(--sc-ink);
    word-break: break-word;
}
.sc-report__unreachable-lede {
    margin: 0 0 18px;
    color: var(--sc-ink);
    font-size: 15px;
    line-height: 1.55;
}
.sc-report__unreachable-lede code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: var(--sc-paper);
    padding: 1px 6px;
    border: 1px solid var(--sc-rule);
    border-radius: 2px;
    font-size: 13px;
}
.sc-report__unreachable-causes {
    margin: 0 0 22px;
    padding-left: 22px;
    color: var(--sc-ink);
    font-size: 14px;
    line-height: 1.65;
}
.sc-report__unreachable-causes li { margin-bottom: 6px; }
.sc-report__unreachable-causes strong { color: var(--sc-ink); }
.sc-report__unreachable-retry { margin: 0; }
.sc-report__unreachable-retry .sc-btn {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
}

/* Bug #27 RC2 / #29: bot-protected INCONCLUSIVE panel — replaces the
   score ring when every URL was bot-blocked. Mirrors the unreachable
   panel structure but uses warn/amber not fail/red — the site itself
   is probably fine, we just couldn't measure it from outside. */
.sc-report__inconclusive {
    margin: 18px 0 32px;
    padding: 24px 28px;
    background: var(--sc-cream);
    border-left: 6px solid var(--sc-warn);
    max-width: 760px;
}
.sc-report__inconclusive-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 3px 10px;
    background: var(--sc-warn);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 10px;
}
.sc-report__inconclusive-title {
    margin: 0 0 10px;
    color: var(--sc-ink);
}
.sc-report__inconclusive-lede {
    margin: 0 0 18px;
    color: var(--sc-ink);
    font-size: 15px;
    line-height: 1.55;
}
.sc-report__inconclusive-lede code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: var(--sc-paper);
    padding: 1px 6px;
    border: 1px solid var(--sc-rule);
    border-radius: 2px;
    font-size: 13px;
}
.sc-report__inconclusive-cta-row { margin: 0; }
.sc-report__inconclusive-cta {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
}

/* =============================================================
   Mobile fold rescue — Mick #B-M1 audit 2026-05-19.

   On iPhone-class viewports (≤ 414px) the landing pre-input stack
   (Pick-your-path eyebrow + outer H1 + sub-paragraph + hero card
   eyebrow + hero card H2 + hero card paragraph + 5 hook bullets)
   pushed the URL input + "Walk my site" CTA ~438px below the
   first viewport. For a money-spinner funnel whose only job above
   the fold is "type URL, click run", that's the single biggest
   conversion leak Mick found.

   Trim mobile pre-stack: hide the outer eyebrow + H1 + lede
   (redundant with the hero card content right below them), shrink
   the hero card heading + lede, and move the 5 hook bullets BELOW
   the form so the form lands above the fold. Desktop layout
   unchanged — desktop already had the CTA above the fold.
   ============================================================= */
@media (max-width: 414px) {
    /* Outer "Pick your path" pre-section header — desktop sees it
       as the page-level lede; on mobile it's just stack weight. */
    .sc-install > .sc-eyebrow,
    .sc-install > .sc-h1,
    .sc-install__lede {
        display: none;
    }
    /* Tighten the hero card heading + lede so the form lands sooner. */
    .sc-pick-hero__title {
        font-size: 22px;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    .sc-pick-hero__lede {
        font-size: 14px;
        line-height: 1.45;
        margin-bottom: 12px;
    }
    .sc-pick-hero__eyebrow {
        margin-bottom: 4px;
    }
    /* Move the 5 hook bullets below the form via flex reorder.
       sc-pick-hero__body is the flex/grid parent; reorder the form
       to come BEFORE the hooks list. */
    .sc-pick-hero__body {
        display: flex;
        flex-direction: column;
    }
    .sc-pick-hero__eyebrow  { order: 1; }
    .sc-pick-hero__title    { order: 2; }
    .sc-pick-hero__lede     { order: 3; }
    .sc-pick-hero__form     { order: 4; }
    .sc-pick-hero__foot     { order: 5; }
    .sc-pick-hero__hooks    { order: 6; margin-top: 18px; font-size: 13px; }
}

