/* Pricing page styles - extracted from inline <style> block. References brand-tokens.css variables. */

:root {
    --page-bg: var(--ffn-ed-bg);
    --page-bg-accent: #eef5f7;
    --page-panel: var(--brand-surface-panel);
    --page-border: var(--ffn-ed-border);
    --page-shadow: 0 24px 60px -34px rgba(14, 34, 64, 0.28);
    --page-text: var(--ffn-ed-text);
    --page-muted: var(--ffn-ed-text-muted);
    --page-soft: rgba(14, 34, 64, 0.06);
    --page-green: var(--brand-green);
    --page-blue: var(--brand-accent-blue);
    --page-gold: var(--brand-accent-gold-muted);
    --page-cream: #f6f0df;
    --page-hero: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 250, 247, 0.98) 50%, rgba(238, 245, 252, 1) 100%);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--page-text);
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(4, 120, 87, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 28%),
        linear-gradient(180deg, #f7f9fc 0%, var(--page-bg) 48%, var(--page-bg-accent) 100%);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}
.billing-shell { animation: fadeUp 0.5s ease-out 0.05s both; }
.pricing-card:nth-child(1) { animation: fadeUp 0.5s ease-out 0.1s both; }
.pricing-card:nth-child(2) { animation: fadeUp 0.5s ease-out 0.2s both; }
.pricing-card:nth-child(3) { animation: fadeUp 0.5s ease-out 0.3s both; }
.hero-grid { animation: fadeUp 0.5s ease-out 0.35s both; }
.bridge-shell { animation: fadeUp 0.5s ease-out 0.4s both; }
.faq-shell { animation: fadeUp 0.5s ease-out 0.45s both; }
@media (prefers-reduced-motion: reduce) {
    .billing-shell, .pricing-card, .hero-grid, .bridge-shell, .faq-shell { animation: none; }
}

.pricing-main {
    position: relative;
    padding: 7.5rem 0 5rem;
    overflow: hidden;
}

.pricing-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: 0.5;
    pointer-events: none;
}

.pricing-shell {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100vw - 32px));
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
    gap: 24px;
    margin-bottom: 24px;
}

.hero-panel,
.hero-aside,
.billing-shell,
.pricing-card,
.bridge-shell,
.faq-item {
    border: 1px solid var(--page-border);
    border-radius: 28px;
    background: var(--page-panel);
    box-shadow: var(--page-shadow);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 3rem;
    background: var(--page-hero);
}

.hero-panel::before {
    content: "";
    position: absolute;
    top: -70px;
    right: 52px;
    width: 180px;
    height: 180px;
    border-radius: 38px;
    background: linear-gradient(145deg, rgba(4, 120, 87, 0.14), rgba(37, 99, 235, 0.08));
    transform: rotate(18deg);
}

.hero-panel::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -88px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, transparent 72%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    margin-bottom: 1.125rem;
    border-radius: 999px;
    background: rgba(14, 34, 64, 0.08);
    color: var(--page-text);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title,
.bridge-title,
.faq-title,
.billing-title,
.plan-name {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.03em;
}

.hero-title {
    max-width: 11ch;
    margin: 0 0 1rem;
    font-size: clamp(2.9rem, 5vw, 5rem);
    line-height: 0.98;
    color: #0d1f38;
}

.hero-copy {
    max-width: 620px;
    margin: 0 0 1.75rem;
    color: var(--page-muted);
    font-size: 1.1rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-button,
.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    cursor: pointer;
}

.hero-button {
    padding: 0.95rem 1.4rem;
    font-size: 1rem;
}

.hero-button.primary,
.card-button.primary {
    color: var(--brand-white);
    background: linear-gradient(135deg, var(--page-green) 0%, #059669 45%, var(--page-blue) 100%);
    box-shadow: 0 16px 30px -18px rgba(4, 120, 87, 0.6);
}

.hero-button.secondary,
.card-button.secondary {
    color: var(--page-text);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(14, 34, 64, 0.1);
}

.hero-button:hover,
.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px -26px rgba(14, 34, 64, 0.42);
    filter: brightness(1.02);
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(14, 34, 64, 0.08);
    color: var(--brand-navy-light);
    font-size: 0.92rem;
    font-weight: 600;
}

.trust-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--page-green);
}

.hero-aside {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    color: #f8fafc;
    background: linear-gradient(180deg, var(--brand-navy) 0%, #17365e 100%);
}

.hero-aside::before {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -44px;
    width: 164px;
    height: 164px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(4, 120, 87, 0.32) 0%, transparent 70%);
}

.aside-kicker {
    display: inline-flex;
    padding: 0.45rem 0.8rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aside-title {
    margin: 0 0 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.9rem;
    line-height: 1.08;
}

.aside-copy {
    margin: 0 0 1.25rem;
    color: rgba(226, 232, 240, 0.82);
    line-height: 1.7;
}

.aside-list {
    display: grid;
    gap: 0.9rem;
}

.aside-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.9rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.aside-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(4, 120, 87, 0.95), rgba(59, 130, 246, 0.72));
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.aside-row strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--brand-white);
    font-size: 0.98rem;
}

.aside-row span {
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.92rem;
    line-height: 1.55;
}

.billing-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
}

.billing-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.8rem, 2.5vw, 2.3rem);
    line-height: 1.04;
}

.billing-copy {
    margin: 0;
    color: var(--page-muted);
    line-height: 1.6;
}

