/*
 * Copyright (c) 2025. All rights reserved. Finbizz is a application created by Marcos Huck <marcos@huck.com.ar>
 */

/* Import Google Fonts for better typography */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

/* Color Palette Variables (for easier reference) */
:root {
    /* Primary (Main brand color, headings, strong accents) */
    --neutral-10: #1a1b1f; /* Darkest neutral for primary text on light backgrounds */
    --primary-10: #001b3e; /* Very dark */
    --tertiary-10: #29132f; /* Darkest tertiary */
    --primary-100: #ffffff; /* Pure white */
    --neutral-20: #2f3034;
    --primary-20: #0a305f; /* Dark blue for primary elements */
    --secondary-20: #283141; /* Dark secondary */
    --tertiary-20: #3f2845; /* Dark purple for footer */

    /* Secondary (Supporting color, subtle details) */
    --error-40: #ba1a1a; /* Standard error red */
    --neutral-40: #5d5e62; /* Mid-tone neutral for secondary text */
    --primary-40: #415f91; /* Base primary - main blue */

    /* Tertiary (Accent color, highlights, decorative elements - now more prominent) */
    --secondary-40: #565f71; /* Base secondary - muted blue-grey */
    --tertiary-40: #705575; /* Base tertiary - plum/mauve for buttons */
    --tertiary-50: #8a6d8f; /* Mid-tone tertiary for button hover */
    --primary-60: #7491c7; /* Lighter primary for buttons/links */
    --neutral-80: #c6c6cb;
    --secondary-80: #bec7db; /* Light secondary for borders/inputs */
    --tertiary-80: #ddbce1; /* Light tertiary for text on dark background */

    /* Neutral (Text, general backgrounds, borders) */
    --neutral-90: #e3e2e7;
    --primary-90: #d6e3ff; /* Very light primary for backgrounds */
    --tertiary-90: #fad7fe; /* Very light tertiary for body background */
    --neutral-95: #f1f0f5; /* Light neutral for striped tables/subtle backgrounds */
    --primary-95: #ecf0ff;
    --tertiary-95: #ffebfe;
    --primary-98: #f9f9ff; /* Almost white background - now less used as main body bg */

    /* Neutral Variant (Subtle backgrounds, dividers, less prominent text) */
    --neutral-99: #fdfbff; /* Off-white for section backgrounds */
    --neutral-variant-40: #5b5e67;

    /* Error (For error messages) */
    --neutral-variant-90: #e0e2ec; /* Light for table borders, etc. */
}

body {
    background-color: var(--tertiary-50); /* Changed to light purple background */
    color: var(--neutral-10); /* Darkest neutral for default text */
    font-family: "Roboto", sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Header Section */
header {
    background-color: var(--neutral-99); /* Dark blue header */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow from darkest primary */
    padding: 2rem 0;
    text-align: center;
}

.header-logo {
    max-height: 100%;
    max-width: 100%;
}

.header-content {
    margin: 0 auto;
    max-width: 960px;
    padding: 0 1rem;
    max-height: 300px;
}

header h1 {
    color: var(--primary-90); /* Lighter blue for heading */
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--primary-95); /* Slightly darker white for subtext */
    font-size: 1.2rem;
}

/* Main Container */
.container {
    background-color: var(--primary-100); /* Pure white main content background */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Neutral shadow */
    margin: 2rem auto;
    max-width: 1000px;
    padding: 2rem;
}

/* General Section Styling */
section {
    margin-bottom: 3rem;
}

section h2 {
    color: var(--primary-20); /* Dark primary for section titles */
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    text-align: center;
}

section h2::after {
    background-color: var(--tertiary-40); /* Tertiary accent line for pop */
    border-radius: 2px;
    content: "";
    display: block;
    height: 4px;
    margin: 10px auto 0;
    width: 60px;
}

/* Intro Section */
.intro-section p {
    color: var(--neutral-40); /* Mid-tone neutral for intro text */
    font-size: 1.1rem;
    margin: 0 auto 2rem;
    max-width: 800px;
    text-align: center;
}

/* Features Section */
.features-section h2 {
    margin-bottom: 3rem;
}

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

