:root {
    --bg: #f5f2ea;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --ink: #153029;
    --muted: #5a695f;
    --line: rgba(21, 48, 41, 0.12);
    --brand: #0f9d58;
    --brand-dark: #0b6b3d;
    --accent: #d9f36c;
    --sand: #efe3c8;
    --shadow: 0 18px 48px rgba(20, 43, 36, 0.12);
    --radius: 24px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

    input[type="checkbox"] {
        accent-color: var(--brand);
    }
body {
    background:
        radial-gradient(circle at top left, rgba(217, 243, 108, 0.28), transparent 28%),
        linear-gradient(180deg, #fbf9f4 0%, var(--bg) 45%, #edf3ea 100%);
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    .consent-check {
        display: grid;
        grid-template-columns: 20px 1fr;
        gap: 0.75rem;
        align-items: start;
        margin-top: 1rem;
        color: var(--muted);
        font-size: 0.94rem;
    }
    .consent-check input {
        margin-top: 0.2rem;
    }
    .compact-consent {
        font-size: 0.88rem;
    }
    line-height: 1.6;
}

a {
    color: inherit;
    .cookie-banner {
        position: fixed;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        z-index: 60;
    }
    .cookie-banner__content {
        width: min(980px, 100%);
        margin: 0 auto;
        padding: 1.2rem 1.25rem;
        display: flex;
        justify-content: space-between;
        align-items: end;
        gap: 1rem;
        background: rgba(19, 33, 28, 0.96);
        color: rgba(255, 255, 255, 0.92);
        border-color: rgba(255, 255, 255, 0.08);
    }
    .cookie-banner__content .panel-kicker {
        color: var(--accent);
    }
    .cookie-banner__content h3 {
        margin: 0.35rem 0 0.5rem;
    }
    .cookie-banner__actions {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .cookie-button-dark {
        background: rgba(255, 255, 255, 0.08);
    }
}

img {
    max-width: 100%;
    display: block;
        .cookie-banner__content,
        .cookie-banner__actions {
            display: grid;
        }
}

button,
input,
select,
textarea {
    font: inherit;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(251, 249, 244, 0.82);
    border-bottom: 1px solid rgba(21, 48, 41, 0.08);
}

.nav-container,
.hero-shell,
.section-heading,
.simulation-layout,
.eligibility-grid,
.aid-cards-container,
.process-grid,
.tips-grid,
.faq-container,
.contact-container,
.footer-grid,
.about-strip-content {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 82px;
}

.logo {
    width: 218px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.97rem;
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: 88vh;
    padding: 6rem 0 4rem;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 33, 27, 0.78) 0%, rgba(11, 33, 27, 0.52) 48%, rgba(11, 33, 27, 0.3) 100%);
}

.hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
    gap: 2rem;
    align-items: end;
}

.hero-copy {
    color: #ffffff;
    padding: 4rem 0 2rem;
}

.eyebrow,
.panel-kicker {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-dark);
    font-weight: 700;
}

.hero-copy .eyebrow,
.hero-panel .panel-kicker {
    color: var(--accent);
}

.hero h1,
.section-title,
.hero-panel h2,
.about-strip h2,
.legal-page h1 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.05;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    max-width: 11ch;
    margin: 1rem 0 1.25rem;
}

