:root {
    --primary-purple: #5A4BDE;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #F5F5F7;
    --bg-white: #FFFFFF;
    --border-color: #E6E6E6;
    --checkmark-green: #008236;
    --header-gray: #F9FAFB;
}

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

body {
    font-family: Arial, "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
}

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

/* Header */
.site-header {
    background: white;
    padding: 16px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    /* Lighter shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: flex-start;
    /* Logo on left */
    align-items: center;
}

.logo-img-link img {
    height: 48px;
    width: auto;
    display: block;
}

/* Hero Section */
.hero {
    background-image: url("images/pricing-head-bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 64px 0;
    /* Matches extracted padding */
    text-align: center;
    position: relative;
    overflow: hidden;
    height: auto;
    /* Let content + padding drive height to match ~240px */
    min-height: 240px;
    display: flex;
    align-items: center;
    /* Vertically center content */
}

.hero .container {
    width: 100%;
    /* Ensure container takes full width for centering */
}

.hero h1 {
    font-size: 48px;
    color: white;
    margin-bottom: 16px;
    /* Adjusted slightly */
    font-weight: 600;
    /* Semi-bold */
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 16px;
    color: #FFFFFF;
    /* Pure white */
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
    /* Regular */
    opacity: 1;
    /* Ensure full visibility */
}

/* Pricing Section */
.pricing-section {
    padding: 60px 0;
    background: white;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    /* Critical for rowspan borders */
    font-family: Arial, sans-serif;
    background: white;
    table-layout: fixed;
    /* Helps with column width control */
}

/* Borders for everything */
.pricing-table th,
.pricing-table td {
    border: 1px solid var(--border-color);
    padding: 16px 12px;
    text-align: center;
    vertical-align: middle;
}

/* Top Header Row */
.header-row-top {
    background-color: var(--header-gray);
}

.pricing-table .empty-header {
    background-color: var(--header-gray);
    /* Or white depending on image */
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    width: 25%;
    /* Combined width of first two cols effectively */
}

.pricing-table .intro-header {
    background-color: var(--header-gray);
    color: var(--text-dark);
    font-weight: bold;
    font-size: 16px;
}

.pricing-table .plan-group-header {
    background-color: var(--header-gray);
    color: var(--text-dark);
    font-weight: bold;
    font-size: 16px;
}

/* Plan Names Row (Price row is inside body now functionally in grid terms, but logically row 2) */
.pricing-table td.price-cell {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
}

.pricing-table td.feature-name {
    text-align: center;
    /* Screenshot shows center, not left */
    color: var(--text-dark);
    font-size: 15px;
    background-color: white;
}

/* Merged Category Column */
.pricing-table .category-col {
    background-color: white;
    /* Screenshot appears white for first col */
    font-weight: bold;
    color: var(--text-dark);
    font-size: 16px;
    vertical-align: middle;
}

/* Specific styling to match screenshot gray background for header areas */
.pricing-table thead th {
    background-color: #F9FAFB;
    /* Very light gray */
}

/* Checkmarks */
.checkmark {
    color: var(--checkmark-green);
    font-weight: bold;
    font-size: 18px;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0 80px;
    background: var(--bg-light);
}

.faq-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 48px;
    color: var(--text-dark);
    font-weight: 600;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.faq-question {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-dark);
    font-size: 16px;
}

.faq-icon {
    font-size: 24px;
    color: black;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 24px;
    background: white;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 24px 20px 24px;
    border-top: 1px solid #f0f0f0;
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.2) 0%, rgba(196, 181, 253, 0.2) 100%);
}

.cta-content {
    text-align: center;
    width: 100%;
    max-width: 1000px;
    /* Increased from 600px to prevent text wrapping */
    margin: 0 auto;
}

.cta-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.cta-content h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 32px;
    font-weight: 600;
    white-space: nowrap;
    /* Force single line */
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-purple);
    color: white;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: #4A3BC8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 75, 222, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-purple);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    border: 1px solid var(--primary-purple);
}

.btn-secondary:hover {
    background: #F5F3FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 75, 222, 0.15);
}

/* Footer */
.footer {
    background: #1E1B4B;
    color: white;
    padding: 24px 0;
    text-align: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
}

/* CTA Section - Redesigned */
/* CTA Section - Final Exact Match */
.cta-section {
    background-image: url("images/color-bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
    /* Extract: 60px */
    text-align: center;
    border-radius: 0;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #1C1B1F;
}

.cta-section .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    /* Increased gap */
}

/* Brand Header in CTA */
.cta-brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.cta-full-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* CTA Heading */
.cta-section h2 {
    font-size: 36px;
    font-weight: 500;
    color: #333333;
    line-height: 48px;
    margin: 0;
    max-width: 1000px;
    white-space: nowrap;
    background: none;
    -webkit-text-fill-color: initial;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 4px;
    /* Increased spacing to 4px */
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    /* Adjusted position downwards */
}

.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #5A4BDE;
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    /* Pill shape */
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 52px;
    box-sizing: border-box;
    cursor: pointer;
}

.btn-primary-cta:hover {
    background-color: #4a3dc4;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 75, 222, 0.2);
}

.btn-outline-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #1C1B1F;
    border: 1px solid #5A4BDE;
    border-radius: 9999px;
    /* Pill shape */
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 52px;
    box-sizing: border-box;
    cursor: pointer;
}

.btn-outline-cta:hover {
    background-color: rgba(90, 75, 222, 0.05);
    color: #1C1B1F;
}

.icon-circle-arrow {
    margin-left: 8px;
    width: 20px;
    height: 20px;
    display: block;
}

/* Media Queries */
@media (max-width: 768px) {
    .pricing-table {
        font-size: 12px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 8px 4px;
    }

    .cta-section h2 {
        white-space: normal;
        font-size: 28px;
        padding: 0 20px;
        line-height: 1.4;
        margin-bottom: 32px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .btn-primary-cta,
    .btn-outline-cta {
        width: 80%;
        max-width: 320px;
    }
}