/*
 * DENTCOMM - ESTILOS PREMIUM - CORE360
 * Versão: 3.0 (Tema Roxo)
 */

/* --- VARIÁVEIS LOCAIS (Identidade: Roxo/Tech) --- */
:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --card-bg: #ffffff;
    --text-dark: #1a1a1a;
    --accent-color: #9333ea; /* Roxo Principal */
    --accent-glow: rgba(147, 51, 234, 0.3);
}

[data-theme="dark"] {
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: #18181b;
    --text-dark: #ffffff;
}

/* --- HERO --- */
.product-hero {
    position: relative; padding: 10rem 0 6rem;
    background: var(--bg-body); overflow: hidden; text-align: center;
}
.hero-bg-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 120%; height: 120%;
    background: radial-gradient(circle at center, rgba(147, 51, 234, 0.15) 0%, rgba(0,0,0,0) 60%);
    z-index: 0; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; width: 100%; }

.back-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--primary-gray); font-weight: 600; font-size: 0.9rem;
    margin-bottom: 2rem; transition: 0.3s;
}
.back-link:hover { color: var(--accent-color); transform: translateX(-5px); }

.premium-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(147, 51, 234, 0.1); border: 1px solid var(--accent-color);
    color: #a855f7; padding: 0.5rem 1.2rem;
    border-radius: 50px; font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1; color: var(--text-dark); margin-bottom: 0.5rem;
}
.text-gradient {
    background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-family: var(--font-primary); font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 400; color: var(--primary-gray); margin-bottom: 2rem;
}
.hero-desc {
    font-size: 1.15rem; line-height: 1.7; color: var(--text-body); opacity: 0.9;
}

/* --- LAYOUT --- */
.layout-grid {
    display: grid; grid-template-columns: 1.4fr 0.8fr;
    gap: 4rem; align-items: flex-start; position: relative;
}
.video-frame {
    position: relative; border-radius: var(--radius-xl);
    overflow: hidden; box-shadow: var(--shadow-xl);
    border: 1px solid var(--glass-border); margin-bottom: 4rem;
}
.video-frame video { width: 100%; display: block; }

/* --- CARDS --- */
.check-card {
    background: var(--card-bg); padding: 2rem;
    border-radius: var(--radius-lg); border: 1px solid transparent;
    transition: 0.3s; margin-bottom: 2rem;
}
.check-card.pain {
    border-color: rgba(239, 68, 68, 0.2);
    background: linear-gradient(180deg, rgba(239,68,68,0.02) 0%, transparent 100%);
}
.check-card.gain {
    border-color: rgba(147, 51, 234, 0.3);
    background: linear-gradient(180deg, rgba(147, 51, 234, 0.05) 0%, transparent 100%);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.05);
}
.check-card h3 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--text-dark); font-family: var(--font-display); }
.check-card ul { list-style: none; padding: 0; }
.check-card li {
    position: relative; padding-left: 1.5rem; margin-bottom: 0.8rem;
    font-size: 0.95rem; color: var(--text-body); line-height: 1.4;
}
.check-card.pain li::before { content: '×'; position: absolute; left: 0; color: var(--error); font-weight: 900; }
.check-card.gain li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-color); font-weight: 900; }

/* --- PILARES --- */
.section-heading {
    font-family: var(--font-display); font-size: 2rem;
    color: var(--text-dark); margin-bottom: 2rem; text-align: left;
}
.pillars-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem; margin-bottom: 4rem;
}
.pillar-card {
    background: var(--card-bg); padding: 2rem;
    border-radius: var(--radius-lg); border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm); transition: 0.3s;
}
.pillar-card:hover {
    transform: translateY(-5px); border-color: var(--accent-color);
    box-shadow: 0 10px 25px var(--accent-glow);
}
.pillar-icon {
    width: 50px; height: 50px; background: rgba(147, 51, 234, 0.1);
    color: var(--accent-color); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.5rem;
}
.pillar-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-dark); }
.pillar-card p { font-size: 0.9rem; color: var(--primary-gray); line-height: 1.5; margin: 0; }

