/* =============================================================================
   QuadrantX — Agent-Readiness Scanner (page-specific styles)
   Builds on css/common.css design tokens.
   ============================================================================= */

/* ---------- Hero ---------- */
.hero {
    padding: 140px 0 56px;
    text-align: center;
    background: var(--bg-deep);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 50% 0%, rgba(16, 185, 129, 0.10), transparent),
        radial-gradient(ellipse 50% 30% at 50% 100%, rgba(59, 130, 246, 0.06), transparent);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-dim) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-dim) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent-emerald-bright), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto 36px;
}

/* ---------- Scan form ---------- */
.scan-form {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.scan-input-wrap {
    display: flex;
    gap: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-visible);
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.scan-input-wrap:focus-within {
    border-color: var(--accent-emerald);
    box-shadow: 0 18px 60px rgba(16, 185, 129, 0.18);
}

.scan-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    padding: 14px 16px;
    min-width: 0;
}

.scan-input::placeholder {
    color: var(--text-faint);
}

.scan-button {
    background: var(--accent-emerald);
    color: var(--bg-void);
    border: none;
    border-radius: 8px;
    padding: 0 26px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.scan-button:hover:not([disabled]) {
    background: var(--accent-emerald-bright);
    transform: translateY(-1px);
}

.scan-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.scan-error {
    margin-top: 14px;
    color: #fca5a5;
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.25);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    text-align: left;
    display: none;
}

.scan-error.visible { display: block; }

/* Multi-line server diagnostics — preserve whitespace, monospace, scroll */
.scan-error.diagnostic {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 60vh;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.45;
}

.scan-meta {
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-faint);
    text-align: center;
}

/* ---------- Loading ---------- */
.scan-loading {
    display: none;
    margin: 32px auto 0;
    max-width: 720px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.scan-loading.visible { display: block; }

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--accent-emerald);
    border-radius: 50%;
    animation: qx-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes qx-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Results section ---------- */
.results-section {
    padding: 56px 0 96px;
    background: var(--bg-void);
    display: none;
}

.results-section.visible { display: block; }

.results-grid {
    max-width: 1080px;
    margin: 0 auto;
}

/* =============================================================================
   Executive summary (plain-English block above all technical detail)
   ============================================================================= */
.exec-summary {
    background: linear-gradient(155deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
    border: 1px solid var(--border-visible);
    border-radius: 22px;
    padding: 36px 36px 32px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

/* Soft accent glow tinted by the band (grade colour) */
.exec-summary::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 0% 0%, rgba(16, 185, 129, 0.10), transparent 60%);
    transition: background 0.3s ease;
}
.exec-summary.band-good::before     { background: radial-gradient(ellipse 60% 50% at 0% 0%, rgba(59, 130, 246, 0.10), transparent 60%); }
.exec-summary.band-fair::before     { background: radial-gradient(ellipse 60% 50% at 0% 0%, rgba(245, 158, 11, 0.10), transparent 60%); }
.exec-summary.band-poor::before     { background: radial-gradient(ellipse 60% 50% at 0% 0%, rgba(244, 63, 94, 0.12), transparent 60%); }
.exec-summary.band-critical::before { background: radial-gradient(ellipse 60% 50% at 0% 0%, rgba(244, 63, 94, 0.18), transparent 60%); }

.exec-summary > * { position: relative; z-index: 1; }

.exec-top {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 36px;
    align-items: center;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-dim);
}

/* Big letter-grade card */
.exec-grade {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    border: 1px solid var(--border-visible);
    border-radius: 18px;
    padding: 22px 30px;
    min-width: 180px;
    text-align: center;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.3);
}

.exec-grade-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 6px;
}

.exec-grade-letter {
    /* Heavy sans (matches the body font, no separate display face) reads as
       confident and modern instead of the old condensed-serif look. */
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(72px, 9.5vw, 112px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -4px;
    color: var(--accent-emerald-bright);
    text-shadow: 0 4px 30px rgba(16, 185, 129, 0.35);
}

.exec-grade-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 0.3px;
}

