:root {
    --brand: #B0C4DE;
    --brand-strong: #7896ba;
    --brand-deep: #2f4b6d;
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-soft: #edf2f7;
    --text: #172033;
    --muted: #667085;
    --border: #dce3ec;
    --success: #18794e;
    --shadow: 0 18px 45px rgba(47, 75, 109, .12);
    --shadow-soft: 0 8px 24px rgba(47, 75, 109, .08);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

html[data-theme="dark"] {
    --bg: #101722;
    --surface: #182230;
    --surface-soft: #202c3b;
    --text: #f4f7fb;
    --muted: #a9b5c5;
    --border: #2d3a4c;
    --brand: #9fb7d3;
    --brand-strong: #b7cbe2;
    --brand-deep: #d7e4f2;
    --shadow: 0 18px 48px rgba(0, 0, 0, .28);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.site-header { position: sticky; top: 0; z-index: 1000; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent); }
.nav-shell { max-width: 1180px; height: 78px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: -.03em; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow-soft); overflow: hidden; }
.brand-mark img { width: 36px; height: 36px; object-fit: contain; }
.menu { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.menu a:not(.button) { display: block; padding: 10px 13px; color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 600; border-radius: 12px; }
.menu a:not(.button):hover, .menu a.active { color: var(--text); background: var(--surface-soft); }
.nav-actions { display: none; align-items: center; gap: 10px; }
.theme-toggle, .hamburger { border: 1px solid var(--border); background: var(--surface); color: var(--text); width: 42px; height: 42px; border-radius: 13px; cursor: pointer; }
.hamburger { display: none; padding: 10px; }
.hamburger span { display: block; height: 2px; background: currentColor; margin: 4px 0; transition: .2s; }

.section-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hero { min-height: 680px; display: grid; grid-template-columns: 1.02fr .98fr; gap: 70px; align-items: center; padding-block: 72px; }
.hero-copy h1, .page-hero h1, .join-copy h1 { margin: 12px 0 22px; font-size: clamp(3rem, 6vw, 5.6rem); line-height: .98; letter-spacing: -.065em; }
.hero-copy h1 span { color: var(--brand-strong); }
.hero-copy > p, .page-hero > p, .join-copy > p { max-width: 650px; color: var(--muted); font-size: 1.12rem; }
.eyebrow { display: inline-block; color: var(--brand-deep); font-size: .78rem; line-height: 1; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.button-row, .join-options { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 22px; border: 0; border-radius: 16px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--brand); color: #1b2a3d; box-shadow: 0 10px 24px rgba(120, 150, 186, .25); }
.button-primary:hover { background: var(--brand-strong); color: #fff; }
.button-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.button-small { min-height: 42px; padding-inline: 16px; border-radius: 13px; font-size: .9rem; }
.full-width { width: 100%; }
.trust-row { display: flex; gap: 26px; margin-top: 46px; }
.trust-row div { display: grid; }
.trust-row strong { font-size: .92rem; }
.trust-row span { color: var(--muted); font-size: .78rem; }
.hero-visual { position: relative; height: 530px; border-radius: 38px; padding: 14px; background: linear-gradient(145deg, var(--brand), var(--surface)); box-shadow: var(--shadow); }
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; border-radius: 29px; }
.floating-card { position: absolute; display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 18px; padding: 13px 16px; box-shadow: var(--shadow); }
.floating-card span:last-child { display: grid; }
.floating-card strong { font-size: .82rem; }
.floating-card small { color: var(--muted); font-size: .7rem; }
.floating-card-top { top: 45px; left: -38px; }
.floating-card-bottom { bottom: 40px; right: -34px; }
.avatar-dot, .status-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #24364d; font-weight: 800; }
.status-icon { background: #d9f4e7; color: #18794e; }

.content-section { padding-block: 110px; }
.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .content-panel h2, .app-callout h2, .contact-card h2, .form-card h2 { margin: 10px 0 14px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -.045em; }
.section-heading p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card, .article-card, .form-card, .contact-card, .quote-grid blockquote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 30px; box-shadow: var(--shadow-soft); }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 55%, var(--surface)); border-radius: 17px; color: var(--brand-deep); font-size: 1.45rem; font-weight: 800; }
.feature-card h3 { margin: 22px 0 9px; font-size: 1.15rem; }
.feature-card p, .article-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.app-callout { margin-bottom: 110px; padding: 46px 52px; background: var(--brand-deep); color: var(--bg); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
html[data-theme="dark"] .app-callout { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.app-callout .eyebrow { color: var(--brand); }
.app-callout p { max-width: 650px; opacity: .75; }

.page-hero { padding: 110px 0 70px; text-align: center; }
.page-hero h1 { max-width: 970px; margin-inline: auto; font-size: clamp(2.8rem, 6vw, 5rem); }
.page-hero p { margin-inline: auto; }
.compact-hero { padding-bottom: 48px; }
.split-section { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 72px; padding-bottom: 110px; }
.image-panel { padding: 14px; border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--brand), var(--surface)); box-shadow: var(--shadow); }
.image-panel img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 21px; }
.content-panel > p { color: var(--muted); }
.value-list { display: grid; gap: 16px; margin-top: 30px; }
.value-list > div { display: flex; gap: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.value-list span { color: var(--brand-strong); font-weight: 800; }
.value-list p { margin: 0; color: var(--muted); }
.value-list strong { color: var(--text); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-grid blockquote { margin: 0; font-size: 1.02rem; }
.quote-grid cite { display: block; margin-top: 22px; color: var(--muted); font-style: normal; font-size: .85rem; }
.steps-list { display: grid; gap: 18px; padding-bottom: 110px; }
.step-card { display: grid; grid-template-columns: 100px 1fr; gap: 26px; padding: 34px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.step-number { font-size: 2rem; font-weight: 800; color: var(--brand-strong); }
.step-card h2 { margin: 0 0 8px; font-size: 1.5rem; }
.step-card p { margin: 0; color: var(--muted); }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-bottom: 110px; }
.featured-article { grid-column: span 2; padding: 46px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 40%, var(--surface)), var(--surface)); }
.article-tag { color: var(--brand-deep); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.article-card h2, .article-card h3 { margin: 12px 0; line-height: 1.2; }
.article-card h2 { font-size: 2rem; }
.article-card a { display: inline-block; margin-top: 24px; color: var(--brand-deep); font-weight: 700; text-decoration: none; }

.contact-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 24px; padding-bottom: 110px; }
.form-card, .contact-card { padding: 38px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: .88rem; font-weight: 700; }
.form-group input, .form-group textarea { width: 100%; border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: var(--radius-sm); padding: 14px 15px; outline: none; }
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--brand-strong); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.field-error { display: block; margin-top: 6px; color: #c54444; }
.flash { margin-bottom: 18px; padding: 13px 15px; border-radius: 12px; }
.flash.success { color: var(--success); background: color-mix(in srgb, #d9f4e7 75%, var(--surface)); border: 1px solid #a9dfc5; }
.contact-card { background: linear-gradient(155deg, var(--brand-deep), #4a698e); color: white; }
.contact-card .eyebrow { color: var(--brand); }
.contact-card > p { opacity: .75; }
.contact-detail { display: flex; gap: 14px; margin-top: 28px; }
.contact-detail > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.12); }
.contact-detail div { display: grid; }
.contact-detail a, .contact-detail p { margin: 2px 0 0; color: rgba(255,255,255,.8); text-decoration: none; }
.join-page { min-height: 700px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding-block: 80px 110px; }
.join-copy small { display: block; margin-top: 18px; color: var(--muted); }
.phone-preview { display: grid; place-items: center; }
.phone-frame { width: 320px; padding: 10px; border-radius: 48px; background: #101722; box-shadow: var(--shadow); }
.phone-top { width: 100px; height: 24px; margin: 0 auto -15px; border-radius: 0 0 16px 16px; background: #101722; position: relative; z-index: 2; }
.phone-screen { min-height: 600px; padding: 34px 18px 22px; border-radius: 39px; background: #f6f8fb; color: #172033; }
.mini-header { display: flex; justify-content: space-between; font-weight: 800; }
.mini-label { margin: 28px 0 12px; color: #667085; font-size: .8rem; }
.mini-profile { padding: 16px; background: white; border-radius: 25px; box-shadow: 0 10px 28px rgba(47,75,109,.13); }
.mini-photo { height: 310px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(145deg, #B0C4DE, #dbe6f2); font-size: 5rem; font-weight: 800; color: #526e91; }
.mini-profile h3 { margin: 14px 0 2px; }
.mini-profile p, .mini-profile span { margin: 0; color: #667085; font-size: .76rem; }
.mini-actions { display: flex; justify-content: center; gap: 22px; margin-top: 20px; }
.mini-actions button { width: 54px; height: 54px; border-radius: 50%; border: 0; background: white; box-shadow: 0 8px 20px rgba(47,75,109,.12); font-size: 1.4rem; }
.benefit-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 110px; padding: 34px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg); }
.benefit-strip div { display: grid; text-align: center; padding: 8px; }
.benefit-strip div + div { border-left: 1px solid var(--border); }
.benefit-strip span { color: var(--muted); font-size: .85rem; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-shell { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 46px 0; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 26px; }
.footer-shell p { margin: 0; color: var(--muted); font-size: .88rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .86rem; font-weight: 600; }
.copyright { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--border); }

@media (max-width: 900px) {
    .nav-actions { display: flex; margin-left: auto; }
    .hamburger { display: block; }
    .menu { position: fixed; inset: 78px 16px auto; display: none; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
    .menu.active { display: flex; }
    .menu a { text-align: center; }
    .hero, .split-section, .contact-grid, .join-page { grid-template-columns: 1fr; }
    .hero { padding-top: 55px; gap: 48px; }
    .hero-visual { max-width: 620px; width: 100%; margin: auto; }
    .feature-grid, .quote-grid { grid-template-columns: 1fr; }
    .split-section { gap: 45px; }
    .image-panel { max-width: 570px; margin: auto; }
    .join-copy { text-align: center; }
    .join-options { justify-content: center; }
    .footer-shell { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .copyright { grid-column: auto; width: 100%; }
}

@media (max-width: 620px) {
    .section-shell { width: min(100% - 28px, 1180px); }
    .nav-shell { padding-inline: 14px; }
    .brand { font-size: 1.05rem; }
    .brand-mark { width: 38px; height: 38px; }
    .hero { min-height: auto; padding-block: 44px 72px; }
    .hero-copy h1, .page-hero h1, .join-copy h1 { font-size: 2.75rem; }
    .button-row .button, .join-options .button { width: 100%; }
    .trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .trust-row span { font-size: .68rem; }
    .hero-visual { height: 430px; border-radius: 28px; }
    .floating-card { max-width: 225px; }
    .floating-card-top { left: -7px; top: 22px; }
    .floating-card-bottom { right: -7px; bottom: 22px; }
    .content-section, .page-hero { padding-block: 75px 48px; }
    .app-callout { padding: 34px 25px; margin-bottom: 75px; align-items: stretch; flex-direction: column; }
    .step-card { grid-template-columns: 1fr; gap: 8px; padding: 25px; }
    .article-grid { grid-template-columns: 1fr; }
    .featured-article { grid-column: auto; padding: 30px; }
    .form-card, .contact-card { padding: 25px; }
    .phone-frame { width: min(100%, 320px); }
    .benefit-strip { grid-template-columns: 1fr; }
    .benefit-strip div + div { border-left: 0; border-top: 1px solid var(--border); }
}

.form-helper-text {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.flash.error {
    color: #a33131;
    background: color-mix(in srgb, #fbe2e2 80%, var(--surface));
    border: 1px solid #e9b7b7;
}

.contact-social-section {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-social-section h3 {
    margin: 0 0 16px;
    font-size: 1rem;
}

.contact-social-links {
    display: grid;
    gap: 10px;
}

.contact-social-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    color: white;
    text-decoration: none;
    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
}

.contact-social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.contact-social-link > span:last-child {
    display: grid;
}

.contact-social-link strong {
    font-size: 0.88rem;
}

.contact-social-link small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.social-icon svg {
    width: 19px;
    height: 19px;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    text-decoration: none;
    transition:
        color 0.2s,
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
}

.footer-social-link:hover {
    color: var(--brand-deep);
    background: color-mix(
        in srgb,
        var(--brand) 30%,
        var(--surface)
    );
    border-color: var(--brand);
    transform: translateY(-2px);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 900px) {
    .footer-social-links {
        justify-content: center;
    }
}

@media (min-width: 901px) {
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* Privacy & Terms */
.legal-document-wrap {
    padding-bottom: 110px;
}

.legal-document {
    max-width: 900px;
    margin: 0 auto;
    padding: 46px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.legal-document-header h2 {
    margin: 10px 0 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.legal-document-header p,
.legal-section p,
.legal-section li,
.legal-section address {
    color: var(--muted);
}

.legal-section {
    padding-top: 28px;
}

.legal-section h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    line-height: 1.3;
}

.legal-section ul {
    margin: 10px 0 0;
    padding-left: 22px;
}

.legal-section li + li {
    margin-top: 6px;
}

.legal-section blockquote {
    margin: 16px 0 0;
    padding: 18px 20px;
    background: var(--surface-soft);
    border-left: 4px solid var(--brand-strong);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text);
    font-weight: 600;
}

.legal-section address {
    font-style: normal;
}

.legal-section address a {
    color: var(--brand-deep);
}

.legal-divider {
    height: 1px;
    margin: 46px 0;
    background: var(--border);
}

.legal-link-callout {
    margin-bottom: 24px;
    padding: 34px 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.legal-link-callout h2 {
    margin: 8px 0 8px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.legal-link-callout p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
}

@media (max-width: 700px) {
    .legal-document {
        padding: 28px 22px;
        border-radius: var(--radius-md);
    }

    .legal-link-callout {
        padding: 28px 24px;
        align-items: stretch;
        flex-direction: column;
    }

    .legal-link-callout .button {
        width: 100%;
    }
}