.billing-controls {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.toggle-shell {
    position: relative;
    display: inline-flex;
    padding: 4px;
    border-radius: 18px;
    background: rgba(14, 34, 64, 0.08);
    border: 1px solid rgba(14, 34, 64, 0.08);
}

.toggle-options {
    position: relative;
    display: flex;
    z-index: 1;
}

.toggle-option {
    min-width: 124px;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    color: var(--page-muted);
    font-size: 0.96rem;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}

.toggle-option.active {
    color: var(--brand-white);
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--page-green) 0%, #065f46 100%);
    transition: transform 0.24s ease;
}

.toggle-slider.yearly {
    transform: translateX(100%);
}

.savings-badge {
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(154, 106, 0, 0.12);
    color: var(--page-gold);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.7rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
}

.pricing-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, rgba(14, 34, 64, 0.12), rgba(14, 34, 64, 0));
}

.pricing-card.featured {
    border-color: rgba(4, 120, 87, 0.3);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(243, 250, 247, 1) 100%);
    transform: translateY(-6px);
}

.pricing-card.featured::before {
    background: linear-gradient(90deg, var(--page-green) 0%, var(--page-blue) 100%);
}

.pricing-card.elite::before {
    background: linear-gradient(90deg, rgba(154, 106, 0, 0.86) 0%, rgba(14, 34, 64, 0.72) 100%);
}

.plan-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.plan-badge.free {
    background: rgba(14, 34, 64, 0.08);
    color: var(--page-text);
}

.plan-badge.pro {
    background: rgba(4, 120, 87, 0.12);
    color: #065f46;
}

.plan-badge.elite {
    background: rgba(154, 106, 0, 0.12);
    color: var(--page-gold);
}

.plan-audience {
    color: var(--page-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.plan-name {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    line-height: 1;
}

.plan-copy {
    min-height: 3.4rem;
    margin: 0 0 1.2rem;
    color: var(--page-muted);
    line-height: 1.65;
}

.price-row {
    display: flex;
    align-items: flex-end;
    gap: 0.3rem;
    margin-bottom: 0.45rem;
}

.price-currency {
    padding-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.price-amount {
    font-family: 'Inter', sans-serif;
    font-size: 4rem;
    line-height: 0.9;
}

.price-period {
    padding-bottom: 0.8rem;
    color: var(--page-muted);
    font-weight: 600;
}

.price-strike {
    align-self: center;
    margin-left: 0.4rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(14, 34, 64, 0.06);
    color: var(--page-muted);
    font-size: 0.84rem;
    text-decoration: line-through;
}

.price-note {
    min-height: 2.8rem;
    margin: 0 0 1rem;
    color: var(--page-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.card-button {
    width: 100%;
    padding: 0.95rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    border: none;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
}

.feature-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
    color: #16304d;
    font-size: 0.96rem;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--page-green) 0%, var(--page-blue) 100%);
    color: var(--brand-white);
}

.feature-icon svg {
    width: 12px;
    height: 12px;
    stroke-width: 3;
}

.feature-item.off {
    color: #8a97ab;
}

.feature-item.off .feature-icon {
    background: rgba(14, 34, 64, 0.12);
    color: var(--page-muted);
}

.bridge-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 1.25rem;
    align-items: center;
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 250, 248, 0.98) 100%);
}

.bridge-title {
    margin: 0 0 0.85rem;
    font-size: clamp(2rem, 3.1vw, 3rem);
    line-height: 1.03;
}

.bridge-copy {
    margin: 0;
    color: var(--page-muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.bridge-steps {
    display: grid;
    gap: 0.85rem;
}

.bridge-step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    padding: 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(14, 34, 64, 0.08);
}

.bridge-index {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--brand-navy), var(--brand-accent-blue));
    color: var(--brand-white);
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
}

.bridge-step strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--page-text);
}

.bridge-step span {
    color: var(--page-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.faq-shell {
    width: min(920px, 100%);
    margin: 0 auto;
}

.faq-heading {
    margin-bottom: 1rem;
    text-align: center;
}

.faq-title {
    margin: 0 0 0.7rem;
    font-size: clamp(2rem, 3vw, 2.9rem);
    line-height: 1.03;
}

.faq-copy {
    margin: 0;
    color: var(--page-muted);
    font-size: 1rem;
}

.faq-list {
    display: grid;
    gap: 0.9rem;
}

.faq-item {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.2rem 1.35rem;
    border: none;
    background: transparent;
    color: var(--page-text);
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    gap: 1rem;
}

.faq-question:hover {
    color: var(--page-green);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 1.35rem 1.2rem;
    color: var(--page-muted);
    line-height: 1.75;
}

.faq-answer.show {
    display: block;
}

@media (max-width: 1080px) {
    .hero-grid,
    .bridge-shell {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 760px) {
    .pricing-main {
        padding-top: 6.25rem;
    }

    .pricing-shell {
        width: min(calc(100vw - 20px), 1200px);
    }

    .hero-panel,
    .hero-aside,
    .billing-shell,
    .pricing-card,
    .bridge-shell,
    .faq-item {
        border-radius: 24px;
    }

    .hero-panel,
    .hero-aside,
    .bridge-shell,
    .pricing-card {
        padding: 1.5rem;
    }

    .hero-title {
        max-width: none;
        font-size: clamp(2.35rem, 11vw, 3.6rem);
    }

    .billing-shell {
        flex-direction: column;
        align-items: stretch;
        padding: 1.35rem;
    }

    .billing-controls {
        justify-content: flex-start;
    }

    .toggle-shell {
        width: 100%;
    }

    .toggle-option {
        width: 50%;
        min-width: 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .plan-copy,
    .price-note {
        min-height: 0;
    }

    .faq-question {
        padding: 1rem 1.1rem;
    }

    .faq-answer {
        padding: 0 1.1rem 1rem;
    }
}
