@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/inter-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 500 650;
    font-display: swap;
    src: url("fonts/fraunces-latin.woff2") format("woff2");
}

:root {
    --paper: #f8f6f1;
    --paper-deep: #f1ede4;
    --surface: #ffffff;
    --line: #e6e0d4;
    --ink: #1f2a44;
    --ink-soft: #3b4660;
    --muted: #7a7466;
    --accent: #e0703a;
    --accent-deep: #b9531f;
    --positive: #1f7a4d;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-display: "Fraunces", Georgia, serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
}

/* ---------- Header ---------- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 68rem;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}

    .brand-mark::after {
        content: "";
        position: absolute;
        right: -3px;
        bottom: -3px;
        width: 0.6rem;
        height: 0.6rem;
        border-radius: 50%;
        background: var(--accent);
        border: 2px solid var(--paper);
    }

.brand-mark-lg {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.9rem;
    font-size: 1.7rem;
}

    .brand-mark-lg::after {
        width: 0.9rem;
        height: 0.9rem;
        border-width: 3px;
        border-color: var(--surface);
    }

.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.link-quiet {
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 0.6rem;
}

    .link-quiet:hover {
        background: var(--paper-deep);
    }

/* ---------- Hero ---------- */

.hero {
    max-width: 44rem;
    margin: 0 auto;
    padding: 7rem 1.5rem 4rem;
    text-align: center;
}

.eyebrow {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

    h1 em {
        font-style: normal;
        color: var(--accent-deep);
    }

.lede {
    margin: 1.4rem auto 0;
    max-width: 34rem;
    font-size: 1.1rem;
    color: var(--ink-soft);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    border-radius: 0.7rem;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

    .btn:active {
        transform: translateY(1px);
    }

    .btn:focus-visible, .link-quiet:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(224, 112, 58, 0.35);
    }

.btn-primary {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 1px 2px rgba(31, 42, 68, 0.12), 0 6px 18px rgba(31, 42, 68, 0.12);
}

    .btn-primary:hover {
        background: #2c3a5c;
    }

.btn-quiet {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
}

    .btn-quiet:hover {
        background: var(--paper-deep);
    }

.fineprint {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ---------- Features ---------- */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    max-width: 68rem;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 1.5rem 5rem;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(31, 42, 68, 0.05);
}

    .feature h2 {
        margin: 0 0 0.5rem;
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 1.15rem;
        letter-spacing: -0.01em;
    }

    .feature p {
        margin: 0;
        color: var(--ink-soft);
        font-size: 0.95rem;
    }

.footer {
    margin-top: auto;
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

    .footer a {
        color: var(--ink-soft);
        text-decoration: none;
    }

        .footer a:hover {
            text-decoration: underline;
        }

/* ---------- Legal pages ---------- */

.legal {
    max-width: 44rem;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

    .legal h1 {
        font-size: clamp(2rem, 5vw, 2.6rem);
        margin-bottom: 1.5rem;
    }

    .legal h2 {
        margin: 2.25rem 0 0.6rem;
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 1.25rem;
    }

    .legal p, .legal li {
        color: var(--ink-soft);
    }

    .legal ul {
        padding-left: 1.2rem;
    }

    .legal li {
        margin-bottom: 0.4rem;
    }

    .legal a {
        color: var(--accent-deep);
    }

    .legal .eyebrow {
        margin-bottom: 0.5rem;
    }

.callout {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 0.7rem;
    padding: 1rem 1.2rem;
}

/* ---------- Warm-up ---------- */

.warmup {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(248, 246, 241, 0.86);
    backdrop-filter: blur(6px);
    z-index: 10;
    animation: fade 160ms ease-out;
}

    .warmup[hidden] {
        display: none;
    }

.warmup-card {
    width: 100%;
    max-width: 24rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(31, 42, 68, 0.12);
}

    .warmup-card h2 {
        margin: 1.25rem 0 0.35rem;
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 1.4rem;
    }

.warmup-note {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.steps {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    text-align: left;
}

    .steps li {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        padding: 0.35rem 0;
        color: var(--muted);
        font-size: 0.95rem;
        transition: color 200ms ease;
    }

        .steps li::before {
            content: "";
            flex: none;
            width: 1.1rem;
            height: 1.1rem;
            border-radius: 50%;
            border: 2px solid var(--line);
            transition: all 200ms ease;
        }

        .steps li.active {
            color: var(--ink);
            font-weight: 500;
        }

            .steps li.active::before {
                border-color: var(--accent);
                border-top-color: transparent;
                animation: spin 800ms linear infinite;
            }

        .steps li.done {
            color: var(--ink-soft);
        }

            .steps li.done::before {
                border-color: var(--positive);
                background: var(--positive) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m4 8.5 2.5 2.5L12 5.5'/%3e%3c/svg%3e") center/0.8rem no-repeat;
            }

.bar {
    height: 6px;
    border-radius: 999px;
    background: var(--paper-deep);
    overflow: hidden;
}

    .bar span {
        display: block;
        width: 0;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--ink), var(--accent));
        transition: width 300ms ease;
    }

.warmup-error {
    margin-top: 1.25rem;
}

    .warmup-error p {
        margin: 0 0 0.75rem;
        color: var(--ink-soft);
    }

.pulse {
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fade {
    from { opacity: 0; }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pulse, .steps li.active::before, .warmup {
        animation: none;
    }
}