/* Grade colour shifts with band */
.exec-summary.band-good     .exec-grade-letter { color: #67e8f9; text-shadow: 0 4px 30px rgba(59, 130, 246, 0.35); }
.exec-summary.band-fair     .exec-grade-letter { color: var(--accent-amber); text-shadow: 0 4px 30px rgba(245, 158, 11, 0.35); }
.exec-summary.band-poor     .exec-grade-letter { color: #fb7185; text-shadow: 0 4px 30px rgba(244, 63, 94, 0.30); }
.exec-summary.band-critical .exec-grade-letter { color: #fb7185; text-shadow: 0 4px 30px rgba(244, 63, 94, 0.45); }

/* Right-hand summary text */
.exec-board {
    min-width: 0;
}

.exec-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 10px;
}

.exec-eyebrow strong {
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    font-size: 13px;
    margin-left: 4px;
    word-break: break-all;
}

/* ---- Resolution strip (input -> tested + redirect chain) -------------- */
.exec-resolution {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border-dim);
    border-left: 2px solid var(--accent-emerald);
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.exec-resolution .resolution-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 2px 0;
}

.exec-resolution .resolution-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-faint);
    flex-shrink: 0;
    min-width: 90px;
}

.exec-resolution .resolution-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: var(--text-secondary);
    word-break: break-all;
}

.exec-resolution .resolution-line.tested .resolution-value {
    color: var(--text-primary);
    font-weight: 600;
}

.exec-resolution .resolution-chain {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-dim);
}

.exec-resolution .resolution-chain > summary {
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-emerald-bright);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 0;
    user-select: none;
}
.exec-resolution .resolution-chain > summary::-webkit-details-marker { display: none; }
.exec-resolution .resolution-chain > summary::before {
    content: '▸ ';
    display: inline-block;
    transition: transform 0.15s ease;
    margin-right: 4px;
}
.exec-resolution .resolution-chain[open] > summary::before { content: '▾ '; }

/* ---- Blocked-state variant (WAF/firewall short-circuit) -------------- */
.exec-summary.blocked {
    border-color: rgba(245, 158, 11, 0.45);
}
.exec-summary.blocked::before {
    background: radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.25), transparent 60%);
}

.exec-block-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.exec-block-icon {
    font-size: clamp(56px, 8vw, 96px);
    line-height: 1;
    color: #f59e0b;
    text-shadow: 0 4px 24px rgba(245, 158, 11, 0.45);
}

.exec-block-label {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: #f59e0b;
    text-transform: uppercase;
}

.exec-summary.blocked .exec-grade {
    /* Override the gradient that .exec-grade applies — we want a neutral shell. */
    background: transparent;
    border: none;
    padding: 0;
}

.exec-block-why {
    margin-top: 24px;
    padding: 16px 18px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
}

.exec-block-why-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fbbf24;
    margin: 0 0 8px;
}

.exec-block-bullets {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

.exec-block-bullets li { margin-bottom: 6px; }
.exec-block-bullets li:last-child { margin-bottom: 0; }

.exec-block-list {
    margin-top: 28px;
}
.exec-block-preview {
    margin-top: 16px;
}
.exec-block-list,
.exec-block-preview {
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-dim);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.exec-block-list > summary,
.exec-block-preview > summary {
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-emerald-bright);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 0;
    user-select: none;
}
.exec-block-list > summary::-webkit-details-marker,
.exec-block-preview > summary::-webkit-details-marker { display: none; }
.exec-block-list > summary::before,
.exec-block-preview > summary::before {
    content: '▸ '; display: inline-block; margin-right: 4px;
}
.exec-block-list[open] > summary::before,
.exec-block-preview[open] > summary::before { content: '▾ '; }

.block-url-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.block-url-item {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-dim);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}
.block-url-item:last-child { border-bottom: none; }

