/* ==============================================================
   M.A.G.I.C. OFFER & VALUE ARCHITECTURE STYLES
   Basato sul Protocollo M.A.G.I.C. Offer (Metodo Mirco Pregnolato / Betterway®)
   Visual System: Luxury Gold, Obsidian, Precision Borders, Optical Alignment
   ============================================================== */

:root {
    --gold-primary: #d9b45a;
    --gold-light: #f2dba4;
    --gold-dark: #8a6f38;
    --gold-gradient: linear-gradient(135deg, #f2dba4 0%, #d9b45a 50%, #8a6f38 100%);
    --gold-glow: 0 0 35px rgba(217, 180, 90, 0.28);
    --gold-glow-subtle: 0 0 18px rgba(217, 180, 90, 0.14);
    
    --bg-dark: #070605;
    --surface-card: #0e0c08;
    --surface-elevated: #15120c;
    --surface-sunken: #050403;
    
    --border-gold: rgba(217, 180, 90, 0.28);
    --border-gold-strong: rgba(242, 219, 164, 0.65);
    --border-dim: rgba(255, 255, 255, 0.07);
    
    --text-primary: #f5eedf;
    --text-secondary: #ad9e87;
    --text-muted: #736756;
    
    --radius-outer: 20px;
    --radius-card: 16px;
    --radius-inner: 10px;
    --radius-pill: 999px;
    
    --font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, 'JetBrains Mono', monospace;
}

/* ===== PRICING / OFFER CONTAINER ===== */
.magic-offer-section {
    position: relative;
    padding: 100px 0;
    background: radial-gradient(circle at 50% 10%, rgba(217, 180, 90, 0.08) 0%, transparent 70%),
                linear-gradient(180deg, #070605 0%, #0c0a07 100%);
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
    overflow: hidden;
}

.magic-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    background: rgba(217, 180, 90, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow: var(--gold-glow-subtle);
}

.magic-badge .sparkle {
    color: var(--gold-primary);
    animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 0 6px var(--gold-light)); }
}

.magic-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 60px;
}

.magic-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.magic-title .gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.magic-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== COMPARISON MATRIX: VECCHIA VIA VS NUOVA VIA ===== */
.comparison-wrapper {
    max-width: 980px;
    margin: 0 auto 70px;
    background: var(--surface-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-outer);
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.comparison-header {
    text-align: center;
    margin-bottom: 28px;
}

.comparison-header h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.comp-col {
    padding: 24px;
    border-radius: var(--radius-card);
    transition: transform 0.25s ease;
}

.comp-col.old-way {
    background: rgba(255, 60, 60, 0.04);
    border: 1px solid rgba(255, 80, 80, 0.2);
}

.comp-col.new-way {
    background: rgba(217, 180, 90, 0.06);
    border: 1px solid var(--border-gold-strong);
    box-shadow: var(--gold-glow-subtle);
    position: relative;
}

.comp-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.comp-col.old-way .comp-badge {
    background: rgba(255, 70, 70, 0.15);
    color: #ff7070;
    border: 1px solid rgba(255, 70, 70, 0.3);
}

.comp-col.new-way .comp-badge {
    background: rgba(217, 180, 90, 0.2);
    color: var(--gold-light);
    border: 1px solid var(--gold-primary);
}

.comp-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comp-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.comp-col.old-way .comp-list li { color: #b8a698; }
.comp-col.new-way .comp-list li { color: var(--text-primary); font-weight: 500; }

.comp-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== 3-TIER PRICING CARDS (SECTION 14 FORMAT) ===== */
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto 70px;
    align-items: stretch;
}

.pricing-card {
    background: var(--surface-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-outer);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold-strong);
    box-shadow: var(--gold-glow);
}

.pricing-card.flagship {
    background: linear-gradient(180deg, #16120b 0%, #0d0b07 100%);
    border: 2px solid var(--gold-primary);
    box-shadow: 0 15px 45px rgba(217, 180, 90, 0.22);
    transform: scale(1.03);
}

.pricing-card.flagship:hover {
    transform: scale(1.03) translateY(-6px);
    box-shadow: 0 20px 55px rgba(217, 180, 90, 0.35);
}

.ribbon-best-value {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-gradient);
    color: #070605;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 22px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 15px rgba(217, 180, 90, 0.5);
    white-space: nowrap;
}

.card-top {
    margin-bottom: 25px;
}

.tier-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tier-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-height: 42px;
    line-height: 1.45;
}

