/* MotoFlow Landing Page Styles - Isolated and Scoped */

/* Page-level overrides for wider layout - applied via body class */
body.motoflow-page .main {
    max-width: 1200px !important;
}

body.motoflow-page .post-content {
    max-width: 1200px !important;
}

/* Hide Hugo-generated elements for landing page */
body.motoflow-page .post-header,
body.motoflow-page .post-title,
body.motoflow-page .post-description {
    display: none !important;
}

/* Hero Section */
.motoflow-page .motoflow-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    margin: 2rem 0 0 0;
}

.motoflow-page .hero-brand {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
}

.motoflow-page .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    font-weight: 800;
}

.motoflow-page .hero-subtitle {
    font-size: 1.25rem;
    margin: 1rem 0;
    color: var(--secondary);
}

.motoflow-page .hero-tagline {
    font-size: 1.1rem;
    margin: 1.5rem 0;
    font-weight: 500;
}

.motoflow-page .hero-image {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.motoflow-page .hero-image img {
    max-width: 90%;
    width: auto;
    height: auto;
    max-height: 550px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

/* Platform Grid - Mac full width, then iPhone/Watch side-by-side */
.motoflow-page .platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

/* Mac spans full width on first row */
.motoflow-page .platform-card:nth-child(1) {
    grid-column: 1 / -1;
}

.motoflow-page .platform-card {
    background: var(--entry);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.motoflow-page .platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.motoflow-page .platform-card h3 {
    margin: 0 0 0.5rem 0;
}

.motoflow-page .platform-subtitle {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

/* Carousel is now the platform-screenshot */
.motoflow-page .platform-screenshot.carousel {
    margin: 1.5rem 0;
    position: relative;
    min-height: 250px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.motoflow-page .carousel-track {
    position: relative;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 2.5rem;
}

.motoflow-page .carousel-track img {
    display: none;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    margin: 0 auto;
}

/* Mac carousel larger dimensions - now first child */
.motoflow-page .platform-card:nth-child(1) .carousel.platform-screenshot {
    min-height: 450px;
}

.motoflow-page .platform-card:nth-child(1) .carousel-track {
    max-width: 600px;
}

.motoflow-page .platform-card:nth-child(1) .carousel-track img {
    max-height: 600px;
}

.motoflow-page .carousel-track img.active {
    display: block;
}

/* Carousel Navigation Buttons */
.motoflow-page .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.6);
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.7;
}

.motoflow-page .carousel-btn:hover {
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.motoflow-page .carousel-prev {
    left: 1rem;
}

.motoflow-page .carousel-next {
    right: 1rem;
}

/* Carousel Dots */
.motoflow-page .carousel-dots {
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.motoflow-page .carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.motoflow-page .carousel-dot.active {
    background: var(--primary);
}

.motoflow-page .carousel-dot:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Legacy support for non-carousel images */
.motoflow-page .platform-screenshot img:not(.carousel-track img) {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

@media (prefers-color-scheme: dark) {
    .motoflow-page .platform-screenshot.carousel {
        background: rgba(255, 255, 255, 0.03);
    }
}

.motoflow-page .platform-card ul {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 1.5rem auto 0;
    padding-left: 0;
}

.motoflow-page .platform-card ul li {
    margin: 0.75rem 0;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
}

.motoflow-page .platform-card ul li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Features Hero Section - Two Column Layout */
.motoflow-page .features-hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 2rem 0 3rem 0;
}

.motoflow-page .features-hero-image {
    text-align: center;
}

.motoflow-page .features-hero-image img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

.motoflow-page .features-highlighted {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.motoflow-page .features-highlighted .feature-item {
    background: var(--entry);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.motoflow-page .features-highlighted .feature-item:hover {
    transform: translateY(-3px);
}

.motoflow-page .features-highlighted .feature-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.motoflow-page .features-highlighted .feature-item p {
    margin: 0;
    color: var(--secondary);
}

/* Features Grid */
.motoflow-page .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.motoflow-page .feature-item {
    background: var(--entry);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.motoflow-page .feature-item:hover {
    transform: translateY(-3px);
}

.motoflow-page .feature-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.motoflow-page .feature-item p {
    margin: 0;
    color: var(--secondary);
}

/* How It Works */
.motoflow-page .how-it-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.motoflow-page .step {
    text-align: center;
}

.motoflow-page .step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: var(--theme);
    border: 3px solid var(--border);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.motoflow-page .step h3 {
    margin: 1rem 0 0.5rem 0;
}

/* Pricing Section */
.motoflow-page .pricing-section {
    text-align: center;
    margin: 3rem 0;
}

.motoflow-page .pricing-intro {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.motoflow-page .pricing-description {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.motoflow-page .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.motoflow-page .pricing-card {
    background: var(--entry);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.motoflow-page .pricing-card:hover {
    transform: translateY(-5px);
}

.motoflow-page .pricing-card.pro {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.motoflow-page .pricing-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.motoflow-page .price {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
    color: var(--primary);
}

.motoflow-page .price-note {
    font-size: 1.5rem;
    vertical-align: super;
}

.motoflow-page .price-disclaimer {
    font-size: 0.85rem;
    color: var(--secondary);
    margin: 1rem 0 0 0;
    font-style: italic;
}

.motoflow-page .pricing-card ul {
    text-align: left;
    margin-top: 1.5rem;
}

.motoflow-page .pricing-card ul li {
    margin: 0.75rem 0;
    padding-left: 0.5rem;
}

/* Philosophy Section */
.motoflow-page .philosophy-section {
    max-width: 800px;
    margin: 3rem auto;
    text-align: center;
}

.motoflow-page .philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.motoflow-page .philosophy-item {
    background: var(--entry);
    padding: 1.5rem;
    border-radius: 8px;
}

.motoflow-page .philosophy-footer {
    margin-top: 2rem;
    color: var(--secondary);
}

/* FAQ Section */
.motoflow-page .faq-section {
    max-width: 800px;
    margin: 3rem auto;
}

.motoflow-page .faq-item {
    background: var(--entry);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.motoflow-page .faq-item h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.motoflow-page .faq-item p {
    margin-bottom: 0;
    color: var(--secondary);
}

/* Requirements Grid */
.motoflow-page .requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.motoflow-page .requirement-card {
    background: var(--entry);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.motoflow-page .requirement-card h4 {
    margin-top: 0;
}

.motoflow-page .requirement-card ul {
    text-align: left;
    margin-top: 1rem;
}

/* CTA Sections */
.motoflow-page .cta-hero,
.motoflow-page .cta-section,
.motoflow-page .cta-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.motoflow-page .cta-hero {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.motoflow-page .cta-section {
    margin: 2.5rem 0;
}

.motoflow-page .cta-footer {
    margin: 3rem 0 3.5rem 0;
}

.motoflow-page .cta-hero a,
.motoflow-page .cta-section a,
.motoflow-page .cta-footer a {
    display: inline-block;
    transition: transform 0.2s ease;
    box-shadow: none !important;
}

.motoflow-page .cta-hero a:hover,
.motoflow-page .cta-section a:hover,
.motoflow-page .cta-footer a:hover {
    transform: scale(1.03);
}

.motoflow-page .cta-hero img,
.motoflow-page .cta-section img,
.motoflow-page .cta-footer img {
    vertical-align: middle;
}

/* Footer Links */
.motoflow-page .footer-links {
    text-align: center;
    margin-top: 2rem;
}

/* Final CTA Section */
.motoflow-page .final-cta-section {
    text-align: center;
}

.motoflow-page .tagline {
    text-align: center;
    font-size: 1.3rem;
    color: var(--secondary);
    margin: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .motoflow-page .motoflow-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .motoflow-page .hero-brand {
        font-size: 1.5rem;
    }

    .motoflow-page .hero-content h1 {
        font-size: 2rem;
    }

    .motoflow-page .features-hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .motoflow-page .features-highlighted {
        grid-template-columns: 1fr;
    }

    .motoflow-page .hero-subtitle {
        font-size: 1.1rem;
    }

    .motoflow-page .platform-grid {
        grid-template-columns: 1fr;
    }

    .motoflow-page .platform-card:nth-child(1) {
        grid-column: 1;
    }

    .motoflow-page .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .motoflow-page .how-it-works {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .motoflow-page .pricing-grid {
        grid-template-columns: 1fr;
    }

    .motoflow-page .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .motoflow-page .cta-hero img,
    .motoflow-page .cta-section img,
    .motoflow-page .cta-footer img {
        height: 48px;
    }
}