.block-url-status {
    flex-shrink: 0;
    width: 44px;
    color: #f87171;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.block-url-target {
    flex: 1;
    min-width: 0;
    color: var(--text-secondary);
    word-break: break-all;
}

.block-body-preview {
    margin: 10px 0 0;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 240px;
    overflow: auto;
}

.exec-resolution .chain-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.exec-resolution .chain-hop {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-dim);
}
.exec-resolution .chain-hop:last-child { border-bottom: none; }

.exec-resolution .chain-num {
    flex-shrink: 0;
    width: 24px;
    font-weight: 700;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}

.exec-resolution .chain-body { flex: 1; min-width: 0; }

.exec-resolution .chain-label {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.exec-resolution .chain-hop.type-meta .chain-label {
    color: var(--accent-blue, #60a5fa);
}
.exec-resolution .chain-hop.type-scheme_fallback .chain-label {
    color: #f59e0b;
}

.exec-resolution .chain-from-to {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--text-secondary);
    word-break: break-all;
}

@media (max-width: 600px) {
    .exec-resolution .resolution-label { min-width: 0; }
}

.exec-headline {
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    letter-spacing: -0.6px;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.exec-body {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 18px;
    max-width: 640px;
}

.exec-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.exec-meta-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-dim);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.exec-meta-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-faint);
}

.exec-meta-value {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* What to do next — two side-by-side option cards */
.exec-next {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border-dim);
}

.exec-next-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-faint);
    margin-bottom: 18px;
}

.exec-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.exec-option {
    background: var(--bg-deep);
    border: 1px solid var(--border-visible);
    border-radius: 14px;
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s, transform 0.2s;
}

.exec-option:hover {
    border-color: var(--border-bright, var(--accent-emerald));
    transform: translateY(-1px);
}

.exec-option.featured {
    background: linear-gradient(160deg, rgba(16, 185, 129, 0.10), rgba(59, 130, 246, 0.06));
    border-color: rgba(16, 185, 129, 0.35);
}

.exec-option-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--text-faint);
}

.exec-option.featured .exec-option-eyebrow {
    color: var(--accent-emerald-bright);
}

.exec-option-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.exec-option-body {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 6px;
    flex: 1;
}

.exec-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: 6px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 8px;
    padding: 11px 18px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border-visible);
    background: transparent;
    color: var(--text-primary);
}

.exec-cta.secondary:hover {
    border-color: var(--accent-emerald);
    color: var(--accent-emerald-bright);
    background: rgba(16, 185, 129, 0.08);
}

.exec-cta.primary {
    background: var(--accent-emerald);
    border-color: var(--accent-emerald);
    color: var(--bg-void);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.exec-cta.primary:hover {
    background: var(--accent-emerald-bright);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
}

/* =============================================================================
   "Technical details" divider — separates the lay-friendly summary from the
   developer-oriented drill-down beneath it.
   ============================================================================= */
.tech-divider {
    display: none;
    margin: 24px 0 36px;
    padding: 22px 0 18px;
    border-top: 1px dashed var(--border-visible);
    text-align: center;
}

.tech-divider.visible { display: block; }

.tech-divider h2 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 6px;
}

.tech-divider p {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tier card */
.tier-card {
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-deep));
    border: 1px solid var(--border-visible);
    border-radius: 18px;
    padding: 32px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}

.tier-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 100% 0%, rgba(16, 185, 129, 0.10), transparent);
    pointer-events: none;
}

.tier-card-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
}

.tier-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 10px;
}

.tier-name {
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.tier-name .tier-badge {
    display: inline-block;
    background: var(--accent-emerald);
    color: var(--bg-void);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    vertical-align: middle;
    margin-right: 12px;
}

.tier-description {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 560px;
    line-height: 1.6;
}

.tier-ladder {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
}

.ladder-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dim);
    transition: all 0.2s;
}

