/* ATQS pre-launch page
   No external font requests, JavaScript, tracking, or framework dependencies.
*/

:root {
    --background: #ffffff;
    --foreground: #000000;
    --muted: #555555;
    --border: #d8d8d8;

    --page-width: 74rem;
    --reading-width: 42rem;
    --legal-width: 48rem;

    --page-padding: clamp(1.25rem, 4vw, 4rem);
    --section-gap: clamp(4.5rem, 11vw, 9rem);

    /*
       Neutral, web-safe sans-serif stack.
       Change this single value later if ATQS adopts another typeface.
    */
    --font-sans:
        "Helvetica Neue",
        Helvetica,
        Arial,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}

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

html {
    color-scheme: light;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 100%;
    line-height: 1.65;
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-size: clamp(1.125rem, 1.3vw, 1.25rem);
    font-weight: 400;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.22em;
}

a:hover {
    text-decoration-thickness: 0.13em;
}

a:focus-visible {
    outline: 0.15rem solid currentColor;
    outline-offset: 0.3rem;
}

.site-header,
main,
.site-footer {
    width: min(100%, var(--page-width));
    margin-inline: auto;
    padding-inline: var(--page-padding);
}

.site-header {
    display: flex;
    justify-content: center;
    padding-block: clamp(1.5rem, 4vw, 3rem);
}

.wordmark {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.19em;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}

.page-home main {
    padding-block:
        clamp(3rem, 8vw, 7rem)
        clamp(5rem, 11vw, 9rem);
    text-align: center;
}

.page-home main > section {
    width: min(100%, var(--reading-width));
    margin-inline: auto;
}

.page-home main > section + section {
    margin-top: var(--section-gap);
}

.eyebrow {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

h1,
h2 {
    margin-top: 0;
    font-weight: 500;
    text-wrap: balance;
}

.page-home h1 {
    max-width: 14ch;
    margin-inline: auto;
    margin-bottom: 2rem;
    font-size: clamp(2.15rem, 7vw, 4.8rem);
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.page-home h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

p {
    margin-block: 0;
    text-wrap: pretty;
}

p + p {
    margin-top: 1.25rem;
}

.lead {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.55;
}

.standalone-link {
    margin-top: 1.6rem;
}

.primary-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.9rem 1.25rem;
    border: 0.08rem solid var(--foreground);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-decoration: none;
    text-transform: uppercase;
}

.primary-link:not(.is-pending):hover {
    background: var(--foreground);
    color: var(--background);
}

.primary-link.is-pending {
    cursor: not-allowed;
    opacity: 0.45;
}

.fine-print {
    max-width: 38rem;
    margin: 1.5rem auto 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 2rem;
    border-top: 0.06rem solid var(--border);
    padding-block: 1.75rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

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

.site-footer p {
    margin: 0;
}

/* Legal pages */

.legal-page .site-header {
    justify-content: flex-start;
}

.legal-page main {
    padding-block:
        clamp(2rem, 6vw, 5rem)
        clamp(5rem, 10vw, 8rem);
}

.legal-document {
    width: min(100%, var(--legal-width));
    margin-inline: auto;
}

.legal-document > h1 {
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.legal-document section {
    margin-top: clamp(3rem, 7vw, 5rem);
}

.legal-document h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.25;
}

.legal-document address {
    margin-top: 1.25rem;
    font-style: normal;
}

.notice {
    padding: 1.25rem 1.4rem;
    border: 0.06rem solid var(--border);
    font-size: 0.95rem;
    line-height: 1.6;
}

.notice strong {
    display: block;
    margin-bottom: 0.35rem;
}

/* Small screens */

@media (max-width: 40rem) {
    body {
        font-size: 1.125rem;
    }

    .site-header {
        justify-content: flex-start;
    }

    .page-home .site-header {
        justify-content: center;
    }

    .page-home main {
        padding-top: 2.25rem;
    }

    .page-home h1 {
        max-width: 12ch;
    }

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

/* Reduced motion: currently no motion, retained for future extensions. */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
