/**
 * Native Upgrade page styles (v1.49.0).
 *
 * Palette mirrors the wp-search.ai design system: deep indigo #231a4f,
 * brand purple #372696, brand pink #f877e5. Inline-ish tokens here so the
 * card is readable even if admin themes ship weird overrides.
 */

.ais-upgrade-wrap {
    max-width: 960px;
    margin: 24px auto 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: #231a4f;
}

.ais-upgrade-hero {
    text-align: center;
    padding: 20px 16px 28px;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #f1eefc 0%, #fbeef9 60%, #f9f9f9 100%);
    border-radius: 16px;
}

.ais-upgrade-eyebrow {
    margin: 0 0 8px;
    color: #372696;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.ais-upgrade-title {
    margin: 0 0 10px;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #231a4f;
    letter-spacing: -0.01em;
}

.ais-upgrade-usage {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.5;
}

.ais-upgrade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.ais-upgrade-card {
    position: relative;
    background: #fff;
    border: 1px solid #e6e2f5;
    border-radius: 14px;
    padding: 28px 28px 24px;
    box-shadow: 0 4px 18px rgba(55, 38, 150, 0.06);
    display: flex;
    flex-direction: column;
}

.ais-upgrade-card-pro {
    border-color: #d8d0f3;
    background: linear-gradient(135deg, rgba(55, 38, 150, 0.03), rgba(248, 119, 229, 0.03)), #fff;
}

.ais-upgrade-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 4px 10px;
    background: linear-gradient(135deg, #372696 0%, #f877e5 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(55, 38, 150, 0.2);
}

.ais-upgrade-plan-name {
    margin: 0 0 6px;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #372696;
    font-weight: 700;
}

.ais-upgrade-price {
    margin: 0 0 4px;
}

.ais-upgrade-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: #231a4f;
    line-height: 1;
}

.ais-upgrade-per {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 4px;
}

.ais-upgrade-sub {
    margin: 0 0 16px;
    color: #8a83a1;
    font-size: 0.85rem;
}

.ais-upgrade-bullets {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    flex: 1;
}

.ais-upgrade-bullets li {
    padding: 6px 0 6px 22px;
    color: #231a4f;
    font-size: 0.95rem;
    line-height: 1.45;
    position: relative;
}

.ais-upgrade-bullets li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 13px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #372696 0%, #f877e5 100%);
}

.ais-upgrade-cta-form {
    margin: 0 0 8px;
}

.ais-upgrade-cta {
    display: block;
    width: 100%;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #372696 0%, #f877e5 100%);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(55, 38, 150, 0.2);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.ais-upgrade-cta:hover,
.ais-upgrade-cta:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 26px rgba(55, 38, 150, 0.28);
    color: #fff;
}

.ais-upgrade-microcopy {
    margin: 2px 0 10px;
    text-align: center;
    color: #8a83a1;
    font-size: 0.82rem;
}

.ais-upgrade-alt {
    margin: 0;
    text-align: center;
    font-size: 0.85rem;
}

.ais-upgrade-alt a {
    color: #372696;
    text-decoration: underline;
}

.ais-upgrade-pricing-link {
    text-align: center;
    margin: 18px 0 0;
    font-size: 0.9rem;
}

.ais-upgrade-pricing-link a {
    color: #8a83a1;
    text-decoration: underline;
}

.ais-upgrade-pricing-link a:hover {
    color: #372696;
}

@media (max-width: 640px) {
    .ais-upgrade-title { font-size: 1.4rem; }
    .ais-upgrade-amount { font-size: 1.8rem; }
    .ais-upgrade-card { padding: 22px 20px 20px; }
}
