:root {
    color-scheme: light dark;
    --background: #f6f7fb;
    --surface: #ffffff;
    --surface-muted: #edf1f8;
    --text: #161a22;
    --text-muted: #5c6472;
    --primary: #496fba;
    --primary-soft: #dce7fb;
    --button-background: #005ac2;
    --button-content: #ffffff;
    --outline: #d5dbe6;
    --accent: #ba1a1a;
    --shadow: 0 18px 48px rgb(34 45 68 / 10%);
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #111318;
        --surface: #191c22;
        --surface-muted: #20242c;
        --text: #e4e7ee;
        --text-muted: #b9c0cd;
        --primary: #9ebcf3;
        --primary-soft: #263957;
        --button-background: #9ebcf3;
        --button-content: #111318;
        --outline: #343a45;
        --accent: #ffb4ab;
        --shadow: 0 22px 64px rgb(0 0 0 / 28%);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}
a { color: var(--primary); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.12em; }
a:focus-visible { border-radius: 0.3rem; outline: 0.2rem solid var(--primary); outline-offset: 0.2rem; }
.site-header { border-bottom: 1px solid var(--outline); background: var(--background); }
.header-content, .page, .site-footer { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.header-content { display: flex; min-height: 4.5rem; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: var(--text); font-size: 1.05rem; font-weight: 720; letter-spacing: -0.01em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a { color: var(--text-muted); font-size: 0.94rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.page { padding-block: clamp(3rem, 8vw, 7rem); }
.hero { max-width: 56rem; }
.eyebrow { margin: 0 0 0.8rem; color: var(--primary); font-size: 0.82rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.15; letter-spacing: -0.035em; }
h1 { max-width: 18ch; margin-bottom: 1.25rem; font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { margin-bottom: 1rem; font-size: clamp(1.65rem, 4vw, 2.35rem); }
h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.hero-copy, .lead { max-width: 42rem; color: var(--text-muted); font-size: clamp(1.05rem, 2vw, 1.22rem); }
.section { padding-top: clamp(3rem, 6vw, 4.5rem); }
.section-header { max-width: 44rem; margin-bottom: 1.75rem; }
.app-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; padding: clamp(1.3rem, 4vw, 2rem); border: 1px solid var(--outline); border-radius: 1.5rem; background: var(--surface); box-shadow: var(--shadow); }
.app-icon { width: 7rem; height: 7rem; border-radius: 1.4rem; background: #ffffff; color-scheme: only light; }
.app-card + .app-card { margin-top: 1.5rem; }
.app-card .app-status { margin-bottom: 0.65rem; color: var(--primary); font-size: 0.85rem; font-weight: 650; }
.app-card p { max-width: 44rem; margin: 0; color: var(--text-muted); }
.app-actions { min-width: 10rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.button-link { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; padding: 0.7rem 1.1rem; border-radius: 999px; background: var(--button-background); color: var(--button-content); font-weight: 720; text-decoration: none; white-space: nowrap; }
.button-link:hover { filter: brightness(1.05); text-decoration: none; }
.policy-page { width: min(100% - 2rem, 52rem); }
.policy-header { padding-bottom: 2rem; border-bottom: 1px solid var(--outline); }
.policy-header h1 { max-width: none; font-size: clamp(2.25rem, 6vw, 4rem); }
.effective-date { color: var(--text-muted); font-size: 0.95rem; font-weight: 650; }
.policy-content { padding-top: 1rem; }
.policy-content section { padding-top: 2rem; }
.policy-content p, .policy-content li { color: var(--text-muted); }
.notice { padding: 1rem 1.15rem; border-left: 0.25rem solid var(--accent); border-radius: 0.5rem; background: var(--surface-muted); }
.site-footer { display: flex; min-height: 6rem; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--outline); color: var(--text-muted); font-size: 0.9rem; }
.site-footer p { margin: 0; }
@media (min-width: 64rem) {
    .hero h1 { max-width: none; }
    .hero h1 span { display: block; }
}
@media (max-width: 46rem) {
    .app-card { grid-template-columns: auto minmax(0, 1fr); }
    .app-card > .button-link, .app-card > .app-actions { grid-column: 1 / -1; }
    .app-actions { align-items: flex-start; }
    .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (max-width: 30rem) {
    .app-card { gap: 1rem; grid-template-columns: 1fr; }
    .app-icon { width: 5rem; height: 5rem; border-radius: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
