/* ===== Base Reset & Typography ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: #22252b;
    background-color: #ffffff;
    line-height: 1.6;
}

/* Legal pages slightly different background */
body.legal-page {
    background-color: #f5f5f7;
}

/* ===== Container ===== */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ===== Header & Navigation ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #0b1f3b;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo a {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    color: #e2e6f0;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav a:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.nav a.active {
    background-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-weight: 600;
}

/* ===== Buttons ===== */

.btn {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease,
        background-color 0.12s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: #1e9a6a;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(5, 88, 54, 0.25);
}

.btn-primary:hover {
    background-color: #187755;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 88, 54, 0.35);
}

/* ===== Sections ===== */

.section {
    padding: 3rem 0;
}

.section-alt {
    background-color: #f5f5f7;
}

.section h1,
.section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.section h1 {
    font-size: 2rem;
}

.section h2 {
    font-size: 1.6rem;
}

.section h3 {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.section-intro {
    max-width: 42rem;
    margin-bottom: 1.25rem;
}

.section-note {
    font-size: 0.9rem;
    color: #555a64;
    margin-top: 1.25rem;
}

.disclaimer-text {
    font-size: 0.85rem;
    color: #555a64;
    margin-top: 0.75rem;
}

/* ===== Hero Section ===== */

.section-hero {
    background: linear-gradient(135deg, #0b1f3b 0%, #152d54 55%, #0b1f3b 100%);
    color: #ffffff;
    padding: 3.5rem 0 3rem;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    max-width: 34rem;
    margin-bottom: 1rem;
}

.hero-bullets {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1.25rem;
}

.hero-bullets li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.hero-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #d9a441;
}

.hero-cta {
    margin-top: 0.5rem;
}

.hero-side {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    background-color: rgba(10, 18, 36, 0.9);
    border-radius: 12px;
    padding: 1.35rem 1.5rem;
    max-width: 19rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hero-card h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.hero-card-note {
    font-size: 0.9rem;
    color: #c4c9d7;
}

/* ===== Steps (How It Works) ===== */

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.25rem 1.15rem 1.1rem;
    box-shadow: 0 4px 10px rgba(14, 22, 39, 0.06);
    border: 1px solid #dde1ea;
}

.section-alt .step {
    background-color: #ffffff;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #1e9a6a;
    color: #ffffff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ===== Cards (Deals / Value) ===== */

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.35rem 1.2rem;
    box-shadow: 0 4px 10px rgba(17, 22, 35, 0.05);
    border: 1px solid #dde1ea;
}

/* ===== Sample Deal ===== */

.sample-deal {
    margin-top: 1.1rem;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.25rem 1.2rem;
    border: 1px solid #dde1ea;
    box-shadow: 0 4px 10px rgba(17, 22, 35, 0.05);
}

.sample-deal ul {
    margin: 0;
    padding-left: 1.1rem;
}

/* ===== Lists ===== */

.areas-list,
.criteria-list {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0 0.25rem;
    columns: 2;
    column-gap: 1.5rem;
    font-size: 0.95rem;
}

.areas-list li,
.criteria-list li {
    margin-bottom: 0.25rem;
}

/* On narrow screens, revert to single column */
@media (max-width: 600px) {
    .areas-list,
    .criteria-list {
        columns: 1;
    }
}

/* ===== Join Section ===== */

.section-join {
    background-color: #152d54;
    color: #ffffff;
}

.section-join h2 {
    color: #ffffff;
}

.section-join .hero-bullets li::before {
    color: #1e9a6a;
}

.form-wrapper {
    margin-top: 1.25rem;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 6px 18px rgba(3, 9, 25, 0.5);
}

.form-fallback {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.form-fallback a {
    color: #ffd777;
}

.section-join .disclaimer-text {
    color: #c4c9d7;
}

/* ===== Footer ===== */

.site-footer {
    background-color: #0b1f3b;
    color: #d0d5e3;
    padding: 1.75rem 0;
    margin-top: 0;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-brand {
    margin: 0 0 0.25rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-text {
    margin: 0 0 0.35rem;
}

.footer-text.small {
    font-size: 0.8rem;
    color: #afb5c8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-links a {
    color: #e2e6f0;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover,
.footer-links a.active {
    color: #ffffff;
    text-decoration: underline;
}

/* ===== Legal Pages ===== */

.legal-main {
    padding: 2.5rem 0 3rem;
}

.legal-main h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.legal-main h2 {
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.legal-main h3 {
    margin-top: 1.1rem;
    margin-bottom: 0.35rem;
}

/* ===== Links ===== */

a {
    color: #1e9a6a;
}

a:hover {
    color: #187755;
}

/* ===== Responsive Layout ===== */

@media (min-width: 768px) {
    .hero-inner {
        flex-direction: row;
        align-items: center;
    }

    .hero-content {
        flex: 1.5;
    }

    .hero-side {
        flex: 1;
        justify-content: flex-end;
    }

    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 2.4rem;
    }

    .section {
        padding: 3.5rem 0;
    }
}
