/* Figgro.io Waitlist - Brand-matched styling */
:root {
    --purple: #4a154b;
    --green: #2eb57d;
    --red: #e01e5a;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    --radius: 14px;
    --font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(180deg, var(--purple) 0%, #3b0f40 55%, #230a28 100%);
    color: var(--gray-800);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    padding: 2rem 0;
    text-align: center;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green);
    margin: 0;
}

/* Main content */
.main {
    padding: 2rem 0 4rem;
}

.waitlist-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.waitlist-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.waitlist-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 1rem;
    text-align: center;
}

.waitlist-text {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.5;
    text-align: left;
    padding-left: 0;
}

.waitlist-card h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 1rem;
}

.waitlist-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Form styles */
.waitlist-form {
    text-align: left;
    margin-bottom: 1.5rem;
}

/* Simplified Formspree form styles */
.waitlist-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-direction: column;
}

.waitlist-form .form-group {
    width: 100%;
}

.waitlist-form input[type="email"] {
    flex: 1 1 260px;
    max-width: 420px;
    width: 100%;
}

.waitlist-form input[type="email"]:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(46, 181, 125, 0.25);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-align: left;
    padding-left: 0;
    line-height: 1.5;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family);
    background: var(--white);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46, 181, 125, 0.1);
}

.form-input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--red);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.75rem;
    margin-top: 0.1rem;
    accent-color: var(--green);
    cursor: pointer;
}

.checkbox-text {
    color: var(--gray-600);
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-family);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    width: 100%;
}

.btn-primary {
    background: var(--purple);
    color: var(--white);
}

.btn-primary:hover:not(:disabled) {
    background: #3b0f40;
    transform: translateY(-1px);
}

.btn-primary:focus {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn.loading {
    background: var(--gray-300);
    color: var(--gray-600);
}

/* Status messages */
.form-status {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-status.success {
    background: rgba(46, 181, 125, 0.1);
    color: #0d5f3c;
    border: 1px solid rgba(46, 181, 125, 0.3);
}

.form-status.error {
    background: rgba(224, 30, 90, 0.1);
    color: #a91b60;
    border: 1px solid rgba(224, 30, 90, 0.3);
}

.form-status.info {
    background: rgba(74, 21, 75, 0.1);
    color: var(--purple);
    border: 1px solid rgba(74, 21, 75, 0.3);
}

/* Muted text */
.muted {
    font-size: 0.9rem;
    color: var(--gray-600);
    text-align: left;
    margin-top: 1rem;
    padding-left: 0;
    line-height: 1.5;
}

.muted a {
    color: var(--green);
    text-decoration: none;
}

.muted a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer a {
    color: var(--green);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.btn-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Responsive design */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .waitlist-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .waitlist-card h1 {
        font-size: 1.75rem;
    }
    
    .waitlist-description {
        font-size: 1rem;
    }
}

/* Focus visible for better accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn {
        transition: all 0.2s ease;
    }
    
    .form-input {
        transition: all 0.2s ease;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-input {
        border-width: 2px;
    }
    
    .btn-primary {
        border: 2px solid var(--purple);
    }
}