:root {
    /* Brand Colors (Static) */
    --color-primary-start: #06b6d4;
    --color-primary-mid: #8b5cf6;
    --color-primary-end: #f97316;
    --gradient-brand: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-mid), var(--color-primary-end));
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.3), transparent 70%);

    /* Theme Tokens - Dark (Default) */
    --bg: #0f1014;
    --surface: #1e1f24;
    --surface-2: #2a2b30;
    --text: #ffffff;
    --text-muted: #9ba1a6;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.5);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

[data-theme="light"] {
    --bg: #f9fafb;
    --surface: #ffffff;
    --surface-2: #f3f4f6;
    --text: #0b1220;
    --text-muted: #5b677a;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .glass {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 10px 15px -3px var(--shadow);
}

[data-theme="light"] .navbar {
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .logo {
    color: var(--text);
}

/* RTL Support */
[dir="rtl"] {
    --font-family-base: 'Tajawal', sans-serif;
}

[dir="rtl"] body {
    font-family: var(--font-family-base);
}

/* [dir="rtl"] .nav-links strong {} */

/* Common Flip Logic for RTL */
[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

/* [dir="rtl"] .amount::after {} */

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

[data-theme="light"] ::selection {
    background: var(--color-primary-start);
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-toggle {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-toggle:hover {
    background: var(--border);
    transform: translateY(-2px);
}

/* .btn-primary remains unchanged as it uses brand gradients */

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

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

.btn-ghost:hover {
    background: var(--surface-2);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-xl {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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

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

.logo-img {
    height: clamp(32px, 5vw, 48px);
    max-height: 48px;
    width: auto;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    position: relative;
    text-align: center;
}

.glow-bg {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 800px;
    background: var(--gradient-glow);
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

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

.email-input-wrapper {
    display: flex;
    gap: 1rem;
    background: var(--surface-2);
    padding: 5px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.email-input {
    background: transparent;
    border: none;
    padding: 0 1rem;
    color: var(--text);
    font-size: 1.1rem;
    width: 300px;
    font-family: inherit;
}

.email-input:focus {
    outline: none;
}

.cta-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    margin-top: 2rem;
    perspective: 1000px;
}

.visual-card {
    border-radius: var(--radius-lg);
    padding: 10px;
    position: relative;
    transform: rotateX(5deg) scale(0.95);
    transition: transform 0.5s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.visual-card:hover {
    transform: rotateX(0deg) scale(1);
}

.dashboard-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
}

.floating-badge {
    position: absolute;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

.badge-1 {
    top: 20%;
    right: -20px;
    background: var(--surface);
    border: 1px solid var(--border);
    animation-delay: 0s;
}

.badge-2 {
    bottom: 30%;
    left: -20px;
    background: var(--surface);
    border: 1px solid var(--border);
    animation-delay: 1.5s;
}

.icon-success {
    color: #10b981;
}

.icon-info {
    color: #3b82f6;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Social Proof */
.social-proof {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    /* or var(--surface-2) */
}

.proof-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.partner-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text);
}

/* Features */
.features {
    padding: var(--spacing-xl) 0;
}

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

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
}

.icon-tasks {
    color: #f97316;
}

.icon-docs {
    color: #06b6d4;
}

.icon-goals {
    color: #8b5cf6;
}

.icon-chat {
    color: #ec4899;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}


/* How It Works */
.how-it-works {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    position: relative;
}

/* Connecting line (desktop only) */
@media (min-width: 900px) {
    .steps-grid::before {
        content: '';
        position: absolute;
        top: 30px;
        left: 0;
        width: 100%;
        height: 2px;
        background: radial-gradient(circle, var(--color-primary-mid) 0%, rgba(255, 255, 255, 0.1) 100%);
        z-index: 0;
        opacity: 0.5;
    }
}

.step-card {
    position: relative;
    z-index: 1;
    background: var(--bg);
    padding: 1rem;
    padding-top: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--text-muted);
}

/* Testimonials */
.testimonials {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.02) 50%, transparent);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #fbbf24;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.quote {
    font-size: 1.1rem;
    color: var(--text);
    opacity: 0.9;
    margin-bottom: 2rem;
    font-style: italic;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--text);
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* FAQ */
.faq {
    padding: var(--spacing-xl) 0;
}

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

.faq-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--surface-2);
}

.faq-answer p {
    padding: 1.5rem 2rem;
    color: var(--text-muted);
    font-size: 1rem;
}


.cta-banner {
    padding: 4rem 0;
    text-align: center;
}

.cta-card {
    padding: 5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)),
        url('data:image/svg+xml;base64,...');
    /* Noise texture could go here */
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.cta-card h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

/* Footer */
.main-footer {
    padding: 5rem 0 2rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links-list a:hover {
    color: var(--color-primary-start);
}

.contact-col p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-col span {
    font-weight: 600;
    color: var(--text);
}

.contact-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-link:hover {
    color: var(--color-primary-start);
}

.contact-text.highlight {
    font-size: 1.1rem;
    color: var(--text);
    margin-top: 1rem;
    font-weight: 500;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--text);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.2s;
}

.footer-social a:hover {
    color: var(--text);
    transform: translateY(-2px);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-bottom-bar {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* RTL Support for Footer */
[dir="rtl"] .footer-links-list {
    padding-right: 0;
}

[dir="rtl"] .footer-bottom-bar {
    flex-direction: row;
}

@media (max-width: 768px) {
    [dir="rtl"] .footer-bottom-bar {
        flex-direction: column-reverse;
        align-items: flex-start;
        /* In RTL flex-start is right, which is what we want for alignment usually, 
           or center if mobile design dictates. Left align (start) is standard. */
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .email-input-wrapper {
        flex-direction: column;
        width: 100%;
        border: none;
        background: none;
        gap: 1rem;
    }

    .email-input {
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        padding: 1rem;
        border-radius: var(--radius-sm);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .btn-lg {
        width: 100%;
    }

    .floating-badge {
        display: none;
        /* Hide floating elements on mobile to prevent clutter */
    }
}

/* --- New Page Styles --- */

/* Page Headers */
.page-header {
    padding: 150px 0 30px;
}

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

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Pricing Toggle */
.pricing-toggle-container {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.toggle-label {
    font-weight: 600;
    font-size: 1.1rem;
}

.badge-save {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 5px;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--surface-2);
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--color-primary-mid);
    /* Purple brand color */
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--color-primary-mid);
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Pricing Cards */
.pricing-section {
    padding: 50px 0 100px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pricing-footnote {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.pricing-card {
    padding: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
    background: var(--surface-2);
}

.pricing-card.popular {
    border: 1px solid var(--color-primary-mid);
    background: rgba(139, 92, 246, 0.05);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary-mid);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

.price {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.price .currency {
    font-size: 1.1rem;
    vertical-align: top;
    margin-right: 4px;
    font-weight: 600;
}

.price .amount {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

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

.savings-text {
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 600;
    margin-bottom: 2rem;
    min-height: 1.5em;
}

.savings-text.hidden {
    opacity: 0;
}

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

.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.features-list i {
    color: var(--color-primary-start);
    /* Cyan checkmarks */
}

/* Sub-features styling */
.features-list .feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.features-list .feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.sub-features {
    list-style: none;
    margin-left: 2rem;
    padding-left: 0;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sub-features li {
    margin-bottom: 0.25rem;
    display: list-item;
    list-style-type: disc;
    padding-left: 0.25rem;
}

.full-width {
    width: 100%;
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    padding: 50px 0;
}

.contact-info,
.contact-form {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.info-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-primary-end);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-field {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: var(--color-primary-mid);
}

/* Feature Details */
.feature-detail {
    padding: 80px 0;
}

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

.feature-detail.reverse .split-layout {
    direction: rtl;
    /* Simple way to flip for reverse sections */
}

.feature-detail.reverse .feature-text {
    direction: ltr;
    /* Reset text direction */
}

.feature-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.placeholder-ui {
    height: 300px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
}

.feature-image {
    padding: 10px;
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {

    .pricing-grid,
    .contact-container,
    .split-layout {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .contact-container {
        padding: 20px 0;
    }

    .feature-detail.reverse .split-layout {
        direction: ltr;
    }
}

/* --- About Us Page Styles --- */
.content-section {
    padding: 50px 0 100px;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.text-block {
    padding: 2.5rem;
    border-radius: var(--radius-md);
}

.text-block h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.text-block p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.highlight-section {
    text-align: center;
    margin-bottom: 5rem;
}

.highlight-section .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.features-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: var(--surface-2);
}

.feature-item i {
    font-size: 2rem;
    color: var(--color-primary-start);
}

.feature-item span {
    font-weight: 500;
}

.summary-text {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 500;
}

.approach-section {
    margin-bottom: 5rem;
}

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

.approach-card {
    padding: 2.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.approach-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.approach-card p {
    color: var(--text-muted);
}

.styled-list {
    list-style: none;
}

.styled-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.styled-list i {
    color: #10b981;
}

.highlight-bg {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--border);
}

@media (max-width: 900px) {

    .grid-2-col,
    .approach-grid {
        grid-template-columns: 1fr;
    }
}

/* Sales Contact Widgets */
.sales-contact-widgets {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

/* Icon button base */
.contact-widget {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.contact-widget:focus {
    outline: 3px solid var(--color-primary-start);
    outline-offset: 4px;
}

/* Specific colours */
.contact-widget.whatsapp {
    background: #25D366;
    /* Official WhatsApp green */
}

.contact-widget.phone {
    background: var(--color-primary-end);
    /* Brand purple/blue instead of text color */
}

/* Responsive adjustments – keep icons same size on mobile */
@media (max-width: 768px) {
    .sales-contact-widgets {
        bottom: 20px;
        right: 20px;
    }
}

/* Additional RTL Support */
[dir="rtl"] .sub-features {
    margin-left: 0;
    margin-right: 2rem;
    padding-left: 0;
    padding-right: 0;
}

[dir="rtl"] .sub-features li {
    padding-left: 0;
    padding-right: 0.25rem;
}

[dir="rtl"] .badge-save {
    margin-left: 0;
    margin-right: 5px;
}

[dir="rtl"] .price .currency {
    margin-right: 0;
    margin-left: 4px;
}

[dir="rtl"] .price .period {
    margin-left: 0;
    margin-right: 5px;
}

[dir="rtl"] .sales-contact-widgets {
    right: auto;
    left: 30px;
}

/* Fix for Reverse Feature Section overlap in RTL */
[dir="rtl"] .feature-detail.reverse .split-layout {
    direction: ltr;
    /* Flip the grid direction for reverse layout in RTL */
}

[dir="rtl"] .feature-detail.reverse .feature-text {
    direction: rtl;
    /* Ensure text remains RTL */
}

/* Badge Positioning Flip */
[dir="rtl"] .badge-1 {
    right: auto;
    left: -20px;
}

[dir="rtl"] .badge-2 {
    left: auto;
    right: -20px;
}

[dir="rtl"] .slider:before {
    left: auto;
    right: 4px;
}

[dir="rtl"] input:checked+.slider:before {
    transform: translateX(-26px);
}

[dir="rtl"] .faq-question {
    text-align: right;
}

[dir="rtl"] .faq-question i {
    margin-left: 0;
    /* Reset if any */
}

/* Connecting line flip for How It Works */
@media (min-width: 900px) {
    [dir="rtl"] .steps-grid::before {
        left: auto;
        right: 0;
    }
}