.fbiv-app,
.fbiv-app * {
    box-sizing: border-box;
}

.fbiv-app {
    --fbiv-navy: #102a4c;
    --fbiv-blue: #1e5aa8;
    --fbiv-red: #cf2434;
    --fbiv-orange: #ef6c2f;
    --fbiv-gold: #e4ad22;
    --fbiv-green: #159447;
    --fbiv-soft: #f4f7fb;
    --fbiv-border: #d9e1eb;
    --fbiv-text: #1d2939;
    --fbiv-muted: #5f6f82;
    max-width: 1240px !important;
    margin: 0 auto;
    color: var(--fbiv-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

.fbiv-app button,
.fbiv-app input {
    font: inherit;
}

.fbiv-hero {
    padding: clamp(28px, 5vw, 66px);
    border-radius: 26px;
    background:
        radial-gradient(circle at 90% 10%, rgba(30, 90, 168, .16), transparent 35%),
        linear-gradient(135deg, #ffffff 0%, #f4f8fd 100%);
    border: 1px solid var(--fbiv-border);
    box-shadow: 0 22px 60px rgba(16, 42, 76, .10);
    text-align: center;
}

.fbiv-kicker,
.fbiv-result-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--fbiv-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.fbiv-hero h1,
.fbiv-paid-intro h1,
.fbiv-full-header h1 {
    margin: 0;
    color: var(--fbiv-navy);
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.fbiv-subtitle,
.fbiv-paid-intro p {
    max-width: 800px;
    margin: 18px auto 0;
    color: var(--fbiv-muted);
    font-size: clamp(17px, 2.2vw, 21px);
}

.fbiv-search-form {
    max-width: 890px;
    margin: 34px auto 0;
    text-align: left;
}

.fbiv-search-form > label {
    display: block;
    margin: 0 0 8px;
    color: var(--fbiv-navy);
    font-weight: 800;
}

.fbiv-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px;
    background: #fff;
    border: 1px solid #bfcbd9;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16, 42, 76, .08);
}

.fbiv-search-row:focus-within {
    border-color: var(--fbiv-blue);
    box-shadow: 0 0 0 4px rgba(30, 90, 168, .12), 0 10px 30px rgba(16, 42, 76, .08);
}

.fbiv-search-row input {
    min-width: 0;
    min-height: 58px;
    padding: 0 18px;
    color: var(--fbiv-text);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 18px;
}

.fbiv-search-row button,
.fbiv-unlock-button,
.fbiv-print-button,
.fbiv-retry-paid {
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 800;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.fbiv-search-row button {
    min-height: 58px;
    padding: 0 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--fbiv-blue), var(--fbiv-navy));
    box-shadow: 0 8px 20px rgba(30, 90, 168, .24);
}

.fbiv-search-row button:hover,
.fbiv-unlock-button:hover,
.fbiv-print-button:hover,
.fbiv-retry-paid:hover {
    transform: translateY(-1px);
}

.fbiv-search-row button:disabled,
.fbiv-unlock-button:disabled {
    cursor: wait;
    opacity: .68;
    transform: none;
}

.fbiv-form-note {
    margin: 10px 4px 0;
    color: var(--fbiv-muted);
    font-size: 13px;
}

.fbiv-form-error {
    min-height: 22px;
    margin: 8px 4px 0;
    color: #a71927;
    font-weight: 700;
}

.fbiv-stats {
    margin: 28px 0;
}

.fbiv-stat-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.fbiv-stat-cards article,
.fbiv-list-card,
.fbiv-progress-panel,
.fbiv-methodology,
.fbiv-result-card,
.fbiv-full-report,
.fbiv-message-card,
.fbiv-paid-intro {
    background: #fff;
    border: 1px solid var(--fbiv-border);
    box-shadow: 0 12px 36px rgba(16, 42, 76, .07);
}

.fbiv-stat-cards article {
    padding: 25px;
    border-radius: 18px;
    text-align: center;
}

.fbiv-stat-cards strong {
    display: block;
    color: var(--fbiv-navy);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
}

.fbiv-stat-cards span {
    display: block;
    margin-top: 8px;
    color: var(--fbiv-muted);
    font-weight: 700;
}

.fbiv-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.fbiv-list-card {
    min-width: 0;
    padding: 24px;
    border-radius: 18px;
}

.fbiv-list-card h2,
.fbiv-methodology h2,
.fbiv-report-section h2 {
    margin: 0;
    color: var(--fbiv-navy);
    font-size: 21px;
}

.fbiv-list-card > p,
.fbiv-stats-disclaimer,
.fbiv-methodology p {
    color: var(--fbiv-muted);
}

.fbiv-list-card ol,
.fbiv-credential-list,
.fbiv-sources ul,
.fbiv-bullet-section ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.fbiv-list-card ol {
    counter-reset: fbiv-list;
}

.fbiv-list-card ol li,
.fbiv-credential-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid #edf1f5;
}

.fbiv-list-card ol li:first-child,
.fbiv-credential-list li:first-child {
    border-top: 0;
}

.fbiv-list-card ol li span {
    min-width: 0;
}

.fbiv-list-card b,
.fbiv-credential-list b {
    display: block;
    overflow: hidden;
    color: var(--fbiv-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fbiv-list-card small,
.fbiv-credential-list small,
.fbiv-sources small,
.fbiv-report-row small {
    display: block;
    color: var(--fbiv-muted);
    font-size: 12px;
}

.fbiv-check {
    display: grid;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    place-items: center;
    color: #fff;
    background: var(--fbiv-green);
    border-radius: 50%;
    font-weight: 900;
}

.fbiv-empty {
    margin-top: 18px;
    padding: 18px;
    color: var(--fbiv-muted);
    background: var(--fbiv-soft);
    border-radius: 12px;
}

.fbiv-stats-disclaimer {
    margin: 14px 4px 0;
    font-size: 12px;
    text-align: center;
}

.fbiv-progress-panel {
    margin: 28px 0;
    padding: clamp(20px, 3vw, 34px);
    border-radius: 20px;
}

.fbiv-progress-heading,
.fbiv-risk-title,
.fbiv-result-header,
.fbiv-full-header,
.fbiv-finding-list article > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.fbiv-progress-heading > div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fbiv-navy);
}

.fbiv-elapsed {
    color: var(--fbiv-muted);
    font-size: 13px;
}

.fbiv-live-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    background: var(--fbiv-red);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(207, 36, 52, .5);
    animation: fbiv-pulse 1.4s infinite;
}

