@font-face {
    font-family: 'Fredoka';
    src: url('fonts/fredoka_semibold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

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

:root {
    --hero-orange: #FF6B35;
    --sidewalk-blue: #4A90D9;
    --night: #2D2D2D;
    --white: #FFFFFF;
    --light-bg: #FAFAFA;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--night);
    background: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}

.content {
    max-width: 480px;
    width: 100%;
    text-align: center;
}

/* Fade in on load */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.1s;
}

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

/* Wordmark */
.wordmark {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 3rem;
    color: var(--night);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.wordmark .accent {
    color: var(--hero-orange);
}

/* Tagline */
.tagline {
    font-size: 1.25rem;
    color: var(--night);
    opacity: 0.6;
    margin-bottom: 12px;
}

.description {
    font-size: 1.05rem;
    color: var(--night);
    opacity: 0.5;
    line-height: 1.6;
    margin-bottom: 48px;
}

/* Signup section */
.signup {
    margin-bottom: 48px;
}

.signup-heading {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--night);
    margin-bottom: 16px;
}

.signup-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.signup-form input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: var(--night);
    outline: none;
    transition: border-color 0.2s;
}

.signup-form input:focus {
    border-color: var(--hero-orange);
}

.signup-form input::placeholder {
    color: #BDBDBD;
}

.signup-form button {
    padding: 14px 28px;
    background: var(--hero-orange);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.signup-form button:hover {
    background: #E55A2B;
}

.signup-form button:active {
    transform: scale(0.97);
}

.signup-form button:disabled {
    background: #BDBDBD;
    cursor: not-allowed;
}

.form-message {
    margin-top: 12px;
    font-size: 0.95rem;
    min-height: 1.4em;
}

.form-message.success {
    color: var(--hero-orange);
}

.form-message.already {
    color: var(--sidewalk-blue);
}

.form-message.error {
    color: #C62828;
}

/* Social links */
.social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.social a {
    color: var(--sidewalk-blue);
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.social a:hover {
    opacity: 0.7;
}

.social .dot {
    color: #BDBDBD;
}

/* Footer */
footer {
    text-align: center;
    padding: 24px;
    color: #BDBDBD;
    font-size: 0.85rem;
}

footer a {
    color: #BDBDBD;
    text-decoration: none;
}

footer a:hover {
    color: var(--hero-orange);
}

/* Privacy / legal pages */
.page-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.page-container .wordmark {
    margin-bottom: 32px;
}

.page-container .wordmark a {
    text-decoration: none;
    color: inherit;
}

.page-container h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--night);
    margin-top: 32px;
    margin-bottom: 12px;
}

.page-container p,
.page-container li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 12px;
}

.page-container ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.page-container .updated {
    font-size: 0.85rem;
    color: #BDBDBD;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 480px) {
    .wordmark {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .description {
        font-size: 0.95rem;
    }

    .signup-form {
        flex-direction: column;
    }

    .signup-form button {
        width: 100%;
    }

    .container {
        padding: 48px 20px;
    }
}
