:root {
    --ink: #202a37;
    --soft-ink: #475569;
    --muted: #718096;
    --line: #e4edf4;
    --panel: #ffffff;
    --page: #f7fbfd;
    --blue: #10a7e8;
    --blue-dark: #0284c7;
    --teal: #14b8a6;
    --green: #16a34a;
    --red: #e30613;
    --amber: #f59e0b;
    --danger: #b42318;
    --shadow: 0 14px 36px rgba(31, 45, 61, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.top-nav {
    background: #07486e;
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.logo img {
    width: auto;
    height: 30px;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #ffffff;
    font-size: 12px;
}

.alert-strip {
    background: var(--red);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    padding: 8px 16px;
}

.hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 58%, rgba(43, 214, 176, 0.22), transparent 28%),
        radial-gradient(circle at 86% 24%, rgba(69, 183, 255, 0.22), transparent 32%),
        linear-gradient(180deg, #eaf9ff 0%, #ffffff 78%);
    text-align: center;
    padding: 34px 0 58px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #e6f7ff;
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 800;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
}

.hero h1 {
    max-width: 760px;
    margin: 20px auto 10px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: 0;
}

.hero h1 span {
    color: var(--blue);
}

.hero-copy {
    max-width: 660px;
    margin: 0 auto 20px;
    color: var(--soft-ink);
    font-size: 16px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-bottom: 20px;
    color: #489276;
    font-size: 12px;
    font-weight: 700;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tick {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #dff8ed;
    color: var(--green);
    display: inline-grid;
    place-items: center;
    font-size: 10px;
}

.predictor-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid rgba(16, 167, 232, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 50px rgba(7, 72, 110, 0.12);
    backdrop-filter: blur(10px);
}

.form-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.form-intro strong {
    display: block;
    color: var(--ink);
    font-size: 16px;
}

.form-intro span {
    color: var(--muted);
    font-size: 13px;
}

.form-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #e6f7ff;
    color: var(--blue-dark) !important;
    font-size: 12px !important;
    font-weight: 900;
}

.predictor-form {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    align-items: end;
}

.predictor-form .field {
    grid-column: span 3;
}


.predictor-form .button-field {
    grid-column: span 4;
}

.field label {
    display: block;
    margin-bottom: 7px;
    color: var(--soft-ink);
    font-size: 12px;
    font-weight: 800;
    text-align: left;
}

input,
select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    padding: 12px 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input::placeholder {
    color: #9aa8b7;
}

input:focus,
select:focus {
    outline: 0;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(16, 167, 232, 0.14);
    background: #ffffff;
}

.primary-button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), #039bd3);
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(16, 167, 232, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button:hover {
    background: linear-gradient(135deg, var(--blue-dark), #047da8);
    box-shadow: 0 16px 30px rgba(2, 132, 199, 0.34);
    transform: translateY(-1px);
}

.button-field {
    align-self: end;
}

.form-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f4fbff;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.micro-copy {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.section {
    padding: 44px 0;
}

.section.alt {
    background: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 24px;
}

.section-title h2 {
    margin: 0;
    font-size: 26px;
    letter-spacing: 0;
}

.section-title p {
    margin: 6px auto 0;
    max-width: 660px;
    color: var(--muted);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cards-grid.small {
    grid-template-columns: repeat(4, 1fr);
}

.tool-card,
.data-card,
.faq-box,
.result-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 8px 26px rgba(31, 45, 61, 0.05);
}

.tool-card,
.data-card {
    padding: 18px;
}

.icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #ebf8ff;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
}

.tool-card h3,
.data-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.tool-card p,
.data-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.data-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}

th {
    color: var(--soft-ink);
    background: #f8fbfd;
    font-size: 11px;
    text-transform: uppercase;
}

.rank-good {
    color: var(--green);
    font-weight: 800;
}

.rank-close {
    color: var(--red);
    font-weight: 800;
}

.faq-box {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 20px;
    color: var(--soft-ink);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    color: var(--blue);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-item p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--muted);
    font-size: 14px;
}

.cta {
    background: #e8f7fd;
    text-align: center;
}

.footer {
    padding: 26px 0;
    background: #ffffff;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.result-hero {
    background:
        radial-gradient(circle at 16% 34%, rgba(20, 184, 166, 0.18), transparent 28%),
        linear-gradient(180deg, #eaf9ff 0%, #ffffff 88%);
    padding: 36px 0 28px;
}

.result-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.result-heading h1 {
    margin: 8px 0 8px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: 0;
}

.summary-card {
    min-width: 260px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.summary-card strong {
    display: block;
    font-size: 26px;
}

.rank-summary {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfd;
}

.rank-summary span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.rank-summary strong {
    display: block;
    margin-top: 6px;
    color: var(--blue-dark);
    font-size: 34px;
    line-height: 1;
}

.results-shell {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 22px;
    align-items: start;
    padding: 30px 0 54px;
}

.side-panel,
.results-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.side-panel {
    padding: 18px;
    position: sticky;
    top: 18px;
}

.results-panel {
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.panel-head h2 {
    margin: 0;
    font-size: 20px;
}

.result-count {
    color: var(--blue-dark);
    font-weight: 900;
    white-space: nowrap;
}

.program {
    min-width: 300px;
    font-weight: 800;
}

.muted {
    color: var(--muted);
}

.error {
    margin-top: 5px;
    color: var(--danger);
    font-size: 12px;
    text-align: left;
}

.alert,
.success {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13px;
}

.alert {
    border: 1px solid #fac5bd;
    background: #fff3f1;
    color: var(--danger);
}

.success {
    border: 1px solid #9fd6cc;
    background: #effcf9;
    color: #0f766e;
}

.empty {
    padding: 44px 20px;
    color: var(--muted);
    text-align: center;
}

.back-link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .predictor-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .predictor-form .field,
    .predictor-form .field:nth-of-type(5),
    .predictor-form .field:nth-of-type(6) {
        grid-column: span 1;
    }

    .predictor-form .button-field {
        grid-column: span 2;
    }

    .button-field {
        grid-column: span 2;
    }

    .data-layout,
    .results-shell {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }

    .result-heading {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .nav-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 0;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cards-grid,
    .cards-grid.small,
    .predictor-form {
        grid-template-columns: 1fr;
    }

    .predictor-form .field,
    .predictor-form .field:nth-of-type(5),
    .predictor-form .field:nth-of-type(6),
    .predictor-form .button-field {
        grid-column: auto;
    }

    .form-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .button-field {
        grid-column: auto;
    }

    .hero {
        padding-top: 26px;
    }
}
