:root {
    --brand-25: #f7f8ff;
    --brand-50: #eef2ff;
    --brand-100: #e0e7ff;
    --brand-200: #c7d2fe;
    --brand-400: #818cf8;
    --brand-600: #4f46e5;
    --brand-700: #4338ca;
    --brand-800: #3730a3;
    --brand-900: #312e81;

    --ink: #101828;
    --gray-700: #344054;
    --gray-500: #667085;
    --gray-400: #98a2b3;
    --gray-300: #d0d5dd;
    --gray-200: #e4e7ec;
    --gray-100: #f2f4f7;
    --gray-50: #f9fafb;
    --white: #ffffff;

    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        "Inter",
        -apple-system,
        "Segoe UI",
        Arial,
        sans-serif;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
}

p {
    margin: 0;
    line-height: 1.65;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-200);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-lockup img {
    height: 26px;
    width: auto;
}

.brand-lockup span {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
    letter-spacing: -0.01em;
}

nav.primary-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

nav.primary-nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
}

nav.primary-nav a:hover {
    color: var(--brand-700);
}

@media (min-width: 800px) {
    nav.primary-nav {
        display: flex;
    }
    .nav-toggle {
        display: none !important;
    }
}

.nav-toggle {
    position: relative;
}

.nav-toggle summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
}

.nav-toggle summary::-webkit-details-marker {
    display: none;
}

.nav-toggle summary::before {
    content: "";
    width: 18px;
    height: 12px;
    background:
        linear-gradient(var(--gray-700), var(--gray-700)) top,
        linear-gradient(var(--gray-700), var(--gray-700)) center,
        linear-gradient(var(--gray-700), var(--gray-700)) bottom;
    background-size: 100% 2px;
    background-repeat: no-repeat;
}

.nav-toggle[open] summary::before {
    background: var(--gray-700);
    height: 2px;
}

.nav-toggle .menu {
    position: absolute;
    right: 0;
    top: 50px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 8px;
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.nav-toggle .menu a {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--gray-700);
}

.nav-toggle .menu a:hover {
    background: var(--brand-50);
    color: var(--brand-700);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand-600);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--brand-700);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--gray-400);
    color: var(--ink);
}

/* Hero */

.hero {
    padding: 72px 0 56px;
    text-align: center;
    background: linear-gradient(180deg, var(--brand-25) 0%, var(--white) 65%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-700);
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    padding: 6px 14px;
    border-radius: 999px;
}

.hero h1 {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 34px;
    margin: 20px auto 0;
    max-width: 720px;
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: 44px;
    }
}

.hero .lede {
    max-width: 580px;
    margin: 18px auto 0;
    font-size: 17px;
    color: var(--gray-500);
}

.hero .cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.hero .attribution {
    margin-top: 28px;
    font-size: 13px;
    color: var(--gray-400);
}

/* Sections */

section {
    padding: 64px 0;
}

.section-head {
    max-width: 560px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-head h2 {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 28px;
}

.section-head p {
    margin-top: 12px;
    color: var(--gray-500);
    font-size: 15px;
}

/* Module cards */

.module-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 760px) {
    .module-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.module-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    background: var(--white);
}

.module-card .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-weight: 700;
    font-size: 13px;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
}

.module-card h3 {
    font-size: 17px;
    margin-top: 16px;
}

.module-card p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--gray-500);
}

/* Access steps */

.access-band {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}

@media (min-width: 700px) {
    .steps {
        flex-direction: row;
        align-items: stretch;
    }
}

.step {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 18px;
    font-size: 14px;
}

.step .step-num {
    color: var(--brand-600);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.step p {
    margin-top: 6px;
    color: var(--gray-700);
    font-weight: 600;
}

.step-arrow {
    display: none;
    align-self: center;
    color: var(--gray-300);
    font-size: 18px;
}

@media (min-width: 700px) {
    .step-arrow {
        display: block;
    }
}

/* Security band */

.security-band {
    background: var(--ink);
    color: var(--gray-200);
}

.security-band .section-head h2,
.security-band .section-head p {
    color: var(--white);
}

.security-band .section-head p {
    color: rgba(255, 255, 255, 0.6);
}

.security-list {
    display: grid;
    gap: 14px;
    max-width: 720px;
    margin: 0 auto;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .security-list {
        grid-template-columns: 1fr 1fr;
    }
}

.security-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 14px;
}

.security-item .dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand-400);
    margin-top: 6px;
}

.security-band .more-link {
    display: block;
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-200);
    text-decoration: none;
}

.security-band .more-link:hover {
    color: var(--white);
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--gray-200);
    padding: 40px 0 28px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

@media (min-width: 700px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-brand img {
    height: 22px;
}

.footer-brand p {
    margin-top: 10px;
    font-size: 13px;
    color: var(--gray-500);
    max-width: 320px;
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--gray-700);
}

.footer-links a:hover {
    color: var(--brand-700);
}

.footer-bottom {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-400);
}

@media (min-width: 700px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Legal pages */

.page-hero {
    padding: 56px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--brand-25) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-200);
}

.page-hero h1 {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 30px;
    margin-top: 16px;
}

.page-hero p.lede {
    max-width: 540px;
    margin: 14px auto 0;
    color: var(--gray-500);
    font-size: 15px;
}

.updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--gray-400);
}

.legal-body {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 0 72px;
}

.legal-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.legal-jump a {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-700);
    background: var(--brand-25);
    border: 1px solid var(--brand-100);
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
}

.legal-jump a:hover {
    background: var(--brand-100);
}

.legal-section {
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid var(--gray-200);
    scroll-margin-top: 96px;
}

.legal-section:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.legal-section .head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-section .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.legal-section h2 {
    font-size: 18px;
}

.legal-section p {
    margin-top: 12px;
    font-size: 15px;
    color: var(--gray-700);
}

.contact-card {
    margin-top: 48px;
    background: var(--brand-25);
    border: 1px solid var(--brand-100);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.contact-card h3 {
    font-size: 16px;
}

.contact-card p {
    margin-top: 6px;
    font-size: 14px;
    color: var(--gray-500);
}
