/* PithPlay Professional Marketing Website Styles */

/* Root Variables - Professional Color Palette */
:root {
    --primary-color: #d97706;
    --primary-dark: #92400e;
    --primary-light: #f59e0b;
    /* Darker amber used wherever white text sits on the brand color -
       #d97706/#f59e0b fail WCAG AA (4.5:1) for white text at normal sizes. */
    --primary-button: #b45309;
    --primary-ultra-light: #f8f5ef;
    --secondary-color: #334155;
    --accent-color: #0f172a;
    --success-color: #15803d;
    --danger-color: #b91c1c;
    --warning-color: #d97706;
    --info-color: #0f766e;
    --dark-color: #0f172a;
    --medium-color: #334155;
    --light-color: #f8f5ef;
    --gray-50: #fbfaf7;
    --gray-100: #f3eee5;
    --gray-200: #e6ded2;
    --gray-300: #d6ccbd;
    --gray-600: #5f6671;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --hero-start: #0f172a;
    --hero-mid: #1e293b;
    --hero-end: #334155;
    --white-75: rgba(255, 255, 255, 0.85);
    --white-90: rgba(255, 255, 255, 0.9);
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    scroll-behavior: smooth;
    background-color: #fffaf3;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark-color);
}

a {
    color: var(--primary-dark);
}

a:hover {
    color: var(--primary-color);
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* Utilities */
.min-vh-75 {
    min-height: 75vh;
}

.text-white-75 {
    color: var(--white-75) !important;
}

.text-white-90 {
    color: var(--white-90) !important;
}

.bg-primary-ultra-light {
    background-color: var(--primary-ultra-light) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-warning {
    /* primary-color (not primary-light) so prices like Pro Max's $24.99
       meet WCAG AA contrast and match the Pro plan's price color. */
    color: var(--primary-color) !important;
}

.text-success {
    /* success-color (darker than Bootstrap's default #198754) for AA contrast
       on the cream page background. */
    color: var(--success-color) !important;
}

.btn-outline-success {
    color: var(--success-color);
    border-color: var(--success-color);
}

.btn-outline-success:hover {
    background: var(--success-color);
    border-color: var(--success-color);
    color: #ffffff !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-mid) 58%, var(--hero-end) 100%);
}

.bg-gradient-primary,
.hero-section,
.future-features-section,
footer {
    color: #f8f5ef !important;
}

.bg-gradient-primary h1,
.bg-gradient-primary h2,
.bg-gradient-primary h3,
.bg-gradient-primary h4,
.bg-gradient-primary h5,
.bg-gradient-primary h6,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.future-features-section h1,
.future-features-section h2,
.future-features-section h3,
.future-features-section h4,
.future-features-section h5,
.future-features-section h6,
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
    color: #fffaf3 !important;
}

.bg-gradient-primary p,
.bg-gradient-primary .lead,
.bg-gradient-primary .text-muted,
.hero-section p,
.hero-section .lead,
.hero-section .text-muted,
.future-features-section p,
.future-features-section .lead,
.future-features-section .text-muted,
footer p,
footer .text-muted,
footer .text-light {
    color: rgba(248, 245, 239, 0.82) !important;
}

/* Bootstrap alert boxes (e.g. the "For Editors" note) keep their own
   light background even when nested inside a dark .future-features-section -
   don't let the section's cream text-color rules above make them unreadable. */
.future-features-section .alert,
.future-features-section .alert h6,
.future-features-section .alert p,
.future-features-section .alert strong,
.future-features-section .alert em {
    color: #055160 !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--primary-ultra-light) 0%, #ffffff 100%);
}

.content-hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(217, 119, 6, 0.22), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(15, 118, 110, 0.18), transparent 30%),
        linear-gradient(135deg, var(--hero-start) 0%, var(--hero-mid) 56%, var(--hero-end) 100%);
    color: #fffaf3;
    overflow: hidden;
    position: relative;
}

.content-hero h1,
.content-hero h2,
.content-hero h3,
.content-hero p {
    color: inherit;
}

.content-kicker {
    color: #fbbf24;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.trust-strip {
    background: #fffaf3;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    color: var(--gray-700);
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 0.65rem 1rem;
}

.trust-strip span {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
    white-space: nowrap;
}

.editorial-card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    height: 100%;
    padding: 1.5rem;
}

