* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0b0d12;
    color: #f3f5f7;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
}

.page {
    width: min(1100px, 92%);
    margin: 0 auto;
    padding-bottom: 80px;
}

.hero {
    padding: 90px 0 60px;
}

.brand {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .04em;
    margin-bottom: 32px;
}

h1 {
    max-width: 760px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: .98;
    margin: 0;
    letter-spacing: -.045em;
}

.hero-copy {
    max-width: 680px;
    margin: 28px 0;
    color: #a9b0bd;
    font-size: 19px;
    line-height: 1.6;
}

.search {
    display: flex;
    gap: 12px;
    max-width: 820px;
    margin-top: 35px;
}

.search input {
    flex: 1;
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid #2b303a;
    border-radius: 12px;
    background: #13161d;
    color: white;
    font-size: 16px;
    outline: none;
}

.search input:focus {
    border-color: #6d7cff;
}

.search button {
    border: 0;
    border-radius: 12px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
}

.error {
    margin-top: 18px;
    padding: 15px 18px;
    max-width: 820px;
    background: #261417;
    border: 1px solid #663039;
    border-radius: 10px;
}

.report {
    display: grid;
    gap: 22px;
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 15px;
}

.story-header h2 {
    margin: 6px 0 8px;
    font-size: 34px;
}

.story-header a {
    color: #aeb6c7;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: 11px;
    font-weight: 800;
    color: #818a99;
}

.evidence-box {
    min-width: 170px;
    text-align: right;
    color: #949cab;
}

.big-number {
    display: block;
    font-size: 34px;
    color: white;
    font-weight: 800;
}

.panel {
    background: #12151b;
    border: 1px solid #242933;
    border-radius: 18px;
    padding: 28px;
}

.hero-panel {
    border-color: #343c4a;
}

.secondary {
    background: #101319;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h3 {
    margin: 5px 0;
    font-size: 25px;
}

.section-copy {
    color: #9da5b3;
    line-height: 1.6;
    max-width: 700px;
}

.badge,
.beta {
    background: #202630;
    padding: 7px 10px;
    border-radius: 999px;
    color: #cbd2dd;
    font-size: 12px;
    white-space: nowrap;
}

