/* Risco MED - estilos das páginas de conteúdo (modelo, CID, índices, assinatura digital).
   A homepage usa /assets/styles.css. */

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

:root {
    /* Risco MED / YES Médicos-like palette */
    --primary: #2563eb;      /* blue-600 */
    --primary-dark: #1e40af; /* blue-800 */
    --secondary: #0ea5e9;    /* sky-500 */
    --accent: #8b5cf6;       /* violet-500 */
    --red: #ef4444;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1f2937;
    --gray-900: #0f172a;
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 14px 38px rgba(15, 23, 42, 0.14);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: white;
}

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

/* Top bars (risco.med.br-like) */
.announcement {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.8rem 0;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.22);
}

.announcement-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.24);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.announcement-text {
    opacity: 0.95;
    font-weight: 600;
    font-size: 0.92rem;
}

.header {
    position: sticky;
    top: 48px;
    z-index: 900;
    background: rgba(248, 250, 252, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 900;
    letter-spacing: 0.2px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.22);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.35rem 0.55rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--gray-900);
    background: rgba(37, 99, 235, 0.08);
}

/* Hero Section */
.hero {
    background:
        radial-gradient(900px 260px at 30% -20%, rgba(37, 99, 235, 0.18), transparent 60%),
        radial-gradient(820px 260px at 80% 0%, rgba(139, 92, 246, 0.14), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--gray-50) 100%);
    padding: 3.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -55%;
    right: -25%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.highlight {
    color: var(--primary);
    position: relative;
}

.strike {
    color: var(--red);
    text-decoration: line-through;
    opacity: 0.7;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.26);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

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

.hero-note {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Problem Section */
.problem-section {
    padding: 4rem 0;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #fef2f2;
    color: var(--red);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.problem-card {
    padding: 2rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    text-align: center;
}

.problem-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.16);
    color: var(--primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-sm);
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.problem-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* Comparison Section */
.comparison-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, white 0%, var(--gray-50) 100%);
}

.comparison-container {
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.comparison-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.comparison-card.bad {
    border: 3px solid var(--red);
}

.comparison-card.good {
    border: 3px solid var(--primary);
}

.card-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.card-badge.bad {
    background: var(--red);
    color: white;
}

.card-badge.good {
    background: var(--primary);
    color: white;
}

.comparison-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    text-align: center;
}

.comparison-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

.comparison-list li svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Pricing CTA */
.pricing-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.pricing-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.pricing-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.price-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.price-box {
    background: white;
    color: var(--gray-900);
    padding: 1.5rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.price-box .label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.price-box .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.price-box .currency {
    font-size: 1.5rem;
}

.price-box .period {
    font-size: 1rem;
    color: var(--gray-600);
}

.features-list {
    max-width: 600px;
    margin: 2rem auto;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
}

.features-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--gray-900);
    color: var(--gray-300);
    text-align: center;
}

.footer p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 2rem 0 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .problem-section,
    .comparison-section {
        padding: 3rem 0;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .price-highlight {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Exemplo de laudo */
.exemplo-section { padding: 4rem 0; background: var(--gray-50); }
.laudo-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 900px; margin: 0 auto 2rem; }
.laudo-preview img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--gray-200); box-shadow: var(--shadow-md); }
.exemplo-indices { text-align: center; color: var(--gray-700); margin-bottom: 1.5rem; }
.exemplo-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 768px) {
    .exemplo-section { padding: 3rem 0; }
    .laudo-preview { grid-template-columns: 1fr; }
}

/* Exemplo de laudo */
.exemplo-section { padding: 4rem 0; background: var(--gray-50); }
.laudo-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 900px; margin: 0 auto 2rem; }
.laudo-preview img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--gray-200); box-shadow: var(--shadow-md); }
.exemplo-indices { text-align: center; color: var(--gray-700); margin-bottom: 1.5rem; }
.exemplo-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 768px) {
    .exemplo-section { padding: 3rem 0; }
    .laudo-preview { grid-template-columns: 1fr; }
}
/* Artigo */
.article { padding: 3.5rem 0; }
.article .container { max-width: 820px; }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; color: var(--gray-900); margin-bottom: 1rem; }
.article h2 { font-size: 1.6rem; color: var(--gray-900); margin: 2.5rem 0 1rem; line-height: 1.3; }
.article h3 { font-size: 1.2rem; color: var(--gray-900); margin: 1.5rem 0 0.5rem; }
.article p, .article li { color: var(--gray-700); font-size: 1.05rem; }
.article p { margin-bottom: 1rem; }
.article ul { margin: 0 0 1rem 1.4rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
.article table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.article th, .article td { border: 1px solid var(--gray-200); padding: 0.65rem 0.8rem; text-align: left; vertical-align: top; }
.article th { background: var(--gray-100); color: var(--gray-900); }
.article .note { background: var(--gray-50); border-left: 4px solid var(--primary); padding: 1rem 1.2rem; border-radius: 8px; margin: 1.5rem 0; }
.article .cta-box { text-align: center; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 16px; padding: 2rem 1.5rem; margin: 2.5rem 0 0; }
.article .cta-box h2 { margin-top: 0; }
.article .cta-box .btn { margin-top: 1rem; }
.article img { width: 100%; max-width: 480px; height: auto; border-radius: 12px; border: 1px solid var(--gray-200); }
.article .sources { margin-top: 2rem; font-size: 0.9rem; color: var(--gray-600); }
@media (max-width: 768px) {
    .article { padding: 2.5rem 0; }
    .article h2 { font-size: 1.35rem; }
    .article table { font-size: 0.9rem; }
}

/* Links relacionados e tabelas de pontuação */
.related { margin-top: 2.5rem; border-top: 1px solid var(--gray-200); padding-top: 1.5rem; }
.related ul { list-style: none; margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.related a { color: var(--primary); font-weight: 600; text-decoration: none; }
.related a:hover { text-decoration: underline; }
td.pts { white-space: nowrap; font-weight: 700; color: var(--gray-900); }
