/* ============================================
   ClipItCoach – Landing Page Styles
   ============================================ */

:root {
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-light: rgba(16, 185, 129, 0.1);
    --dark: #111827;
    --dark-soft: #1f2937;
    --text: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --bg-dark: #111827;
    --border: #e5e7eb;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

img { max-width: 100%; }

/* ?? Buttons ?? */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    padding: 0.625rem 1.25rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ?? Navbar ?? */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.03em;
}

.navbar-brand i {
    font-size: 1.5rem;
    color: var(--primary);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.navbar-links a {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.navbar-links a:hover {
    color: var(--text);
    background: var(--bg-alt);
}

.navbar-links .btn {
    margin-left: 0.25rem;
}

.navbar-links .btn-primary {
    color: white;
}

.navbar-links .btn-primary:hover {
    color: white;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.5rem;
}

/* ?? Hero ?? */

.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    overflow: hidden;
}

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

.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--dark);
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hero-note {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Hero mockup */
.hero-mockup {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.mockup-player {
    padding: 0;
}

.mockup-video {
    background: #000;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.mockup-video iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.mockup-clips {
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.mockup-clip-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0;
}

.mockup-clip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    background: var(--bg-alt);
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.mockup-clip:hover {
    border-color: var(--border);
    background: var(--bg);
    transform: translateX(2px);
}

.mockup-clip.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mockup-clip-tags {
    display: flex;
    gap: 0.3rem;
    flex: 1;
    flex-wrap: wrap;
}

.mockup-tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

.mockup-clip-time {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-left: auto;
    flex-shrink: 0;
}

/* ?? Proof Bar ?? */

.proof-bar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.proof-bar-inner {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.proof-item i {
    color: var(--primary);
    font-size: 1rem;
}

/* ?? Sections ?? */

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ?? Problem ?? */

.problem {
    background: var(--bg-alt);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.problem-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.2s;
}

.problem-card:hover {
    box-shadow: var(--shadow-md);
}

.problem-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 1.25rem;
}

.problem-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ?? Features ?? */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.65;
}

/* ?? How It Works ?? */

.how-it-works {
    background: var(--bg-alt);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 280px;
    margin: 0 auto;
}

/* ?? Testimonials ?? */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.2rem;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-author strong {
    display: block;
    font-size: 0.85rem;
}

.testimonial-author span {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* ?? Pricing ?? */

.pricing {
    background: var(--bg-alt);
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.toggle-label.active {
    color: var(--text);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 100px;
    transition: background 0.2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.savings-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    margin-left: 0.25rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.price-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}

.price-card:hover {
    box-shadow: var(--shadow-md);
}

.price-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
    transform: scale(1.03);
}

.price-card.featured:hover {
    transform: scale(1.04);
}

.featured-ribbon {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 1rem;
    border-radius: 0 0 8px 8px;
}

.price-card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.price-card-header p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.price-card-price {
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--dark);
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.price-billed {
    display: block;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
    min-height: 1.2em;
}

.price-features {
    list-style: none;
    margin-bottom: 2rem;
}

.price-features li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--bg-alt);
}

.price-features li.yes i {
    color: var(--primary);
}

.price-features li.no {
    color: var(--text-tertiary);
}

.price-features li.no i {
    color: var(--text-tertiary);
}

.pricing-note {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-top: 2rem;
}

/* ?? FAQ ?? */

.faq-container {
    max-width: 720px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    color: var(--text);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ?? CTA Section ?? */

.cta-section {
    background: var(--dark);
    color: white;
    text-align: center;
}

/* Contact Section */

.contact {
    background: var(--bg-alt);
}

.contact-form {
    max-width: 640px;
    margin: 0 auto;
}

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

.contact-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.contact-field label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.contact-field input,
.contact-field textarea {
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
    resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.contact-form-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-status {
    font-size: 0.85rem;
    font-weight: 500;
}

.contact-status.success {
    color: var(--primary);
}

.contact-status.error {
    color: #dc3545;
}

@media (max-width: 640px) {
    .contact-form-row {
        grid-template-columns: 1fr;
    }
}

.cta-inner h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 0.75rem;
    color: white;
}

.cta-inner p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-subtext {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ?? Footer ?? */

.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding: 4rem 0 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}

.footer-logo i {
    color: var(--primary);
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-size: 0.85rem;
    transition: color 0.15s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
}

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

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.25rem;
        box-shadow: var(--shadow-md);
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-links .btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .problem-grid,
    .features-grid,
    .steps-grid,
    .testimonials-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .price-card.featured {
        transform: none;
        order: -1;
    }

    .price-card.featured:hover {
        transform: none;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .proof-bar-inner {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .cta-inner h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.85rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