@keyframes fbiv-pulse {
    0% { box-shadow: 0 0 0 0 rgba(207, 36, 52, .45); }
    70% { box-shadow: 0 0 0 9px rgba(207, 36, 52, 0); }
    100% { box-shadow: 0 0 0 0 rgba(207, 36, 52, 0); }
}

.fbiv-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid #d4dde8;
    border-radius: 14px;
}

.fbiv-track-step {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 80px;
    gap: 10px;
    padding: 14px;
    color: #66778b;
    background: #eef2f6;
    border-right: 1px solid #fff;
    transition: background .35s ease, color .35s ease, transform .35s ease;
}

.fbiv-track-step:last-child {
    border-right: 0;
}

.fbiv-track-step.is-active {
    color: #fff;
    background: var(--fbiv-red);
}

.fbiv-track-step:nth-child(2).is-active { background: #dc3c35; }
.fbiv-track-step:nth-child(3).is-active { background: var(--fbiv-orange); }
.fbiv-track-step:nth-child(4).is-active { background: var(--fbiv-gold); }
.fbiv-track-step:nth-child(5).is-active { background: var(--fbiv-green); }

.fbiv-track-step.is-complete {
    color: #fff;
    background: var(--fbiv-green);
}

.fbiv-step-number {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    font-size: 16px;
    font-weight: 900;
}

.fbiv-track-step:not(.is-active):not(.is-complete) .fbiv-step-number {
    color: var(--fbiv-muted);
    background: #fff;
    border-color: #ccd6e2;
}

.fbiv-step-copy {
    min-width: 0;
}

.fbiv-step-copy strong,
.fbiv-step-copy small {
    display: block;
}

.fbiv-step-copy strong {
    font-size: 13px;
}

.fbiv-step-copy small {
    margin-top: 3px;
    opacity: .86;
    font-size: 11px;
}

.fbiv-progress-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 18px;
    background: var(--fbiv-soft);
    border-radius: 14px;
}

.fbiv-progress-detail p {
    margin: 3px 0 0;
    color: var(--fbiv-muted);
}

.fbiv-spinner {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 4px solid #d9e3ef;
    border-top-color: var(--fbiv-blue);
    border-radius: 50%;
    animation: fbiv-spin .85s linear infinite;
}

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

.fbiv-result-card,
.fbiv-full-report {
    margin: 28px 0;
    overflow: hidden;
    border-radius: 22px;
}

