/* Main CSS - Soft Pastel Design */
:root {
    --primary-color: #9F7AEA;
    --secondary-color: #B794F6;
    --accent-color: #D6BCFA;
    --success-color: #68D391;
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --text-light: #718096;
    --text-white: #FFFFFF;
    --background-gradient: linear-gradient(135deg, #E6FFFA 0%, #F7FAFC 50%, #FAF5FF 100%);
    --background-light: #F7FAFC;
    --background-white: #FFFFFF;
    --border-light: #E2E8F0;
    --border-medium: #CBD5E0;
    --shadow-light: 0 4px 16px rgba(159, 122, 234, 0.08);
    --shadow-medium: 0 8px 32px rgba(159, 122, 234, 0.12);
    --shadow-strong: 0 16px 64px rgba(159, 122, 234, 0.16);
    --border-radius: 16px;
    --border-radius-large: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-gradient);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Header Styles - Integrated Text Layout */
.study-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    position: relative;
}

.intro-hero {
    margin: 0 auto 2rem auto;
    max-width: 700px;
}

.intro-content {
    text-align: center;
}

.main-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 16px rgba(159, 122, 234, 0.1);
}

.main-tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.main-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-box, .consent-box, .preview-box {
    background: var(--background-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-large);
    box-shadow: 
        0 8px 32px rgba(159, 122, 234, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.9);
    border: none;
    position: relative;
    overflow: hidden;
}

.info-box::before, .consent-box::before, .preview-box::before {
    display: none;
}

.preview-box {
    background: linear-gradient(135deg, rgba(159, 122, 234, 0.02) 0%, rgba(183, 148, 246, 0.02) 100%);
    box-shadow: 
        0 8px 32px rgba(159, 122, 234, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.9);
    position: relative;
    margin-top: 30px;
}

.preview-box::after {
    display: none;
}

.preview-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-box h3::before {
    content: '✨';
    font-size: 1.2rem;
}

.info-box ul, .consent-box ul, .preview-box ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.info-box li, .consent-box li, .preview-box li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    padding-left: 2rem;
    position: relative;
    font-size: 1.05rem;
}

.info-box li::before, .consent-box li::before, .preview-box li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0.5rem;
    top: -0.1rem;
}

.preview-box li::before {
    content: '→';
    color: var(--secondary-color);
}

/* Consent Section */
.consent-check {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(159, 122, 234, 0.03) 0%, rgba(183, 148, 246, 0.03) 100%);
    border-radius: var(--border-radius);
    border: 2px solid rgba(159, 122, 234, 0.1);
    transition: var(--transition);
}

.consent-check:hover {
    border-color: rgba(159, 122, 234, 0.15);
    background: linear-gradient(135deg, rgba(159, 122, 234, 0.05) 0%, rgba(183, 148, 246, 0.05) 100%);
}

.consent-check label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.consent-check input[type="checkbox"] {
    margin-top: 0.2rem;
    transform: scale(1.3);
    accent-color: var(--primary-color);
}

/* Buttons */
.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: var(--border-radius-large);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 240px;
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.primary-btn:hover:not(:disabled)::before {
    left: 100%;
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(159, 122, 234, 0.25);
}

.primary-btn:disabled {
    background: var(--border-medium);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.primary-btn:disabled::before {
    display: none;
}

/* Action Section */
.action-section {
    text-align: center;
    padding: 2rem;
}

.help-text {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.footer-text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Keyboard shortcuts styling */
kbd {
    background: var(--background-white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(159, 122, 234, 0.08);
    color: var(--text-primary);
    display: inline-block;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
    white-space: nowrap;
}

/* Development mode info */
#devInfo {
    animation: slideDown 0.5s ease-out;
    background: var(--background-white) !important;
    box-shadow: 
        0 8px 32px rgba(159, 122, 234, 0.1),
        0 0 0 1px rgba(159, 122, 234, 0.1) !important;
    border: none !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .info-box, .consent-box, .preview-box {
        padding: 2rem;
    }
    
    .primary-btn {
        width: 100%;
        max-width: 320px;
        padding: 1rem 2rem;
    }
    
    .aira-image {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .info-box, .consent-box, .preview-box {
        padding: 1.5rem;
    }
    
    .aira-image {
        width: 140px;
        height: 140px;
    }
}