/* 🎨 Design System: "O Éter Sereno" */
:root {
    /* Paleta Principal */
    --primary: #742FE5;
    --primary-dim: #5D24B7;
    --primary-light: #F4F0FF;
    --accent: #00D1FF;
    
    /* Superfícies */
    --surface-bg: #F8F9FA;
    --surface-card: #FFFFFF;
    --surface-low: #F1F3F4;
    
    /* Cores Semânticas */
    --success-bg: #E2F9E5;
    --success-text: #1B5E20;
    --pending-bg: #FFF7E6;
    --pending-text: #B45309;

    /* Textos */
    --text-primary: #1A1C1E;
    --text-secondary: #44474E;
    
    /* Gradiente */
    --primary-gradient: linear-gradient(135deg, #742FE5 0%, #8E55FF 100%);
    
    /* Sombras */
    --shadow-soft: 0 12px 32px -4px rgba(45, 51, 55, 0.06);
    --shadow-heavy: 0 24px 48px rgba(45, 51, 55, 0.08); /* Usado no Hover Lift */
    --shadow-glow: 0 10px 20px rgba(116, 47, 229, 0.3);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--surface-bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    letter-spacing: -0.02em;
    font-weight: 800;
}

p {
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--surface-card);
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    padding: 32px;
    border: 1px solid rgba(0,0,0,0.02);
}

/* NOVO: HOVER-LIFT DOS CARDS QUE SE MEXEM */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dim);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--surface-low);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: #E6E8EA;
}

.btn.outline {
    background-color: transparent;
    border: 2px solid var(--surface-low);
}

.btn.outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(116, 47, 229, 0.06);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 20px;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    gap: 16px;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
}

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

.hero-text p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Mockups Flutuantes */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.mockup-card {
    width: 100%;
    max-width: 320px;
    padding: 0;
    overflow: hidden;
    border: 8px solid white;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.badge-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items:center; justify-content:center;
}

.badge-text strong { display: block; font-size: 14px; color: var(--text-primary); }
.badge-text span { font-size: 12px; color: var(--text-secondary); margin-top:2px; display:block; }

.badge-1 { top: 15%; left: -20%; animation: bounceSlow 6s infinite; }
.badge-2 { bottom: 20%; left: 0; animation: bounceSlow 5s infinite 0.5s; }

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Features Focus (Original Mantida) */
.features {
    padding: 100px 0;
    background-color: var(--surface-card);
}

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

.section-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--surface-bg);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon {
    color: var(--primary);
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

/* NOVA: Como Funciona (Fluxo de Cuidado) */
.how-it-works { padding: 100px 0; background: var(--surface-card); }
.workflow-row { display: flex; align-items: center; gap: 80px; margin-bottom: 100px; }
.reverse-row { flex-direction: row-reverse; }

.workflow-visual { flex: 1; display: flex; justify-content: center; position: relative; }
.mockup-frame {
    position: relative; max-width: 280px; border-radius: 3rem;
    border: 6px solid white; box-shadow: var(--shadow-soft); background: white;
}
.mockup-frame img { width: 100%; border-radius: 2.5rem; display: block; }
.floating-tag {
    position: absolute; background: white; padding: 12px 16px;
    border-radius: 16px; box-shadow: var(--shadow-soft); font-weight: 700; font-size: 12px;
}
.tag-patient { bottom: -7%; right: -10%; z-index: 10; }
.tag-caregiver { top: 36%; left: -10%; z-index: 10; display: flex; flex-direction: column; align-items: center; padding: 20px; border-radius: 24px; }
.bounce-slow { animation: bounceSlow 5s infinite; }
.bounce-slower { animation: bounceSlow 6s infinite; }

.workflow-text { flex: 1; }

/* Seção de Planos */
.plans-section {
    padding: 100px 0;
    background-color: var(--surface-bg);
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 860px;
    margin: 0 auto;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: var(--surface-card);
}

.plan-card-pro {
    background: var(--primary-gradient);
    border: none;
}

.plan-badge-pro {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 50px;
    white-space: nowrap;
}

.plan-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.plan-price-value {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.plan-price-period {
    font-size: 14px;
    color: var(--text-secondary);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.plan-features-pro li {
    color: rgba(255, 255, 255, 0.92);
}

.plan-feature-disabled {
    opacity: 0.4;
}

.plan-check {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.plan-check-pro {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.plan-x {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.plan-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
}

.plan-btn-pro {
    background: white;
    color: var(--primary);
}

.plan-btn-pro:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.store-badge-soon,
.plan-btn-soon {
    cursor: not-allowed;
    opacity: 0.75;
}

.store-badge-soon:hover,
.plan-btn-soon:hover {
    transform: none;
    box-shadow: none;
}

.plan-note-pro {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65) !important;
    margin-top: -16px;
    line-height: 1.5;
}

/* Responsive Setup */
@media (max-width: 900px) {
    .hero-content, .features-grid, .plans-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .workflow-row {
        flex-direction: column !important;
        gap: 40px;
    }

    .workflow-text {
        order: 1;
    }

    .workflow-visual {
        order: 2;
    }

    .workflow-text h3 {
        font-size: 24px !important;
    }

    .workflow-text p {
        font-size: 16px !important;
    }

    .mockup-frame {
        max-width: 240px;
    }

    /* --- TABLET: centraliza o card e distribui os 4 badges ao redor --- */
    .hero-visual { justify-content: center; }

    .badge-1     { top: 30%;   left: 0;    right: auto; bottom: auto; }
    .badge-2     { bottom: 14%; left: 0;   right: auto; top: auto; }
    .tag-patient { bottom: 6%; right: 0;   left: auto;  top: auto; }
    .tag-caregiver { top: 30%; right: 0;   left: auto;  bottom: auto; }
}

@media (max-width: 480px) {
    .logo {
        font-size: 16px;
    }

    .logo .logo-icon-svg {
        width: 24px !important;
        height: 24px !important;
    }

    .header-actions .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    /* --- CELULAR: mostra "20:00 Pendente" + "Dipirona", esconde o resto --- */
    .badge-1,
    .tag-caregiver {
        display: none;
    }

    .tag-patient { display: block; top: 70%; right: 4%; left: auto; bottom: auto; }
    .badge-2 { bottom: 52%; right: 0; left: auto; top: auto; }
}
