
/* Main page */
:root {
    --navy: #0b2647;
    --blue: #1469aa;
    --border: #dce5ed;
    --text: #243447;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #f5f7fa;
    line-height: 1.55;
}

a {
    color: inherit;
}

/* Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    color: white;
    background: rgba(9, 29, 51, 0.06);
    transition: background 0.25s, box-shadow 0.25s;
}

.site-header.scrolled {
    background: rgba(9, 29, 51, 0.95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
    max-width: 1150px;
    margin: auto;
    min-height: 76px;
    padding: 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 15px;
    font-weight: bold;
}

.brand-logo {
    width: 49px;
    height: 49px;
    object-fit: contain;
    background: white;
    border-radius: 4px;
    padding: 2px;
}

.home-link {
    text-decoration: none;
    font-size: 14px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
}

.home-link:hover {
    color: #85d6f4;
    border-color: #85d6f4;
}

/* Banner */
.hero {
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(115deg, #071f3d, #0f568d, #092a4c);
    padding: 151px 24px 73px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -70%;
    background: repeating-linear-gradient(
        125deg,
        transparent 0,
        transparent 76px,
        rgba(79, 189, 235, 0.10) 77px,
        transparent 79px,
        transparent 145px
    );
    animation: drift 22s linear infinite;
    pointer-events: none;
}

@keyframes drift {
    from {
        transform: translateX(-45px);
    }
    to {
        transform: translateX(90px);
    }
}

.hero-content {
    position: relative;
    max-width: 1100px;
    margin: auto;
}

.hero-small {
    font-size: 12px;
    letter-spacing: 1.7px;
    color: #b0d9f5;
    margin: 0 0 12px;
}

h1 {
    font-size: clamp(35px, 5vw, 52px);
    margin: 0 0 9px;
    line-height: 1.15;
}

.hero-content > p:last-child {
    max-width: 680px;
    margin: 0;
    font-size: 16px;
    color: #d9e8f4;
}

/* Content */
.page-container {
    max-width: 1150px;
    margin: auto;
    padding: 34px 24px 55px;
}

.tools-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 22px;
    align-items: start;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 27px;
}

.card-heading {
    margin-bottom: 22px;
}

h2 {
    font-size: 24px;
    color: var(--navy);
    margin: 0 0 4px;
}

.card-heading p {
    margin: 0;
    color: #617080;
    font-size: 14px;
}

h3 {
    font-size: 17px;
    color: var(--navy);
    margin: 22px 0 10px;
}

/* Forms */
label, legend {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 7px;
}

input[type="email"],
input[type="password"],
input[type="number"] {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cbd6e0;
    border-radius: 5px;
    font: inherit;
    font-size: 14px;
    margin-bottom: 17px;
    background: white;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid #7ac9ec;
    outline-offset: 2px;
}

.two-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 16px;
}

legend {
    margin-bottom: 9px;
}

.radio-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
    padding: 9px 10px;
    margin-bottom: 7px;
    border: 1px solid var(--border);
    border-radius: 5px;
}

.radio-option input {
    margin: 3px 0 0;
    accent-color: var(--blue);
}

.radio-option:has(input:checked) {
    border-color: var(--blue);
    background: #edf6fc;
}

.radio-option small {
    display: block;
    font-size: 12px;
    color: #657587;
}

.form-note {
    color: #647587;
    font-size: 12px;
    margin: 0 0 16px;
}

.button {
    width: 100%;
    border: 0;
    border-radius: 5px;
    padding: 12px 15px;
    background: var(--blue);
    color: white;
    font: inherit;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.button:hover {
    background: #0b507f;
}

.message {
    border-radius: 5px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 13px;
}

.preview-message {
    background: #e8f1f7;
    color: #315b75;
    border: 1px solid #c8dcea;
}

/* Points Summary */
.results-card,
.information-card {
    margin-top: 22px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat {
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 14px;
    background: #f8fafc;
}

.stat span,
.stat strong {
    display: block;
}

.stat span {
    font-size: 12px;
    color: #617080;
}

.stat strong {
    color: var(--navy);
    font-size: 27px;
    margin-top: 2px;
}

.featured-stat {
    background: #eaf4fa;
    border-color: #bad9eb;
}

/* Point History */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    text-align: left;
    background: #edf3f8;
    color: var(--navy);
}

th, td {
    border-bottom: 1px solid var(--border);
    padding: 11px 13px;
}

/* Point Requirements */
.requirement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 26px;
}

.requirement {
    padding: 16px;
    background: #edf5fa;
    border-left: 3px solid var(--blue);
}

.requirement strong {
    display: block;
    font-size: 30px;
    color: var(--navy);
}

.requirement span {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    color: #52677b;
}

.info-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-columns p,
.info-list {
    color: #526475;
    font-size: 14px;
}

.info-list {
    padding-left: 20px;
}

.info-list li {
    margin-bottom: 9px;
}

/* Awards */
.award {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.award strong {
    margin-left: auto;
    font-size: 13px;
}

.award-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex: none;
}

.bronze {
    background: #b58055;
}

.silver {
    background: #a8b5c2;
}

.gold {
    background: #e0b644;
}

/* Footer */
.footer {
    padding: 22px;
    text-align: center;
    color: #718091;
    font-size: 13px;
    border-top: 1px solid var(--border);
}

/* Smaller screens */
@media (max-width: 760px) {
    .tools-grid,
    .info-columns {
        grid-template-columns: 1fr;
    }

    .info-columns {
        gap: 10px;
    }
}

@media (max-width: 520px) {
    .header-inner {
        padding: 10px 16px;
    }

    .brand {
        font-size: 12px;
        gap: 7px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .home-link {
        font-size: 12px;
        text-align: right;
    }

    .hero {
        padding: 125px 16px 50px;
    }

    .page-container {
        padding: 24px 15px;
    }

    .card {
        padding: 20px;
    }

    .two-inputs {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
    }
}
