.pricing-section {
    background: var(--bg-surface-gradient);
    padding-top: 6rem;
    padding-bottom: 6rem;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    position: relative;
}

@media (min-width: 640px) {
    .pricing-section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3.5rem;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.pricing-card {
    position: relative;
    border-radius: 1.5rem;
    background-color: #ffffff;
    border: 1px solid var(--hairline);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

@media (min-width: 640px) {
    .pricing-card {
        padding: 2rem;
    }
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -12px rgba(32, 33, 36, 0.12);
}

/* Google Color Glow Border for Highlighted Tier */
.google-glow {
    position: relative;
    background: #ffffff;
    z-index: 0;
}

.google-glow::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(
        from 120deg,
        #4285f4,
        #34a853,
        #fbbc05,
        #ea4335,
        #4285f4
    );
    z-index: -1;
    opacity: 0.9;
    filter: blur(6px);
}

/* Pricing Tier Badges - Rounded Container with Google Theme Colors & Dim-Changing Glow */
.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.85rem;
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
    background: #ffffff;
    border: 1.5px solid #4285f4;
    color: var(--ink) !important;
    width: fit-content;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.15);
    animation: google-badge-multicolor-glow 3.2s ease-in-out infinite;
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.pricing-badge.text-soft,
.pricing-badge.text-primary {
    color: var(--ink) !important;
}

.pricing-badge:hover {
    transform: translateY(-1px) scale(1.03);
}

.pricing-badge-dot {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    background: #4285f4;
    animation: google-badge-dot-cycle 3.2s ease-in-out infinite;
}

/* Staggered offsets across tiers for coordinated wave */
.pricing-badge[data-tier="1"],
.pricing-badge[data-tier="1"] .pricing-badge-dot {
    animation-delay: 0s;
}

.pricing-badge[data-tier="2"],
.pricing-badge[data-tier="2"] .pricing-badge-dot {
    animation-delay: -1.06s;
}

.pricing-badge[data-tier="3"],
.pricing-badge[data-tier="3"] .pricing-badge-dot {
    animation-delay: -2.13s;
}

/* Dynamic Dim-Changing Glow Animation cycling through Google Colors */
@keyframes google-badge-multicolor-glow {
    0%, 100% {
        border-color: #4285f4;
        box-shadow: 0 0 12px rgba(66, 133, 244, 0.45), 0 0 2px rgba(66, 133, 244, 0.3), inset 0 0 6px rgba(66, 133, 244, 0.08);
    }
    12.5% {
        /* Dimming phase transition */
        border-color: rgba(66, 133, 244, 0.35);
        box-shadow: 0 0 4px rgba(66, 133, 244, 0.12), inset 0 0 2px rgba(66, 133, 244, 0.03);
    }
    25% {
        border-color: #ea4335;
        box-shadow: 0 0 12px rgba(234, 67, 53, 0.45), 0 0 2px rgba(234, 67, 53, 0.3), inset 0 0 6px rgba(234, 67, 53, 0.08);
    }
    37.5% {
        /* Dimming phase transition */
        border-color: rgba(234, 67, 53, 0.35);
        box-shadow: 0 0 4px rgba(234, 67, 53, 0.12), inset 0 0 2px rgba(234, 67, 53, 0.03);
    }
    50% {
        border-color: #fbbc05;
        box-shadow: 0 0 12px rgba(251, 188, 5, 0.5), 0 0 2px rgba(251, 188, 5, 0.35), inset 0 0 6px rgba(251, 188, 5, 0.08);
    }
    62.5% {
        /* Dimming phase transition */
        border-color: rgba(251, 188, 5, 0.35);
        box-shadow: 0 0 4px rgba(251, 188, 5, 0.12), inset 0 0 2px rgba(251, 188, 5, 0.03);
    }
    75% {
        border-color: #34a853;
        box-shadow: 0 0 12px rgba(52, 168, 83, 0.45), 0 0 2px rgba(52, 168, 83, 0.3), inset 0 0 6px rgba(52, 168, 83, 0.08);
    }
    87.5% {
        /* Dimming phase transition */
        border-color: rgba(52, 168, 83, 0.35);
        box-shadow: 0 0 4px rgba(52, 168, 83, 0.12), inset 0 0 2px rgba(52, 168, 83, 0.03);
    }
}

@keyframes google-badge-dot-cycle {
    0%, 100% {
        background: #4285f4;
        box-shadow: 0 0 7px rgba(66, 133, 244, 0.75);
        transform: scale(1.1);
    }
    12.5% {
        background: #4285f4;
        box-shadow: 0 0 2px rgba(66, 133, 244, 0.25);
        transform: scale(0.85);
    }
    25% {
        background: #ea4335;
        box-shadow: 0 0 7px rgba(234, 67, 53, 0.75);
        transform: scale(1.1);
    }
    37.5% {
        background: #ea4335;
        box-shadow: 0 0 2px rgba(234, 67, 53, 0.25);
        transform: scale(0.85);
    }
    50% {
        background: #fbbc05;
        box-shadow: 0 0 7px rgba(251, 188, 5, 0.85);
        transform: scale(1.1);
    }
    62.5% {
        background: #fbbc05;
        box-shadow: 0 0 2px rgba(251, 188, 5, 0.25);
        transform: scale(0.85);
    }
    75% {
        background: #34a853;
        box-shadow: 0 0 7px rgba(52, 168, 83, 0.75);
        transform: scale(1.1);
    }
    87.5% {
        background: #34a853;
        box-shadow: 0 0 2px rgba(52, 168, 83, 0.25);
        transform: scale(0.85);
    }
}

