/* Foundation Home and Financial — static marketing site
   Brand tokens mirrored from foundation-web globals.css */

:root {
    --color-brand-header: #34183d;
    --color-brand-header-hover: #4a2357;
    --color-brand-periwinkle: #6b6db3;
    --color-brand-periwinkle-hover: #5a5ca0;
    --color-brand-muted: #ab80be;
    --color-cta-green: #6da37e;
    --color-cta-green-hover: #5a8f6b;
    --color-text: #1a1a1a;
    --color-text-muted: #4a4a4a;
    --color-text-light: #6b6b6b;
    --color-bg: #ffffff;
    --color-bg-subtle: #faf9fb;
    --color-border: #e5e5e5;

    --font-sans:
        ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;

    --max-width: 72rem;
    --max-width-prose: 44rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-brand-periwinkle);
    text-decoration: none;
    transition: color 100ms ease;
}

a:hover {
    color: var(--color-brand-periwinkle-hover);
    text-decoration: underline;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header-logo {
    height: 2.25rem;
    width: auto;
    display: block;
}

.site-header {
    background: var(--color-brand-header);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.site-header-brand:hover {
    color: #ffffff;
    text-decoration: none;
}

.site-header-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
    font-size: 0.875rem;
}

.site-header-nav {
    display: flex;
    gap: 0.25rem;
}

.site-header-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

.site-header-nav a:hover {
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
}

/* ── Main content ───────────────────────────────────────────────────────── */

main {
    min-height: 60vh;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.prose {
    max-width: var(--max-width-prose);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.prose h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    color: var(--color-brand-header);
}

.prose .lede {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin: 0 0 2.5rem;
}

.prose h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 2.5rem 0 0.75rem;
    color: var(--color-brand-header);
    letter-spacing: -0.01em;
}

.prose h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 1.75rem 0 0.5rem;
    color: var(--color-text);
}

.prose p {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
}

.prose ul,
.prose ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    color: var(--color-text-muted);
}

.prose li {
    margin-bottom: 0.375rem;
}

.prose strong {
    color: var(--color-text);
    font-weight: 600;
}

.prose .meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
    background: var(--color-brand-header);
    color: #ffffff;
    padding: 5rem 1.5rem 6rem;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.hero .eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-brand-muted);
    padding: 0.375rem 0.875rem;
    border: 1px solid rgba(171, 128, 190, 0.35);
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    color: #ffffff;
}

.hero p {
    font-size: 1.125rem;
    color: var(--color-brand-muted);
    max-width: 40rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero .cta-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 100ms ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-brand-periwinkle);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--color-brand-periwinkle-hover);
    color: #ffffff;
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ── Info cards ─────────────────────────────────────────────────────────── */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.info-card {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 1.75rem;
}

.info-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-brand-header);
}

.info-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* ── Callout box ────────────────────────────────────────────────────────── */

.callout {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-brand-periwinkle);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
}

.callout p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.callout strong {
    color: var(--color-brand-header);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--color-brand-header);
    color: var(--color-brand-muted);
    padding: 3rem 1.5rem 2rem;
    margin-top: 4rem;
}

.site-footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(171, 128, 190, 0.2);
}

.site-footer-brand {
    max-width: 22rem;
}

.site-footer-brand p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0.75rem 0 0;
    color: var(--color-brand-muted);
}

.site-footer-nav {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.site-footer-nav h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(171, 128, 190, 0.7);
    margin: 0 0 0.75rem;
}

.site-footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.site-footer-nav a {
    font-size: 0.875rem;
    color: var(--color-brand-muted);
}

.site-footer-nav a:hover {
    color: #ffffff;
    text-decoration: none;
}

.site-footer-bottom {
    padding-top: 1.5rem;
    font-size: 0.8125rem;
    color: rgba(171, 128, 190, 0.8);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

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

/* ── 404 specific ───────────────────────────────────────────────────────── */

.page-404 {
    text-align: center;
    padding: 6rem 1.5rem;
    max-width: var(--max-width-prose);
    margin: 0 auto;
}

.page-404 h1 {
    font-size: 4rem;
    color: var(--color-brand-header);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.page-404 p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin: 0 0 2rem;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .site-header-nav {
        display: none;
    }

    .prose h1 {
        font-size: 1.875rem;
    }

    .prose h2 {
        font-size: 1.25rem;
    }

    .hero {
        padding: 3.5rem 1.5rem 4.5rem;
    }

    .site-footer-top {
        flex-direction: column;
    }
}
