/* InMotion Landing Page - V0 Redesign */
/* Preserving existing style guide: #4FA3FF primary, Inter font */

:root {
    --primary: #4FA3FF;
    --primary-dark: #3B8FE6;
    --primary-light: #68B3FF;
    --background: #FAFAFA;
    --foreground: #1A1A1A;
    --muted: #6B7280;
    --border: #E5E7EB;
    --card-bg: #FFFFFF;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

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

/* Header */
header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--foreground);
}

.logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--foreground);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-text {
    color: var(--foreground);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 100%;
    justify-content: center;
}

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

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

.btn-white:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: var(--background);
}

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

.hero-content {
    max-width: 600px;
}

.hero-badge {
    color: var(--primary);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

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

.hero-description {
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.app-placeholder {
    background: white;
    border: 2px solid var(--border);
    border-radius: 2rem;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 9/19;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.app-placeholder p {
    color: var(--muted);
    font-size: 0.875rem;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background: #FAF7F0;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-content {
    padding: 2rem 0;
    order: 2;
}

.feature-visual-area {
    background: #E8E8E8;
    border-radius: 1.5rem;
    padding: 5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    order: 1;
}

/* Alternating pattern - even rows have visual on right */
.feature-row:nth-child(even) .feature-content {
    order: 1;
}

.feature-row:nth-child(even) .feature-visual-area {
    order: 2;
}

.feature-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.feature-badge-small svg {
    width: 20px;
    height: 20px;
}

.feature-row-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--foreground);
}

.feature-row-description {
    font-size: 1.0625rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 540px;
}

.visual-icon-circle {
    width: 96px;
    height: 96px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.visual-label {
    color: #6B7280;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
}

/* Old styles - keeping for backward compatibility */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    background: white;
    padding: 3.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    background: #E8F3FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-details {
    flex: 1;
}

.feature-item-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--foreground);
}

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

.feature-item-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3.5rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-visual-icon {
    background: #F9FAFB;
    border-radius: 1.5rem;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    min-width: 250px;
    min-height: 250px;
}

.feature-visual-icon p {
    color: var(--muted);
    font-size: 0.9375rem;
    text-align: center;
    font-weight: 500;
}

/* Old feature styles - keeping for reference */
.feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 6rem;
}

.feature:last-child {
    margin-bottom: 0;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--foreground);
}

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

.feature-visual {
    background: #F9FAFB;
    border-radius: 1.5rem;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.visual-placeholder {
    text-align: center;
}

.visual-placeholder p {
    color: var(--muted);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: var(--background);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--foreground);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}

.accordion-trigger:hover {
    color: var(--primary);
}

.accordion-item.active .accordion-trigger {
    color: var(--primary);
}

.accordion-icon {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-content p {
    padding: 0 1.5rem 1.5rem;
    color: var(--muted);
    line-height: 1.7;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: white;
}

.testimonials-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--foreground);
}

.testimonial-text {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.testimonial-text:last-child {
    margin-bottom: 0;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--background);
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.pricing-card.featured {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 20px 40px rgba(79, 163, 255, 0.3);
}

.popular-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price span {
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.7;
}

.plan-credits {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.pricing-card.featured .plan-credits {
    color: white;
}

.pricing-card:not(.featured) .plan-credits {
    color: var(--primary);
}

.plan-credits-sub {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

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

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.plan-features svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.pricing-card:not(.featured) .plan-features {
    color: var(--muted);
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: var(--primary);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background: #1F2937;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.footer-links-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

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

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #9CA3AF;
    transition: color 0.2s;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #9CA3AF;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr 1fr;
    }

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

    .feature-row {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    /* Reset orders for desktop side-by-side layout */
    .feature-content {
        order: 1;
    }

    .feature-visual-area {
        order: 2;
    }

    /* Even rows swap order on desktop too */
    .feature-row:nth-child(even) .feature-content {
        order: 2;
    }

    .feature-row:nth-child(even) .feature-visual-area {
        order: 1;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature {
        grid-template-columns: 1fr 1fr;
    }

    .feature-reverse {
        direction: rtl;
    }

    .feature-reverse > * {
        direction: ltr;
    }

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

    .footer-content {
        grid-template-columns: 1fr 2fr;
    }

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

@media (max-width: 767px) {
    /* Header mobile optimization */
    header {
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo img {
        width: 48px;
        height: 48px;
    }

    .nav-links {
        display: none !important;
    }

    .btn-text {
        font-size: 0.875rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    /* Hero mobile optimization */
    .hero {
        padding: 2rem 0;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

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

    .hero-badge {
        font-size: 0.8125rem;
    }

    .hero .btn-lg {
        margin: 0 auto;
    }

    .app-placeholder {
        max-width: 280px;
        aspect-ratio: 9/19;
    }

    /* Feature rows mobile optimization */
    .how-it-works {
        padding: 3rem 0;
    }

    .feature-row {
        gap: 2rem;
        margin-bottom: 3rem;
        display: flex;
        flex-direction: column;
    }

    /* Force text to always appear first on mobile */
    .feature-content {
        padding: 1rem 0;
        order: 1 !important;
        text-align: center;
    }

    .feature-visual-area {
        order: 2 !important;
    }

    .feature-row-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .feature-row-description {
        font-size: 0.9375rem;
        max-width: 100%;
    }

    .feature-badge-small {
        font-size: 0.75rem;
        margin-bottom: 1rem;
        justify-content: center;
    }

    .feature-visual-area {
        padding: 3rem 2rem;
        min-height: 250px;
    }

    .visual-icon-circle {
        width: 72px;
        height: 72px;
    }

    /* FAQ mobile optimization */
    .faq {
        padding: 3rem 0;
    }

    .accordion-trigger {
        padding: 1.25rem;
        font-size: 0.9375rem;
    }

    .accordion-content p {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Testimonials mobile optimization */
    .testimonials {
        padding: 3rem 0;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.9375rem;
    }

    /* Pricing mobile optimization */
    .pricing {
        padding: 3rem 0;
    }

    .pricing-card {
        padding: 2rem;
    }

    .plan-price {
        font-size: 2.5rem;
    }

    .plan-name {
        font-size: 1.25rem;
    }

    /* CTA mobile optimization */
    .cta {
        padding: 3rem 0;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    /* Footer mobile optimization */
    footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        gap: 2rem;
        margin-bottom: 2rem;
    }

    /* Section titles mobile */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    /* Container padding adjustment */
    .container {
        padding: 0 1.25rem;
    }

    /* Legacy styles */
    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-item-title {
        font-size: 1.5rem;
    }

    .feature-title {
        font-size: 1.875rem;
    }
}
