/* Premium pricing page — separate visual system from the main app shell */

body.pricing-mode {
    --pricing-glow: color-mix(in srgb, var(--accent) 28%, transparent);
}

body.pricing-mode .topnav-center {
    opacity: 0;
    pointer-events: none;
}

body.pricing-mode .app {
    max-width: none;
}

.pricing-page {
    position: relative;
    min-height: calc(100vh - 64px);
    padding: 0 0 48px;
    overflow: hidden;
}

.pricing-page__glow {
    position: absolute;
    inset: -20% -10% auto;
    height: 520px;
    background:
        radial-gradient(ellipse 60% 50% at 20% 0%, var(--pricing-glow), transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 10%, color-mix(in srgb, #a78bfa 18%, transparent), transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.pricing-page__content {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
    padding: 8px 20px 0;
}

.pricing-page__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    padding: 6px 0;
    border: none;
    background: none;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s ease;
}

.pricing-page__back:hover {
    color: var(--text);
}

.pricing-hero {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-hero__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
}

.pricing-hero__title {
    margin: 0;
    font-size: clamp(1.75rem, 4.5vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
}

.pricing-hero__lead {
    margin: 14px auto 0;
    max-width: 42ch;
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.pricing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 800px) {
    .pricing-layout {
        grid-template-columns: 1fr;
    }
}

.pricing-offer {
    padding: 28px 26px 24px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
    background:
        linear-gradient(165deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface));
    box-shadow:
        0 24px 60px color-mix(in srgb, var(--accent) 10%, transparent),
        0 1px 0 color-mix(in srgb, #fff 8%, transparent) inset;
}

[data-theme="light"] .pricing-offer {
    box-shadow:
        0 20px 50px rgba(59, 125, 237, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.pricing-toggle {
    display: flex;
    padding: 4px;
    margin-bottom: 22px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
}

.pricing-toggle__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.pricing-toggle__btn.is-active {
    color: var(--text);
    background: var(--surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.pricing-toggle__save {
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0d7a4e;
    background: rgba(34, 197, 94, 0.16);
}

.pricing-price-block {
    margin-bottom: 8px;
}

.pricing-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    line-height: 1;
}

.pricing-price__amount {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.pricing-price__currency {
    margin-top: 0.55rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-muted);
}

.pricing-price__period {
    align-self: flex-end;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.pricing-billed-note {
    margin: 0 0 18px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.pricing-cta {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
}

.pricing-cta-note {
    margin: 12px 0 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.pricing-anchors {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.pricing-anchor {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-2) 70%, var(--surface));
}

.pricing-anchor__icon {
    flex: 0 0 auto;
    font-size: 1.25rem;
    line-height: 1;
}

.pricing-anchor__body {
    min-width: 0;
}

.pricing-anchor__title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
}

.pricing-anchor__text {
    margin: 4px 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.pricing-anchor__strike {
    text-decoration: line-through;
    opacity: 0.65;
}

.pricing-compare {
    padding: 22px 20px 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.pricing-compare__title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
}

.pricing-compare__lead {
    margin: 0 0 18px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.pricing-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.pricing-compare-table th,
.pricing-compare-table td {
    padding: 11px 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.pricing-compare-table tr:last-child th,
.pricing-compare-table tr:last-child td {
    border-bottom: none;
}

.pricing-compare-table thead th {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}

.pricing-compare-table thead th:first-child {
    text-align: left;
    width: 46%;
}

.pricing-compare-feature {
    font-weight: 600;
    text-align: left;
    padding-right: 12px;
}

.pricing-compare-cell {
    text-align: center;
    width: 27%;
}

.pricing-compare-paid-col {
    background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.pricing-cell-yes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.pricing-cell-muted {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.pricing-cell-trial {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    white-space: nowrap;
}

.pricing-footnote {
    margin: 20px 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
}

.pricing-loading {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}
