/**
 * Homepage Marketing Template Styles - Version 1.0.2
 * Comprehensive redesign with animations, depth, and modern SaaS polish
 * Created: January 13, 2026
 * Updated: January 13, 2026 - Added all visual enhancements from spec
 */

/* ===========================
   CONTAINER & BASE STYLES
   =========================== */

.marketing-homepage {
    background: linear-gradient(180deg, 
        rgba(17, 24, 39, 0.75) 0%,    /* 75% opaque - lets 25% of pattern through */
        rgba(31, 41, 55, 0.75) 50%, 
        rgba(17, 24, 39, 0.75) 100%
    );
    color: #ffffff;
    min-height: 100vh;
    padding: 2rem 0;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero-section {
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero-content {
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #ffffff 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #d1d5db;
    max-width: 900px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-proof {
    font-size: 1.125rem;
    color: #9ca3af;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    font-style: italic;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.trust-indicators span {
    color: #fbbf24;
    font-size: 0.95rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .trust-indicators {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}

.hero-cta {
    margin: 2rem 0;
}

.chart-container {
    margin: 2rem auto;
    max-width: 100%;
}

/* ===========================
   QUICK NAVIGATION
   =========================== */

.quick-nav-section {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #374151;
    border-bottom: 1px solid #374151;
    padding: 2rem 0;
    margin: 2rem 0;
}

.quick-nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 0 1rem;
}

.nav-button {
    padding: 0.75rem 1.5rem;
    background: #374151;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
    font-weight: 500;
}

.nav-button:hover {
    background: #4b5563;
}

/* ===========================
   STATS SECTION
   =========================== */

.stats-section {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.5) 0%, rgba(17, 24, 39, 0.8) 100%);
    padding: 3rem 1rem;
    margin: 2rem 0;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.stats-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.stats-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stats-subtitle {
    font-size: 1.125rem;
    color: #d1d5db;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #d1d5db;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.stat-sublabel {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ===========================
   FEATURES SECTION
   =========================== */

.features-section {
    padding: 5rem 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.features-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4rem;
    color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.feature-card {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid #374151;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    border-color: #fbbf24;
    box-shadow: 
        0 10px 25px rgba(251, 191, 36, 0.2),
        0 0 0 1px rgba(251, 191, 36, 0.1);
    transform: translateY(-8px);
}

.feature-icon {
    background: rgba(251, 191, 36, 0.1);
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
    transform: scale(1.05);
}

.icon-svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #fbbf24;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #ffffff;
}

/* Feature Preview Lists */
.feature-preview {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.preview-header {
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.preview-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.preview-list li {
    color: #d1d5db;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
}

.preview-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #fbbf24;
    font-weight: bold;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #d1d5db;
    line-height: 1.5;
}

.feature-list .checkmark {
    color: #fbbf24;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.feature-highlight {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #374151;
    color: #fbbf24;
    font-size: 0.875rem;
    font-weight: 600;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===========================
   HOW IT WORKS SECTION
   =========================== */

.how-it-works-section {
    background: rgba(31, 41, 55, 0.5);
    padding: 5rem 1rem;
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.how-it-works-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 1rem;
}

.step-number {
    background: #fbbf24;
    color: #000000;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.step-description {
    color: #d1d5db;
    line-height: 1.6;
}

/* ===========================
   SOCIAL PROOF SECTION (NEW)
   =========================== */

.social-proof-section {
    padding: 5rem 1rem;
    background: rgba(31, 41, 55, 0.3);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.social-proof-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.social-proof-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 50%, rgba(251, 191, 36, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.social-proof-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.social-proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.proof-stat {
    text-align: center;
}

.proof-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.proof-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.proof-description {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===========================
   NEWSLETTER SECTION
   =========================== */

.newsletter-section {
    padding: 5rem 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.newsletter-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.newsletter-container {
    max-width: 1000px;
    margin: 0 auto;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.newsletter-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #374151;
}

.newsletter-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.newsletter-description {
    color: #d1d5db;
    line-height: 1.6;
}

/* ===========================
   PRICING SECTION
   =========================== */

.pricing-section {
    padding: 5rem 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.pricing-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-subtitle {
    color: #d1d5db;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.pricing-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 2px solid #fbbf24;
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    box-shadow: 
        0 10px 40px rgba(251, 191, 36, 0.3),
        0 0 0 1px rgba(251, 191, 36, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    box-shadow: 
        0 15px 50px rgba(251, 191, 36, 0.4),
        0 0 0 1px rgba(251, 191, 36, 0.2),
        0 25px 70px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.pricing-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: bold;
}

.pricing-amount {
    text-align: center;
    margin: 2rem 0 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
}

.period {
    font-size: 1.5rem;
    color: #9ca3af;
}

.pricing-annual {
    text-align: center;
    color: #9ca3af;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #e5e7eb;
    line-height: 1.5;
}

.pricing-features .checkmark {
    color: #fbbf24;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.pricing-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ===========================
   FAQ SECTION
   =========================== */

.faq-section {
    padding: 5rem 1rem;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.faq-question {
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    transition: transform 0.3s;
    color: #fbbf24;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    color: #d1d5db;
    margin-top: 1rem;
    line-height: 1.6;
}

/* ===========================
   FINAL CTA SECTION
   =========================== */

.final-cta-section {
    background: #1f2937;
    border-top: 3px solid #fbbf24;
    padding: 4rem 1rem;
    margin: 2rem 0 0;
    position: relative;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.final-cta-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.final-cta-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 1rem;
}

.final-cta-subtitle {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2rem;
}

.final-cta-button {
    margin: 2rem 0;
}

/* ===========================
   RESPONSIVE ADJUSTMENTS
   =========================== */

@media (max-width: 768px) {
    .features-grid,
    .steps-grid,
    .newsletter-grid,
    .social-proof-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .final-cta-title {
        font-size: 2rem;
    }
    
    .stats-title {
        font-size: 1.75rem;
    }
}

/* ===========================
   BUTTON OVERRIDES
   =========================== */

.marketing-homepage .hero-cta button,
.marketing-homepage .section-cta button,
.marketing-homepage .pricing-cta button,
.marketing-homepage .final-cta-button button {
    background: #fbbf24 !important;
    color: #000000 !important;
    padding: 1rem 2rem !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.3) !important;
}

.marketing-homepage .hero-cta button:hover,
.marketing-homepage .section-cta button:hover,
.marketing-homepage .pricing-cta button:hover {
    background: #f59e0b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4) !important;
}

/* Final CTA buttons (on dark background) */
.final-cta-button button {
    background: #fbbf24 !important;
    color: #000000 !important;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.3) !important;
}

.final-cta-button button:hover {
    background: #f59e0b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4) !important;
}

/* ===========================
   TOS HOMEPAGE CHART STYLES - EXPANDED WIDTH
   =========================== */

/* Main wrapper - expand to use more screen width */
.tos-homepage-wrapper {
    max-width: 100% !important;  /* Changed from 1800px */
    width: 100% !important;
    margin: 0 auto !important;
    padding: 1rem 0 !important;  /* Minimal horizontal padding so border is close */
}

/* Override parent container constraints */
.marketing-homepage .chart-container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 2rem 0 !important;
}

.marketing-homepage .hero-section {
    max-width: none !important;
    padding: 4rem 2rem 3rem !important;  /* Added horizontal padding */
}

/* Ensure the chart itself can expand */
.tos-homepage-svg {
    background: #000000;
    border: 1px solid #374151;  /* Subtle professional border */
    border-radius: 0.5rem;
    display: block;
    margin: 0 auto;
    width: 800px !important;   /* MUST MATCH positioning.js width */
    height: 400px !important;  /* MUST MATCH positioning.js height */
    cursor: default !important;  /* Force default cursor, never pointer */
    pointer-events: none;        /* Prevent any click/hover interactions */
}

/* Allow text in SVG to be selectable if needed */
.tos-homepage-svg text {
    pointer-events: auto;
    cursor: default !important;
}

/* Additional container that might be constraining */
.nv-content-wrap {
    max-width: none !important;
    width: 100% !important;
}

.marketing-homepage {
    max-width: none !important;
    width: 100% !important;
}

/* Title styling */
.tos-homepage-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #fbbf24;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Week info and legend */
.tos-homepage-week-info {
    text-align: center;
    color: #d1d5db;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.tos-homepage-week-info strong {
    color: #ffffff;
    font-weight: 600;
}

.tos-homepage-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #d1d5db;
}

.tos-homepage-legend .legend-item {
    display: flex;
    align-items: center;
}

/* Loading and error states */
.tos-homepage-loading,
.tos-homepage-error {
    text-align: center;
    padding: 3rem;
    color: #d1d5db;
}

.tos-homepage-error .error-message {
    color: #ef4444;
    margin-bottom: 1rem;
}

.tos-homepage-error .retry-button {
    padding: 0.75rem 1.5rem;
    background: #fbbf24;
    color: #000000;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tos-homepage-error .retry-button:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tos-homepage-wrapper {
        padding: 0.5rem !important;
    }
    
    .tos-homepage-title {
        font-size: 1.5rem;
    }
    
    .marketing-homepage .hero-section {
        padding: 3rem 1rem 2rem !important;
    }
    
    .tos-homepage-legend {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Override any theme constraints */
body .marketing-homepage,
body .nv-content-wrap {
    max-width: none !important;
}
