@charset "UTF-8";
@import "./common.css";

/* ── Hero ─────────────────────────────────────────────────── */
.pricing-hero {
    position: relative;
    overflow: hidden;
    padding-bottom: 4rem;
    text-align: center;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at 50% 30%, rgba(10, 173, 149, 0.13) 0%, transparent 65%);
    pointer-events: none;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 20%, transparent 100%);
    pointer-events: none;
}

.pricing-hero .container { position: relative; z-index: 1; }

.pricing-hero h1 {
    letter-spacing: -0.02em;
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
}

.pricing-hero p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.pricing-trust {
    font-size: 0.85rem;
    margin-top: 1.25rem;
}



/* ── Plan Cards ────────────────────────────────────────────── */
.pricing-section {
    background: var(--bg-main);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 991px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

.plan-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.plan-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.plan-card.plan-featured {
    border-color: var(--accent-primary);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 1px var(--accent-primary), 0 16px 48px rgba(10, 173, 149, 0.12);
}

.plan-card.plan-featured:hover {
    box-shadow: 0 0 0 1px var(--accent-primary), 0 20px 60px rgba(10, 173, 149, 0.18);
}


.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--badge-color, var(--accent-primary));
    background: color-mix(in srgb, var(--badge-color, var(--accent-primary)) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--badge-color, var(--accent-primary)) 25%, transparent);
    border-radius: 99px;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1.25rem;
}

.plan-badge-placeholder {
    height: 28px; /* keeps height even when no badge */
    margin-bottom: 1.25rem;
    visibility: hidden;
}

.plan-name {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.plan-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    min-height: 2.5em;
}

/* Price display */
.plan-price {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.plan-amount {
    display: flex;
    align-items: flex-start;
    gap: 0.15rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.plan-currency {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 0.3rem;
}

.plan-number {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-main);
}

.plan-period {
    font-size: 0.8rem;
    color: var(--text-muted);
    align-self: flex-end;
    padding-bottom: 0.5rem;
}

.plan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.plan-meta-chip {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.2rem 0.6rem;
}

.plan-card.plan-featured .plan-meta-chip {
    border-color: rgba(10, 173, 149, 0.2);
    color: var(--accent-primary);
    background: rgba(10, 173, 149, 0.06);
}

/* Features list */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(var(--border-color), 0.5);
}

.plan-features li:last-child { border-bottom: none; }

.plan-features li .feat-icon {
    flex-shrink: 0;
    width: 16px;
    margin-top: 0.1rem;
    font-size: 0.75rem;
}

.feat-check { color: var(--accent-primary); }
.feat-cross  { color: var(--text-muted); opacity: 0.5; }

.plan-features li.feat-missing { opacity: 0.45; }

/* CTA button fills bottom */
.plan-cta {
    margin-top: auto;
    display: block;
    text-align: center;
}

/* ── Enterprise Section ────────────────────────────────────── */
.enterprise-section {
    background: var(--bg-elevated);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Background glow */
.enterprise-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(140, 59, 46, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.enterprise-wrap {
    position: relative;
}

.enterprise-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-secondary);
    background: rgba(140, 59, 46, 0.08);
    border: 1px solid rgba(140, 59, 46, 0.2);
    border-radius: 99px;
    padding: 0.3rem 0.85rem;
    margin-bottom: 1.25rem;
}

.enterprise-cta-box {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: transform 0.3s ease;
}

.enterprise-cta-box:hover {
    transform: translateY(-5px);
}

.enterprise-price-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.enterprise-price-value {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
    line-height: 1.1;
}

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

@media (max-width: 991px) {
    .enterprise-section { text-align: center; }
    .enterprise-section .d-flex { justify-content: center; }
}

/* ── Feature Comparison Table ──────────────────────────────── */
.compare-section {
    background: var(--bg-elevated);
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 24px 24px;
}