.fbiv-result-header,
.fbiv-full-header {
    padding: clamp(24px, 4vw, 38px);
    background: linear-gradient(135deg, #f8fbff, #eef4fb);
    border-bottom: 1px solid var(--fbiv-border);
}

.fbiv-result-header h2 {
    margin: 0;
    color: var(--fbiv-navy);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.1;
}

.fbiv-result-pill {
    display: inline-flex;
    max-width: 320px;
    padding: 10px 14px;
    color: #fff;
    background: var(--fbiv-blue);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.fbiv-result-potential_material_concern .fbiv-result-pill,
.fbiv-result-elevated_apparent_risk .fbiv-result-pill {
    background: var(--fbiv-red);
}

.fbiv-result-verified_with_cautions .fbiv-result-pill,
.fbiv-result-moderate_apparent_risk .fbiv-result-pill {
    background: #b7790c;
}

.fbiv-result-lower_apparent_risk .fbiv-result-pill {
    background: var(--fbiv-green);
}

.fbiv-risk-block,
.fbiv-result-summary,
.fbiv-fact-grid,
.fbiv-caution,
.fbiv-recommendation,
.fbiv-sources,
.fbiv-result-footer,
.fbiv-legal-note {
    margin-left: clamp(24px, 4vw, 38px);
    margin-right: clamp(24px, 4vw, 38px);
}

.fbiv-risk-block {
    margin-top: 28px;
}

.fbiv-risk-title span {
    color: var(--fbiv-navy);
    font-weight: 800;
}

.fbiv-risk-meter {
    position: relative;
    height: 18px;
    margin-top: 12px;
}

.fbiv-risk-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #c92335 0%, #ee6a31 28%, #e8b22c 52%, #80b950 72%, #159447 100%);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18);
}

.fbiv-risk-pointer {
    position: absolute;
    top: 50%;
    width: 26px;
    height: 26px;
    background: #fff;
    border: 4px solid var(--fbiv-navy);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
    transform: translate(-50%, -50%);
}

.fbiv-risk-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    color: var(--fbiv-muted);
    font-size: 11px;
}

.fbiv-result-summary {
    margin-top: 27px;
    color: #24354b;
    font-size: 18px;
}

.fbiv-fact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.fbiv-fact-grid > div {
    padding: 18px;
    background: var(--fbiv-soft);
    border: 1px solid #e2e9f1;
    border-radius: 13px;
}

.fbiv-fact-grid span,
.fbiv-report-meta span {
    display: block;
    color: var(--fbiv-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fbiv-fact-grid strong {
    display: block;
    margin-top: 7px;
    color: var(--fbiv-navy);
}

.fbiv-caution,
.fbiv-recommendation,
.fbiv-report-disclaimer {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 13px;
}

.fbiv-caution {
    background: #fff8e7;
    border: 1px solid #efd28b;
}

.fbiv-caution.fbiv-material-warning {
    background: #fff0f1;
    border-color: #e7a2a9;
}

.fbiv-recommendation {
    background: #edf7ff;
    border: 1px solid #b9daf4;
}

.fbiv-caution p,
.fbiv-recommendation p,
.fbiv-report-disclaimer p {
    margin: 5px 0 0;
}

.fbiv-sources {
    margin-top: 24px;
}

.fbiv-sources ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.fbiv-sources li {
    padding: 12px 14px;
    background: var(--fbiv-soft);
    border-radius: 10px;
}

.fbiv-sources a,
.fbiv-inline-source {
    color: var(--fbiv-blue);
    font-weight: 700;
    text-decoration: none;
}

.fbiv-sources a:hover,
.fbiv-inline-source:hover {
    text-decoration: underline;
}

.fbiv-result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 28px;
    padding: 24px;
    color: #fff;
    background: var(--fbiv-navy);
    border-radius: 16px;
}

.fbiv-result-footer p {
    max-width: 760px;
    margin: 5px 0 0;
    color: #d7e3f1;
}

.fbiv-unlock-button {
    flex: 0 0 auto;
    min-height: 52px;
    padding: 0 20px;
    color: #0d2a20;
    background: #8be7aa;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.fbiv-paid-unavailable {
    max-width: 250px;
    color: #d7e3f1;
    font-size: 13px;
    text-align: right;
}

.fbiv-legal-note {
    margin-top: 18px;
    margin-bottom: 26px;
    color: var(--fbiv-muted);
    font-size: 12px;
}

.fbiv-methodology {
    margin: 28px 0 0;
    padding: 24px;
    border-radius: 18px;
}

.fbiv-methodology p {
    margin-bottom: 0;
}

.fbiv-paid-intro,
.fbiv-message-card {
    padding: clamp(28px, 5vw, 52px);
    border-radius: 22px;
}

.fbiv-paid-intro {
    text-align: center;
}

.fbiv-message-warning {
    border-left: 6px solid var(--fbiv-gold);
}

.fbiv-full-header {
    align-items: flex-start;
}

.fbiv-full-header > div {
    max-width: 900px;
}

.fbiv-full-header p {
    margin: 15px 0 0;
    color: var(--fbiv-muted);
    font-size: 17px;
}

.fbiv-print-button,
.fbiv-retry-paid {
    padding: 12px 18px;
    color: #fff;
    background: var(--fbiv-blue);
}

.fbiv-report-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 24px clamp(24px, 4vw, 38px);
    border-bottom: 1px solid var(--fbiv-border);
}

