/* TruphZZ Pricing — alinhado à landing + toolbar */

.studio-app.pricing-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--s-bg, #0a0a0a);
}

.pricing-app .pricing-page {
    flex: 1;
}

.pricing-section--embedded {
    padding-top: 0;
}

.pricing-section--embedded .pricing-controls {
    margin-top: 0;
}

/* Landing: mesmo container da página /pricing (sem py-24 extra) */
.landing-pricing-slot {
    padding: 0;
}

.pricing-hero--embedded {
    margin-bottom: 2rem;
}

.pricing-embedded-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.75rem;
    color: var(--s-text, #fff);
}

.pricing-page {
    position: relative;
    min-height: calc(100vh - var(--s-header-h, 56px));
    overflow-x: hidden;
}

.pricing-page-bg {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% -10%, rgba(34, 197, 94, 0.12), transparent 55%),
        radial-gradient(ellipse 40% 30% at 90% 20%, rgba(124, 58, 237, 0.08), transparent 50%);
}

.pricing-page-inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

@media (min-width: 768px) {
    .pricing-page-inner { padding: 3rem 1.5rem 5rem; }
}

/* Hero */
.pricing-hero {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.pricing-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
    color: #86efac;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pricing-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    color: var(--s-text, #f5f5f5);
}

.pricing-hero p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--s-muted, #a3a3a3);
}

.pricing-alert {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    text-align: left;
}

.pricing-alert--warn {
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(120, 53, 15, 0.25);
    color: #fde68a;
}

.pricing-alert--error {
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(127, 29, 29, 0.25);
    color: #fecaca;
}

/* Controls */
.pricing-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pricing-billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem;
    border-radius: 999px;
    border: 1px solid var(--s-border, #333);
    background: rgba(255, 255, 255, 0.03);
}

.pricing-billing-label {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.375rem 0.625rem;
    border-radius: 999px;
    cursor: pointer;
    color: var(--s-muted);
    transition: color 0.15s, background 0.15s;
    user-select: none;
}

.pricing-billing-label.is-active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
}

.pricing-billing-switch {
    width: 44px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.pricing-billing-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

.pricing-billing-switch[aria-checked="true"] .pricing-billing-knob {
    transform: translateX(20px);
}

.pricing-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.45);
    background: rgba(20, 83, 45, 0.25);
    color: #86efac;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.12);
}

.pricing-promo-badge svg {
    flex-shrink: 0;
    color: #22c55e;
}

/* Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .pricing-grid { gap: 1.25rem; }
}

/* Plan card */
.pricing-plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 1rem;
    border: 1px solid var(--s-border, rgba(255, 255, 255, 0.1));
    background: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.pricing-plan-card:hover {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

.pricing-plan-card.is-popular {
    border-color: rgba(34, 197, 94, 0.55);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2), 0 16px 48px rgba(34, 197, 94, 0.12);
}

@media (min-width: 768px) {
    .pricing-plan-card.is-popular {
        transform: scale(1.03);
    }
    .pricing-plan-card.is-popular:hover {
        transform: scale(1.03) translateY(-2px);
    }
}

.pricing-plan-head {
    padding: 1.25rem 1.25rem 0;
}

.pricing-plan-head-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.pricing-plan-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--s-text);
}

.pricing-plan-badge {
    flex-shrink: 0;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 1px solid var(--s-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--s-muted);
}

.pricing-plan-badge.is-popular {
    border-color: #22c55e;
    background: #22c55e;
    color: #000;
}

.pricing-plan-desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--s-muted);
    min-height: 2.5rem;
}

.pricing-plan-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1.25rem;
    padding: 1.25rem;
}

.pricing-plan-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.35rem 0.5rem;
}

.plan-price-strike {
    font-size: 1rem;
    font-weight: 600;
    color: var(--s-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.plan-price-current {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--s-text);
}

.pricing-plan-per {
    font-size: 0.9375rem;
    color: var(--s-muted);
    margin-bottom: 0.15rem;
}

.pricing-plan-promo-tag {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(34, 197, 94, 0.45);
    background: rgba(20, 83, 45, 0.3);
    color: #86efac;
    font-size: 0.8125rem;
    font-weight: 600;
}

.plan-price-note {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: var(--s-muted);
    line-height: 1.5;
}

.plan-price-note .plan-pay-today,
.plan-price-note .plan-then-price {
    display: inline;
}

.pricing-plan-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--s-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--s-text);
    transition: background 0.15s, border-color 0.15s;
}

.pricing-plan-cta:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(34, 197, 94, 0.4);
}

.pricing-plan-cta:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.pricing-plan-card.is-popular .pricing-plan-cta {
    border-color: #22c55e;
    background: #22c55e;
    color: #000;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.pricing-plan-card.is-popular .pricing-plan-cta:hover:not(:disabled) {
    background: #16a34a;
}

.pricing-plan-features {
    border-top: 1px solid var(--s-border);
    padding-top: 1.25rem;
    margin-top: auto;
}

.pricing-plan-usage {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.pricing-usage-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
}

.pricing-usage-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--s-muted);
}

.pricing-usage-label svg {
    flex-shrink: 0;
    color: #22c55e;
}

.pricing-usage-value {
    font-weight: 600;
    color: var(--s-text);
}

.pricing-plan-card.is-popular .pricing-usage-value {
    color: #86efac;
}

.pricing-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pricing-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--s-muted);
}

.pricing-feature-list li.is-included {
    color: rgba(255, 255, 255, 0.82);
}

.pricing-feature-list li.is-excluded {
    opacity: 0.45;
    text-decoration: line-through;
}

.pricing-feature-list svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
    width: 16px;
    height: 16px;
}

.pricing-feature-list .icon-check { color: #22c55e; }
.pricing-feature-list .icon-x { color: #525252; }

/* Trust footer */
.pricing-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--s-border);
}

.pricing-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--s-muted);
}

.pricing-trust-item svg {
    color: #22c55e;
    flex-shrink: 0;
}

.pricing-page-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.75rem;
    color: var(--s-muted);
    border-top: 1px solid var(--s-border);
}

/* Light theme */
html[data-theme="light"] .pricing-plan-card {
    background: rgba(255, 255, 255, 0.85);
}

html[data-theme="light"] .pricing-page-bg {
    background:
        radial-gradient(ellipse 70% 50% at 50% -10%, rgba(34, 197, 94, 0.08), transparent 55%);
}
