:root {
    /* --- Modern SaaS Color System (EasyDok Red Theme) --- */

    /* Primary (Brand Red) */
    --primary-50: #fef2f2;
    --primary-100: #fee2e2;
    --primary-600: #dc2626;
    /* Red-600 */
    --primary-700: #b91c1c;
    /* Red-700 */

    /* Neutrals (Slate) */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Semantic Colors */
    --success: #10b981;
    --success-bg: #ecfdf5;
    --success-text: #047857;

    --danger: #ef4444;
    --danger-hover: #dc2626;

    /* Spacing & Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;

    /* Shadows (Soft & Modern - Neutral) */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Global Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--slate-50);
    color: var(--slate-600);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--slate-900);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-700);
}

/* Utility Layout */
.container {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

/* --- Components --- */

/* 1. Buttons (Brand Red - Standardized) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    line-height: 1;
    gap: 0.5rem;
    min-height: 48px;
    /* Mobile touch target */

    /* Default Red Style */
    background-color: var(--primary-600);
    color: white;
    box-shadow: var(--shadow-sm);
}

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

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Retain these classes for compatibility, but map them to the same red style */
.btn-red,
.btn-blue {
    background-color: var(--primary-600);
    color: white;
}

.btn-red:hover,
.btn-blue:hover {
    background-color: var(--primary-700);
}

/* 2. Cards */
.card,
.form-section-card,
.pricing-card,
.testimonial-card {
    background-color: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover,
.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

/* 3. Inputs & Forms */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--slate-900);
    background-color: white;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease-in-out;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-600);
    /* No blue glow, just border color change or very subtle neutral shadow if needed */
}

.form-control::placeholder {
    color: var(--slate-400);
}

/* --- Sections --- */

/* Header */
/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--slate-200);
    padding: 1.5rem 0;
    /* Increased padding */
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    height: 90px;
    /* Increased from 60px */
    width: auto;
    display: block;
}

/* Hero */
.hero {
    padding: 6rem 0;
    /* More spacing */
    text-align: center;
    background: radial-gradient(circle at 50% 0%, var(--primary-50) 0%, transparent 70%);
    /* Subtle red glow */
}

.hero-title {
    font-size: 3.5rem;
    /* Larger title */
    color: var(--slate-900);
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.1;
    /* Tighter line height for impact */
    letter-spacing: -0.03em;
}

.text-highlight {
    color: var(--primary-600);
    position: relative;
    white-space: nowrap;
    /* Prevent breaking mid-phrase */
}

@media(max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        /* Responsive adjustment */
    }
}

.hero-subtitle {
    font-size: 1.35rem;
    /* Slightly larger */
    color: var(--slate-600);
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Authority Block */
.authority-block {
    background-color: white;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    padding: 1.5rem 0;
    text-align: center;
}

.authority-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
}

.authority-text {
    font-size: 0.875rem;
    color: var(--slate-500);
}

/* Pain Section */
.pain-section {
    padding: 5rem 0;
    background-color: #fff1f2;
    /* Soft Red bg */
}

.pain-title {
    text-align: center;
    color: #991b1b;
    /* Dark red */
    margin-bottom: 2.5rem;
}

.pain-content-wrapper {
    background: white;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid #fecaca;
}

.pain-list {
    list-style: none;
}

.pain-list li {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--slate-100);
    color: #7f1d1d;
    font-weight: 500;
}

.pain-list li:last-child {
    border-bottom: none;
}

.pain-list li::before {
    content: "⚠️";
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.pain-solution {
    text-align: center;
    margin-top: 2rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-600);
}

/* Steps */
.steps-section {
    padding: 5rem 0;
    background-color: var(--slate-50);
}

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

.step-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    text-align: center;
}

.step-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-50);
    color: var(--primary-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1.5rem;
}

/* Pricing */
.pricing-section {
    padding: 5rem 0;
    background-color: white;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--slate-200);
    position: relative;
    /* transition is in .card */
}

.pricing-card.featured {
    border: 2px solid var(--danger);
    /* Red border for featured */
    box-shadow: var(--shadow-xl);
    transform: none;
    z-index: 10;
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--slate-900);
    margin: 1.5rem 0;
    letter-spacing: -2px;
    white-space: nowrap;
    /* Prevent wrapping */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--slate-600);
    text-align: left;
}

.check-icon {
    color: var(--success);
    margin-right: 0.75rem;
    font-weight: 700;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid var(--slate-100);
}

.testimonial-text {
    font-style: italic;
    color: var(--slate-600);
    margin-top: 1rem;
}

/* FAQ */
.faq-section {
    background-color: var(--slate-50);
    padding: 5rem 0;
}

.faq-item {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

.faq-question:hover {
    background-color: var(--slate-50);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--slate-600);
    border-top: 1px solid var(--slate-100);
    margin-top: 0;
    padding-top: 1rem;
}

/* Footer */
.site-footer {
    background-color: white;
    border-top: 1px solid var(--slate-200);
    padding: 4rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--slate-500);
}

/* Form Page Specifics (Obrigado.html) */
.form-section-card {
    margin-bottom: 1.5rem;
    border: 1px solid var(--slate-200);
}

.form-section-title {
    font-size: 1.125rem;
    color: var(--primary-600);
    border-bottom: 1px solid var(--slate-100);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.progress-bar-bg {
    width: 100%;
    height: 0.5rem;
    background-color: var(--slate-200);
    border-radius: 1rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-600);
    width: 50%;
    /* Adjust as needed */
}

.secure-badge {
    background-color: var(--success-bg);
    color: var(--success-text);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Animation utilities */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.btn-pulse {
    animation: pulse-red 2s infinite;
}

/* Tablet Adjustments */
@media (max-width: 1024px) {
    .pricing-card.featured {
        transform: none;
    }

    .price-amount {
        font-size: 2.5rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .btn-lg {
        width: 100%;
    }

    .steps-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .price-amount {
        font-size: 2rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 2000;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.mobile-menu-nav a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-800);
}

.mobile-menu-nav a:hover {
    color: var(--primary-600);
}

.mobile-menu-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}