.ladder-step .ladder-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ladder-step.achieved {
    color: var(--accent-emerald-bright);
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

.ladder-step.achieved .ladder-num {
    background: var(--accent-emerald);
    color: var(--bg-void);
}

.ladder-step.current {
    color: var(--text-primary);
    font-weight: 600;
}

/* ---------- Score summary pills ---------- */
.score-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 44px;
}

.score-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.2s;
}

.score-pill .pill-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.score-pill .pill-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.score-pill .pill-value .pill-fraction {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 16px;
}

.score-pill.passed {
    border-color: rgba(16, 185, 129, 0.3);
}
.score-pill.passed .pill-value { color: var(--accent-emerald-bright); }

.score-pill.partial { border-color: rgba(245, 158, 11, 0.3); }
.score-pill.partial .pill-value { color: var(--accent-amber); }

.score-pill.failed { border-color: rgba(244, 63, 94, 0.25); }
.score-pill.failed .pill-value { color: #fb7185; }

.score-pill.optional .pill-label::after { content: ' (optional)'; color: var(--text-faint); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ---------- Action bar ---------- */
.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    align-items: center;
    justify-content: space-between;
}

.action-bar .meta {
    color: var(--text-faint);
    font-size: 13px;
}

.action-bar .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-visible);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-ghost:hover {
    border-color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-emerald-bright);
}

.btn-ghost.primary {
    background: var(--accent-emerald);
    color: var(--bg-void);
    border-color: var(--accent-emerald);
}

.btn-ghost.primary:hover {
    background: var(--accent-emerald-bright);
    color: var(--bg-void);
}

/* ---------- Category section ---------- */
.category-section {
    margin-bottom: 44px;
}

.category-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-dim);
    margin-bottom: 18px;
}

.category-header h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.category-header h2 .optional-tag {
    display: inline-block;
    margin-left: 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-faint);
    border: 1px solid var(--border-visible);
    padding: 2px 8px;
    border-radius: 100px;
    vertical-align: middle;
}

.category-header .category-count {
    font-size: 13px;
    color: var(--text-muted);
}

.category-note {
    font-size: 13px;
    color: var(--text-faint);
    margin-bottom: 14px;
    line-height: 1.6;
}

/* ---------- Check card ---------- */
.check-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    border-left: 3px solid var(--text-faint);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.check-card.status-pass    { border-left-color: var(--accent-emerald); }
.check-card.status-fail    { border-left-color: var(--accent-rose); }
.check-card.status-neutral { border-left-color: var(--accent-amber); }
.check-card.status-error   { border-left-color: var(--accent-rose); }

.check-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 16px 20px;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.check-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.check-status-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--bg-void);
    flex-shrink: 0;
}

.status-pass    .check-status-dot { background: var(--accent-emerald); }
.status-fail    .check-status-dot { background: var(--accent-rose); }
.status-neutral .check-status-dot { background: var(--accent-amber); }
.status-error   .check-status-dot { background: var(--accent-rose); }

.check-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.check-summary {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.check-toggle {
    color: var(--text-faint);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s, transform 0.2s;
}

.check-card.open .check-toggle {
    color: var(--accent-emerald-bright);
    transform: rotate(180deg);
}

.check-body {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid var(--border-dim);
    background: rgba(0, 0, 0, 0.15);
}

.check-card.open .check-body {
    display: block;
}

.check-body h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-faint);
    margin: 18px 0 10px;
}

/* Evidence trail */
.evidence-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px dashed var(--border-visible);
    margin-left: 6px;
}

.evidence-step {
    position: relative;
    padding: 8px 0 8px 22px;
    font-size: 13px;
    color: var(--text-secondary);
}

.evidence-step::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 14px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border-visible);
}

.evidence-step.outcome-positive::before { background: var(--accent-emerald); border-color: var(--accent-emerald); }
.evidence-step.outcome-negative::before { background: var(--accent-rose); border-color: var(--accent-rose); }
.evidence-step.outcome-neutral::before  { background: var(--accent-amber); border-color: var(--accent-amber); }