.compare-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.compare-toggle-btn {
    border: none;
    background: none;
    font-family: var(--font-title);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.compare-toggle-btn.active {
    color: var(--text-main);
    background: var(--bg-main);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
}

.col-feature-name { width: 32%; }
.col-plan-tier    { width: 17%; }

.compare-table th,
.compare-table td {
    padding: 0.9rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.compare-table thead th {
    background: var(--bg-elevated);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
}

.compare-table thead th.col-featured {
    color: var(--accent-primary);
    background: rgba(10, 173, 149, 0.04);
    border-left: 2px solid rgba(10, 173, 149, 0.3);
    border-right: 2px solid rgba(10, 173, 149, 0.3);
}

.compare-table thead th.col-enterprise {
    color: var(--accent-secondary);
}

.compare-table .group-row td {
    background: var(--bg-elevated);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.compare-table td { color: var(--text-secondary); }

.compare-table td.col-featured {
    background: rgba(10, 173, 149, 0.02);
    border-left: 2px solid rgba(10, 173, 149, 0.15);
    border-right: 2px solid rgba(10, 173, 149, 0.15);
    font-weight: 600;
    color: var(--text-main);
}

.compare-table td:not(:first-child),
.compare-table th:not(:first-child) {
    text-align: center;
}

.check-yes { color: var(--accent-primary); font-size: 0.9rem; }
.check-no  { color: var(--border-color);   font-size: 0.85rem; }

@media (max-width: 767px) {
    .compare-table { display: none; }
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-section { background: var(--bg-main); }

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

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.35rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-family: var(--font-title);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.faq-question:hover { color: var(--accent-primary); }

.faq-question i {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.2s ease;
}

.faq-item.open .faq-question { color: var(--accent-primary); }
.faq-item.open .faq-question i {
    transform: rotate(45deg);
    color: var(--accent-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    padding-bottom: 1.25rem;
    margin: 0;
}

/* ── Agency Section ─────────────────────────────────────────── */
.agency-section {
    background: var(--bg-elevated);
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 24px 24px;
}

.agency-header {
    max-width: 600px;
}

/* Gradient discount tiers */
.discount-track {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-main);
}

.discount-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
    position: relative;
}

.discount-row:last-child { border-bottom: none; }

.discount-row:hover { background: var(--bg-elevated); }

.discount-clients {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.discount-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.discount-badge {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.discount-bar-wrap {
    height: 6px;
    background: var(--border-color);
    border-radius: 99px;
    overflow: hidden;
}

.discount-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary) 0%, #52d3bb 100%);
    border-radius: 99px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: var(--progress, 0%);
}

/* Color progression for discount badges */
.discount-row:nth-child(1) .discount-badge { color: var(--text-muted); }
.discount-row:nth-child(2) .discount-badge { color: color-mix(in srgb, var(--accent-primary) 60%, var(--text-secondary)); }
.discount-row:nth-child(3) .discount-badge { color: color-mix(in srgb, var(--accent-primary) 80%, var(--text-secondary)); }
.discount-row:nth-child(4) .discount-badge { color: var(--accent-primary); }
.discount-row:nth-child(5) .discount-badge { color: var(--accent-primary); }

.agency-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.agency-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.agency-features-list li::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-primary);
    margin-top: 0.55rem;
    flex-shrink: 0;
}

/* ── Enterprise Modal ───────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 520px;
    width: 100%;
    position: relative;
    transform: translateY(16px);
    transition: transform 0.3s ease;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
}

.modal-overlay.open .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-elevated);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-main);
}

.modal-title {
    font-family: var(--font-title);
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.4rem;
}

.modal-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.modal-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }

.form-label {
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}

.form-input,
.form-textarea {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    width: 100%;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(10, 173, 149, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
}

.modal-trust {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* ── Final CTA ──────────────────────────────────────────────── */
.pricing-cta {
    position: relative;
    overflow: hidden;
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.pricing-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 120%, rgba(10, 173, 149, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-cta .container { position: relative; z-index: 1; }



/* Dark mode */
@media (prefers-color-scheme: dark) {
    .plan-card.plan-featured {
        background: color-mix(in srgb, var(--accent-primary) 4%, var(--bg-elevated));
    }
    .compare-table thead th.col-featured {
        background: rgba(10, 173, 149, 0.06);
    }
}

@media (max-width: 767px) {
    .pricing-hero h1 { font-size: 2.2rem !important; }
    .enterprise-card { padding: 1.75rem; }
    .discount-row { grid-template-columns: 1fr 70px; }
    .discount-row .discount-bar-wrap { display: none; }
}

@media (max-width: 575px) {
    .pricing-hero h1 { font-size: 1.85rem !important; }
}
.delay-150 { transition-delay: 150ms; }
