/* --- Subscription Section --- */
.subscription-section {
    padding: 5rem 2rem;
    text-align: center;
    background: transparent;
}

.subscription-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2.5rem;
}

.toggle-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.toggle-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e1;
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--primary-sky);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(22px);
}

.badge-discount {
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 700;
    margin-left: 4px;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    width: 280px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.card.featured {
    border: 2px solid var(--primary-sky);
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 168, 232, 0.15);
}

.card.featured:hover {
    transform: scale(1.03) translateY(-8px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.4rem;
    margin: 0;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.card-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f1f5f9;
    color: var(--text-secondary);
    font-weight: 600;
}

.card-badge.popular {
    background: #dbeafe;
    color: #3b82f6;
}

.card-badge.recommended {
    background: #dbeafe;
    color: #3b82f6;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #94a3b8;
}

.price-note {
    /* «fatturati €26,97 ogni 3 mesi — risparmi il 10%»: sotto il prezzo al
       mese del trimestrale, perche' il cliente sappia quanto paga davvero. */
    font-size: 0.85rem;
    font-weight: 500;
    color: #10b981;
    margin: 0.3rem 0 0;
    line-height: 1.35;
}

/* Hide elements for billing toggle */
.hidden {
    display: none !important;
}

/* Elements managed by JS logic — visible by default */
.hidden-logic {
    display: block;
}

.features-list {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0 2rem 0;
    padding: 0;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 0.6rem;
    padding-left: 1.8rem;
    position: relative;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.features-list li i {
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.8rem;
}

.features-list li i.fa-check {
    color: #10b981;
}

.features-list li i.fa-xmark.disabled {
    color: #cbd5e1;
}

.plan-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--primary-sky);
    background: var(--gradient-primary);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s;
}

.plan-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 232, 0.4);
}

.plan-btn.current-plan {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #94a3b8;
    cursor: default;
}

.plan-btn.current-plan:hover {
    transform: none;
}

/* Current plan card highlight */
.current-plan-card {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px #10b981 !important;
}

/* Fase beta (01-beta.js): prezzi «In arrivo» e nota «tutto gratis». */
.beta-pricing-note {
    text-align: center;
    margin: 0 auto 1.5rem;
    font-weight: 600;
    color: var(--primary-green, #3ddc84);
}
.plan-btn.beta-coming-soon,
.plan-btn.beta-coming-soon:hover {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}
/* In beta le cifre del Pro e l'interruttore mensile/trimestrale non si vedono (01-beta.js). */
.beta-hidden { display: none !important; }
.price.beta-price-soon { font-size: 1.6rem; }
