/* ============================================================
   E1 — AI backlink risk score
   Tool-specific styles. Page shell, hero, buttons, FAQ, CTA and
   design tokens come from /static/css/tools/redirect-checker.css
   (loaded first) and /static/landing/styles.css.
   Angular clip-path corners only — never border-radius.
   ============================================================ */

/* ---- Form -------------------------------------------------------------- */

.rs-form-wrap { margin: 40px 0 16px; }

.field-label {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.field-label .field-opt { font-weight: 400; color: var(--text-muted); }
.field-label .field-req { font-weight: 400; color: var(--neon-cyan); }

.rs-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 700px) {
    .rs-fields { grid-template-columns: 1fr; }
}

.rs-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 15px;
    background: rgba(13, 13, 20, 0.85);
    border: 1px solid rgba(0, 245, 212, 0.3);
    clip-path: var(--clip-badge);
    color: var(--text-primary);
    transition: border-color .2s, box-shadow .2s;
}

.rs-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.15);
}

@media (max-width: 700px) { .rs-input { font-size: 16px; clip-path: none; } }

.rs-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.rs-auth-note {
    font-size: 13px;
    color: var(--text-muted);
}
.rs-auth-note a { color: var(--neon-cyan); text-decoration: none; }
.rs-auth-note a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .rs-controls .btn-primary { width: 100%; text-align: center; }
}

/* ---- Output ------------------------------------------------------------ */

.rs-output { margin-top: 36px; scroll-margin-top: 120px; }

/* Risk gauge */
.rs-gauge-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 26px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    clip-path: var(--clip-card);
    background: rgba(13, 13, 20, 0.5);
}

.rs-gauge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    padding: 14px 20px;
    border: 2px solid;
    clip-path: var(--clip-card);
    min-width: 110px;
}

.rs-gauge-num {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
}
.rs-gauge-suffix { font-family: var(--font-mono); font-size: 15px; color: var(--text-muted); }

