.header {
    justify-content: space-between;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.is-active {
    color: var(--text);
    background: rgba(99, 102, 241, 0.12);
}

.plans-main {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 1rem 1.5rem 4rem;
}

.plans-eyebrow {
    display: inline-block;
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a5b4fc;
}

.plans-hero {
    text-align: center;
    max-width: 720px;
    margin: 1rem auto 2.75rem;
}

.plan-cap {
    position: relative;
    margin-top: 1rem;
    padding: 0.85rem 0.95rem 0.9rem;
    border-radius: 14px;
    background:
        linear-gradient(160deg, rgba(99, 102, 241, 0.16), rgba(99, 102, 241, 0.04) 55%, transparent),
        rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(129, 140, 248, 0.22);
    overflow: hidden;
}

.plan-cap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    bottom: 0.7rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, #a5b4fc, #6366f1 55%, rgba(99, 102, 241, 0.2));
}

.plan-cap-size {
    margin: 0;
    padding-left: 0.7rem;
    display: flex;
    align-items: baseline;
    gap: 0.28rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.plan-cap-size strong {
    font-size: 1.85rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e0e7ff 10%, #a5b4fc 55%, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.plan-cap-size span {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a5b4fc;
}

.plan-cap-meta {
    margin: 0.35rem 0 0;
    padding-left: 0.7rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.plan-cap--featured {
    border-color: rgba(167, 139, 250, 0.38);
    background:
        linear-gradient(155deg, rgba(167, 139, 250, 0.2), rgba(99, 102, 241, 0.08) 50%, transparent),
        rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.plan-cap--featured::before {
    background: linear-gradient(180deg, #ddd6fe, #a78bfa 50%, #6366f1);
}

.plan-cap--featured .plan-cap-size strong {
    background: linear-gradient(135deg, #fff 5%, #ddd6fe 40%, #a78bfa 85%);
    -webkit-background-clip: text;
    background-clip: text;
}

.plan-tile--free .plan-cap {
    display: none;
}

.plans-grid-page--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .plans-grid-page--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .plans-grid-page--4 {
        grid-template-columns: 1fr;
    }
}

.plans-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.plans-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.plans-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.plan-tile {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
    min-height: 100%;
}

.plan-tile--free {
    border-color: rgba(16, 185, 129, 0.35);
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(16, 185, 129, 0.08), transparent 55%),
        var(--bg-card);
}

.plan-tile--featured {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.plan-kicker {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.55rem;
}

.plan-tile h2 {
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.plan-price-line {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.65rem;
}

.plan-amount {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.plan-period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.plan-blurb {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 2.7em;
}

.plan-bullets {
    list-style: none;
    padding: 0;
    margin: 1.15rem 0 1.35rem;
    flex: 1;
}

.plan-bullets li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.15rem;
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.45;
}

.plan-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.plan-tile--free .plan-bullets li::before {
    background: var(--success);
}

.plan-tile .btn {
    width: 100%;
    justify-content: center;
}

.plans-fineprint {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.82rem;
    margin: 1.75rem auto 0;
    max-width: 640px;
    line-height: 1.65;
}

.plans-fineprint-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.55rem;
    color: #c7d2fe;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(199, 210, 254, 0.35);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.plans-fineprint-link:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.55);
}

.trust-panel {
    margin-top: 3.5rem;
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(99, 102, 241, 0.06), transparent 40%),
        var(--bg-card);
}

.trust-panel h2 {
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.trust-grid h3 {
    font-size: 1rem;
    margin-bottom: 0.55rem;
}

.trust-grid p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.trust-grid a.doc-link,
.trust-grid a {
    color: #c7d2fe;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(199, 210, 254, 0.45);
    padding-bottom: 0.05em;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.trust-grid a.doc-link:hover,
.trust-grid a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

@media (max-width: 900px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .plans-main {
        padding: 0.5rem 1rem 3rem;
    }
    .header-nav {
        gap: 0;
    }
}

.plans-cta {
    margin-top: 2.5rem;
    padding: 1.35rem 1.4rem;
    border-radius: var(--radius-lg, 16px);
    border: 1px solid rgba(99, 102, 241, 0.28);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(99, 102, 241, 0.16), transparent 55%),
        radial-gradient(100% 120% at 100% 100%, rgba(16, 185, 129, 0.08), transparent 50%),
        var(--bg-card);
    display: flex;
    gap: 1.15rem;
    align-items: flex-start;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.06), var(--shadow, 0 8px 30px rgba(0, 0, 0, 0.25));
}

.plans-cta-mark {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.plans-cta-mark svg {
    width: 1.25rem;
    height: 1.25rem;
}

.plans-cta-body {
    flex: 1;
    min-width: 0;
}

.plans-cta-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a5b4fc;
}

.plans-cta-title {
    margin: 0 0 0.45rem;
    font-size: 1.1rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--text);
}

.plans-cta-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    max-width: 42rem;
}

.plans-cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    margin-top: 1.1rem;
}

.plans-cta-btn {
    width: auto;
    margin: 0;
    padding: 0.7rem 1.25rem;
}

.plans-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #c7d2fe;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition, 0.15s ease), gap var(--transition, 0.15s ease);
}

.plans-cta-link svg {
    width: 16px;
    height: 16px;
}

.plans-cta-link:hover {
    color: #fff;
    gap: 0.55rem;
}

@media (max-width: 520px) {
    .plans-cta {
        padding: 1.15rem 1.1rem;
    }
    .plans-cta-actions {
        width: 100%;
    }
    .plans-cta-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Checkout handoff → LeadHosts */
.checkout-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(8, 10, 18, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: checkout-fade-in 0.22s ease;
}

.checkout-overlay[hidden] {
    display: none !important;
}

.checkout-overlay-card {
    text-align: center;
    max-width: 320px;
}

.checkout-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    border: 2.5px solid rgba(199, 210, 254, 0.2);
    border-top-color: #a5b4fc;
    animation: checkout-spin 0.75s linear infinite;
}

.checkout-overlay-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text, #f1f5f9);
}

.checkout-overlay-sub {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted, #94a3b8);
}

body.checkout-leaving {
    cursor: wait;
}

@keyframes checkout-spin {
    to { transform: rotate(360deg); }
}

@keyframes checkout-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
