/**
 * STRATEVITA Marketing Site - eBook Landing Page Styles
 * Version: 2.0.0
 * Date: 2026-01-06
 * 
 * Styles for dynamic ebook landing pages and confirmation flows
 */

/* ============================================
   eBook Landing Page Layout
   ============================================ */

.ebook-landing-page {
    background-color: #f8fafc;
}

/* Minimal Header */
.ebook-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ebook-header .logo {
    height: 60px;
    width: auto;
}

/* ============================================
   Hero Section
   ============================================ */

.ebook-hero {
    padding: 50px 23px 1px 23px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-headline {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sv-iaxov-charcoal);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--sv-stratevita-blue);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 2rem;
}

.ebook-cover {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ============================================
   Social Proof Section
   ============================================ */

.social-proof-section {
    padding: 23px 23px 23px 23px;
    background: white;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: #f8fafc;
    border-left: 4px solid var(--sv-stratevita-blue);
    border-radius: 8px;
}

.testimonial-quote {
    margin-bottom: 1rem;
}

.quote-icon {
    font-size: 3rem;
    color: var(--sv-stratevita-blue);
    opacity: 0.3;
}

.testimonial-quote p {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--sv-iaxov-charcoal);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #64748b;
}

/* ============================================
   Content Sections
   ============================================ */

.about-section,
.what-you-learn-section,
.who-its-for-section,
.why-matters-section,
.toc-section,
.form-section {
    padding: 23px 23px 23px 23px;
}

.about-section {
    background: white;
}

.about-content,
.why-matters-content {
    max-width: 800px;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #475569;
}

/* What You'll Learn */
.learning-outcomes {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.learning-outcomes li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.learning-outcomes li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.learning-outcomes .material-icons {
    color: var(--sv-success);
    font-size: 24px;
    flex-shrink: 0;
}

/* Who It's For */
.personas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.persona-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.persona-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.persona-card .material-icons {
    color: var(--sv-stratevita-blue);
    font-size: 32px;
}

/* Table of Contents */
.toc-list {
    display: grid;
    gap: 1.5rem;
}

.toc-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chapter-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sv-stratevita-blue);
    color: white;
    border-radius: 50%;
    font-weight: 700;
}

.chapter-content h3 {
    font-size: 1.125rem;
    color: var(--sv-iaxov-charcoal);
    margin-bottom: 0.5rem;
}

.chapter-content p {
    color: #64748b;
    margin: 0;
}

/* ============================================
   Form Section
   ============================================ */

.form-section {
    background: linear-gradient(135deg, var(--sv-stratevita-blue) 0%, #3a6d85 100%);
    color: white;
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.form-wrapper h2 {
    color: var(--sv-iaxov-charcoal);
    margin-bottom: 0.5rem;
}

.form-wrapper > p {
    color: #64748b;
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    font-weight: 500;
    color: var(--sv-iaxov-charcoal);
    margin-bottom: 0.5rem;
}

.required-indicator {
    color: var(--sv-error);
    margin-left: 0.25rem;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s;
}

.radio-label:hover,
.checkbox-label:hover {
    background: #f8fafc;
    border-color: var(--sv-stratevita-blue);
}

.radio-label input,
.checkbox-label input {
    margin: 0;
}

.form-help {
    display: block;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.privacy-note {
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.privacy-note a {
    color: var(--sv-stratevita-blue);
}

/* Cloudflare Turnstile */
.cf-turnstile {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

/* ============================================
   Confirmation Page
   ============================================ */

.confirmation-content {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.confirmation-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.status-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.status-icon .material-icons {
    font-size: 48px;
}

.status-icon.success {
    background: rgba(102, 156, 53, 0.1);
    color: var(--sv-success);
}

.status-icon.pending {
    background: rgba(74, 129, 153, 0.1);
    color: var(--sv-stratevita-blue);
}

.status-icon.error {
    background: rgba(131, 17, 0, 0.1);
    color: var(--sv-error);
}

.email-display {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sv-stratevita-blue);
    padding: 1rem;
    background: #f8fafc;
    border-radius: 6px;
    margin: 1rem 0;
}

.attachment-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(74, 129, 153, 0.05);
    border-radius: 6px;
    margin-top: 1.5rem;
}

.attachment-notice .material-icons {
    color: var(--sv-stratevita-blue);
}

/* Next Steps */
.next-steps {
    margin-top: 3rem;
}

.next-steps h3 {
    margin-bottom: 1.5rem;
    color: var(--sv-iaxov-charcoal);
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.next-step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.next-step-card:hover {
    background: var(--sv-stratevita-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.next-step-card .material-icons {
    font-size: 32px;
}

.next-step-card strong {
    font-size: 0.875rem;
}

.next-step-card p {
    font-size: 0.75rem;
    color: currentColor;
    opacity: 0.8;
    margin: 0;
}

/* ============================================
   OTP Entry
   ============================================ */

.otp-entry-section {
    margin-top: 2rem;
}

.otp-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.otp-digit {
    width: 50px;
    height: 60px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
}

.otp-digit:focus {
    outline: none;
    border-color: var(--sv-stratevita-blue);
    box-shadow: 0 0 0 3px rgba(74, 129, 153, 0.1);
}

.resend-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.resend-section p {
    color: #64748b;
    margin-bottom: 1rem;
}

/* ============================================
   Recommended Resources
   ============================================ */

.recommended-resources {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
}

.recommended-resources h3 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.recommended-resources > p {
    text-align: center;
    color: #64748b;
    margin-bottom: 1.5rem;
}

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

.resource-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 6px;
    text-decoration: none;
    color: var(--sv-iaxov-charcoal);
    font-weight: 500;
    transition: all 0.2s;
}

.resource-link:hover {
    background: var(--sv-stratevita-blue);
    color: white;
    transform: translateX(4px);
}

.resource-link .material-icons {
    color: currentColor;
}

/* ============================================
   About STRATEVITA Section
   ============================================ */

.about-stratevita-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.about-stratevita-section h2 {
    margin-bottom: 1rem;
}

.about-stratevita-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */

.ebook-footer {
    background: var(--sv-iaxov-charcoal);
    color: white;
    padding: 2rem 0;
}

.ebook-footer p {
    margin: 0.5rem 0;
}

.ebook-footer a {
    color: var(--sv-soft-slate-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.ebook-footer a:hover {
    color: white;
}

/* ============================================
   Error State
   ============================================ */

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ============================================
   Animations
   ============================================ */

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

.spinning {
    animation: spin 1s linear infinite;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .personas-grid {
        grid-template-columns: 1fr;
    }
    
    .next-steps-grid {
        grid-template-columns: 1fr;
    }
    
    .otp-inputs {
        gap: 0.5rem;
    }
    
    .otp-digit {
        width: 40px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .error-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .ebook-hero,
    .form-section,
    .about-section,
    .what-you-learn-section,
    .who-its-for-section,
    .why-matters-section,
    .toc-section {
        padding: 2rem 0;
    }
    
    .form-wrapper,
    .confirmation-card {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   Accessibility
   ============================================ */

.otp-digit:focus-visible {
    outline: 2px solid var(--sv-stratevita-blue);
    outline-offset: 2px;
}

.resource-link:focus-visible,
.next-step-card:focus-visible {
    outline: 2px solid var(--sv-stratevita-blue);
    outline-offset: 2px;
}

/* Ensure sufficient color contrast */
.hero-subtitle {
    /* 4.5:1 contrast ratio or higher */
}

/* ============================================
   Utility Classes
   ============================================ */

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

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
