/* My Yarn Stash - Landing Page CSS */

/* === Custom Properties for Landing === */
:root {
    --brand-coral: #ff8a71;
    --brand-lavender: #b197fc;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-cursive: 'Pacifico', cursive;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-3xl: 3rem;
    --radius-full: 9999px;
}

/* === Dark Mode Variables === */
.landing-body {
    --dm-bg: #0f172a;
    --dm-bg-secondary: #1e293b;
    --dm-surface: #1e293b;
    --dm-text: #f1f5f9;
    --dm-text-muted: #94a3b8;
    --dm-border: #334155;
}

/* === Dark Mode Styles (Landing Only) === */
html.dark .landing-body {
    background: var(--dm-bg);
    color: var(--dm-text);
}

html.dark .landing-header {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--dm-border);
}

html.dark .landing-nav-link {
    color: var(--dm-text-muted);
}

html.dark .landing-nav-link:hover {
    color: var(--dm-text);
}

html.dark .landing-footer {
    background: var(--dm-surface);
    border-color: var(--dm-border);
    color: var(--dm-text-muted);
}

html.dark .feature-card,
html.dark .solution-card,
html.dark .faq-item,
html.dark .who-tag {
    background: var(--dm-surface);
    border-color: var(--dm-border);
}

html.dark .feature-card h3,
html.dark .solution-card h3,
html.dark .solution-card h4,
html.dark .faq-question span {
    color: var(--dm-text);
}

html.dark .feature-card p,
html.dark .solution-card p,
html.dark .solution-intro,
html.dark .faq-answer {
    color: var(--dm-text-muted);
}

html.dark .hero-tagline,
html.dark .section-subtitle,
html.dark .features-closing,
html.dark .use-cases-closing,
html.dark .hero-subtext {
    color: var(--dm-text-muted);
}

html.dark .problem-content p,
html.dark .use-case-item span:last-child,
html.dark .check-list span {
    color: var(--dm-text-muted);
}

html.dark .who-tag span {
    color: var(--dm-text);
}

html.dark h1,
html.dark h2 {
    color: var(--dm-text);
}

html.dark .hamburger-btn {
    color: var(--dm-text);
}