/* Price Box */
.price-box {
    margin: 24px 0;
    padding: 18px 0;
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
}

.anchor-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.actual-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.actual-price .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.actual-price .amount {
    font-family: var(--font-mono);
    font-size: 2.7rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.actual-price .period {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.value-claim {
    font-size: 0.78rem;
    color: var(--gold-light);
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Feature List */
.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    flex-grow: 1;
}

.tier-features li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.tier-features li.highlight-feat {
    color: var(--text-primary);
    font-weight: 600;
}

.feat-check {
    color: var(--gold-primary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Card CTA Button */
.btn-magic-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    border-radius: var(--radius-card);
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.pricing-card:not(.flagship) .btn-magic-cta {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-gold);
}

.pricing-card:not(.flagship) .btn-magic-cta:hover {
    background: rgba(217, 180, 90, 0.12);
    border-color: var(--gold-light);
    color: var(--gold-light);
}

.pricing-card.flagship .btn-magic-cta {
    background: var(--gold-gradient);
    color: #070605;
    box-shadow: 0 6px 20px rgba(217, 180, 90, 0.35);
}

.pricing-card.flagship .btn-magic-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(217, 180, 90, 0.5);
    filter: brightness(1.08);
}

/* ===== HIGH-PERCEIVED VALUE BONUSES (SECTION 12) ===== */
.bonuses-container {
    max-width: 1040px;
    margin: 0 auto 70px;
    background: linear-gradient(180deg, #100d08 0%, #080705 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-outer);
    padding: 45px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}

.bonuses-header {
    text-align: center;
    margin-bottom: 35px;
}

.bonuses-header h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.bonuses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.bonus-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-card);
    padding: 24px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bonus-item:hover {
    border-color: var(--border-gold);
    background: rgba(217, 180, 90, 0.04);
}

.bonus-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bonus-tag {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-primary);
}

.bonus-val {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: line-through;
}

.bonus-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.bonus-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.bonus-free-badge {
    margin-top: 14px;
    align-self: flex-start;
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.35);
    color: #2ecc71;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ===== RISK-REVERSAL GUARANTEE (PUNTO G) ===== */
.guarantee-box {
    max-width: 900px;
    margin: 0 auto 70px;
    background: radial-gradient(circle at 10% 20%, rgba(217, 180, 90, 0.1) 0%, transparent 60%),
                var(--surface-card);
    border: 2px solid var(--border-gold-strong);
    border-radius: var(--radius-outer);
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.guarantee-seal {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--gold-gradient);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(217, 180, 90, 0.35);
}

.guarantee-seal-inner {
    width: 100%;
    height: 100%;
    background: #0b0906;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.seal-days {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
}

.seal-lbl {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.guarantee-text h4 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.guarantee-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===== INTERACTIVE VALUE & ROI CALCULATOR ===== */
.roi-calculator {
    max-width: 860px;
    margin: 0 auto;
    background: var(--surface-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-outer);
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.roi-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.roi-controls {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 35px;
}

.roi-control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.roi-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.roi-val {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--gold-light);
}

.roi-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: var(--radius-pill);
    background: #252018;
    outline: none;
}

.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold-gradient);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(217, 180, 90, 0.6);
    border: 2px solid #070605;
}

.roi-results-box {
    background: rgba(217, 180, 90, 0.05);
    border: 1px solid var(--border-gold-strong);
    border-radius: var(--radius-card);
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.roi-res-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.roi-res-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.roi-res-num {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.roi-res-num.gold {
    color: var(--gold-primary);
}

/* ===== SCARCITY & URGENCY TRIGGER ===== */
.scarcity-bar {
    max-width: 680px;
    margin: 40px auto 0;
    text-align: center;
    background: rgba(217, 180, 90, 0.08);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-pill);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
    animation: pulseDot 1.6s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 0.9; box-shadow: 0 0 4px #e74c3c; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #e74c3c; }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 992px) {
    .pricing-cards-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
    .pricing-card.flagship {
        transform: scale(1);
    }
    .pricing-card.flagship:hover {
        transform: translateY(-6px);
    }
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .bonuses-grid {
        grid-template-columns: 1fr;
    }
    .guarantee-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .roi-results-box {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ===== TIER PRODUCT MOCKUP IMAGE STYLES ===== */
.tier-mockup-wrapper {
    width: 100%;
    height: 185px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    margin-bottom: 22px;
    background: #050403;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.tier-mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.pricing-card:hover .tier-mockup-img {
    transform: scale(1.05);
}