.pricing-label {
    font-size: 14px;
    color: var(--soft);
    margin-top: 1rem;
}

.pricing-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.pricing-original-price {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--soft);
    text-decoration: line-through;
    opacity: 0.7;
}

.pricing-amount {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3rem; /* 48px */
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1;
}

.pricing-unit {
    font-size: 14px;
    color: var(--soft);
}

.pricing-features-list {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    list-style: none;
    padding: 0;
    font-size: 14px;
    color: var(--ink);
}

.pricing-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pricing-feature-dot {
    margin-top: 0.45rem;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.btn-pricing-cta {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 9999px;
    padding: 0.75rem 1.25rem;
    transition: all 200ms var(--ease-out);
}

.btn-pricing-primary {
    background-color: var(--ink);
    color: #ffffff !important;
}

.btn-pricing-primary:hover {
    background-color: var(--g-yellow);
    color: var(--ink) !important;
}

.btn-pricing-secondary {
    border: 1px solid var(--hairline);
    background-color: var(--surface);
    color: var(--ink) !important;
}

.btn-pricing-secondary:hover {
    border-color: var(--ink);
    background-color: #ffffff;
}

/* FAQ Accordion Styling */
.faq-section {
    background-color: var(--surface);
    padding-top: 6rem;
    padding-bottom: 6rem;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

@media (min-width: 640px) {
    .faq-section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.faq-accordion-card {
    border-radius: 1rem;
    border: 1px solid var(--hairline);
    background-color: var(--surface);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--hairline);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-display);
    font-size: 16.5px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}

.faq-trigger svg {
    transition: transform 200ms var(--ease-out);
    color: var(--soft);
    flex-shrink: 0;
}

.faq-item.is-open .faq-trigger svg {
    transform: rotate(180deg);
}

.faq-content {
    display: none;
    padding-bottom: 1.25rem;
    font-size: 14.5px;
    line-height: 1.625;
    color: var(--soft);
}

.faq-item.is-open .faq-content {
    display: block;
    animation: faq-reveal 250ms var(--ease-out);
}

@keyframes faq-reveal {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .pricing-section,
    .faq-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .pricing-card {
        padding: 1.35rem 1.15rem;
        border-radius: 1.25rem;
    }

    .pricing-amount {
        font-size: 2.25rem;
    }

    .btn-pricing-cta {
        width: 100%;
        justify-content: center;
    }

    .faq-trigger {
        font-size: 14.5px;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .faq-item {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ==========================================================================
   PRICING COMPARISON TABLE (Specialist vs. Freelancer vs. Agency)
   ========================================================================== */

.pricing-comparison-wrapper {
    margin-top: 5rem;
}

.pricing-comparison-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

.pricing-comparison-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-top: 0.75rem;
}

@media (min-width: 640px) {
    .pricing-comparison-title {
        font-size: 2.15rem;
    }
}

.pricing-comparison-subhead {
    font-size: 15px;
    color: var(--soft);
    margin-top: 0.5rem;
    line-height: 1.55;
}

.comparison-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 1.25rem;
    border: 1px solid var(--hairline);
    background: #ffffff;
    box-shadow: 0 16px 40px -12px rgba(32, 33, 36, 0.08);
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.comparison-table th {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
    border-bottom: 2px solid var(--hairline);
    background: var(--surface);
    vertical-align: bottom;
}

.comparison-table th.col-factor {
    width: 25%;
}

.comparison-table th.col-specialist {
    width: 31%;
}

.comparison-table th.col-freelancer {
    width: 22%;
}

.comparison-table th.col-agency {
    width: 22%;
}

/* Highlighted Column: Google Ads Specialist */
.comparison-table .is-highlighted {
    background: #fffdf5 !important;
    border-left: 2px solid rgba(251, 188, 5, 0.45);
    border-right: 2px solid rgba(251, 188, 5, 0.45);
    position: relative;
}

.comparison-table th.is-highlighted {
    background: #fff9e6 !important;
    border-top: 3px solid #fbbc05;
    border-bottom: 2px solid rgba(251, 188, 5, 0.6);
    color: var(--ink);
}

.specialist-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background: rgba(251, 188, 5, 0.2);
    border: 1px solid rgba(251, 188, 5, 0.5);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #b05c00;
    margin-bottom: 0.4rem;
}

.specialist-header-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #e37400;
    box-shadow: 0 0 6px rgba(227, 116, 0, 0.8);
    animation: badge-pulse 2s infinite ease-in-out;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.comparison-table td {
    padding: 1.15rem 1.5rem;
    font-size: 14px;
    color: var(--soft);
    border-bottom: 1px solid var(--hairline);
    vertical-align: middle;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td.cell-factor {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    font-size: 14.5px;
}

.comparison-table td.cell-specialist {
    color: var(--ink);
    font-weight: 600;
}

.comparison-table td.cell-specialist strong {
    color: var(--ink);
    font-weight: 700;
}

/* Row Hover Zoom-In / Scale-Up Effect */
.comparison-row {
    transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 280ms cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 200ms ease;
    transform-origin: center center;
    position: relative;
    z-index: 1;
}

.comparison-row:hover {
    transform: scale(1.018);
    z-index: 15;
    background-color: #ffffff;
    box-shadow: 0 12px 32px -8px rgba(66, 133, 244, 0.18), 0 2px 10px rgba(251, 188, 5, 0.12);
}

.comparison-row:hover td {
    border-color: transparent;
}

.comparison-row:hover td.is-highlighted {
    background-color: #fff9e6 !important;
}