.comp-list {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.comp-card {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 15px;
    align-items: center;
    text-decoration: none;
    padding: 16px;
    border: 1px solid #252b35;
    border-radius: 12px;
    background: #171b22;
}

.comp-card:hover {
    border-color: #475063;
}

.rank {
    color: #798292;
    font-weight: 800;
}

.comp-main {
    display: grid;
    gap: 5px;
}

.comp-main span {
    color: #8e97a6;
    font-size: 13px;
    line-height: 1.45;
}

.comp-evidence {
    text-align: right;
    display: grid;
}

.comp-evidence strong {
    font-size: 20px;
}

.comp-evidence span,
.comp-evidence small {
    color: #8992a0;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.metric {
    background: #171b22;
    border: 1px solid #242a34;
    padding: 19px;
    border-radius: 12px;
    display: grid;
    gap: 5px;
}

.metric span,
.metric small {
    color: #8992a0;
}

.metric strong {
    font-size: 20px;
}

.platform-result {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    border-radius: 12px;
    background: #171b22;
}

.platform-result strong {
    font-size: 21px;
}

.platform-result span {
    color: #979fad;
}

.disclaimer {
    color: #7e8795;
    font-size: 13px;
}

.details,
.method {
    margin-top: 20px;
    color: #9aa3b1;
}

.details summary,
.method summary {
    cursor: pointer;
    color: #cbd2dc;
}

.emerging {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #222832;
}

.method {
    padding: 5px 10px;
}

.method p {
    max-width: 760px;
    line-height: 1.6;
}

@media (max-width: 720px) {

    .hero {
        padding-top: 50px;
    }

    .search {
        flex-direction: column;
    }

    .search button {
        padding: 17px;
    }

    .story-header {
        align-items: start;
        flex-direction: column;
    }

    .evidence-box {
        text-align: left;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .comp-card {
        grid-template-columns: 28px 1fr;
    }

    .comp-evidence {
        grid-column: 2;
        text-align: left;
        display: flex;
        gap: 8px;
        align-items: baseline;
    }

    .section-heading {
        align-items: start;
    }

}


/* ==========================================================
   FictionSignal v0.6
========================================================== */

.page {
    width: min(1240px, 94%);
}

.hero,
.report {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.hero {
    padding-top: 70px;
}

.hero h1 {
    max-width: 900px;
}

.report {
    gap: 26px;
}

.panel {
    padding: 32px;
}

.hero-panel {
    padding: 36px;
}

.comp-card {
    padding: 20px;
}

.comp-main strong {
    font-size: 17px;
}

.overlap-lead {
    color: #d7dce5 !important;
    font-size: 14px !important;
    margin-top: 3px;
}

.technical {
    font-size: 12px !important;
    color: #747e8d !important;
}

.comp-feedback {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
    color: #818b9a;
    font-size: 12px;
}

.feedback-btn {
    border: 1px solid #303744;
    background: #1a1f27;
    color: #cbd2dc;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}

.feedback-btn:hover {
    border-color: #657084;
    background: #202630;
}

.feedback-btn.selected {
    border-color: #8995aa;
    background: #29313d;
}

.feedback-panel {
    text-align: center;
    padding-top: 38px;
    padding-bottom: 38px;
}

.report-feedback {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.report-feedback .feedback-btn {
    min-width: 110px;
    padding: 11px 18px;
}

.feedback-status {
    min-height: 20px;
    margin-top: 15px;
    color: #8f99a8;
    font-size: 13px;
}

.coverage-panel {
    border-color: #394252;
    padding: 40px;
}

.coverage-panel h3 {
    font-size: 27px;
    margin-bottom: 12px;
}

.coverage-note {
    margin-top: 24px;
    color: #8e98a8;
    font-size: 13px;
}

.metric small {
    line-height: 1.45;
}

@media (max-width: 720px) {

    .hero-panel,
    .panel {
        padding: 22px;
    }

    .report-feedback {
        flex-direction: column;
    }

    .report-feedback .feedback-btn {
        width: 100%;
    }

}


/* ==========================================================
   FictionSignal v0.7 — Search + covers
========================================================== */

.search-form {
    align-items: stretch;
}

.search-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.search-wrap input {
    width: 100%;
    height: 100%;
}

.search-hint {
    margin-top: 9px;
    color: #6f7887;
    font-size: 12px;
}

.search-results {
    position: absolute;

    top: calc(100% + 7px);
    left: 0;
    right: 0;

    z-index: 100;

    display: none;

    max-height: 430px;
    overflow-y: auto;

    background: #13171e;

    border:
        1px solid
        #313844;

    border-radius: 12px;

    box-shadow:
        0 18px 45px
        rgba(0,0,0,.45);

    padding: 6px;
}

.search-results.open {
    display: block;
}

.search-result {
    width: 100%;

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 16px;

    padding: 12px 13px;

    border: 0;

    border-radius: 8px;

    background:
        transparent;

    color: #edf0f5;

    text-align: left;

    cursor: pointer;
}

.search-result:hover {
    background: #1d232c;
}

.search-result-main {
    min-width: 0;

    display: grid;

    gap: 3px;
}

.search-result-main strong {
    overflow: hidden;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;

    font-size: 14px;
}

.search-result-main small {
    color: #788291;
}

.coverage-badge {
    flex-shrink: 0;

    padding:
        5px 8px;

    border-radius:
        999px;

    font-size:
        10px;

    font-weight:
        700;
}

.coverage-full {
    color: #cfe7d6;
    background: #1c3426;
}

.coverage-early {
    color: #ead9ae;
    background: #3a3020;
}

.coverage-building {
    color: #aeb8c6;
    background: #252b34;
}

.search-empty {
    padding: 15px;

    color: #858f9e;

    font-size: 13px;
}


/* Story cover */

.story-identity {
    display: flex;

    align-items: center;

    gap: 20px;

    min-width: 0;
}

.story-cover {
    width: 82px;
    height: 116px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 8px;

    border:
        1px solid
        #303744;

    background:
        #171b22;

    box-shadow:
        0 8px 24px
        rgba(0,0,0,.28);
}

.story-identity h2 {
    margin-top: 6px;
}


@media (
    max-width: 720px
) {

    .search-form {
        flex-direction:
            column;
    }

    .search-wrap {
        width: 100%;
    }

    .story-cover {
        width: 68px;
        height: 96px;
    }

    .story-identity {
        align-items:
            flex-start;
    }

}