.feature-card {
    background-color: var(--primary-100); /* Very light primary for cards */
    border: 1px solid var(--primary-95); /* Light primary border */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Subtle neutral shadow */
    padding: 1.5rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.feature-card:hover {
    box-shadow: 0 6px 12px rgba(var(--primary-20), 0.15); /* More prominent primary shadow on hover */
    transform: translateY(-5px);
}

.feature-card h3 {
    align-items: center;
    color: var(--primary-40); /* Base primary for feature titles */
    display: flex;
    font-size: 1.4rem;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

.feature-card p {
    color: var(--neutral-40); /* Neutral text for feature descriptions */
    font-size: 0.95rem;
}

/* Plans Section (Table) */
.plans-section {
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.plans-section p {
    color: var(--secondary-40); /* Secondary color for explanatory text */
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.table-responsive {
    overflow-x: auto; /* Enables horizontal scrolling on small screens */
}

table {
    background-color: var(--primary-100); /* White table background */
    border: 1px solid var(--neutral-variant-90); /* Light neutral-variant border */
    border-collapse: collapse;
    border-radius: 8px;
    margin-top: 1.5rem;
    overflow: hidden; /* Ensures rounded corners apply */
    width: 100%;
}

table thead th {
    background-color: var(--primary-90); /* Light primary for table header background */
    border-bottom: 2px solid var(--primary-40); /* Base primary line below headers */
    color: var(--primary-10); /* Very dark primary for header text */
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem;
    text-align: center;
}

table tbody tr:nth-child(even) {
    background-color: var(--neutral-95); /* Light neutral for alternating row background */
}

table tbody tr:hover {
    background-color: var(--primary-95); /* Light primary hover effect */
}

table td {
    border-bottom: 1px solid var(--neutral-variant-90); /* Light neutral-variant line */
    color: var(--neutral-20); /* Dark neutral text for content */
    font-size: 0.95rem;
    padding: 1rem;
    text-align: center;
}

table td:first-child {
    color: var(--secondary-20); /* Dark secondary for feature names */
    font-weight: 500;
    text-align: left;
}

/* Call to Action Section */
.cta-section {
    color: var(--tertiary-10); /* Dark purple text for CTA */
    margin: 2rem auto;
    max-width: 960px;
    padding: 3rem 0;
    text-align: center;
}

.cta-form {
    border: none;
    width: calc(500px + 32px + 32px);
    height: 500px;
}

.cta-content {
    margin: 0 auto;
    max-width: 700px;
    padding: 0 1rem;
}

.cta-section h2 {
    color: var(--tertiary-20); /* Dark purple for CTA heading */
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--tertiary-10); /* Darker purple for CTA subtext */
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

form {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

input[type="email"] {
    background-color: var(--primary-100); /* Very light primary background for input */
    border: 2px solid var(--secondary-80); /* Light secondary border for input */
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--neutral-20);
    font-size: 1rem;
    max-width: 350px;
    padding: 0.85rem 1.2rem;
    width: 90%;
}

input[type="email"]:focus {
    border-color: var(--tertiary-40); /* Tertiary focus color */
    box-shadow: 0 0 0 3px rgba(var(--tertiary-40), 0.2);
    outline: none;
}

.cta-content a, .cta-content a:hover, .cta-content a:visited, .cta-content a:active {
    background-color: var(--tertiary-40); /* Changed to tertiary purple button color */
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(var(--tertiary-20), 0.3); /* Shadow reflecting new button color */
    color: var(--primary-100); /* White button text */
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.9rem 2rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-content > a:hover {
    color: var(--primary-100); /* White button text */
    text-decoration: none;
    background-color: var(--tertiary-50); /* Darker tertiary on hover */
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--tertiary-20); /* Changed to dark purple footer */
    color: var(--tertiary-80); /* Light tertiary text for contrast */
    font-size: 0.9rem;
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
}

/* Link Styling */
a {
    color: var(--primary-40); /* Base primary link color */
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-60); /* Lighter primary on hover for links */
    text-decoration: underline;
}

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

    header p {
        font-size: 1rem;
    }

    .container {
        margin: 1rem auto;
        padding: 1.5rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

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

    table th, table td {
        padding: 0.75rem;
    }

    .cta-section {
        margin: 1.5rem auto;
        padding: 2rem 1rem;
    }
}