.hero-text {
    font-size: 1.08rem;
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.cta-button {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 1rem 1.5rem;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-primary {
    background: linear-gradient(135deg, var(--accent), #9fe870);
    color: #102820;
    box-shadow: 0 16px 34px rgba(159, 232, 112, 0.24);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.full-width {
    width: 100%;
}

.hero-metrics,
.result-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hero-metrics div,
.result-metrics div {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metrics strong,
.result-metrics strong {
    display: block;
    font-size: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-metrics span {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
}

.card-surface {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 2rem;
}

.check-list,
.aid-details,
.service-sublist,
.legal-content ul {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.check-list li,
.aid-details li,
.service-sublist li,
.legal-content li {
    position: relative;
    padding-left: 1.35rem;
}

.check-list li::before,
.aid-details li::before,
.service-sublist li::before,
.legal-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
}

.inline-link {
    display: inline-flex;
    margin-top: 1.25rem;
    font-weight: 800;
    color: var(--brand-dark);
}

main section,
.about-strip,
.legal-page main {
    padding: 5.5rem 0;
}

.section-heading {
    margin-bottom: 2rem;
}

.split-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
}

.section-title {
    font-size: clamp(2rem, 3vw, 3.2rem);
    max-width: 15ch;
    margin-top: 0.45rem;
}

.section-intro {
    max-width: 48ch;
    color: var(--muted);
}

.services-section {
    background: rgba(255, 255, 255, 0.4);
}

.services-grid,
.aid-cards-container,
.process-grid,
.tips-grid,
.faq-container {
    display: grid;
    gap: 1.5rem;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.service-card,
.aid-card,
.process-card,
.testimonial-card,
.faq-item,
.checklist-card,
.result-panel,
.form-panel,
.contact-form,
.about-strip-content {
    padding: 1.75rem;
}

.service-icon {
    font-size: 2rem;
    color: var(--brand);
    margin-bottom: 1rem;
}

.service-card h3,
.aid-card h3,
.process-card h3,
.faq-item h3,
.checklist-card h3,
.result-panel h3 {
    margin-bottom: 0.6rem;
}

.simulation-layout,
.eligibility-grid,
.contact-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.contact-sidebar {
    padding: 1.75rem;
    align-self: start;
}

.result-panel {
    background: linear-gradient(180deg, rgba(15, 157, 88, 0.12), rgba(255, 255, 255, 0.9));
}

.muted strong,
.muted span {
    color: var(--muted);
}

.form-grid {
    display: grid;
    gap: 1rem;
}

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

.form-group {
    display: grid;
    gap: 0.45rem;
}

.form-group label {
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea,
.popup-form input {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-panel button,
.contact-form button,
.popup-form button {
    margin-top: 1rem;
}

.form-note {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.94rem;
}

.eligibility-grid {
    align-items: start;
}

.aid-cards-container,
.process-grid,
.tips-grid,
.faq-container {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.aid-logo {
    height: 56px;
    width: auto;
    margin-bottom: 1rem;
    object-fit: contain;
}

.process-number {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    background: var(--sand);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 0.8rem;
}

.testimonial-author {
    font-weight: 800;
    color: var(--brand-dark);
}

.about-strip {
    padding-top: 1rem;
}

.about-strip-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(15, 157, 88, 0.18), rgba(239, 227, 200, 0.72));
}

.contact-section {
    background: rgba(255, 255, 255, 0.38);
}

.footer {
    padding: 4rem 0;
    background: #13211c;
    color: rgba(255, 255, 255, 0.88);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-note {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 2rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 0.9rem;
}

.footer-links {
    display: grid;
    gap: 0.45rem;
}

.footer-links a,
.social-icons a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.35rem;
}

.popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(11, 33, 27, 0.7);
    z-index: 50;
}

.popup.is-visible {
    display: flex;
}

.popup-content {
    width: min(680px, 100%);
    padding: 1.75rem;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    font-size: 1.5rem;
    cursor: pointer;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 3rem;
    margin-bottom: 1.25rem;
}

.popup-logo {
    width: 58px;
}

.popup-body {
    display: grid;
    gap: 1rem;
}

.question {
    display: none;
}

.question.active {
    display: block;
}

.question p {
    margin-bottom: 1rem;
    font-weight: 800;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.button-group button {
    flex: 1 1 180px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(15, 157, 88, 0.08);
    padding: 0.95rem 1rem;
    cursor: pointer;
    font-weight: 800;
}

.grid-buttons button {
    flex-basis: calc(50% - 0.4rem);
}

.popup-form {
    display: grid;
    gap: 0.75rem;
}

.result-question {
    text-align: center;
}

.is-success {
    color: var(--brand-dark);
}

.is-warning {
    color: #9a5d00;
}

.is-error {
    color: #a12727;
}

.legal-page .header {
    position: relative;
}

.legal-hero,
.legal-content {
    width: min(900px, calc(100% - 2rem));
    margin: 0 auto;
}

.legal-hero {
    padding-top: 4rem;
}

.legal-content {
    display: grid;
    gap: 1.5rem;
}

.legal-card {
    padding: 1.75rem;
}

.legal-card h2,
.legal-card h3 {
    margin-bottom: 0.7rem;
}

@media (max-width: 960px) {
    .hero-shell,
    .simulation-layout,
    .eligibility-grid,
    .contact-container,
    .split-heading,
    .about-strip-content {
        grid-template-columns: 1fr;
        display: grid;
    }

    .section-title {
        max-width: none;
    }

    .hero-metrics,
    .result-metrics,
    .two-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: 82px;
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-top: 3.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-metrics,
    .result-metrics {
        grid-template-columns: 1fr;
    }

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

    .grid-buttons button {
        flex-basis: 100%;
    }

    .hero-actions,
    .button-group {
        flex-direction: column;
    }

    main section,
    .footer,
    .legal-page main {
        padding: 4rem 0;
    }
}