.editorial-card.soft {
    background: linear-gradient(135deg, #fffaf3 0%, #ffffff 100%);
}

.comparison-grid {
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    overflow: hidden;
}

.comparison-grid .row {
    border-bottom: 1px solid var(--gray-200);
}

.comparison-grid .row:last-child {
    border-bottom: 0;
}

.comparison-grid .comparison-head {
    background: var(--dark-color);
    color: #fffaf3;
    font-weight: 800;
}

.comparison-grid .comparison-cell {
    padding: 1rem 1.25rem;
}

.legal-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.85rem;
    color: #6b4b00;
    font-size: 0.94rem;
    padding: 1rem 1.15rem;
}

.step-number {
    align-items: center;
    background: var(--primary-color);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 800;
    height: 2.4rem;
    justify-content: center;
    margin-bottom: 1rem;
    width: 2.4rem;
}

.source-list a {
    word-break: break-word;
}

.human-callout {
    background: var(--dark-color);
    border-radius: 1.25rem;
    color: #fffaf3;
    overflow: hidden;
    padding: 2rem;
    position: relative;
}

.human-callout h2,
.human-callout h3,
.human-callout p {
    color: inherit;
}

.human-callout::after {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.28), transparent 68%);
    content: "";
    height: 18rem;
    position: absolute;
    right: -6rem;
    top: -6rem;
    width: 18rem;
}

.page-index-card {
    border-left: 4px solid var(--primary-color);
}

.bg-accent {
    background-color: var(--accent-color);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: min(420px, calc(100vw - 2rem));
    background: var(--dark-color);
    color: white;
    border: 1px solid rgba(248, 245, 239, 0.18);
    border-radius: 1rem;
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Navigation */
.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark-color) !important;
}

.navbar-brand span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
}

.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 250, 243, 0.95) !important;
    backdrop-filter: blur(10px);
}

.nav-link {
    font-weight: 500;
    color: #6b7280 !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.bg-primary,
.badge.bg-primary,
.alert-primary {
    background-color: var(--primary-button) !important;
    border-color: var(--primary-button) !important;
}

.alert-primary {
    color: var(--dark-color) !important;
    background-color: #fff3dd !important;
}

.btn-check:checked + .btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary:active,
.show > .btn-outline-primary.dropdown-toggle {
    background-color: var(--primary-button) !important;
    border-color: var(--primary-button) !important;
    color: #ffffff !important;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-mid) 58%, var(--hero-end) 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 26% 72%, rgba(217, 119, 6, 0.18) 0%, transparent 54%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-video-preview {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-play {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.btn-play:hover {
    background: white;
    transform: scale(1.1);
}

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

.hero-stats {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Problem/Solution Icons */
.problem-icon {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.problem-icon i,
.solution-features .feature-icon i {
    transition: var(--transition);
}

.problem-icon:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.problem-icon:hover i {
    transform: scale(1.1);
    color: var(--primary-color) !important;
}

/* Feature Cards */
.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    /* No overflow:hidden - it was clipping the "Most Popular" badge, which
       is positioned partly above the card's top edge. The ::before accent
       bar below gets its own border-radius so it still respects the
       card's rounded corners. */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
    border-color: rgba(217, 119, 6, 0.35);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .service-icon {
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.25rem 0;
    color: #6b7280;
}

.service-features li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* How It Works Steps */
.step-card {
    position: relative;
    padding: 2rem 1rem;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.step-icon {
    margin: 1rem 0;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    border-left: 4px solid var(--primary-color);
}

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

.testimonial-author {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Future Features */
.future-features-section {
    background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-mid) 58%, var(--hero-end) 100%);
    position: relative;
    overflow: hidden;
}

.future-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.future-feature {
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.future-feature:hover {
    background: rgba(248, 245, 239, 0.16);
    transform: translateY(-5px);
}

.future-feature i {
    opacity: 0.95;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-button);
    border-color: var(--primary-button);
    color: #ffffff !important;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-button);
    border-color: var(--primary-button);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

footer a {
    color: #d1d5db !important;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-light) !important;
}

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-cta {
        text-align: center;
    }
    
    .hero-cta .btn {
        display: block;
        margin: 0.5rem 0;
    }
    
    .hero-stats .row {
        text-align: center;
    }
    
    .hero-stats .col-auto {
        flex: 1;
        margin-bottom: 0.5rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .step-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .service-card,
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --primary-dark: #004499;
    }
    
    .btn-primary {
        border: 2px solid var(--primary-color);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-animate {
        animation: none;
    }
}