/* --- TIMELINE --- */
.timeline-section { margin-bottom: 4rem; }
.timeline {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem; position: relative;
}
.timeline-item { position: relative; padding-top: 1.5rem; }
.step-num {
    position: absolute; top: -1.5rem; left: 0;
    font-size: 3rem; font-weight: 800; color: rgba(147, 51, 234, 0.1);
    font-family: var(--font-display); line-height: 1;
}
.step-content h4 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-dark); }
.step-content p { font-size: 0.9rem; color: var(--primary-gray); }

/* --- STICKY CARD --- */
.sidebar-column { position: relative; }
.offer-card {
    position: sticky; top: calc(var(--header-height) + 2rem);
    background: var(--card-bg); padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
    z-index: 10; transition: 0.3s;
    border: 2px solid var(--accent-color);
}
[data-theme="dark"] .offer-card { box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1); }

.offer-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 1rem;
}
[data-theme="dark"] .offer-header { border-color: rgba(255,255,255,0.1); }
.plan-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--text-dark); }
.plan-tag { background: var(--accent-color); color: #fff; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 4px; }

.offer-pricing { text-align: center; margin-bottom: 2rem; }
.price-row { display: flex; align-items: flex-start; justify-content: center; color: var(--text-dark); }
.price-row .currency { font-size: 1.5rem; margin-top: 0.5rem; font-weight: 600; }
.price-row .amount { font-size: 4rem; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.price-row .freq { font-size: 1rem; align-self: flex-end; margin-bottom: 0.8rem; color: var(--primary-gray); }

.investment-breakdown { background: var(--bg-light); padding: 1rem; border-radius: var(--radius-md); margin-bottom: 2rem; }
.breakdown-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--primary-gray); }
.breakdown-total { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 700; color: var(--primary-dark); padding-top: 0.5rem; border-top: 1px dashed rgba(0,0,0,0.1); }
[data-theme="dark"] .breakdown-total { border-color: rgba(255,255,255,0.1); }

.benefits-list { list-style: none; padding: 0; margin-bottom: 2rem; }
.benefits-list li { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; font-size: 0.95rem; color: var(--text-body); }
.benefits-list li svg { color: var(--accent-color); flex-shrink: 0; }

.btn-premium {
    display: flex; justify-content: center; align-items: center; gap: 0.5rem; width: 100%; padding: 1.2rem;
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
    color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
    border-radius: 50px; text-decoration: none; transition: 0.3s;
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.25);
}
.btn-premium:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(147, 51, 234, 0.4); }

.guarantee-text { text-align: center; font-size: 0.8rem; margin-top: 1rem; color: var(--primary-gray); }

/* ANIMATIONS */
.fade-in-up { animation: fadeInUp 0.8s ease-out; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.pulse { animation: pulse-glow 2s infinite; }
@keyframes pulse-glow { 0% { box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(147, 51, 234, 0); } 100% { box-shadow: 0 0 0 0 rgba(147, 51, 234, 0); } }

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
    .layout-grid { grid-template-columns: 1fr; gap: 3rem; }
    .sidebar-column { order: -1; margin-bottom: 2rem; }
    .offer-card { position: static; max-width: 500px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .product-hero { padding: 8rem 0 4rem; }
    .hero-title { font-size: 3rem; }
    .timeline { grid-template-columns: 1fr; gap: 1rem; padding-left: 2rem; }
    .timeline-item { padding-left: 1rem; border-left: 2px solid var(--accent-color); padding-top: 0; padding-bottom: 2rem; }
    .step-num { left: -3rem; top: 0; font-size: 1.5rem; width: 30px; height: 30px; background: var(--card-bg); text-align: center; color: var(--accent-color); font-weight: 700; border: 2px solid var(--accent-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 0; }
}