/* Shared base styles */
@font-face {
    font-family: 'SF Mono';
    src: url('sf-mono-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'SF Mono', monospace;
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Home (landing) page */
.home-page {
    display: flex;
    justify-content: center;
    padding: 80px 24px;
}

.home-page .container {
    max-width: 650px;
    width: 100%;
}

.home-page h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
}

.home-page h2 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.home-page p {
    font-size: 14px;
    color: #ededed;
    margin-bottom: 30px;
}

.home-page .cta {
    display: inline-block;
    color: #3b82f6;
    text-decoration: none;
    margin-top: 36px;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.home-page .cta:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.home-page footer {
    margin-top: 48px;
    font-size: 11px;
    color: #666;
}

@media (max-width: 600px) {
    .home-page {
        padding: 32px 18px;
    }

    .home-page .container {
        max-width: 100%;
    }

    .home-page h1 {
        font-size: 36px;
        font-weight: 700;
        margin-bottom: 32px;
    }

    .home-page h2 {
        font-size: 18px;
        margin-bottom: 28px;
    }

    .home-page p {
        font-size: 14px;
        margin-bottom: 22px;
    }
}

/* Waitlist page */
.waitlist-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 24px;
    opacity: 0;
    transform: translateY(8px);
    animation: fadeUp 260ms ease-out forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.waitlist-page .shell {
    max-width: 420px;
    width: 100%;
}

.waitlist-page header {
    margin-bottom: 40px;
}

.waitlist-page h1 {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 8px;
}

.waitlist-page p {
    margin: 0;
    font-size: 14px;
    color: #d4d4d4;
}

.waitlist-page .email-form {
    margin-top: 32px;
    display: flex;
    gap: 8px;
}

.waitlist-page .email-form input[type="email"] {
    flex: 1;
    padding: 10px 12px;
    background-color: #050505;
    border: none;
    border-radius: 0;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: background-color 0.15s ease;
}

.waitlist-page .email-form input[type="email"]::placeholder {
    color: #555;
}

.waitlist-page .email-form input[type="email"]:focus {
    background-color: #000;
}

.waitlist-page .email-form button[type="submit"] {
    padding: 0;
    margin: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    color: #3b82f6;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.waitlist-page .email-form button[type="submit"]:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.waitlist-page .email-form button[type="submit"]:active {
    color: #3b82f6;
}

.waitlist-page .email-form button[type="submit"]:disabled {
    color: #555;
    cursor: default;
    text-decoration: none;
    pointer-events: none;
    transition: none;
}

.waitlist-page .meta {
    margin-top: 16px;
    font-size: 11px;
    color: #666;
}

.waitlist-page .status {
    margin-top: 16px;
    margin-bottom: 16px;
    font-size: 12px;
    height: 1.4em; /* reserve space so layout doesn't shift */
    display: flex;
    align-items: center;
}

.waitlist-page .status--success {
    color: #4ade80;
}

.waitlist-page .status--error {
    color: #f97373;
}

.waitlist-page .status--muted {
    color: #555;
}

.waitlist-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 32px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
}

.waitlist-page .back-link:hover {
    color: #999;
    text-decoration: underline;
}

.waitlist-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 600px) {
    .waitlist-page {
        padding: 32px 20px;
    }

    .waitlist-page .shell {
        max-width: 100%;
    }

    .waitlist-page h1 {
        font-size: 20px;
    }

    .waitlist-page p {
        font-size: 13px;
    }

    .waitlist-page .email-form input[type="email"],
    .waitlist-page .email-form button[type="submit"] {
        box-sizing: border-box;
        width: 100%;
    }

    .waitlist-page .email-form {
        flex-direction: column;
        align-items: stretch;
    }

    .waitlist-page .email-form button[type="submit"] {
        text-align: left;
    }

    .waitlist-page .back-link {
        margin-top: 24px;
    }
}

