/* ═══════════════════════════════════════════════════════════
   PRICING PAGE
   ═══════════════════════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Shared eyebrow ── */
.section-eyebrow {
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════
   SECTION DIVIDERS
   ═══════════════════════════════════════════════════════════ */
.plans-section,
.addons-section,
.enterprise-section {
    position: relative;
}

.plans-section::before,
.addons-section::before,
.enterprise-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-soft), transparent);
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.pricing-hero {
    padding: 9rem 2rem 4rem;
    background:
        radial-gradient(ellipse at 18% 20%, rgba(var(--primary-rgb), 0.08), transparent 42%),
        radial-gradient(ellipse at 82% 18%, rgba(var(--accent-rgb), 0.05), transparent 40%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.pricing-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.pricing-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pricing-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-bright);
    margin-bottom: 1rem;
}

.pricing-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   PLANS SECTION (page-level padding only; card styles in plan_card.css)
   ═══════════════════════════════════════════════════════════ */
.plans-section {
    padding: 3rem 2rem 5rem;
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

.plans-section .billing-toggle-wrap {
    margin-bottom: 2.5rem;
}

/* ═══════════════════════════════════════════════════════════
   ADDONS SECTION
   ═══════════════════════════════════════════════════════════ */
.addons-section {
    padding: 1rem 2rem 5rem;
    background: var(--bg-deep);
}

.addons-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.addons-header {
    padding: 3.5rem 0 2rem;
}

.addons-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}

.addons-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════
   ENTERPRISE
   ═══════════════════════════════════════════════════════════ */
.enterprise-section {
    padding: 2rem 2rem 5rem;
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

.enterprise-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.enterprise-card {
    background: rgba(var(--bg-rgb), 0.72);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(var(--bg-rgb), 0.38);
}

@media (max-width: 640px) {
    .enterprise-card {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

.enterprise-text h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.enterprise-text p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
    max-width: 480px;
}

.btn-enterprise {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    color: var(--text-muted);
    border: 1.5px solid var(--border-soft);
    transition: all 0.18s ease;
    white-space: nowrap;
    background: transparent;
}

.btn-enterprise:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .pricing-hero { padding: 7rem 1.25rem 3rem; }
    .plans-section, .addons-section, .enterprise-section { padding-left: 1.25rem; padding-right: 1.25rem; }
    .enterprise-card { text-align: center; padding: 2rem 1.5rem; }
    .enterprise-card p { max-width: none; }
}

/* ── Entry animation ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pricing-hero .section-eyebrow { animation: fadeInUp 0.4s ease-out 0.1s both; }
.pricing-hero h1               { animation: fadeInUp 0.4s ease-out 0.2s both; }
.pricing-hero p                { animation: fadeInUp 0.4s ease-out 0.3s both; }
.billing-toggle-wrap           { animation: fadeInUp 0.4s ease-out 0.4s both; }

/* Suppress re-animation when the toggle is re-rendered via Turbo frame swap */
turbo-frame[data-loaded] .billing-toggle-wrap { animation: none; }