.fbiv-report-meta span {
    padding: 13px;
    color: var(--fbiv-muted);
    background: var(--fbiv-soft);
    border-radius: 10px;
    text-transform: none;
    letter-spacing: normal;
}

.fbiv-report-meta strong {
    display: block;
    margin-bottom: 4px;
    color: var(--fbiv-navy);
}

.fbiv-report-section {
    padding: 28px clamp(24px, 4vw, 38px);
    border-bottom: 1px solid var(--fbiv-border);
}

.fbiv-report-table {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--fbiv-border);
    border-radius: 12px;
}

.fbiv-report-row {
    display: grid;
    grid-template-columns: minmax(190px, .7fr) minmax(0, 1.7fr);
    gap: 20px;
    padding: 15px 18px;
    border-top: 1px solid var(--fbiv-border);
}

.fbiv-report-row:first-child {
    border-top: 0;
}

.fbiv-report-row:nth-child(odd) {
    background: #fafbfd;
}

.fbiv-finding-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.fbiv-finding-list article {
    padding: 18px;
    background: var(--fbiv-soft);
    border-radius: 12px;
}

.fbiv-finding-list article > div span {
    padding: 4px 9px;
    color: var(--fbiv-navy);
    background: #dfe9f5;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.fbiv-finding-list p {
    margin: 8px 0;
}

.fbiv-bullet-section li {
    position: relative;
    margin: 10px 0;
    padding-left: 26px;
}

.fbiv-bullet-section li::before {
    position: absolute;
    left: 0;
    content: "•";
    color: var(--fbiv-blue);
    font-size: 24px;
    line-height: 18px;
}

.fbiv-bullet-positive li::before { color: var(--fbiv-green); content: "✓"; font-size: 16px; }
.fbiv-bullet-caution li::before { color: var(--fbiv-orange); content: "!"; font-weight: 900; font-size: 16px; }
.fbiv-bullet-action li::before { color: var(--fbiv-blue); content: "→"; font-size: 18px; }

.fbiv-sources-full {
    margin: 0;
    padding: 28px clamp(24px, 4vw, 38px);
    border-bottom: 1px solid var(--fbiv-border);
}

.fbiv-report-disclaimer {
    margin: 26px clamp(24px, 4vw, 38px) 34px;
    background: #f5f6f8;
    border: 1px solid #dcdfe5;
}

@media (max-width: 900px) {
    .fbiv-stat-grid,
    .fbiv-report-meta {
        grid-template-columns: 1fr 1fr;
    }

    .fbiv-track {
        grid-template-columns: 1fr;
        overflow: visible;
        border-radius: 12px;
    }

    .fbiv-track-step {
        min-height: 62px;
        border-right: 0;
        border-bottom: 1px solid #fff;
    }

    .fbiv-track-step:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 680px) {
    .fbiv-hero {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .fbiv-search-row,
    .fbiv-stat-cards,
    .fbiv-stat-grid,
    .fbiv-fact-grid,
    .fbiv-sources ul,
    .fbiv-report-meta,
    .fbiv-report-row {
        grid-template-columns: 1fr;
    }

    .fbiv-search-row button {
        width: 100%;
    }

    .fbiv-result-header,
    .fbiv-full-header,
    .fbiv-result-footer,
    .fbiv-progress-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .fbiv-result-pill {
        max-width: none;
    }

    .fbiv-unlock-button {
        width: 100%;
    }

    .fbiv-paid-unavailable {
        max-width: none;
        text-align: left;
    }
}

@media print {
    body * {
        visibility: hidden !important;
    }

    .fbiv-full-report,
    .fbiv-full-report * {
        visibility: visible !important;
    }

    .fbiv-full-report {
        position: absolute;
        inset: 0;
        width: 100%;
        margin: 0;
        border: 0;
        box-shadow: none;
    }

    .fbiv-print-button {
        display: none !important;
    }

    .fbiv-report-section,
    .fbiv-report-row,
    .fbiv-finding-list article {
        break-inside: avoid;
    }
}
