*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
    color: #1a1a2e;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.card {
    max-width: 64rem;
    width: 100%;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .card {
        flex-direction: row;
    }
}

.card-image {
    flex: 0 0 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 16rem;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.card-content {
    flex: 0 0 50%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .card-content {
        padding: 3rem 4rem;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 1rem;
}

.description {
    color: #6b7280;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid #fecaca;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    height: 3rem;
    padding: 0 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input::placeholder {
    color: #9ca3af;
}

button[type="submit"] {
    width: 100%;
    height: 3rem;
    background: #1e3a5f;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
    -webkit-appearance: none;
}

button[type="submit"]:hover {
    background: #2d5a8e;
}

button[type="submit"]:active {
    background: #163050;
}

.privacy {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 1.5rem;
}

.logo-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.affinity-logo {
    height: 2rem;
    object-fit: contain;
    opacity: 0.8;
}

.check-email {
    text-align: center;
    padding: 2rem 0;
}

.icon-circle {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #2563eb;
}

.icon-circle.icon-success {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.icon-circle.icon-error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.check-email p {
    color: #6b7280;
    font-size: 1.125rem;
    max-width: 24rem;
    margin: 0 auto 2rem;
}

.check-email p strong {
    color: #1a1a2e;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 24rem;
    height: 3.5rem;
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.download-btn:hover {
    background: #15803d;
}

.card-narrow {
    max-width: 36rem;
}

.unsubscribe-link {
    color: #6b7280;
    text-decoration: underline;
    transition: color 0.2s;
}

.unsubscribe-link:hover {
    color: #1e3a5f;
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .page-wrapper {
        padding: 0;
        align-items: flex-start;
    }

    .card {
        border-radius: 0;
        box-shadow: none;
        border: none;
        min-height: 100vh;
    }

    .card-image {
        padding: 1.5rem 2rem;
        min-height: 12rem;
        max-height: 40vh;
    }

    .card-image img {
        max-height: 35vh;
    }

    .card-content {
        padding: 1.25rem 1.25rem 2rem;
    }

    .badge {
        margin-bottom: 1rem;
    }

    h1 {
        font-size: 1.625rem;
        margin-bottom: 0.75rem;
    }

    h2 {
        font-size: 1.375rem;
        margin-bottom: 0.75rem;
    }

    .description {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
        line-height: 1.65;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    input[type="text"],
    input[type="email"] {
        height: 2.75rem;
        font-size: 1rem;
    }

    button[type="submit"] {
        height: 2.75rem;
        font-size: 1rem;
    }

    .privacy {
        margin-top: 1.25rem;
    }

    .logo-wrapper {
        margin-top: 1.5rem;
    }

    .check-email {
        padding: 1.5rem 0;
    }

    .icon-circle {
        width: 4rem;
        height: 4rem;
        margin-bottom: 1rem;
    }

    .icon-circle svg {
        width: 32px;
        height: 32px;
    }

    .check-email p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .download-btn {
        height: 3rem;
        font-size: 1rem;
    }

    .card-narrow {
        max-width: 100%;
    }

    .card-narrow .card-content {
        padding: 1.5rem 1.25rem 2rem;
    }
}

@media (max-width: 374px) {
    .card-content {
        padding: 1rem 1rem 1.5rem;
    }

    h1 {
        font-size: 1.375rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .description {
        font-size: 0.875rem;
    }
}
