/* ========================================
   SpurTalk Landing Page - Psychological Safety Theme
   Colors from design.md: sage, lavender, teal, warm sand
   NO red, NO stark white backgrounds
   ======================================== */

:root {
    /* Primary: Calming Teal */
    --primary: #14b8a6;
    --primary-hover: #0f766e;
    --primary-foreground: #ffffff;
    
    /* Secondary: Lavender */
    --secondary: #8b7cf6;
    --secondary-hover: #7c3aed;
    --secondary-foreground: #ffffff;
    
    /* Accent: Warm Sand */
    --accent: #f59e0b;
    --accent-foreground: #ffffff;
    
    /* Success: Sage Green */
    --success: #10b981;
    --success-foreground: #ffffff;
    
    /* Background: Warm Off-White (#faf9f7) */
    --background: #faf9f7;
    --background-alt: #f5f4f1;
    
    /* Foreground: Dark Sage */
    --foreground: #047857;
    --foreground-secondary: #64748b;
    
    /* Surface: Cream */
    --surface: #ffffff;
    --surface-elevated: #fefefe;
    
    /* Border */
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* Shadows */
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -2px rgb(0 0 0 / 0.05);
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Font */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Border Radius */
    --radius: 12px;
    --radius-lg: 16px;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--foreground);
    background: var(--background);
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary) 0%, #0d5d56 100%);
    color: var(--primary-foreground);
    text-align: center;
    padding: 5rem 0;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

header p {
    font-size: 1.35rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0;
    background: var(--surface);
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--foreground);
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--foreground-secondary);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Email Form */
.interest-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

#interest-form, #interest-form-2 {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

input[type="email"] {
    flex: 1;
    padding: 1.1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--surface);
    color: var(--foreground);
    transition: var(--transition);
    font-family: var(--font-family);
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(20 184 166 / 0.15);
}

input[type="email"]::placeholder {
    color: var(--foreground-secondary);
}

button[type="submit"] {
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    padding: 1.1rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font-family);
}

button[type="submit"]:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(20 184 166 / 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

#form-message {
    margin-top: 1.5rem;
    min-height: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--success);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--background-alt);
}

.features h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3.5rem;
    color: var(--foreground);
    font-weight: 600;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.feature p {
    color: var(--foreground-secondary);
    font-size: 1rem;
    line-height: 1.65;
}

/* Example Section */
.example {
    padding: 6rem 0;
    background: var(--surface);
}

.example h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--foreground);
    font-weight: 600;
}

.example-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    background: var(--background);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.example-before, .example-after {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.example-before p {
    font-size: 1.3rem;
    color: var(--foreground-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

.example-after ul {
    list-style: none;
    margin-top: 0.5rem;
}

.example-after li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--foreground);
    border-bottom: 1px solid var(--border-light);
}

.example-after li:last-child {
    border-bottom: none;
}

.label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
    font-weight: 600;
}

.arrow {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #6d28d9 100%);
    color: white;
}

.cta h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta input[type="email"] {
    background: white;
    color: var(--foreground);
}

.cta button[type="submit"] {
    background: var(--accent);
    color: var(--accent-foreground);
}

.cta button[type="submit"]:hover {
    background: #d97706;
    box-shadow: 0 4px 12px rgb(245 158 11 / 0.4);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--foreground-secondary);
    font-size: 0.9rem;
    background: var(--background);
    border-top: 1px solid var(--border-light);
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    header p {
        font-size: 1.15rem;
    }
    
    .hero h2 {
        font-size: 1.85rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .features, .example, .cta {
        padding: 4rem 0;
    }
    
    .example-card {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
    
    #interest-form, #interest-form-2 {
        flex-direction: column;
    }
    
    button[type="submit"] {
        width: 100%;
    }
    
    .feature-grid {
        gap: 1.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #1a1a2e;
        --background-alt: #16213e;
        --foreground: #e2e8f0;
        --foreground-secondary: #94a3b8;
        --surface: #1e293b;
        --surface-elevated: #273549;
        --border: #334155;
        --border-light: #475569;
    }
    
    body {
        background: var(--background);
        color: var(--foreground);
    }
    
    .hero, .example {
        background: var(--surface);
    }
    
    .features {
        background: var(--background-alt);
    }
}