/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais do BoletoSmart - extraídas da landing page oficial */
    --primary-color: #0066cc;        /* Azul principal do BoletoSmart (botões, destaques) */
    --primary-dark: #0052a3;         /* Azul escuro para hover */
    --primary-light: #3385d6;        /* Azul claro para gradientes */
    --secondary-color: #00a859;      /* Verde do logo "Smart" */
    --secondary-dark: #008847;       /* Verde escuro */
    --secondary-light: #00c569;      /* Verde claro */

    /* Cores de texto */
    --text-dark: #1a1a1a;            /* Texto principal escuro */
    --text-medium: #4a4a4a;          /* Texto secundário */
    --text-light: #6b7280;           /* Texto terciário/legendas */

    /* Cores de fundo */
    --bg-light: #f8f9fa;             /* Fundo claro geral */
    --bg-white: #ffffff;             /* Fundo branco puro */
    --bg-gray: #f3f4f6;              /* Fundo cinza suave */
    --bg-blue-light: #e3f2fd;        /* Fundo azul claro para destaques */

    /* Cores de borda */
    --border-color: #e5e7eb;         /* Bordas padrão */
    --border-light: #f3f4f6;         /* Bordas mais claras */

    /* Cores de status */
    --success-color: #00a859;        /* Verde de sucesso (mesma cor do logo) */
    --warning-color: #f59e0b;        /* Amarelo de aviso */
    --info-color: #0066cc;           /* Azul de informação (mesma cor primária) */
    --danger-color: #ef4444;         /* Vermelho de erro */

    /* Sombras */
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 4px 12px rgba(0, 102, 204, 0.15);
    --shadow-strong: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 50px 0;
    box-shadow: var(--shadow-strong);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

header .logo h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
    position: relative;
}

header .logo h1 .boleto {
    color: white;
}

header .logo h1 .smart {
    color: var(--secondary-color);
}

header .subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 400;
    position: relative;
}

/* Intro */
.intro {
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    margin-bottom: 50px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.intro h2 {
    color: var(--text-dark);
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.intro h2::first-line {
    color: var(--primary-color);
}

.intro p {
    font-size: 1.15rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Steps */
.step {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 35px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.step-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 25px 35px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.step-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.step-number {
    background: rgba(255, 255, 255, 0.25);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.step-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.step-content {
    padding: 30px;
}

.step-content ol {
    list-style: none;
    counter-reset: item;
    padding-left: 0;
}

.step-content ol > li {
    counter-increment: item;
    margin-bottom: 20px;
    padding-left: 45px;
    position: relative;
    line-height: 1.8;
}

.step-content ol > li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.step-content h4 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Links */
.link-destaque {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.link-destaque:hover {
    border-bottom-color: var(--primary-color);
    color: var(--primary-dark);
}

/* Alerts */
.alert {
    padding: 18px 24px;
    border-radius: 12px;
    margin: 18px 0;
    border-left: 5px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.alert:hover {
    transform: translateX(3px);
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: var(--warning-color);
    color: #92400e;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: var(--info-color);
    color: #1e40af;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: var(--success-color);
    color: #065f46;
}

.alert strong {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

/* Form Example */
.form-example {
    background: linear-gradient(to bottom, var(--bg-gray) 0%, var(--bg-light) 100%);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-field {
    margin-bottom: 24px;
}

.form-field:last-child {
    margin-bottom: 0;
}

.form-field label {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 0.98rem;
}

.form-field .value {
    background: var(--bg-white);
    padding: 14px 18px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.form-field .value:hover {
    border-color: var(--primary-color);
}

.form-field .value-code {
    background: #f9fafb;
    padding: 18px 20px;
    border-radius: 10px;
    font-family: 'Courier New', 'Consolas', monospace;
    border: 3px dashed var(--primary-color);
    color: var(--text-dark);
    font-size: 0.95rem;
    word-break: break-all;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-field .highlight {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    color: #854d0e;
    border: 1px solid #fbbf24;
}

.form-field .example {
    margin-top: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 10px;
    font-size: 0.92rem;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.form-field .example strong {
    font-weight: 700;
}

/* Events List */
.events-list {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--bg-white);
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.event-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.event-item:last-child {
    margin-bottom: 0;
}

.event-item input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.event-info strong {
    display: block;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.event-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Code */
code {
    background: #f4f4f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e83e8c;
    font-size: 0.9em;
}

/* Summary */
.summary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    margin: 50px 0;
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
}

.summary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.summary h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
    position: relative;
}

.summary-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.summary-item h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 12px;
    font-weight: 600;
}

.summary-item ul {
    list-style: none;
    padding: 0;
}

.summary-item li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
}

.summary-item li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #a7f3d0;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Tips */
.tips {
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    margin: 50px 0;
    border: 2px solid var(--border-light);
}

.tips h2 {
    color: var(--text-dark);
    margin-bottom: 35px;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
}

.tips h2::before {
    content: '💡 ';
}

.tip-item {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 18px;
    border-left: 6px solid #f59e0b;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.tip-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.tip-item strong {
    color: #d97706;
    display: block;
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 700;
}

/* Screenshots */
.screenshot {
    margin: 35px 0;
    padding: 25px;
    background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-white) 100%);
    border-radius: 16px;
    border: 2px solid var(--border-light);
    text-align: center;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

.screenshot:hover {
    box-shadow: var(--shadow-hover);
}

.screenshot img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.screenshot img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.25);
}

.screenshot-caption {
    margin-top: 18px;
    color: var(--text-medium);
    font-size: 0.98rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

footer p {
    margin: 5px 0;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    header .logo h1 {
        font-size: 2rem;
    }

    header .subtitle {
        font-size: 1rem;
    }

    .intro {
        padding: 25px;
    }

    .intro h2 {
        font-size: 1.5rem;
    }

    .step-header {
        padding: 15px 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .step-header h3 {
        font-size: 1.2rem;
    }

    .step-content {
        padding: 20px;
    }

    .step-content ol > li {
        padding-left: 40px;
        font-size: 0.95rem;
    }

    .summary {
        padding: 25px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .tips {
        padding: 25px;
    }

    .form-example {
        padding: 15px;
    }
}

/* Print styles */
@media print {
    header {
        background: var(--primary-color);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .step {
        page-break-inside: avoid;
    }

    .step:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Accessibility */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step {
    animation: fadeIn 0.5s ease-out;
}

/* Strong emphasis */
strong {
    color: var(--primary-dark);
    font-weight: 600;
}
