/*
Theme Name: Spit Notes
Theme URI: https://spitnotes.com
Author: Spit Notes Team
Author URI: https://spitnotes.com
Description: A custom landing page theme for Spit Notes - the fastest way for rappers and songwriters to capture, organize, and build their lyrical ideas.
Version: 1.0
License: GPL v2 or later
Text Domain: spitnotes
*/

/* =================================================================
   Global Styles & Variables
   Establishes the core visual language: colors, fonts, and resets.
   This reflects the "Spit Notes Design DNA."
   ================================================================= */
:root {
    --color-background: #1E1E1E;
    /* Deep, near-black for the "Digital Studio" feel */
    --color-text: #E0E0E0;
    /* High-contrast off-white for readability */
    --color-text-muted: #a0a0a0;
    /* For secondary text like citations */
    --color-accent: #FFD700;
    /* "Vinyl Gold" - used exclusively for primary CTAs */
    --color-surface: #1a1a1a;
    /* Slightly lighter surface for cards */
    --color-border: #333333;
    /* Subtle borders */

    --font-primary: 'Inter', sans-serif;
    --container-width: 1140px;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 700;
}

.section-headline {
    font-size: clamp(2rem, 5vw, 3rem);
    /* Responsive font size */
    text-align: center;
    margin-bottom: 60px;
}

/* =================================================================
   Reusable Components (Buttons, etc.)
   ================================================================= */
.cta-button-primary {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-background);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.cta-button-secondary {
    display: inline-block;
    background-color: var(--color-surface);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    border: 1px solid var(--color-border);
    transition: background-color 0.2s ease;
}

.cta-button-secondary:hover {
    background-color: #2a2a2a;
}

/* =================================================================
   Header & Navigation
   ================================================================= */
.site-header {
    padding: 20px 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
}

/* =================================================================
   Hero Section
   ================================================================= */
.hero-section {
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.hero-headline {
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 20px;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.hero-visual img {
    max-width: 380px;
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* =================================================================
   Value Proposition Section
   ================================================================= */
.value-prop-section {
    padding: 100px 0;
    background-color: var(--color-surface);
}

.value-prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}

.value-prop-icon {
    margin-bottom: 20px;
    border-radius: 50%;
}

.value-prop-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #1a1a1a;
    color: #FFD700;
    font-size: 36px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.value-prop-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.value-prop-item p {
    color: var(--color-text-muted);
}

/* =================================================================
   Features Section (Finy-inspired design)
   ================================================================= */
.features-section {
    padding: 100px 0;
    position: relative;
}

.features {
    width: 100%;
}

.div-block {
    width: 100%;
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px 0;
    position: relative;
    min-height: 600px;
    /* Ensure minimum height for sticky behavior */
}

.feature-card:nth-child(even) {
    direction: rtl;
}

.feature-card:nth-child(even) .feature-content,
.feature-card:nth-child(even) .feature-phone-container {
    direction: ltr;
}

.feature-content {
    max-width: 500px;
    width: 100%;
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

/* When sticky header is activated */
.feature-content.is-sticky {
    top: 80px;
    /* Adjust based on your header height */
    transform: translateY(0);
}

.feature-content.is-exiting {
    opacity: 0;
    transform: translateY(-20px);
}

.feature-heading-2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.feature-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.feature-phone-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-ui.phone {
    max-width: 100%;
    width: 390px;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 8px solid #2a2a2a;
}

/* =================================================================
   Social Proof Section
   ================================================================= */
.social-proof-section {
    background-color: var(--color-surface);
}

.testimonial-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.testimonial-wrapper {
    position: relative;
    overflow: hidden;
    flex: 1;
    height: 230px;
    align-content: center;
}

.testimonial-card {
    padding: 30px;
    border-left: 3px solid var(--color-accent);
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-card.active {
    position: relative;
    opacity: 1;
}

.testimonial-card blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    border: none;
    text-align: center;
}

.testimonial-card cite {
    font-weight: 600;
    font-style: normal;
    color: var(--color-text-muted);
    display: block;
    text-align: center;
}

.carousel-nav {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* =================================================================
   FAQ Section
   ================================================================= */
.faq-section {
    padding: 120px 0;
}

.faq-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.faq-content .cta-button-primary {
    margin-top: 20px;
    margin-bottom: 80px;
}

.faq-accordion {
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 25px 0;
    cursor: pointer;
    list-style: none;
    /* Remove default marker */
    position: relative;
    padding-right: 30px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
    /* Hide for Chrome/Safari */
}

.faq-item summary::after {
    /* Custom marker */
    content: '+';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    padding: 0 10px 25px 10px;
    color: var(--color-text-muted);
}

/* =================================================================
   Footer Section
   ================================================================= */
.site-footer {
    padding: 60px 0;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-content .logo {
    margin-bottom: 20px;
}

.footer-content p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* =================================================================
   Media Queries for Responsiveness
   ================================================================= */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .section-headline {
        margin-bottom: 40px;
    }

    .transformation-section .section-headline {
        margin-bottom: 30px;
    }

    .value-prop-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-carousel {
        gap: 10px;
    }

    .testimonial-wrapper {
        height: 260px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    /* Features section responsive */
    .feature-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 0;
        min-height: auto;
    }

    .feature-card:nth-child(even) {
        direction: ltr;
    }

    .feature-content {
        text-align: center;
        max-width: 100%;
        position: static !important;
        top: auto !important;
        transform: none !important;
    }

    .feature-content.is-sticky,
    .feature-content.is-exiting {
        position: static !important;
        top: auto !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .feature-heading-2 {
        font-size: 2rem;
    }

    .feature-ui.phone {
        width: 280px;
    }

    .feature-grid {
        gap: 60px;
    }
}

/* =================================================================
   Promo Banner
   Limited-time offer banner at the very top of the page
   ================================================================= */
.promo-banner {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
    padding: 12px 0;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.promo-banner .promo-text {
    color: #000;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .promo-banner .promo-text {
        font-size: 14px;
        padding: 0 20px;
    }

    /* Stack the choice grid on mobile */
    .choice-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Reduce testimonial section padding on mobile */
    .social-proof-section .container {
        padding: 0 10px;
    }

    .testimonial-card {
        padding: 20px 15px;
    }

    .testimonial-card blockquote {
        font-size: 1.1rem;
    }

    /* Transform section list items line height on mobile */
    .choice-grid ul li {
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .choice-grid ul li:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .testimonial-wrapper {
        height: 506px;
    }
}