.rs-gauge-low    { background: rgba(0, 245, 212, 0.07); border-color: rgba(0, 245, 212, 0.5); }
.rs-gauge-low .rs-gauge-num    { color: #5af0cb; }
.rs-gauge-medium { background: rgba(255, 184, 0, 0.07); border-color: rgba(255, 184, 0, 0.5); }
.rs-gauge-medium .rs-gauge-num { color: #ffd365; }
.rs-gauge-high   { background: rgba(255, 87, 87, 0.08); border-color: rgba(255, 87, 87, 0.55); }
.rs-gauge-high .rs-gauge-num   { color: #ff8888; }
.rs-gauge-na     { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.18); }
.rs-gauge-na .rs-gauge-num     { color: var(--text-muted); font-size: 40px; }

.rs-gauge-text { flex: 1 1 auto; min-width: 0; }

.rs-band {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .03em;
    margin: 0 0 6px;
}
.rs-band-low    { color: #5af0cb; }
.rs-band-medium { color: #ffd365; }
.rs-band-high   { color: #ff8888; }

.rs-summary {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary, #b8c0c8);
}

@media (max-width: 560px) {
    .rs-gauge-wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Indexation row */
.rs-index {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    margin: 0 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left-width: 3px;
    clip-path: var(--clip-badge);
    background: rgba(13, 13, 20, 0.5);
}
.rs-index-dot { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; }
.rs-index-dot-ok   { background: #5af0cb; }
.rs-index-dot-risk { background: #ff5757; }
.rs-index-dot-na   { background: var(--text-muted); }
.rs-index-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rs-index-label { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--text-primary); }
.rs-index-note  { font-size: 13px; line-height: 1.45; color: var(--text-secondary, #b8c0c8); }

/* Analysis blocks */
.rs-blocks { display: flex; flex-direction: column; gap: 12px; margin: 0 0 8px; }

.rs-block {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left-width: 3px;
    clip-path: var(--clip-card);
    background: rgba(20, 22, 30, 0.6);
}
.rs-block-ok      { border-left-color: #5af0cb; }
.rs-block-caution { border-left-color: #ffb800; }
.rs-block-risk    { border-left-color: #ff5757; }

.rs-block-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.rs-block-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; }
.rs-block-dot-ok      { background: #5af0cb; }
.rs-block-dot-caution { background: #ffd365; }
.rs-block-dot-risk    { background: #ff5757; }
.rs-block-cat {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 2px 7px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    clip-path: var(--clip-badge);
}
.rs-block-title { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--text-primary); }
.rs-block-finding { margin: 0 0 6px; font-size: 14px; line-height: 1.55; color: var(--text-secondary, #b8c0c8); }
.rs-block-meta { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-secondary, #b8c0c8); }
.rs-block-meta strong { color: var(--text-primary); }

/* Honest disclaimer */
.rs-disclaimer {
    margin: 22px 0 0;
    padding: 14px 16px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary, #b8c0c8);
    background: rgba(255, 184, 0, 0.05);
    border-left: 3px solid rgba(255, 184, 0, 0.5);
    clip-path: var(--clip-badge);
}
.rs-disclaimer strong { color: var(--text-primary); }
.rs-disclaimer a { color: var(--neon-cyan); font-weight: 600; text-decoration: none; }
.rs-disclaimer a:hover { text-decoration: underline; }

/* Spend echo */
.rs-spend {
    margin: 14px 0 0;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-muted);
}

/* Actions */
.rs-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Hide the auth note when empty so it doesn't reserve a blank line. */
.rs-auth-note:empty { display: none; }

/* Slightly larger rate-limit note for comfortable mobile reading. */
.rate-limit-note { font-size: 13px; }

@media (max-width: 480px) {
    .rs-actions .btn-primary,
    .rs-actions .btn-secondary { width: 100%; text-align: center; margin-right: 0; }
    .product-cta a.btn-primary,
    .product-cta a.btn-secondary {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0 0 10px;
    }
}

/* ============================================================
   PDF report — print-only, light theme. The on-screen #rs-print-area
   is hidden; on print we hide the page chrome and show only the report.
   ============================================================ */
#rs-print-area { display: none; }

@media print {
    body { background: #fff !important; }
    body * { visibility: hidden !important; }
    #rs-print-area, #rs-print-area * { visibility: visible !important; }
    #rs-print-area {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    @page { margin: 16mm 14mm; }
}

.rsp-report {
    font-family: var(--font-body, Arial, sans-serif);
    color: #14141e;
    max-width: 720px;
    margin: 0 auto;
}
.rsp-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    border-bottom: 2px solid #14141e;
    padding-bottom: 8px;
    margin-bottom: 14px;
}
.rsp-brand { font-size: 22px; font-weight: 800; letter-spacing: .02em; color: #0a8f7a; }
.rsp-sub { font-size: 13px; color: #555; }

.rsp-meta-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 12.5px; }
.rsp-meta-table td { padding: 4px 0; vertical-align: top; }
.rsp-meta-table td:first-child { width: 110px; color: #666; font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.rsp-meta-table td:last-child { word-break: break-all; }

.rsp-score {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 12px 16px;
    border: 2px solid #ccc;
    margin-bottom: 12px;
}
.rsp-score-num { font-size: 34px; font-weight: 800; line-height: 1; }
.rsp-score-num span { font-size: 14px; color: #888; font-weight: 600; }
.rsp-score-band { font-size: 16px; font-weight: 700; }
.rsp-low    { border-color: #0a8f7a; } .rsp-low .rsp-score-num    { color: #0a8f7a; } .rsp-low .rsp-score-band    { color: #0a8f7a; }
.rsp-medium { border-color: #b8860b; } .rsp-medium .rsp-score-num { color: #b8860b; } .rsp-medium .rsp-score-band { color: #b8860b; }
.rsp-high   { border-color: #c0392b; } .rsp-high .rsp-score-num   { color: #c0392b; } .rsp-high .rsp-score-band   { color: #c0392b; }

.rsp-summary { font-size: 13.5px; line-height: 1.55; margin: 0 0 12px; }
.rsp-index { font-size: 13px; line-height: 1.5; padding: 8px 12px; border-left: 3px solid #999; background: #f4f4f4; margin-bottom: 16px; }
.rsp-idx-ok   { border-left-color: #0a8f7a; }
.rsp-idx-risk { border-left-color: #c0392b; }
.rsp-idx-na   { border-left-color: #999; }

.rsp-h2 { font-size: 15px; margin: 0 0 10px; border-bottom: 1px solid #ddd; padding-bottom: 4px; }
.rsp-block { padding: 8px 12px; border-left: 3px solid #ccc; margin-bottom: 10px; page-break-inside: avoid; }
.rsp-block p { font-size: 12.5px; line-height: 1.5; margin: 4px 0 0; }
.rsp-block-title { font-size: 13.5px; font-weight: 700; }
.rsp-ok    { border-left-color: #0a8f7a; }
.rsp-caution { border-left-color: #b8860b; }
.rsp-risk  { border-left-color: #c0392b; }
.rsp-tag { display: inline-block; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 2px; color: #fff; margin-right: 4px; vertical-align: middle; }
.rsp-tag-ok { background: #0a8f7a; }
.rsp-tag-caution { background: #b8860b; }
.rsp-tag-risk { background: #c0392b; }

.rsp-disclaimer { margin-top: 18px; padding-top: 10px; border-top: 1px solid #ddd; font-size: 11px; line-height: 1.5; color: #666; }
