/* --- Variables & Reset --- */
:root {
    --primary-color: #10B981; /* Green CTA button color */
    --primary-hover: #059669;
    --icon-bg-color: #0053E5; /* Blue icon background color */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

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

.bg-light {
    background-color: var(--bg-light);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

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

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

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

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

.btn-text {
    color: var(--text-light);
    margin-left: 15px;
}

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

/* --- Hero Section --- */
.hero {
    padding: 80px 0 0;
    background: linear-gradient(to bottom, #fff, #f4f4f4);
}

.hero-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    padding-right: 40px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    max-height: 500px;
}

.social-proof {
    margin-top: 30px;
    padding-bottom: 40px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.stars {
    color: #ffb400;
    margin-bottom: 5px;
}

/* --- Common Components --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.orange-box-icon {
    width: 40px;
    height: 40px;
    background: var(--icon-bg-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* --- Split Layout (Operations, Testimonials) --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.split-layout > div {
    flex: 1;
}

.split-layout h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.check-list {
    margin-top: 20px;
}

.check-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.image-content img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Features (Alternating) --- */
.feature-row {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    gap: 50px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-row > div {
    flex: 1;
}

.icon-label {
    width: 40px;
    height: 40px;
    background: var(--icon-bg-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 15px;
}

.ui-mockup {
    background: #f0f2f5;
    height: 300px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #a0a0a0;
    font-size: 3rem;
    border: 1px solid #e1e1e1;
}

.ui-mockup span {
    font-size: 1rem;
    margin-top: 10px;
}

/* --- Mobile App --- */
.app-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.phone-mockup {
    width: 250px;
    height: 500px;
    border: 10px solid #333;
    border-radius: 35px;
    background: #fff;
    padding: 10px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* To replace the phone mockup image, change the URL below to your screenshot image */
.phone-mockup .screen {
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/230x480/10B981/FFFFFF?text=App+Screenshot') center/cover;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.app-feature h4 {
    margin-bottom: 5px;
}

/* --- Tools Grid --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.tool-card i {
    font-size: 2rem;
    color: var(--icon-bg-color);
    margin-bottom: 15px;
}

/* --- Pricing --- */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.toggle-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.discount-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 5px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

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

input:checked + .slider:before {
    transform: translateX(24px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: center;
}

.price-card {
    border: 1px solid #e0e0e0;
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    background: white;
    position: relative;
}

.price-card.popular {
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15);
    transform: scale(1.05);
    z-index: 10;
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 20px 0 10px;
    color: var(--text-color);
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: normal;
}

.billing-info {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
    min-height: 20px;
}

.price-card ul {
    margin-bottom: 30px;
    text-align: left;
}

.price-card ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- FAQ --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

details {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

summary {
    font-weight: 600;
    cursor: pointer;
    font-size: 1.1rem;
    list-style: none; /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: '+';
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
}

details[open] summary::after {
    content: '-';
}

details p {
    margin-top: 15px;
    color: var(--text-light);
}

/* --- CTA Banner --- */
.cta-banner {
    background: #f0f0f0;
}

/* --- Author styling for testimonial --- */
.author {
    font-style: italic;
}

/* ================================
   RESPONSIVE DESIGN (Media Queries)
   ================================ */

/* Tablet (max-width 1024px) */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .price-card.popular {
        transform: scale(1);
    }

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

/* Mobile (max-width 768px) */
@media (max-width: 768px) {
    /* Hero */
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-text {
        margin-left: 0;
    }

    /* Sections Layouts */
    .split-layout, .feature-row, .feature-row.reverse {
        flex-direction: column;
        text-align: center;
    }

    .check-list li {
        justify-content: center;
    }

    .orange-box-icon, .icon-label {
        margin: 0 auto 20px;
    }

    .app-display {
        flex-direction: column;
    }

    .app-feature {
        text-align: center;
    }

    /* Grids */
    .grid-3, .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .price-card.popular {
        order: -1; /* Show popular first on mobile */
    }
}