/* Shared styles for the small pages: thank-you, 404, privacy */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter Tight';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-tight-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ink: #111111;
    --ink-2: #2A2A2A;
    --muted: #6B6B6B;
    --surface: #F4F4F4;
    --line: #E8E8E8;
    --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
}

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

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 8px;
}

.mark {
    display: inline-block;
    width: 0.905em;
    height: 1em;
    background: currentColor;
    -webkit-mask: url("neo-mark.png") center / contain no-repeat;
    mask: url("neo-mark.png") center / contain no-repeat;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.brand .mark {
    font-size: 23px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.btn:active {
    transform: scale(0.98);
}

.btn-dark {
    background: var(--ink);
    color: #fff;
}

.btn-dark:hover {
    background: #333;
}

.btn-light {
    border: 1px solid #DADADA;
}

.btn-light:hover {
    background: #F7F7F7;
}

/* ── Centred card pages (thank-you, 404) ── */
.center-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--surface);
}

.card {
    width: 100%;
    max-width: 560px;
    padding: clamp(40px, 7vw, 64px) clamp(24px, 6vw, 64px) 36px;
    border-radius: 32px;
    background: #fff;
    text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
    .card {
        animation: rise .7s var(--ease) both;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

.card h1 {
    margin-top: 28px;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 1.6rem + 2vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.card p {
    margin: 16px auto 0;
    max-width: 380px;
    color: var(--muted);
    line-height: 1.55;
    text-wrap: balance;
}

.actions {
    display: grid;
    gap: 10px;
    max-width: 380px;
    margin: 36px auto 0;
}

.progress-done {
    width: 144px;
    height: 4px;
    margin: 44px auto 0;
    border-radius: 999px;
    background: var(--ink);
}

.center-page footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

/* ── Document pages (privacy) ── */
.doc-nav {
    border-bottom: 1px solid var(--line);
}

.doc-nav div,
.doc {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 32px);
}

.doc-nav div {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.doc-nav a.back {
    font-size: 15px;
    color: var(--muted);
    text-decoration: none;
}

.doc-nav a.back:hover {
    color: var(--ink);
}

.doc {
    padding-top: clamp(48px, 8vw, 88px);
    padding-bottom: clamp(64px, 10vw, 120px);
}

.doc h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.2rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.doc .updated {
    margin-top: 14px;
    color: var(--muted);
    font-size: 15px;
}

.doc h2 {
    margin-top: 44px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.doc p,
.doc li {
    margin-top: 14px;
    color: var(--ink-2);
    line-height: 1.65;
}

.doc ul {
    margin-left: 20px;
}

.doc a {
    color: var(--ink);
    text-underline-offset: 3px;
}

.doc-foot {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--muted);
}
