/* ============================================================
   B1 — Page SEO snapshot (on-page checker)
   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 -------------------------------------------------------------- */

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

.pseo-form {
    margin-bottom: 12px;
}

.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-req { font-weight: 400; color: var(--neon-cyan); }

.ps-input-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.ps-input {
    flex: 1 1 auto;
    min-width: 240px;
    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;
}

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

.ps-input-row .btn-primary { flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 640px) {
    .ps-input {
        font-size: 16px; /* stop iOS Safari auto-zoom */
        flex-basis: auto; /* prevent 360px tall box when form is column-direction */
        width: 100%;
    }
    .ps-input-row { flex-direction: column; }
    .ps-input-row .btn-primary { width: 100%; text-align: center; }
}

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

.pseo-output {
    margin-top: 36px;
    /* 120px clears the announcement banner (~37px) + fixed header (~72px) so the
       summary strip isn't hidden on scroll-into-view after submit. */
    scroll-margin-top: 120px;
}

/* Summary strip */
.ps-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 18px;
    margin-bottom: 8px;
    border: 1px solid;
    border-left-width: 4px;
    clip-path: var(--clip-card);
}

.ps-summary-ok    { background: rgba(0, 245, 212, 0.06); border-color: rgba(0, 245, 212, 0.4); }
.ps-summary-warn  { background: rgba(255, 184, 0, 0.06); border-color: rgba(255, 184, 0, 0.4); }
.ps-summary-issue { background: rgba(255, 87, 87, 0.07); border-color: rgba(255, 87, 87, 0.45); }
.ps-summary-error {
    background: rgba(255, 87, 87, 0.08);
    border-color: rgba(255, 87, 87, 0.45);
    color: #ff9b9b;
    font-size: 14px;
}

.ps-pill {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    padding: 4px 12px;
    clip-path: var(--clip-badge);
}

.ps-pill-issue { background: rgba(255, 87, 87, 0.16);  color: #ff9b9b; }
.ps-pill-warn  { background: rgba(255, 184, 0, 0.16);  color: #ffd365; }
.ps-pill-ok    { background: rgba(0, 245, 212, 0.14);  color: #5af0cb; }

.ps-final-url {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0 0 20px;
    word-break: break-all;
}

/* Sections */
.ps-section {
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    clip-path: var(--clip-card);
    background: rgba(13, 13, 20, 0.5);
    overflow: hidden;
}

.ps-section-title {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--text-secondary, #b8c0c8);
    margin: 0;
    padding: 12px 16px;
    background: rgba(20, 22, 30, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ps-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 11px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ps-row:last-child { border-bottom: none; }

.ps-dot {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    clip-path: var(--clip-badge);
    margin-top: 1px;
}

.ps-dot-ok    { background: rgba(0, 245, 212, 0.16);  color: #5af0cb; }
.ps-dot-warn  { background: rgba(255, 184, 0, 0.18);  color: #ffd365; }
.ps-dot-issue { background: rgba(255, 87, 87, 0.18);  color: #ff9b9b; }
.ps-dot-info  { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }

.ps-row-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ps-row-label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.ps-row-detail {
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-secondary, #b8c0c8);
    word-break: break-word;
}

/* Post-results transitional nudge */
.results-nudge {
    margin: 28px 0 0;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary, #b8c0c8);
    background: rgba(0, 245, 212, 0.05);
    border-left: 3px solid var(--neon-cyan);
    clip-path: var(--clip-badge);
}

.results-nudge a {
    color: var(--neon-cyan);
    font-weight: 600;
    text-decoration: none;
}

.results-nudge a:hover { text-decoration: underline; }

/* Actions */
.ps-actions {
    margin-top: 20px;
}

@media (max-width: 480px) {
    .ps-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;
    }
}
