:root {
    --navy: #082F49;
    --trust-blue: #0F6CBD;
    --teal: #0E7490;
    --sky-light: #e0f2fe;
    --slate-text: #334155;
    --light-bg: #F8FAFC;
    --success: #16A34A;
    --border: #CBD5E1;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--navy);
    background: var(--white);
    font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3,
.button,
.eyebrow,
.primary-nav a,
label,
summary {
    font-family: "DM Sans", system-ui, sans-serif;
}

h1 {
    max-width: 880px;
    font-size: clamp(2.25rem, 6vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

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

.narrow {
    width: min(780px, calc(100% - 32px));
}

.center {
    text-align: center;
}

.center-row {
    justify-content: center;
}

.screen-reader-text,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    padding: 0.5rem 0.75rem;
    background: var(--navy);
    color: var(--white);
    border-radius: 0.375rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    width: 150px;
    height: auto;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.primary-nav a {
    color: var(--slate-text);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.925rem;
    font-weight: 600;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--trust-blue);
    background: rgba(224, 242, 254, 0.65);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button-primary {
    background: var(--trust-blue);
    color: var(--white);
}

.button-primary:hover {
    background: var(--teal);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.page-hero .button-secondary,
.button-light {
    background: var(--white);
    border-color: var(--border);
    color: var(--navy);
}

.mobile-cta,
.nav-toggle {
    display: none;
}

.hero,
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.hero-dark {
    color: var(--white);
    background: linear-gradient(to bottom right, var(--navy), #0a3a5c, var(--teal));
}

.hero-dark::before,
.hero-dark::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.22;
}

.hero-dark::before {
    top: -80px;
    left: -80px;
    background: var(--sky-light);
}

.hero-dark::after {
    right: -100px;
    bottom: -80px;
    background: var(--trust-blue);
}

.page-hero {
    background: var(--light-bg);
}

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

.hero-stack {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2.25rem;
}

.hero-stack > div {
    max-width: 980px;
}

.hero-stack .hero-image {
    max-width: 1120px;
    width: 100%;
}

.eyebrow {
    color: var(--teal);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-dark .eyebrow {
    color: var(--sky-light);
}

.lead {
    color: var(--slate-text);
    font-size: 1.18rem;
    max-width: 760px;
}

.hero-dark .lead,
.hero-dark p {
    color: rgba(255, 255, 255, 0.82);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hero-image {
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image img,
.feature-image img {
    width: 100%;
    aspect-ratio: 6 / 5;
    object-fit: cover;
}

.hero-image-contain {
    background: var(--white);
}

.hero-image-contain img {
    display: block;
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
}

.badge-band {
    padding: 1.25rem 0;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border);
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    justify-content: center;
}

.badge-list span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--teal);
    font-size: 0.925rem;
    font-weight: 700;
}

.section {
    padding: 5rem 0;
}

.section-muted {
    background: var(--light-bg);
}

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

.card-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.info-card,
.process-card,
.contact-form,
.contact-card,
.faq-list details {
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.info-card,
.process-card,
.contact-card {
    padding: 1.5rem;
}

.info-card p,
.process-card p,
.contact-card p {
    color: var(--slate-text);
}

.link-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.link-card:hover,
.link-card:focus-visible {
    border-color: rgba(14, 116, 144, 0.45);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.icon-dot {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    background: var(--sky-light);
}

.icon-dot::after {
    content: "";
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: var(--trust-blue);
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 3rem;
    align-items: center;
}

.feature-image {
    margin: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.process-card span {
    display: inline-flex;
    color: var(--trust-blue);
    font-family: "DM Sans", system-ui, sans-serif;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.comparison-table {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.comparison-head,
.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.comparison-head {
    background: var(--navy);
    color: var(--white);
}

.comparison-head strong,
.comparison-row span {
    padding: 1rem;
}

.comparison-row + .comparison-row,
.comparison-row span + span,
.comparison-head strong + strong {
    border-top: 1px solid var(--border);
}

.comparison-row span + span,
.comparison-head strong + strong {
    border-left: 1px solid var(--border);
}

.comparison-row span:nth-child(2) {
    color: var(--teal);
    font-weight: 700;
}

.waitlist-section {
    background: var(--sky-light);
}

.cta-section {
    background: var(--sky-light);
}

.cta-dark {
    background: var(--navy);
    color: var(--white);
}

.cta-dark p {
    color: rgba(255, 255, 255, 0.78);
}

.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-list details {
    padding: 0 1.25rem;
}

.faq-list summary {
    cursor: pointer;
    color: var(--navy);
    font-weight: 700;
    padding: 1rem 0;
}

.faq-list details[open] {
    box-shadow: var(--shadow-md);
}

.faq-list p {
    color: var(--slate-text);
    padding-bottom: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    gap: 2rem;
    align-items: start;
}

.contact-form {
    display: grid;
    gap: 1.25rem;
    padding: 2rem;
}

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

label {
    display: grid;
    gap: 0.4rem;
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background: var(--white);
    color: var(--navy);
    font: inherit;
    padding: 0.7rem 0.8rem;
}

textarea {
    resize: vertical;
}

.consent {
    grid-template-columns: auto 1fr;
    align-items: start;
    color: var(--slate-text);
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-weight: 400;
}

.consent input {
    width: auto;
    margin-top: 0.4rem;
}

.consent a,
.contact-card a {
    color: var(--trust-blue);
}

.form-status {
    min-height: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.form-status.is-success {
    color: var(--success);
}

.form-status.is-error {
    color: #dc2626;
}

.legal-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.legal-layout aside {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--light-bg);
    border-radius: 0.75rem;
}

.legal-layout aside h2 {
    font-size: 1rem;
}

.legal-layout aside a {
    color: var(--slate-text);
    text-decoration: none;
}

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

.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(160px, 0.7fr));
    gap: 2rem;
}

.footer-grid h2 {
    color: var(--white);
    font-size: 0.875rem;
    text-transform: uppercase;
}

.footer-grid p,
.footer-bottom {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.925rem;
}

.footer-grid a {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    margin-bottom: 0.45rem;
}

.footer-grid a:hover {
    color: var(--white);
}

.footer-contact {
    margin-top: 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin-bottom: 0;
}

@media (max-width: 1080px) {
    .header-cta {
        display: none;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
        width: 44px;
        height: 44px;
        margin-left: auto;
        border: 1px solid var(--border);
        border-radius: 0.375rem;
        background: var(--white);
    }

    .nav-toggle span:not(.screen-reader-text) {
        width: 20px;
        height: 2px;
        margin: 2px 0;
        background: var(--navy);
    }

    .primary-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        margin: 0;
        padding: 1rem;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

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

    .primary-nav a {
        width: 100%;
    }

    .mobile-cta {
        display: inline-flex;
        margin-top: 0.5rem;
    }
}

@media (max-width: 860px) {
    .hero,
    .page-hero,
    .section {
        padding: 4rem 0;
    }

    .hero-grid,
    .split-grid,
    .contact-grid,
    .legal-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .comparison-head,
    .comparison-row {
        grid-template-columns: 1fr;
    }

    .comparison-row span + span,
    .comparison-head strong + strong {
        border-left: 0;
    }

    .legal-layout aside {
        position: static;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .container,
    .narrow {
        width: min(100% - 24px, 1120px);
    }

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

    .button-row,
    .button {
        width: 100%;
    }
}