.evidence-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 6px;
}

.evidence-step .evidence-method {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: var(--bg-elevated);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
}

.evidence-step .evidence-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 4px;
    margin-left: 6px;
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.evidence-step.status-2xx .evidence-status { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald-bright); }
.evidence-step.status-3xx .evidence-status { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.evidence-step.status-4xx .evidence-status,
.evidence-step.status-5xx .evidence-status { background: rgba(244, 63, 94, 0.12); color: #fda4af; }

.evidence-note {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.5;
}

.evidence-body {
    margin-top: 8px;
    background: var(--bg-void);
    border: 1px solid var(--border-dim);
    border-radius: 6px;
    padding: 10px 12px;
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 220px;
    overflow: auto;
}

/* Remediation block */
.remediation {
    margin-top: 16px;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 16px;
}

.remediation-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-emerald-bright);
    margin-bottom: 6px;
}

.remediation-summary {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.remediation-instructions {
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-size: 12px;
    background: var(--bg-void);
    border: 1px solid var(--border-dim);
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    margin-bottom: 12px;
    line-height: 1.55;
}

.remediation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.remediation-spec-link {
    font-size: 12px;
    color: var(--accent-blue);
    text-decoration: none;
    border: 1px solid var(--border-dim);
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.remediation-spec-link:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.08);
}

/* Next-level call-out */
.next-level {
    margin-top: 40px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.08));
    border: 1px solid var(--border-visible);
    border-radius: 14px;
    padding: 24px;
}

.next-level h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.next-level p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.6;
}

.next-level-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.next-level-list li {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.next-level-list li strong {
    color: var(--text-primary);
    margin-right: 6px;
}

/* ---------- QuadrantX hand-off card ---------- */
.handoff {
    margin-top: 48px;
    background: var(--bg-surface);
    border: 1px solid var(--border-visible);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
}

.handoff h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.handoff h3 .highlight {
    background: linear-gradient(135deg, var(--accent-emerald-bright), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.handoff p {
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 18px;
    font-size: 15px;
    line-height: 1.65;
}

/* ---------- Explainer / FAQ section (below the fold) ---------- */
.explainer-section {
    background: var(--bg-deep);
    border-top: 1px solid var(--border-dim);
    padding: 64px 0;
}

.explainer-grid {
    max-width: 980px;
    margin: 0 auto;
}

.explainer-section h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 12px;
}

.explainer-section .lead {
    text-align: center;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 15px;
    line-height: 1.7;
}

.explainer-list {
    display: grid;
    gap: 10px;
}

.explainer-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    border-radius: 10px;
    padding: 16px 20px;
}

.explainer-item h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.explainer-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-elevated);
    border: 1px solid var(--accent-emerald);
    color: var(--accent-emerald-bright);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 2000;
}

.toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .tier-card-inner {
        grid-template-columns: 1fr;
    }
    .tier-ladder {
        min-width: 0;
    }
    .score-pills {
        grid-template-columns: repeat(2, 1fr);
    }
    .exec-summary { padding: 28px 22px 24px; }
    .exec-top {
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
    }
    .exec-grade { margin: 0 auto; min-width: 0; width: 100%; max-width: 240px; }
    .exec-body, .exec-meta { margin-left: auto; margin-right: auto; }
    .exec-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero { padding: 120px 0 36px; }
    .scan-input-wrap {
        flex-direction: column;
        padding: 10px;
    }
    .scan-button {
        padding: 14px 20px;
        justify-content: center;
    }
    .check-row {
        grid-template-columns: auto 1fr;
    }
    .check-row .check-toggle {
        grid-column: 2;
        text-align: right;
        margin-top: 6px;
    }
    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .action-bar .actions {
        justify-content: stretch;
    }
    .btn-ghost { flex: 1; justify-content: center; }
    .exec-cta { width: 100%; }
    .exec-headline { font-size: 22px; }
}