/* === Gradient Utilities === */
.gradient-text {
    background: linear-gradient(to bottom, var(--brand-coral), var(--brand-lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(to bottom, var(--brand-lavender), var(--brand-coral));
}

.logo-gradient {
    background: linear-gradient(to bottom, var(--brand-coral), var(--brand-lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursive-accent {
    font-family: var(--font-cursive);
    font-style: italic;
    font-weight: normal;
    text-transform: lowercase;
}

/* === Landing Layout === */
.landing-body {
    font-family: var(--font-display);
    background: #fdfdff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.landing-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.landing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 5rem; /* Account for fixed header */
}

/* === Landing Header (Fixed) === */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(253, 253, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease;
}

.landing-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

.landing-logo-img {
    height: 36px;
    width: auto;
}

.landing-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.landing-nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

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

/* === Theme Toggle === */
.theme-toggle {
    padding: 0.5rem;
    background: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.theme-toggle:hover {
    background: var(--color-bg);
}

html.dark .theme-toggle:hover {
    background: var(--dm-bg-secondary);
}

.theme-toggle .dark-icon {
    display: none;
}

html.dark .theme-toggle .light-icon {
    display: none;
}

html.dark .theme-toggle .dark-icon {
    display: block;
}

/* === Pill Button === */
.btn-pill {
    border-radius: var(--radius-full);
    padding: 0.625rem 1.5rem;
    font-weight: 600;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

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

.btn-white:hover {
    background: #f8fafc;
}

/* === Mobile Menu === */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    color: var(--color-text);
}

.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .hamburger-btn {
        display: block;
    }
    
    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    
    html.dark .mobile-menu {
        background: var(--dm-surface);
        border-color: var(--dm-border);
    }
    
    .mobile-menu.open {
        display: flex;
        max-height: 200px;
        padding: 0.5rem 0;
    }
    
    .mobile-menu-link {
        display: block;
        padding: 0.75rem 2rem;
        color: var(--color-text);
        text-decoration: none;
        font-size: 0.95rem;
        transition: background-color 0.15s ease;
    }
    
    html.dark .mobile-menu-link {
        color: var(--dm-text);
    }
    
    .mobile-menu-link:hover {
        background-color: var(--color-bg);
    }
    
    html.dark .mobile-menu-link:hover {
        background-color: var(--dm-bg);
    }
    
    .theme-toggle-mobile {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        text-align: left;
        border: none;
        background: none;
        cursor: pointer;
    }
    
    .theme-toggle-mobile .dark-icon {
        display: none;
    }
    
    html.dark .theme-toggle-mobile .light-icon {
        display: none;
    }
    
    html.dark .theme-toggle-mobile .dark-icon {
        display: block;
    }
    
    .theme-toggle-mobile .material-symbols-outlined {
        font-size: 1.25rem;
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .theme-toggle-mobile .toggle-label {
        flex: 1;
    }
    
    .landing-header {
        position: relative;
    }
    
    .theme-toggle {
        display: none;
    }
}

/* === Landing Footer === */
.landing-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-logo {
    display: block;
    margin-bottom: 1rem;
    text-align: center;
}

.footer-logo-img {
    height: 32px;
    width: auto;
}

.footer-copyright {
    margin-top: 0.5rem;
}

.landing-footer a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

/* === Hero Section === */
.hero {
    text-align: center;
    padding: 6rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-subtext {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
}

@media (max-width: 600px) {
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
}

/* === Section Shared Styles === */
.landing-section {
    width: 100%;
    padding: 6rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto;
}

/* === Features Carousel === */
.features-section {
    width: 100%;
    text-align: center;
    overflow: hidden;
    background: white;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

html.dark .features-section {
    background: var(--dm-bg-secondary);
}

.features-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    margin: 0 auto 2rem;
}

.features-carousel {
    display: flex;
    gap: 1.5rem;
    animation: scroll-carousel 30s linear infinite;
    /* Width = 4 cards × 300px + 4 gaps × 1.5rem = 1200px + 96px = 1296px per set */
    /* We have 2 sets, so total width should be calculated automatically via max-content */
    width: max-content;
}

.features-carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move exactly the width of first 5 cards + their gaps */
        /* 5 cards × 300px = 1500px, plus 5 gaps × 1.5rem (24px) = 120px = 1620px */
        transform: translateX(calc(-1500px - 5 * 1.5rem));
    }
}

.feature-card {
    flex: 0 0 300px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-3xl);
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon-circle .material-symbols-outlined {
    font-size: 1.75rem;
    width: 1.75rem;
    height: 1.75rem;
}

.feature-icon-circle.blue {
    background: #dbeafe;
    color: #3b82f6;
}

.feature-icon-circle.orange {
    background: #ffedd5;
    color: #f97316;
}

.feature-icon-circle.purple {
    background: #f3e8ff;
    color: #a855f7;
}

.feature-icon-circle.emerald {
    background: #d1fae5;
    color: #10b981;
}

.feature-icon-circle.slate {
    background: #e2e8f0;
    color: #64748b;
}

html.dark .feature-icon-circle.blue {
    background: rgba(59, 130, 246, 0.2);
}

html.dark .feature-icon-circle.orange {
    background: rgba(249, 115, 22, 0.2);
}

html.dark .feature-icon-circle.purple {
    background: rgba(168, 85, 247, 0.2);
}

html.dark .feature-icon-circle.emerald {
    background: rgba(16, 185, 129, 0.2);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

.features-closing {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* === Problem + Solution Section === */
.problem-solution-section {
    background: rgba(248, 250, 252, 0.5);
}

html.dark .problem-solution-section {
    background: rgba(15, 23, 42, 0.5);
}

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

@media (max-width: 900px) {
    .problem-solution-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.problem-column h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2rem;
}

.problem-content p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* === Check Lists === */
.check-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 1rem;
}

.check-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.check-list-success .check-icon {
    color: var(--color-success);
}

.check-primary {
    color: var(--color-primary);
}

/* === Solution Card === */
.solution-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 2.5rem;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.05);
}

.solution-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.solution-intro {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.solution-feature {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

html.dark .solution-feature {
    background: var(--dm-bg);
    border-color: var(--dm-border);
}

.solution-feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.solution-feature-icon.indigo {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
}

.solution-feature-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

html.dark .solution-feature-icon.indigo {
    background: rgba(99, 102, 241, 0.3);
}

html.dark .solution-feature-icon.orange {
    background: rgba(249, 115, 22, 0.3);
}

.solution-feature h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.solution-feature p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* === Who/Use Cases Section === */
.who-section {
    text-align: center;
    background: rgba(248, 250, 252, 0.5);
}

html.dark .who-section {
    background: rgba(15, 23, 42, 0.5);
}

.who-tags {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.who-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow);
    font-size: 0.9rem;
}

.who-tag span {
    font-weight: 500;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: left;
}

@media (max-width: 600px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

.use-case-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.use-case-item .check-icon {
    flex-shrink: 0;
}

.use-cases-closing {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* === FAQ Section === */
.faq-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

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

.faq-item {
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-2xl);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

html.dark .faq-item {
    border-color: var(--dm-border);
}

.faq-question {
    width: 100%;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    padding: 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.faq-question::after {
    display: none; /* Remove old +/- marker */
}

.faq-chevron {
    transition: transform 0.2s ease;
    color: var(--color-text-muted);
}

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

.faq-answer {
    font-size: 1rem;
    color: var(--color-text-muted);
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    line-height: 1.7;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    padding-top: 1rem;
}

html.dark .faq-answer {
    border-top-color: var(--dm-border);
}

/* === Final CTA Section === */
.final-cta {
    padding: 6rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.final-cta-card {
    background: linear-gradient(to bottom, var(--brand-lavender), var(--brand-coral));
    border-radius: var(--radius-3xl);
    padding: clamp(3rem, 8vw, 6rem) clamp(2rem, 6vw, 6rem);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
}

.final-cta-dots {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 20px 20px;
}

.final-cta-content {
    position: relative;
    z-index: 10;
    max-width: 640px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.final-cta p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.final-cta .btn {
    margin-bottom: 1.5rem;
}

.final-cta-trust {
    font-size: 0.875rem;
    opacity: 0.8;
    font-style: italic;
    margin-bottom: 0;
}

/* === Placeholder Page Styles === */
.placeholder-page {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.placeholder-page h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.placeholder-page p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

/* === Plans Section === */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.plan-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.plan-icon {
    text-align: center;
    margin-bottom: 0.75rem;
}

.plan-icon img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    object-fit: cover;
    display: inline-block;
}

.plan-card.plan-featured {
    border-color: var(--color-primary);
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.plan-subtitle {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-description {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
    margin-bottom: 2.5rem;
}

.plan-featured .plan-description {
    margin-bottom: 0;
}

.plan-price {
    text-align: center;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text);
}

.price-period {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.price-annual {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.plan-features li {
    font-size: 0.9rem;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text);
}

.plan-features li.included::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

.plan-features li.plan-features-header {
    padding-left: 0;
    font-weight: 500;
    color: var(--color-text-muted);
}

.plan-features li.excluded {
    color: var(--color-text-muted);
}

.plan-features li.excluded::before {
    content: "-";
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
}

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

.plan-cta .btn {
    width: 100%;
}

.plan-value-callout {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Billing Period Toggle */
.billing-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 1rem;
    background: var(--color-bg-secondary);
    border-radius: 8px;
    padding: 4px;
}

.billing-option {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
}

.billing-option:hover {
    color: var(--color-text);
}

.billing-option.active {
    background: var(--color-bg);
    color: var(--color-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.price-savings {
    display: block;
    font-size: 0.75rem;
    color: var(--color-success);
    font-weight: 600;
    margin-top: 0.25rem;
}

.plans-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 2rem;
}

/* === AI Credits Section === */
.credits-section .section-intro {
    text-align: center;
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.credits-features {
    text-align: center;
    margin-bottom: 2.5rem;
}

.credits-features h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.credits-features-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.credits-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text);
}

.credits-feature-icon {
    font-size: 1.25rem;
}

.credit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.credit-pack {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.credit-pack:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.credit-icon {
    margin-bottom: 0.5rem;
}

.credit-icon img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    object-fit: cover;
    display: inline-block;
}

.credit-pack h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.credit-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.credit-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.credit-price {
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.credits-notes {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.credits-notes li {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.credits-notes li::before {
    content: "✓";
    color: var(--color-success);
    font-weight: bold;
}

/* === Explainer Section === */
.explainer-section {
    text-align: center;
}

.explainer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.explainer-column {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.explainer-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.explainer-column h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.explainer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.explainer-column li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding: 0.25rem 0;
}

.explainer-tagline {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* === FAQ Section === */
.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Old FAQ styles removed - using new styles from FAQ section above */

/* === Final CTA Enhancements === */
.final-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .plan-grid {
        grid-template-columns: 1fr;
    }
    
    .credit-grid {
        grid-template-columns: 1fr;
    }
    
    .credits-features-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .credits-notes {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .explainer-grid {
        grid-template-columns: 1fr;
    }
    
    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .final-cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ===== Billing Success Page ===== */

.success-hero {
    text-align: center;
    padding: 4rem 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.success-details {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin: 2rem auto;
    max-width: 400px;
}

.success-details p {
    margin: 0;
    font-size: 1.1rem;
}

.success-note {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* === Legal Pages (Terms, Refund) === */
.legal-page {
    flex: 1;
    padding: 3rem 2rem;
    background: var(--color-background);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.legal-container h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.legal-updated {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-container section {
    margin-top: 2rem;
}

.legal-container h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.legal-container h3 {
    font-size: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.legal-container p {
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.legal-container ul,
.legal-container ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-container li {
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.legal-container a {
    color: var(--color-primary);
    text-decoration: none;
}

.legal-container a:hover {
    text-decoration: underline;
}

/* === Dark Mode for Legal Pages === */
html.dark .legal-page {
    background: var(--dm-bg);
}

html.dark .legal-container {
    background: var(--dm-surface);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

html.dark .legal-container h1,
html.dark .legal-container h2,
html.dark .legal-container h3 {
    color: var(--dm-text);
}

html.dark .legal-container h2 {
    border-color: var(--dm-border);
}

html.dark .legal-container p,
html.dark .legal-container li {
    color: var(--dm-text-muted);
}

html.dark .legal-container a {
    color: var(--brand-lavender);
}

html.dark .legal-updated {
    color: var(--dm-text-muted);
}

@media (max-width: 768px) {
    .legal-page {
        padding: 1.5rem 1rem;
    }
    
    .legal-container {
        padding: 1.5rem;
    }
    
    .legal-container h1 {
        font-size: 1.5rem;
    }
}

/* === Error Page Extras === */
.error-help {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.error-help a {
    color: var(--color-primary);
    text-decoration: none;
}

.error-help a:hover {
    text-decoration: underline;
}

/* =================================================================
   PRICING PAGE REDESIGN
   ================================================================= */

/* === Utility Classes === */
.soft-gradient-bg {
    background: linear-gradient(to bottom, rgba(255, 138, 113, 0.1), rgba(177, 151, 252, 0.1));
}

.textured-bg {
    background-image: radial-gradient(rgba(177, 151, 252, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* === Pricing Hero === */
.pricing-hero {
    text-align: center;
    padding: 4rem 1.5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.pricing-hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
}

/* === Plan Cards (Redesigned) === */
.pricing-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1152px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .pricing-plan-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-plan-card {
    background: var(--color-surface);
    border-radius: var(--radius-3xl);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.pricing-plan-card:hover {
    transform: scale(1.02);
}

html.dark .pricing-plan-card {
    background: var(--dm-surface);
    border-color: var(--dm-border);
    box-shadow: none;
}

.pricing-plan-card.featured {
    border: 2px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.1);
}

html.dark .pricing-plan-card.featured {
    border-color: rgba(99, 102, 241, 0.15);
}

/* Plan Badge */
.plan-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

/* Plan Banner (image header) */
.plan-banner {
    height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.plan-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Plan Body */
.pricing-plan-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pricing-plan-header {
    margin-bottom: 2rem;
}

.pricing-plan-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.pricing-plan-price .amount {
    font-size: 3rem;
    font-weight: 700;
}

.pricing-plan-price .period {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Billing Toggle (inside Plus card) */
.pricing-billing-toggle {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: var(--radius-full);
    margin: 0 auto 1.5rem;
    width: fit-content;
}

/* Spacer for Free card to align with Plus card toggle */
.pricing-billing-spacer {
    height: 2.75rem; /* Match the height of the billing toggle + margin */
    margin-bottom: 1.5rem;
}

html.dark .pricing-billing-toggle {
    background: var(--dm-bg);
}

.pricing-billing-toggle button {
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pricing-billing-toggle button:hover {
    color: var(--color-text);
}

.pricing-billing-toggle button.active {
    background: white;
    color: var(--color-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

html.dark .pricing-billing-toggle button.active {
    background: var(--dm-surface);
    color: var(--dm-text);
}

/* Plan Features List */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.95rem;
}

.pricing-features li .material-symbols-outlined {
    color: var(--color-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pricing-features li span:last-child {
    color: var(--color-text);
}

html.dark .pricing-features li span:last-child {
    color: var(--dm-text);
}

/* Plan CTA Button */
.pricing-plan-cta {
    margin-top: auto;
}

.pricing-plan-cta .btn {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-2xl);
    font-weight: 700;
}

.pricing-plan-cta .btn-secondary {
    background: var(--color-bg-secondary);
    color: var(--color-text);
}

.pricing-plan-cta .btn-secondary:hover {
    background: var(--color-border);
}

html.dark .pricing-plan-cta .btn-secondary {
    background: var(--dm-bg);
    color: var(--dm-text);
}

html.dark .pricing-plan-cta .btn-secondary:hover {
    background: var(--dm-border);
}

.pricing-plan-cta .btn-primary {
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

/* === Credit Packs (Redesigned) === */
.pricing-credits-section {
    padding: 4rem 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.pricing-credits-section .section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-credits-section .section-header p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

@media (max-width: 768px) {
    .pricing-credit-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-credit-card {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    transition: transform 0.2s ease;
}

.pricing-credit-card:hover {
    transform: translateY(-4px);
}

html.dark .pricing-credit-card {
    background: var(--dm-surface);
    border-color: var(--dm-border);
}

.credit-banner {
    width: 100%;
    height: 10rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.credit-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.pricing-credit-card .credit-tagline {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

.pricing-credit-card .credit-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.pricing-credit-card .credit-price {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.pricing-credit-card .btn {
    padding: 0.5rem 2rem;
    border-radius: var(--radius-full);
    border: 2px solid rgba(0, 0, 0, 0.06);
    background: transparent;
    font-weight: 600;
}

.pricing-credit-card .btn:hover {
    background: var(--color-bg-secondary);
}

html.dark .pricing-credit-card .btn {
    border-color: var(--dm-border);
    color: var(--dm-text);
}

html.dark .pricing-credit-card .btn:hover {
    background: var(--dm-bg);
}

/* Credit Notes */
.pricing-credit-notes {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.pricing-credit-notes .note-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.pricing-credit-notes .note-item .material-symbols-outlined {
    color: var(--color-success);
    font-size: 1.125rem;
}

/* === Explainer Section (Redesigned) === */
.pricing-explainer-section {
    padding: 4rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-explainer-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-explainer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 600px) {
    .pricing-explainer-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-explainer-card {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

html.dark .pricing-explainer-card {
    background: var(--dm-surface);
    border-color: var(--dm-border);
}

.explainer-icon-box {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.explainer-icon-box.amber {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

html.dark .explainer-icon-box.amber {
    background: rgba(251, 191, 36, 0.15);
}

.explainer-icon-box.indigo {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
}

html.dark .explainer-icon-box.indigo {
    background: rgba(99, 102, 241, 0.15);
}

.explainer-icon-box .material-symbols-outlined {
    font-size: 2rem;
    width: 2rem;
    height: 2rem;
}

.pricing-explainer-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-explainer-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-explainer-card li {
    font-size: 1rem;
    color: var(--color-text-muted);
    padding: 0.375rem 0;
}

html.dark .pricing-explainer-card li {
    color: var(--dm-text-muted);
}

.pricing-explainer-tagline {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
}

/* === Pricing Final CTA === */
.pricing-final-cta {
    text-align: center;
    padding: 4rem 1.5rem 6rem;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-final-cta h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pricing-final-cta p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.pricing-final-cta .btn {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

/* === Steps List (How to Track page) === */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 500px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    font-size: 1.1rem;
}

html.dark .step-item {
    background: var(--dm-surface);
    border-color: var(--dm-border);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(to bottom, var(--brand-coral), var(--brand-lavender));
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.step-item span:last-child {
    color: var(--color-text-muted);
}

html.dark .step-item span:last-child {
    color: var(--dm-text-muted);
}

.step-item strong {
    color: var(--color-text);
}

html.dark .step-item strong {
    color: var(--dm-text);
}